Let $X\in \mathbb{R}^n$ and $Y\in \mathbb{R}^m$ be two independent random vectors. Then, say that we have a third real valued random variable $Z=f(X,Y)$, with $f$ being measurable.
- Say that we know that $Z\perp X$. Can we then say that $f(X,Y)$ is constant in $X$ in some sense?
- Alternatively, say that for $Y\in S$ ($S$ with positive probability), $f(X,Y)$ is not constant in $X$. Is it true then that $f(X,Y)$ is not independent of $X$?
I've seen a similar question in this link: answers in this link show that if $X$ is independent of $f(X)$, then $f(X)$ must be a constant almost surely. Yet, I found it hard to adapt this argument to this case of a function $f(X,Y)$.