Quoto

Learn / Library / Expected value

Colour runs in a row of beads

Expected valueMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Count adjacent pairs with different colours.

Solution
  1. There are adjacent pairs, and a pair has different colours with probability .
  2. The number of runs is plus the number of colour changes.
  3. The expectation is .

Answer: