11.1

Random Variables:

11.1

In order to develop an efficient analysis and characterization of random events, it is useful to have events correspond to a number. Thus, a random variable RV is a function that maps the sample space (outcomes) into real numbers.

Let be an outcome or point in the sample space, the random variable associated with this outcome is denoted by:

In many engineering applications the random outcome is already a number, such as

  • a voltage measured from a noisy channel
  • the power in the vibrations measure from a bridge
  • the number of times a communications channel is accessed in a given minute
  • the consumption of electric power in an industrial plant

Example consider a 4 coin toss experiment.

1.Describe several random variables that can be defined from this experiment.

2.Choose one of the random variables and plot the probability distribution for each value of the random variable.

Probability Distribution Functions:

The probabilities associated with each of the values of the random variable can be described in terms of the probability distribution function (pdf) or the cumulative distribution function (cdf).

Probability Distribution Function (pdf)

For a discrete random variable the pdf is a function that assigns a probability to each value of the random variable . For a continuous random variable the pdf is a function that assigns a probability to intervals of values for the random variable.

Example: Create a pdf for the RV determined by the sum of two dice faces.

Example: Sketch the pdf for a uniformly distributed RV, X, with values ranging from 0 to 10. Determine P(3<X<5.5), P(8.75>X ), P(12>X>9), P(X=3), and P(X=23).

The Cumulative Distribution Function (cdf)

The cdf is a function that assigns a probability to the random variable .

Example: Do the previous 2 examples for the cdf instead of the pdf.

Properties and Relationships for the cdf and pdf

cdf's limiting values:

,

Continuity (cdf's are continuous from the right):

cdf are monotonic and nondecreasing functions:

Probability of RV occurring in interval [a, b]:

For continuous RV's:

pdf's nonnegativity constraint:

pdf's unit area:

Probability of RV occurring in interval [a, b]:

Example: Consider a RV, X, with a Rayleigh pdf:

b) Find the cdf for X. (show )

c) Find the probability of X < 1, given =1. (show P(X < 1) = .6321)

d) Find the probability of 1.5 <X < 2, given =1. (show P(1.5<X < 1) = 0.0878)

e) Find the probability of X > 4, given =1. (show P(X> 4) = 0.0183)

b) Plot the pdf and cdf when =1. Show graphically part c on the pdf, and part b on the cdf.

» x = [0:.05:6]; % Create RV axis

» y = (2*x / 1).*exp(-(x / 1).^2);

» plot(x, y)

» title('Rayleigh pdf')

» xlabel('X')

» cy = cumsum(y)*(.05);

» plot(x,cy)

» title('Rayleigh cdf')

» xlabel('X')

The Uniform RV:

This distribution is used to model a continuum of equally likely events mapped into a finite range.

pdf

cdf

The expected value (mean) for this distribution is defined as:

The expected value of the dispersion about the mean is the variance defined by:

Gaussian RV:

This distribution models a continuum of events with a central tendency. This distribution occurs most often in random natural phenomena. It is sometimes referred to as the normal RV.

pdf

cdf: Since this is a useful function and no closed form of the integration exits, a special function will be defined:

where

The expected value (mean) for this distribution is defined as:

The expected value of the dispersion about the mean is the variance defined by:

Example: Given a digital communications channel that corrupts transmitted signals with zero-mean additive Gaussian Noise. The average noise power is 1 Watt. Assume a binary 0 is sent with a zero voltage level and a binary 1 is sent with a 5 volt level. The receiver sets a 2.5 volt threshold to detect transmitted zeros and ones such that any voltage greater than 2.5 is accepted as a 1 and any voltage less than 2.5 is accepted as a 0. Compute the probabilities of detection and error for all possible transmit-receive combinations.

Sketch distributions for the received signals for the cases of the transmitted 1 and 0.

» x = [-5:.05:10]; % Create RV axis

» y1 = exp(-(x-5).^2/(2*1))/sqrt(2*pi*1);

» y0 = exp(-(x-0).^2/(2*1))/sqrt(2*pi*1);

» plot(x,y0,'r',x,y1,'b')

» title('Distribution of received signals')

» xlabel('X')

% Probability of detecting a zero given a one was sent.

» p0g1 = .5*(1+erf((2.5-5)/(sqrt(2)*1)))

p0g1 = 0.0062

% Probability of detecting a zero given a zero was sent.

» p0g0 = .5*(1+erf((2.5-0)/(sqrt(2)*1)))

p0g0 = 0.9938

Binomial Distribution

This distribution models n independent trails with binary outcomes (i.e. success or failure). The RV is k, the number of successes where p is the probability of success for each outcome.

pdf- Probability Mass Function

or

cdf

The expected value (mean) for this distribution is defined as:

The expected value of the dispersion about the mean is the variance defined by:

Example: A signal measured from a certain process has a probability of .001 of crossing a threshold. For 20 measured signals, find the probability that at least one of them crosses the threshold. (Show P= 0.0198)

Poisson Distribution

The Poisson distribution can model the number of occurrences, k, of a random event over a given interval T.

pdf - Probability Mass Function

where  is the rate of occurrence.

cdf

The expected value (mean) for this distribution is defined as:

The expected value of the dispersion about the mean is the variance defined by:

Closely related to the Poisson Distribution is the exponential distribution, which can be used to model the interval, w, between two random events occurring with rate .

pdf

cdf

Example: In the afternoon, a certain computer receives information packets at a rate of 30 per minute. Find the probability at least a .01 second interval will occur between packets in the afternoon. (Show P= 0.9950)

Hypergeometric Distribution

This distribution models sampling n items from a batch of N items without replacement where K items are defective (or different).

Probability Mass Function