Let X,Y be Bernoulli trials with p=0.5 and let $X,Y$ be independent. We define:
Z = X+Y
W = |X-Y|
Are Z, W independent? Do they have correlation?
I believe Z ~ Binomial B(2, 0.5) and W ~ Bernoulli(0.5). Is this correct? How can I prove Correlation and dependency?
Observe that: $$W=0\iff Z\text{ is even}$$
Because $Z$ has also positive probability to be odd this already indicates that $W$ and $Z$ are not independent.
Yes, but the actual question is probably: "do they have a correlation that differs from $0$?"
To find that out it is enough to check whether $\mathsf{Cov}(Z,W)$ takes value $0$.
Covariance is bilinear so that: $$\mathsf{Cov}(Z,W)=\mathsf{Cov}(X+Y,W)=\mathsf{Cov}(X,W)+\mathsf{Cov}(Y,W)\tag1$$ Now observe that: $$|X-Y|=W=|Y-X|$$ from which we can conclude that the joint distributions of $(X,W)$ and $(Y,W)$ are the same and consequently:$$\mathsf{Cov}(X,W)=\mathsf{Cov}(Y,W)\tag2$$Combining $(1)$ and $(2)$ we find that: $$\mathsf{Cov}(Z,W)=0\iff\mathsf{Cov}(X,W)=0\tag3$$
It remains now to check whether the RHS of $(3)$ is true or not.
I leave that to you.