Say we have two random variables, x and y, with $F_{xy}(x,y)$ and $f_{xy}(x,y)$ denoting their joint CDF and PDF respectively. If they can be written such that
$$F_{xy}(x,y)=G(x)H(y)$$ $$f_{xy}(x,y)=g(x)h(y)$$
is that enough to guarantee x and y are independent? My intuition suggests that it should be possible to construct a counterexample (either where none of the possible $g$/$G$ and $h$/$H$ functions are the marginal statistics or where $F$ might be factorable while $f$ is not), but so far I've had no luck. I've also had a hard time proving that it is always the case if it is in fact true.