Learn / Library / Expected value
Matching neighbours in coin row
A fair coin is flipped times independently, giving a row of outcomes. Count the adjacent pairs of flips that show the same side. What is the expected value of this count? Give a fraction a/b in lowest terms.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count the adjacent pairs, then find the chance that one pair matches.
Solution
- A row of flips has adjacent pairs.
- For one pair, the second flip equals the first with probability .
- Each pair has an indicator with expectation , and linearity applies even though neighbouring pairs overlap.
- The total is .
Answer: