Skip to main content

Labs — Math & models

Labs

Birthday Paradox Tester

How many people must be in a room before two of them probably share a birthday? Intuition says the answer should be somewhere near half of 365. The mathematics says 23. With 23 people there are 253 pairs, and every pair is a chance to match; the probability that none of them match is 365!/((365−23)! × 36523), which works out to about 49.3 percent — so the probability of at least one shared birthday is 50.7 percent. It is not a paradox in the logical sense, just a place where pairwise counting outruns intuition.

The sports framing writes itself: 23 is the size of a classic tournament squad. Put a full tournament squad in a room and a shared birthday is a coin flip. Slide the squad size in the tester to see the exact curve — by 40 people the probability is near 89 percent, and by 50 it is about 97 percent — then run the Monte Carlo check and watch two thousand simulated rooms land on the same number the formula gives.

Loading…

Honest limits

The formula assumes birthdays are uniform across 365 days, ignoring leap years, seasonal birth patterns, and twins. Real birth data is mildly non-uniform, which slightly raises match probabilities, so the clean model is, if anything, conservative. The Monte Carlo result is an estimate: with 2,000 groups it will usually land within a couple of percentage points of the exact value, and a run that lands off the number is showing sampling variation, not refuting the formula. Both tools are on the page precisely so each can check the other.

Sources

Standard probability mathematics: P(shared) = 1 − 365!/((365−n)! · 365n), giving 50.7% at n = 23, computed exactly in the page's script. The Monte Carlo check is simulated in the browser under the stated uniform-birthday assumptions.