Let $X$ and $Y$ are both indicator variables that can take values $0$ or $1$. $P(X=1)=0.5$.
If $Y$ is defined only if $X=1$, then are $X$ and $Y$ correlated?
It is mentioned that
If $X=1$, we generate $Y$ from Bernoulli$(0.5)$ distribution.
Does it mean $P(Y=1\mid X=1)=P(Y=0\mid X=1)=0.5$?
But if $P(Y=1\mid X=1)=P(Y=0\mid X=1)$, aren't $X$ and $Y$ uncorrelated?