EECE 522 Notes - 22 Results For 2 RVs
EECE 522 Notes - 22 Results For 2 RVs
1
Let X and Y be two RVs each with there own PDF: pX(x) and pY(y)
Imagine “adding up” the joint PDF along one direction of a piece of
paper to give values “along one of the margins”.
p X ( x ) = ∫ p XY ( x, y )dy pY ( y ) = ∫ p XY ( x, y )dx
2
Expected Value of Functions of X and Y: You sometimes create a
new RV that is a function of the two of them: Z = g(X,Y).
E {Z } = E XY {g ( X , Y )} = ∫ ∫ g ( x, y ) p XY ( x, y )dxdy
Example: Z = X + Y
E {Z } = E XY {X + Y } = ∫ ∫ (x + y ) p XY ( x, y )dxdy
= ∫ ∫ xp XY ( x, y )dxdy + ∫ ∫ yp XY ( x, y )dxdy
= ∫ x ∫ p XY ( x, y )dy dx + ∫ y ∫ p XY ( x, y )dx dy
= E X {X }+ EY {Y }
3
Conditional PDFs : If you know the value of one RV how is the
remaining RV now distributed?
p XY ( x, y ) p XY ( x, y )
p ( x) , p X ( x) ≠ 0 p ( y) , pY ( y ) ≠ 0
pY | X ( y | x ) = X p X |Y ( x | y ) = Y
0, otherwise 0, otherwise
Various Notations
4
Independence: RVs X and Y are said to be independent if
knowledge of the value of one does not change the PDF model for
the other.
pY | X ( y | x ) = pY ( y )
p X |Y ( x | y ) = p X ( x )
p X ( x ) pY ( y )
pY | X ( y | x ) = = pY ( y )
p X ( x)
p X ( x ) pY ( y )
p X |Y ( x | y ) = = p X ( x)
pY ( y )
5
Decomposing the Joint PDF: Sometimes it is useful to be able to
write the joint PDF in terms of conditional and marginal PDFs.
p XY ( x, y ) = pY | X ( y | x ) p X ( x )
p XY ( x, y ) = p X |Y ( x | y ) pY ( y )
p X ( x ) = ∫ p X |Y ( x | y ) pY ( y )dy
pY ( y ) = ∫ pY | X ( y | x ) p X ( x )dx
6
Bayes’ Rule: Sometimes it is useful to be able to write one
conditional PDF in terms of the other conditional PDF.
p X |Y ( x | y ) pY ( y )
pY | X ( y | x ) =
p X ( x)
pY | X ( y | x ) p X ( x )
p X |Y ( x | y ) =
pY ( y )
8
For conditional expectations… one idea but several notations!
E X |Y {g ( X , Y )} = ∫ g ( x, y ) p X |Y ( x | y )dx
Uses subscript on E to indicate that you use the cond. PDF.
Does not explicitly state the value at which Y should be fixed so use an arbitrary y
E X |Y = yo {g ( X , Y )} = ∫ g ( x, yo ) p X |Y ( x | yo )dx
Uses subscript on E to indicate that you use the cond. PDF.
Explicitly states that the value at which Y should be fixed is yo
E {g ( X , Y ) | Y } = ∫ g ( x, y ) p X |Y ( x | y )dx
Uses “conditional bar” inside brackets of E to indicate use of the cond. PDF.
Does not explicitly state the value at which Y should be fixed so use an arbitrary y
E {g ( X , Y ) | Y = yo } = ∫ g ( x, yo ) p X |Y ( x | yo )dx
Uses “conditional bar” inside brackets of E to indicate use of the cond. PDF.
Explicitly states that the value at which Y should be fixed is yo
9
Decomposing Joint Expectations: When averaging over the joint
PDF it is sometimes useful to be able to decompose it into nested
averaging in terms of conditional and marginal PDFs.
This uses the results for decomposing joint PDFs.
E{g ( X , Y )} = E XY {g ( X , Y )} E {g ( X , Y )} = ∫ ∫ g ( x, y ) p ( x, y ) dxdy
$XY
!#!"
pY | X ( y |x ) p X ( x )
{
= E X EY | X {g ( X , Y )} } = ∫x ∫y g ( x , y ) pY |X ( y | x ) p X ( x )dx
$!!! !#!!!! "
EY | X {g ( X ,Y )}
This is an RV that
“inherits” the PDF of X!!!
10
Ex. Decomposing Joint Expectations: { }
E{g ( X , Y )} = E X EY | X {g ( X , Y )}
6
E{ X + Y } = E{E{Y | X }} = ∑ E{Y | x} = 7
1
x =1
6
11