datarekha
Statistics & Probability Medium Asked at GoogleAsked at Jane StreetAsked at Citadel

What is the birthday problem and what does it reveal about probability intuition?

The short answer

In a room of just 23 people, the probability that at least two share a birthday exceeds 50 %. The counterintuitive result comes from counting the large number of pairs rather than comparing each person to a fixed date — an example of how our intuition systematically underestimates collision probabilities.

How to think about it

The birthday problem is a benchmark for probabilistic reasoning under combinatorial counting. Walk interviewers through the complement approach — it is cleaner than computing shared-birthday probability directly.

Setting up the complement

Compute the probability that all n birthdays are distinct, then subtract from 1.

With 365 equally likely birthdays and n people:

P(all distinct) = (365/365) × (364/365) × (363/365) × ··· × ((365-n+1)/365)
               = 365! / ((365-n)! × 365^n)
P(at least one match) = 1 - P(all distinct)

Key numbers

n (people)P(match)
1011.7 %
2350.7 %
3070.6 %
5799.0 %
7099.9 %

At n = 23 the probability crosses 50 %. Most people guess you need roughly 183 people.

Why the intuition fails

You are not asking “does someone share my birthday?” (which would require ~253 people for 50 %). You are asking whether any of the C(23, 2) = 253 pairs share a birthday. Counting pairs, not individuals, is the key insight. The number of pairs grows as n(n-1)/2.

The approximation

Using ln(1-x) ≈ -x for small x:

P(match) ≈ 1 - e^(-n(n-1)/(2×365))

This gives n ≈ √(2×365×ln 2) ≈ 23 — consistent with exact calculation.

Keep practising

All Statistics & Probability questions

Explore further

Skip to content