The Banach Matchbox Problem
A classic probability puzzle about a smoker who carries two matchboxes and picks one at random each time — asking how many matches are left in the other box the moment one box is found empty.
Prerequisites: The Central Limit Theorem
A smoker keeps two matchboxes, each starting with matches, one in each pocket. Every time he wants a match, he picks a pocket at random and takes one out. Eventually he reaches into a pocket and finds it empty. The question: at that moment, how many matches are left in the other box, on average?
This sounds like it should just be "about half of ," but the answer is far smaller — the expected number left is roughly for large , growing only like the square root of , not like itself. The reason is a subtlety of when you "notice" the emptiness: the box isn't discovered empty until you reach for a match that isn't there, which happens one draw after the box's last match was actually used. Tracking this off-by-one moment, combined with counting all the ways a sequence of pocket choices could lead to one box being exhausted first, is what makes the exact formula involve a binomial-coefficient sum rather than a simple symmetry argument.
The square-root scaling is the real lesson: because each pocket is chosen independently with equal probability, the difference in usage between the two boxes behaves like a simple random walk, and a random walk of steps typically strays only from its center — not . That's why the leftover count is small compared to even though naive intuition suggests something closer to half the matches remain.
For , the approximation gives matches left on average — a small number compared to the 50 matches each box started with, illustrating just how quickly the random walk's imbalance stays proportionally small.
Because each matchbox is chosen independently at random, the imbalance between the two boxes behaves like a random walk, so the expected number of matches left in the other box when one is found empty scales like , not like — a classic case where naive symmetry intuition overstates the answer by an order of magnitude.
Related concepts
Practice in interviews
Further reading
- Feller, An Introduction to Probability Theory and Its Applications, vol. 1