Quant Memo
Core

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 nn 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 nn," but the answer is far smaller — the expected number left is roughly 2n/π1\sqrt{2n/\pi} - 1 for large nn, growing only like the square root of nn, not like nn 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 2n2n steps typically strays only O(n)O(\sqrt{n}) from its center — not O(n)O(n). That's why the leftover count is small compared to nn even though naive intuition suggests something closer to half the matches remain.

For n=50n = 50, the approximation gives 100/π15.641=4.64\sqrt{100/\pi} - 1 \approx 5.64 - 1 = 4.64 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 n\sqrt{n}, not like nn — 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
ShareTwitterLinkedIn