Does this statement hold and how to prove it correctly? $$ \mathbb{E}(\mathbb{E}(X\mid \mathbb{F})^2) = \mathbb{E}(X\mathbb{E}(X\mid \mathbb{F})) $$
Any help? Thanks.
$\mathbb{F}$ is a sigma algebra. $X$ may or may not be $\mathbb{F}$-measurable.
Does this statement hold and how to prove it correctly? $$ \mathbb{E}(\mathbb{E}(X\mid \mathbb{F})^2) = \mathbb{E}(X\mathbb{E}(X\mid \mathbb{F})) $$
Any help? Thanks.
$\mathbb{F}$ is a sigma algebra. $X$ may or may not be $\mathbb{F}$-measurable.
Hint: Use that $$ \mathbb{E}(Z)=\mathbb{E}(\mathbb{E}(Z\mid\mathbb{F})) $$ with $Z=X\mathbb{E}(X\mid\mathbb{F})$.
We have to prove that if $X\in\mathbb L^2$, then $$\mathbb E[(\mathbb E(X\mid \mathcal F))^2]=\mathbb E(X\cdot\mathbb E(X\mid \mathcal F)).$$
Using the definition of conditional expectation, we have for each $\mathcal F$-measurable random variable $Y$ that $$\mathbb E(XY)=\mathbb E(\mathbb E(X\mid\mathcal F)Y).$$ Indeed, this is true if $Y=\chi_F$ for some $F\in\mathcal F$ and this can be extended by an approximation argument.