[Math] If a random variable is independent from the two components of a random vector, are the random vector and the random variable independent

independenceprobabilityrandom variables

in my probability class I was asked this seemingly very tricky question dealing with random variables and vectors:

Let $ X,Y,Z $ be random variables with PDFs (continuous) such that we know that Z and X are independent and the variables Z and Y are independent. We are asked to prove or disprove (give a counterexample) that the random vector $ (X,Y) $ and $ Z $ are independent.

I have tried to prove it just with the basic identities and definitions but got nothing so maybe it is false and we must give a counterexample? I do not even know how to deal with this, so I really need the help. Thanks all helpers.

Best Answer

A counterexample is given by equal probabilities for $(X,Y,Z)$ to take the values $(0,0,0)$, $(0,1,1)$, $(1,1,0)$, $(1,0,1)$. Both $(X,Z)$ and $(Y,Z)$ have uniform distribution, so $X$ and $Z$ are independent and $Y$ and $Z$ are independent, but $(X,Y)$ is clearly not independent from $Z$ (in fact the value of $(X,Y)$ fixes the value of $Z$).

Related Question