Chapter 5
Chapter 5
5. Joint distribu3ons
1
Joint cdf
Joint pmf
f(x,y) is called the joint density func3on of X and Y.
The marginal pdf for X can be obtained from (and
similarly for Y):
4
Joint pmf
Example: A fair coin is tossed three 3mes independently; let X
denote the number of Heads in the first toss, and Y denote
the total number of Heads. Find the joint pmf of X and Y,
together with the marginal pmf of X and Y.
Solu3on: The joint and marginal pmf are given in the following
table:
Y
X 0 0 head 1 1 head 2 2 head 3 3 head p(x)
THT/TTH THH
NO-1st Head 0 1/8 TTT 1/4 1/8 0 Don’t exist 1/2
HTT/HTH
YES- 1st Head 1 0 Don’t exist 1/8 HTT 1/4 1/8 HHH 1/2
p(y) 1/8 3/8 3/8 1/8
5
Mul3nomial distribu3on
Solu3on:
Joint pdf
9
Independence of random variables
10
Independence of random variables
15
Sum of independent random variables
Sum of independent random variables
When X and Y are independent, the distribu3on of X+Y
can be computed from the distribu3ons of X and Y:
16
Sum of independent random variables
17
Independent normal r.v.
18
Independent Poisson / binomial
19
5.2 Condi3onal Distribu3ons
Discrete case:
Defini3on: If X and Y are two discrete random variables,
the condi3onal probability that X = x given that Y = y
(condi.onal pmf) is
Remark: If X and Y are independent random variables,
then the condi3onal probability mass func3on is
simply equal to the uncondi3onal one.
20
Condi3onal pmf
21
Condi3onal pmf
22
Condi3onal pdf
Con3nuous Case:
Defini3on: If X and Y have a joint probability density
func3on f(x,y), then the condi3onal pdf of X, given
that Y=y, is defined by
for all values of y such that .
25
Condi3onal pdf
Compute P(X>1|Y=y).
26
Func3ons of r.v.
Then
5.4 Expecta3on, condi3onal expecta3on
Discrete:
Con3nuous:
Since E[X] is a weighted average of possible values of X,
Recall:
29
Expecta3on, condi3onal expecta3on
A two-dimensional analog is the following:
Proposi3on:
Expecta3on, condi3onal expecta3on
By induc3on, we have
Example: (Sample mean). Let be independent
and iden3cally distributed (i.i.d.) random variables
having cdf F and expected value . Such a sequence
of r.v. is said to be a random sample from F. The
sample mean is defined by
Compute its expecta3on.
Expecta3on, condi3onal expecta3on
Covariance
The covariance between two random variables is a
measure of how they are related.
Defini3on: The covariance between X and Y, denoted by
Cov(X,Y), is defined by Cov(X,Y)=E[(X−E[X])(Y−E[Y])].
33
Expecta3on, condi3onal expecta3on
35
Expecta3on, condi3onal expecta3on
Correla3on:
The correla3on is always between -1 and 1. If X and Y
are independent, then . But the converse
is not true. Generally, the correla3on (as well as
covariance) is a measure of the degree of dependence
between X and Y.
Find
37
Expecta3on, condi3onal expecta3on
39
Bivariate normal distribu3on
Condi3onal expecta3on
Recall that if X and Y are joint discrete random variables,
it is natural to define the condi3onal expecta3on of X
given Y = y as:
43
Condi3onal expecta3on
44
Condi3onal expecta3on
Condi3onal variance:
The condi3onal variance of X|Y= y is the expected
squared difference of the random variable X and its
condi3onal mean, condi3oning on the event Y = y: