Let $X$, $Y$ be r.v. with finite second moments. Suppose $\mathbb{E}(X|\sigma (Y))=Y$, and $\mathbb{E}(Y|\sigma(X))=X$, show that $\Pr(X=Y)=1$.
So what I have done is this, I first consider $\mathbb{E}((X-Y)^2)$ by conditioning on $X$ and $Y$
$\mathbb{E}((X-Y)^2|X)=\mathbb{E}(X^2|X)-2\mathbb{E}[XY|X]+\mathbb{E}[Y^2|X]=X^2-2X^2+\mathbb{E}(Y^2|X)=-X^2+\mathbb{E}[Y^2|X]$, and similarly for conditioning on $Y$, but I am not sure how to subtract them properly to make use of them. Thanks
In the end I have $\mathbb{E}((X-Y)^2|X)=-X^2+\mathbb{E}[Y^2|X]$;
$\mathbb{E}((X-Y)^2|Y)=-Y^2+\mathbb{E}[X^2|Y]$