Same as here. Let $X$ be a square integrable random variable on $(\Omega,\mathcal{F},P)$. Let $\mathcal{G}$ be a sub-$\sigma$-algebra of $\mathcal{F}$. Define the conditional variance of $X$ given $\mathcal{G}$ by $$\operatorname{var}(X\mid\mathcal{G})=\Bbb{E}[(X-\Bbb{E}[X\mid\mathcal{G}])^2\mid\mathcal{G}]$$ Prove the formula
$$\operatorname{var}(X)=\operatorname{var}(\Bbb{E}[X\mid\mathcal{G}])+\Bbb{E}[\operatorname{var}(X\mid\mathcal{G})]$$
1 I don't understand part of the presented solution.
2 Is my attempt also correct?
3 Alternate solutions?
1 I don't understand this part of the solution wherein
$$\operatorname{var}(X\mid \mathcal{G})=\Bbb{E}[(X-\Bbb{E}[X\mid\mathcal{G}])^2 \mid \mathcal{G}]$$
$ =\mathbb E[ X^2 \mid \mathcal G] - \mathbb E [X \mid \mathcal G]^2 $. I think it is making use of the fact that $\mathbb E [X \mid \mathcal G]$ is $\mathcal G$-measurable in saying:
$\mathbb E[XE[X\mid\mathcal G]\mid\mathcal G] = \mathbb E[X\mid\mathcal G] \ E[X\mid\mathcal G] = E[X\mid\mathcal G]^2$, but isn't $E[X\mid\mathcal G]$ supposed to be bounded? How to show this?
My attempt:
$E(X^2) < \infty$
$\to E(X) < \infty$
$\to E(X\mid\mathcal G) < \infty$, but I don't think this step is correct.
2 My own attempt: I tried evaluating $$E(\operatorname{var}(X\mid\mathcal{G}))=E(\Bbb{E}[(X-\Bbb{E}[X\mid\mathcal{G}])^2\mid\mathcal{G}])$$
Is it correct to say that $E(\Bbb{E}[(X-\Bbb{E}[X\mid\mathcal{G}])^2\mid\mathcal{G}]) = E([(X-\Bbb{E}[X\mid\mathcal{G}])^2])$?
After expanding the square I encounter $E[XE[X\mid\mathcal G]]$ and rewrite
$= E[E[XE[X\mid\mathcal G]]\mid\mathcal G]$
$ = E[E[X\mid\mathcal G] \ E[X\mid\mathcal G]]$ (*)
$ = E[E[X\mid\mathcal G]^2]$
(*) Assuming this is all correct, I am still unsure about this part. Is it really bounded?
3 Is there a way to go about this without saying $E[X\mid\mathcal G]$ is bounded?
4 Is this wrong? It's from Stochastic Calculus class notes, though the problem is for an Advanced Probability class (and the notes don't say anything about bounded weirdly).