I would like to know whether I applied the law of iterated expectation correctly.
- $E[X|A=a]=ca$ where $X_i$ are discrete random variable ($X_i>0$).
- $Y_i$ follows Binomial Distribution $Binomial(X,p)$
Then, is the following correct statement?
$E[Y|A=a]=E[E[Y|X]|A=a]=E[Xp|A=a]=cap$