If the following Markov chain relations hold:
$$X \rightarrow Y \rightarrow Z,$$
$$Z \rightarrow W \rightarrow Y,$$
can we combine them to have
$$X \rightarrow Y \rightarrow Z \rightarrow W \rightarrow Y?$$
If so, what does $$Y \rightarrow Z \rightarrow W \rightarrow Y$$ say about $Y$?
I'd appreciate any references with similar problems.
In general, from $X\rightarrow Y \rightarrow Z$ and $Z\rightarrow W \rightarrow U$ we cannot conclude $X\rightarrow Y\rightarrow Z\rightarrow W\rightarrow U$. To have this last Markovity, we need to have $Y\rightarrow Z \rightarrow W$, too. That is, $p(w,y|z)=p(w|z)p(y|z)$ is also required too.
Regarding $ Y \rightarrow Z \rightarrow W \rightarrow Y$, when we write the definition of Markovity for $ Y \rightarrow Z \rightarrow W$ and $ Z \rightarrow W \rightarrow Y$, we conclude that $ Y$ must be constant.