Given: Let $X$, $Y$ be random variables on a common probability space $(\Omega, \mathcal{A}, P)$.
To prove: $\text{Var}(Y) = \text{Var}(Y - E[Y | X]) + \text{Var}(E[Y | X])$.
Attempt:
- $\text{Var}(Y) = E((Y-E(Y))^2)$ (by definition)
- $\text{Var}(Y) = E(Y^2) - (E(Y))^2$
- $\text{Var}(E[X|Y]) = E((E[X|Y])^2) - (E(E[X|Y]))^2 = E((E[X|Y])^2) - (E(Y))^2$
- $\text{Var}(Y-E[Y|X]) = \text{Var}(Y) + \text{Var}(E[Y|X]) - 2 \cdot \text{Cov}(Y, E[X|Y])$
- $\text{Cov}(Y, E[X|Y]) = E[YE[Y|X]] - E(Y)E[E[Y|X]] = E[YE[Y|X]] - (E(Y))^2$
And now I'm stuck with $E[YE[Y|X]]$. How can I proceed or is there something I'm missing that could make it easier?