Runs of red and blue marbles

You draw all 100100 marbles (5050 red, 5050 blue) from a bag one at a time, recording the color sequence. A "run" is a maximal block of same-colored marbles. What is the expected number of runs?

Show hints (2)+
  1. Runs =1+(# color changes)= 1 + (\#\text{ color changes}). Use linearity over the 9999 adjacent pairs.
  2. A pair differs in color with probability 2501005099=50992\cdot\tfrac{50}{100}\cdot\tfrac{50}{99}=\tfrac{50}{99}.

Answer

Reveal answer →

51

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Two Sigma

Related questions