Property of conditional expectations

96 Views Asked by At

I'm given two random variables $X,Y$ with finite second moments such that $\mathbb E(X|Y) = Y$ a.s. and $\mathbb E(X^2|Y) = Y^2$ a.s. and I have to show that $X=Y$ a.s.

I've used the definition of conditional variance and the law of total variance to show that $var(X) = var(Y)$ a.s. But it doesn't help too much since what I need to show is that $\mathbb P(X=Y) = 1$.

Any small hint would be appreciated :)

1

There are 1 best solutions below

1
On BEST ANSWER

Hint: $$\mathbb{E}((X-Y)^2) = \mathbb{E} \bigg[ \mathbb{E}((X-Y)^2 \mid Y) \bigg].$$

Expand the term on the right-hand side and use the given properties of $X$ and $Y$ to conclude that $$\mathbb{E}((X-Y)^2)=0,$$ hence, $X=Y$ almost surely.