Quoto

Learn / Library / Probability

Waiting for a marked card

ProbabilityMedium

A deck has cards, and exactly of them are marked. The deck is shuffled uniformly and you flip cards one at a time until the first marked card appears. What is the expected number of cards flipped, counting the marked card itself? Give a fraction in lowest terms.

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

The marked cards split the unmarked cards into groups; use symmetry for the first group.

Solution
  1. There are unmarked cards, and the marked cards cut them into gaps.
  2. By symmetry, each gap has the same expected size, so the first gap has expected size .
  3. The first gap is exactly the set of unmarked cards flipped before the first marked card.
  4. Add the marked card itself: .

Answer: