Law of total expectation for three variables

conditional probabilityconditional-expectationexpected valueprobability

I am working on this question Conditional probability – need help on calculating numerator and I got into use of the law of total expectation. How using this law I can find
$$
E(X_1^2X_2^4X_3^6\mid X_1+X_2+X_3=A),
$$

where $X_i$ are geometric random variables representing the number of failures with parameter $p$.

I am not sure that I am using the law properly. I am starting with $E(E(E(X_3^6\mid A-X_1-X_2=a_3)\times X_2^4\mid A-X_1=a_2)\times X_1^2\mid X_1+X_2+X_3=A)$

Best Answer

One way to go is to figure out the joint distribution of $(X_1,X_2,X_3)$ given $X_1+X_2+X_3=A$. Take $(x_1,x_2,x_3)$ so that $x_1,x_2,x_3 \geq 0$ and $x_1+x_2+x_3 = A$. Try computing $$ P(X_1=x_1,X_2=x_2,X_3=x_3 | X_1+X_2+X_3=A) $$ by using the definition of conditional expectation. See here for a similar calculation where you have two instead of three random variables. I think you should get that $(X_1,X_2,X_3)$ given $X_1+X_2+X_3=A$ is uniformly distributed, where each possible value $(x_1,x_2,x_3)$ with $x_1+x_2+x_3=A$ has probability $\frac2{(A+1)(A+2)}$. Then $$ E[X_1^2X_2^4X_3^6 | X_1+X_2+X_3=A] = \frac2{(A+1)(A+2)} \sum_{(x_1,x_2,x_3): x_1+x_2+x_3=A} x_1^2 x_2^4 x_3^6. $$ This at least gives you a computable formula for the conditional expectation.

Related Question