I'm reading All of Statistics by Larry Wasserman, and I'm confused by Theorem 2.33:
Suppose that the range of $X$ and $Y$ is a (possibly infinite) rectangle. If $f(x, y) = g(x)h(y)$ for some functions $g$ and $h$ (not necessarily probability density functions) then $X$ and $Y$ are independent.
How can I prove this statement, or get some intuition behind it? Does this also mean that two dependent variables and two independent variables cannot have the same joint PDF?
Thank you!
The answer is yes to both questions and you can prove them using Fubini's Theorem.