- False, 2. False
The following statements are either true or false. Prove them or provide a counterexample:
If X, Y, and Z are random variables, X and Y are independent, Y and Z are independent, then X and Z must be independent.
If X, Y, and Z are random variables, X and Y are not independent, Y and Z are not independent, then X and Z must be not independent.
1. Proof by counterexample:
Imagine that we have $2$ fair coins, coin A and coin B. We define several random variables based on the outcome of these coins.
It can be seen that $X$ and $Z$ will always have exactly the same outcome. They are therefore not indpendentHowever, we can also see that since coin A is indpendent of coin B, $X \perp Y$ and $Y \perp Z$.
Therefore supposition 1 is False
2. Proof by counterexample:
We can imagine we have $2$ fair coins, coin A and coin B
From these $2$ coins we define $3$ random variables
By inspection $X$ and $Z$ are independent of each other. $Y$ and $X$ are not independent niether are $Y$ and $Z$.
Therefore supposition 2 is False