I know that if $\mathbb{E}[X]=\mathbb{E}[X|Y] , \mathbb{E}[Y]=\mathbb{E}[Y|X]$, $X$ and $Y$ can be dependent, for example a ‘uniform’ distribution in a unit circle. Now we add the variance, if $$\mathbb{E}[X]=\mathbb{E}[X|Y], \mathbb{E}[Y]=\mathbb{E}[Y|X], $$$$Var(X)=Var(X|Y), Var(Y)=Var(Y|X).$$ Say the expectation and variance of $X$ are both not affected by $Y$, and vice versa, then must $X$ and $Y$ be independent? In this case I can not find a counterexample just like the uniform circle.
If they are independent, how to prove it? If not, is there a counterexample?
Thanks!
Consider $X\sim N(0,1)$ and $Y\sim N(0,2)$ if $X>0$ and $Y\sim t_4$ otherwise. Then $X, Y$ are dependent, but your conditions hold (the $t_4$ distribution has mean 0 and variance 2).