Learn / Library / Probability
Waiting for a marked card
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.
Hint
The marked cards split the unmarked cards into groups; use symmetry for the first group.
Solution
- There are unmarked cards, and the marked cards cut them into gaps.
- By symmetry, each gap has the same expected size, so the first gap has expected size .
- The first gap is exactly the set of unmarked cards flipped before the first marked card.
- Add the marked card itself: .
Answer: