I'm wondering how to go about solving this problem.
Flip a coin five times. Let $X_i$ be the indicator variable ($X_i = 1$) if the $i$th flip and $i+1$ flips are the same where $1\leq i \leq 4$. What is $E[X_i]$?
I'm thinking $X$ is 4 which is the number of $i$ and $i+1$ pairs so we have $X = X_1 + X_2 +...+ X_4$ but I don't know where to go from there or if that's the right setup.