Interview war story: the birthday paradox
I once watched a candidate fail the birthday paradox in a final-round Jane Street interview. Don't be that candidate.
Interview war story: the birthday paradox
The question: How many people in a room for a 50% chance of two sharing a birthday?
The candidate — strong resume, MIT math — answered 183. Half of 365.
Wrong. The answer is 23.
What went wrong
The candidate thought linearly: "1/2 chance of a match → half the days → 183." But matches are about pairs, not days. With 23 people there are pairs, each with chance of matching. — the threshold.
The lesson
The birthday paradox is the canonical example of "intuition fails on combinatorial problems." Whenever you see "how many X until Y", ask:
- Is the growth linear, quadratic, exponential?
- Are you counting items, pairs, triples, subsets?
- Is there an approximation (Poisson, CLT, union bound)?
For interviews: when in doubt, write out small cases. With people, the answer is obviously 0, 0, ~0.008. Not 183.
What the candidate should have said
"Let me think about pairs. With people, pairs. Each pair shares a birthday with prob . Approximate as Poisson with mean . Set : , so , ."
That's 30 seconds of thinking. Worth $200k+. Don't waste it.