The Matching Birthdays: Expected Collisions
A room has people. Each person's birthday is chosen uniformly at random from 365 days (independently). Let be the number of pairs of people who share a birthday.
- Find .
- Use your answer to show that if , then , meaning we expect at least one shared birthday pair.
- (The surprise) The well-known birthday problem says the probability of at least one collision first exceeds around . How can require yet a collision becomes likely at ? Reconcile this apparent contradiction.
Answer: The Matching Birthdays: Expected Collisions
Key Idea / Intuition
The trick is linearity of expectation: instead of tracking the complicated event "at least one pair matches," just assign each pair an indicator and sum. The expectation is clean and exact. The paradox in part (3) is resolved by recognizing that and are very different thresholds — expectation can be dragged above 1 by rare but large values, while probability of at least one event can exceed much earlier.
Formal Proof / Solution
Part 1: Computing
There are pairs of people. For any pair , define the indicator
The probability that two specific people share a birthday is
since person 's birthday must match person 's (any of the 365 days), and there are equally likely pairs.
By linearity of expectation:
Part 2: When does ?
Check: and .
So first holds at .
Part 3: Reconciling with
The confusion is between two different statements:
| Quantity | Threshold | |---|---| | | | | | |
These are not the same. In general, for a non-negative integer-valued random variable :
but also can be large even when is small, if is concentrated near 1.
The key: when , the expected number of matching pairs is
yet .
This is perfectly consistent! When , the event can still have probability close to (since if is approximately Bernoulli or Poisson, then , which matches the birthday calculation beautifully).
Intuitive summary: At , matching pairs are rare but not impossible — the distribution of is approximately Poisson with mean , so the chance of zero collisions is . Expectation exceeding 1 requires the mean to grow to 1, which needs more people.
Source: Fifty Challenging Problems in Probability with Solutions (Frederick Mosteller), Problem 45 (matching), classical birthday variant