Professional Documents
Culture Documents
2 Random Variables and Probability Distributions
2 Random Variables and Probability Distributions
4
Example: Construct the probability distribution of X where X is
the number of boys in a family of 3 children.
* The Cumulative Distribution Function
The Cumulative Distribution Function F(x) is the probability
that the observed value of X will be at most x.
That is F(x) = P (X ≤ x);
6
Activity for Discrete Distribution
Insurance companies decide their premium based on the # of accidents and the type of accidents
occurred in the previous years in a large area. The following is an example about # of car
accidents per day in a large city area:
X : # of Accidents: 0 1 2 3 4 5 6
Probability .05 ? .3 .2 .1 .08 .02
Q1: Determine P(X =1 )
Q2: What is the probability of having exactly 3 accidents in a given day?
Q3: What is the probability of having at most 2 accidents in a given day?
Q4: What is the probability of having at least 3 accidents in a given day?
7
Expected Value
8
How to describe a discrete distribution?
The distribution has the center value (or called mean, or expected value) and
the variation of the distribution can be described by a numerical value,
called variance or by standard deviation.
The Center: The mean or expected value of the variable X : m = E(X) = SxP(x)
NOTE: The Expected Value m, the population mean. For a given population,
there is ONLY one Expected value, m.
DO NOT mix up with the Sample Mean, X . We can take many different
samples from the same population. Sample means are different from sample to
sample. BUT, there is only one population mean. You can not compute
population mean from a random sample that is not the entire population.
The Variation: The variance and standard deviation of X:
Let x be a discrete random variable with probability distribution p(x) and mean m.
The variance of x is
s 2 = E[(x - m ) 2 ]= S(x - m ) 2 p(x) = x 2 P( x) - m 2
X: # of accidents 0 1 2 3 4 5 6
P(x) .05 .25 .3 .2 .1 .08 .02
Q6: What would the expected average number of accidents in a given day?
Q7: What would the variance of the number of accidents in a given day?
Q8: What is the standard deviation of the number of accidents in a given day?
2.3 Probability Density Functions
Continuous Random Variables
Probability density function
EXAMPLE Illustrating the Uniform Distribution
Example:
Assume the waiting time at a bus stop is uniformly distributed on the interval [0,5].
What is the probability that it is between 1 and 3 minutes?
A continuous random variable X is said to have a uniform distribution
on the interval [A, B] if the pdf of X is:
Example:
Assume the waiting time at a bus stop is uniformly distributed on the interval [0,5].
What is the probability that it is between 1 and 3 minutes? (0.4)
EXAMPLE Area as a Probability
Area
= P(15 < x < 30)
= 15/60
= 0.25
15 30
The cumulative distribution
function
Computing probabilities using
the cdf
Percentiles of a continuous
distribution
Mean of a continuous random
variable
Expected value of a function of a
rv
Variance of a continuous rv
A shortcut formula for Variance:
V(X) = E(X ) -[E(X)]
2 2
Joint Probability Mass Function
Example: Consider the Joint Probability
Distribution in the following table. Find the
marginal probability for X and Y?
Y
1 2 3 4
X
❍
❍1❍ 16/136 3/136 2/136 13/136
2 5/136 10/136 11/136 8/136
3 9/136 6/136 7/136 12/136
4 4/136 15/136 14/136 1/136
Joint Probability Density
Function
Example: Find the marginal density functions
when the joint density function is:
ì12
ï xy(1+ y) if 0 £ x £ 1 and 0 £ y £1
f (x, y) = í 5
ïî0 otherwise
Independent Random Variables
Example: Consider the independence of X
and Y ?
Y
a. 1 2 3 4
X
❍
❍1❍ 16/136 3/136 2/136 13/136
2 5/136 10/136 11/136 8/136
3 9/136 6/136 7/136 12/136
4 4/136 15/136 14/136 1/136
b. ì12
ï xy(1+ y) if 0 £ x £ 1 and 0 £ y £1
f (x, y) = í 5
ïî0 otherwise
Conditional distributions
Example:
a. Construct the probability table for the rv (Y|X=1)
in example 1?
b. Find FX(x|y) and P(X<1/2 | Y=1/2) in example 2?
Expected value
Example: Find E(XY), Var (X+Y), Var (X-
Y) and Cov(X,Y)?
Y
a. 1 2 3 4
X
❍
❍1❍ 16/136 3/136 2/136 13/136
2 5/136 10/136 11/136 8/136
3 9/136 6/136 7/136 12/136
4 4/136 15/136 14/136 1/136
b. ì12
ï xy(1+ y) if 0 £ x £ 1 and 0 £ y £1
f (x, y) = í 5
ïî0 otherwise