Prove that $EX=E(E(X|Y))$
I know that I should prove it from definition of conditional distribution and conditional expected value, but I don't know how.
I have also looked at theorem("Total expectation") which should be connected with the proof.
If someone would tell me, which properties of expectation I should use to prove it, I would be really glad.
\begin{eqnarray*} \mathbb{E}(\mathbb{E}(X|Y)) & = & \int_{-\infty}^{\infty} \mathbb{E}(X|Y = y) f_Y(y) dy \\ & = & \int_{-\infty}^{\infty} \int_{-\infty}^{\infty}xf_{X|Y}(x|y) dx \ f_Y(y) dy \\ & = & \int_{-\infty}^{\infty} \int_{-\infty}^{\infty}xf_{X|Y}(x|y) f_Y(y) dx dy \\ & = & \int_{-\infty}^{\infty} \int_{-\infty}^{\infty}xf_{X,Y}(x,y) dx dy \\ & = & \int_{-\infty}^{\infty} \int_{-\infty}^{\infty}xf_{X,Y}(x,y) dy dx \\ & = & \int_{-\infty}^{\infty} x\int_{-\infty}^{\infty}f_{X,Y}(x,y) dy dx \\ & = & \int_{-\infty}^{\infty} xf_{X}(x) dx \\ & = & \mathbb{E}(X) \end{eqnarray*}