I kinda remember there is a result like this from Probability theory, but I forgot how to prove it. Is there a formal name for it? Can someone kindly provide me with the proof or a link please
The random variables $X$ and $Y$ with density $f$ are independent if and only if there exist $g$ and $h$ such that $f(x,y)=g(x)h(y)$ for (almost) every $(x,y)$ in R×R.
I do not know the name of this theorem.
Let us assume that $X,Y$ are independant. Let $a,b$ be two positive functions.
$$ E(a(X)b(y)) = \int a(x)b(y) f(x,y) dx \ dy $$