The Birthday Paradox
The Paradox
In a room with 23 people, there's a 50% chance that at least two of them have the same birthday.
Sounds like nonesense, but it's true! In order to show why this is the case, we could try to list all the possible ways in which at least two people could share a birthday, calculate the probabilities for each, and add them up. However, there is a much simpler way to think about this.
An event either takes place or doesn't. That means that the probability that it does plus the probability that it doesn't equals to 1. This seems like a trivial observation, but it's critical for solving many problems like this one: calculating the probability of one of those events is enough to obtain the probability for the other one.
Instead of thinking about all the possible ways in which at least two people could share a birthday, let's consider the event in which none of them do.
The (Simplified) Problem
What is the probability that, in a set of randomly chosen people, none of them share a birthday?
Let's make a few assumptions first in order to simplify the problem:
- There are no leap years
- Birthdays are equally distributed among the set of all possible dates
With these assumptions in place, let's proceed to solve it.
The Solution
Let's represent each birthday with . For a given value of , and in order to prevent shared birthdays, can have one of possible values, which will happen with a probability of . Assuming this happens, for given values of and , and to keep preventing shared birthdays, can have one of possible values, which will happen with a probability of . In general, given values of , there's a probability of that won't share a birthday. So in total, given people, the probability that nobody shares a birthday with anyone is:
Thus, the probability that at least two people share a birthday is:
In particular, , and , which shows that this so-called paradox is indeed true.