How could I show that $\mathbb{E}_{Y}[Y] = \mathbb{E}_{X} [\mathbb{E}_{Y}(Y | X)]$ when X and Y are continuous random variables?

187 Views Asked by At

How could I show that $\mathbb{E}_{Y}[Y] = \mathbb{E}_{X} [\mathbb{E}_{Y}(Y | X)]$ when X and Y are continuous random variables?

I've seen how to do it for discrete random variables however I'm not sure how to prove it in the continuous case, how would I go about doing that?