Expectation E(Y|X) when P(Y|X) is binomial

150 Views Asked by At

Suppose $X \sim Bin(n, p_1)$, and $Y|X \sim Bin(m, p_2)$, and I want to calculate E(Y|X).

I can start this off:

$E(Y|X) = \sum_x xP(Y|X)$

$= \sum_x x {x \choose y} p_2^y (1-p_2)^{(x-y)}$

but now what?

1

There are 1 best solutions below

3
On BEST ANSWER

If $Y|X \sim Bin(m, p_2)$, then $E(Y|X)=mp_2$. The fact it is a conditional statement is irrelevant.