Birthday Problem: Probability of Sharing the Same Birthday
Formula
Disregarding leap years, let be the number of years and be the number of days in a year. The probability that there is at least one pair of people with the same birthday among people is given by the following formula.
Explanation
I recall that during my middle school years, this formula was introduced in a particular chapter of our math textbook (likely under permutations and combinations) as an “explore more” or “advanced content” section. Intuitively, because each person has options for their birthday, it seems like a large group would be necessary for any birthdays to overlap, but it was intriguing to find that this isn’t the case. We verified this by checking the birthdays of everyone in our class along with our teacher; even with about people, we found two pairs with the same birthday proving that the book wasn’t misleading. Indeed, upon referring to the table below, people is actually a sufficiently sized group for overlapping birthdays to occur.
The following table provides the actual calculated probabilities using the formula. Initially, the probabilities appear negligible, but with just people, the probability surpasses half, and when people gather, the probability of at least one pair having the same birthday exceeds .
Derivation
The probability that there exists at least one pair of people with the same birthday among people can be expressed using the probability that all individuals have different birthdays.
First, consider two people. For these two individuals to have different birthdays, the second person’s birthday must differ from the first person’s. Thus, the second person’s birthday must be one of the days, excluding the day of the first person’s birthday.
For the birthdays of three people to all be different, the third person must have a different birthday from both the first and second persons. Consequently, the third person can be born on any of the remaining days, leading to the probability that all three have different birthdays being,
Following the same logic, the probability that all four people have different birthdays is,
The probability that all people have distinct birthdays is as follows.
Thus, the probability that there exists at least one pair of people with the same birthday among people is,
■