Learn / Library / Expected value
Colour runs in a row of beads
red beads and blue beads are arranged in a line, with all arrangements equally likely. A run is a maximal block of same-coloured neighbours. What is the expected number of runs?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count adjacent pairs with different colours.
Solution
- There are adjacent pairs, and a pair has different colours with probability .
- The number of runs is plus the number of colour changes.
- The expectation is .
Answer: