If two random variables $X$ and $Y$ are not independent, is it possible to find a nontrivial function $f$ so that $f(X)$ and $f(Y)$ are independent? Thanks.
(I am trying to understand if the simple uniform assumption for a hash function requires the keys to be independent.)