Let X and Y have the following joint probability mass function:
x |
y |
p(x,y) |
1 |
2 |
3 |
Py(y) |
1 |
0.25 |
0.15 |
0.10 |
0.50 |
2 |
0.05 |
0.35 |
0.10 |
0.50 |
|
Px(x) |
0.30 |
0.50 |
0.20 |
1 |
The conditional proabability mass function of Y given X=1 is
P(Y =1 | X=1)= 0.25/0.30 =0.834
P(Y =2 | X=1) = 0.05/0.30=0.167
E(Y | X=1) = 1(0.834) +2 (0.167) =1.168
Compute the probability mass function of Y given X=2.
Round all answers to 1 decimal place.
Solution
Refer to Example 2.9-2 on page 96. A game consists of first tossing a die. If the face value on the die is X, then a coin is tossed X times. Let Y be the number of heads.
So X takes on the values 1,2,3,4,5 or 6. Therefore Px(x)= 1/6 for x=1,2,...,6.
P(Y |X=1) is defined as the probability of getting a Head, given the face value on the dice is 1. The probability of getting a Head is 1/2 so, P(Y|X=1)= P(Y| X=2)= ... P(Y|X=6) = (1/2) because the two events are independent.
E(Y|X=1)= 1(1/2) =1/2 , E(Y|X=2)= 2(1/2)= 2/2
E(Y|X=3) =3(1/2)=3/2 , E(Y| X=4) = 4(1/2) =4/2
E(Y|X=5) =5(1/2)= 5/2, E(Y|X=6) =6(1/2) =6/2
From Theorem 2.9-1 we know that
So E(Y)=E(E(Y|X))= S E(Y | X=x)Px(x) = (1/2)(1/6) +(2/2)(1/6)+ ...+(6/2)(1/6) = S (x/2)(1/6) = 1.75 for x=1,2...,6 .