Maison BeaulieuMAISON BEAULIEUAB ÉDITIONS · CULINARY ARTS & ARCHIVES
Art of Living · Games & Conversation

With 23 Around a Table, What Are the Odds of a Shared Birthday?

The classic problem, presented in the Cambridge probability course, uses a simplified calendar: 365 equally likely dates assigned independently to each person. February 29 and birth years are ignored. “Same birthday” here means the same day and month. Our results apply to this model, not to a survey of guests’ actual birth dates. Individual assignments will remain independent in the small fictitious calendars introduced later.

Two wagers

Are you looking for a matching pair anywhere in the room, or for a partner who shares your own birthday?

🎁 Free Heritage Gift · A4 Illustrated Booklet + 5 MP3s

Receive the “Pantheon of 28 Legendary Chefs” Dossier (Free A4 PDF) + 5 Audio Stories

Instant complimentary access to our illustrated gastronomic & historical dossier, plus 5 DRM-free MP3 audio chronicles.

A single coincidence is enough, wherever it appears in the group. No one has named the two people or the target date in advance. A trio sharing the same birthday also satisfies the question: the event does not require that exactly two guests be involved.

Each person can be compared with the other 22. That first yields 23 × 22 pairings counted in both directions: comparing Anne with Bruno and Bruno with Anne names the same pair. Dividing by two gives 253 distinct pairs.

In the second wager, only the 22 pairs that include you can succeed. Anne and Bruno sharing a date settles the first question, but settles the second only if their date is also yours. A coincidence can therefore be exciting for the group while leaving you completely outside it.

The Stanford lecture on coincidences distinguishes these two events. For one designated person among the 23, the chance that all 22 others avoid that date is (364/365)^22. Subtracting that figure from 1, our calculation gives roughly a 5.86% chance of finding at least one partner.

The classic calculation

Chicago sets out the count by distinct configurations. Up to 365 people, with n numbered seats, the total is 365^n; with no repetition, 365 × 364 × … × (365 − n + 1). Their ratio is written qn. The probability of at least one pair is 1 − qn.

For 23 people, we obtain q23 = (365 × 364 × … × 343) / 365^23, roughly 0.492703. Its complement is about 50.73%. At 22 people, our calculation gives 47.57%. Stepping up to 23 therefore crosses the halfway mark. That does not predict a neat alternation between dinners with and without a match.

Counting pairs versus successful configurations

To see the whole problem at once, shrink our calendar to four fictitious dates, labelled a, b, c, and d, and keep three guests. All four labels now carry equal weight.

There are 4 × 4 × 4, or 64 equally likely configurations. We have enumerated all of them. Twenty-four produce three different dates: four choices for the first seat, three for the second, two for the third. Four produce an all-matching trio: aaa, bbb, ccc, and ddd. That leaves 36 configurations with a single pair.

You can recover those 36 without scanning the list. Pick the repeated date from four possibilities, then the different date from the three remaining, then the seat of the lone guest from three. The product 4 × 3 × 3 is indeed 36. This count separates choosing the dates from assigning them to seats; it does not add a further ordering between the two members of the pair.

The event “at least one coincidence” occurs in the 36 single-pair configurations and the four trio configurations. Its probability is therefore 40/64, or 62.5%. Now count every matching pair across all 64 configurations. The single-pair cases contribute 36. Each trio contributes three pairs: first-second, first-third, and second-third. The four trios thus contribute twelve, for a total of 48.

We get 48/64, or 0.75 pairs on average per configuration. That number is not the probability of success. Here the gap comes from the four trios, each of which adds two extra units to the pair count beyond its single appearance among successful configurations. Those eight extra units explain the exact difference between 48 and 40.

Similarly, in the 23-person model, 253/365—about 0.69315—is the average number of pairs sharing a date. It is not the probability of at least one pair, which is about 0.50730. In our list of 64 rows, counting pairs revisits the same rows more than once, adding eight for the four trios. That observation requires no extra assumptions about how events relate.

What does the twenty-third guest really change?

Suppose now that the first 22 people all have different dates. In that specific situation, the next arrival must avoid 22 dates to extend the streak. Their chance of creating a match is therefore 22/365, or about 6.03%. That calculation starts after a given piece of information: no pair exists yet. It does not answer the question for a group of 23 about whom we know nothing.

To recover the jump in the overall figure, we must also account for the chance that the first 22 really are all distinct. Our calculation puts that at roughly 52.43%. Only those configurations can move from “no pair” to “at least one pair” when the next guest arrives. Configurations that already have a match stay matched, without becoming new successes a second time in this tally.

The increase is therefore q22 × 22/365, or about 0.031602. Added to the 0.475695 obtained for the first 22 people, it reproduces 0.507297 for the group of 23. The gain is roughly 3.16 percentage points. It is smaller than the 6.03% calculated in the conditional scenario because that scenario accounts for only part of the starting configurations.

Two tables of twelve do not ask the same question as a group of twenty-four

Now seat 24 people across two fixed tables of twelve, without using their birthdays to assign seats. We want to know whether at least one table contains a pair. For a single table, our calculation gives roughly a 16.70% chance of a match, and thus about an 83.30% chance of twelve distinct dates.

The chance that both tables remain free of pairs is therefore q12 × q12, about 0.693848. Subtracting from 1 gives roughly a 30.62% chance that at least one table has an internal match. A match at both tables still counts as a success for this question, which asks for “at least one,” not “exactly one.”

If we forget the tables and compare all guests together, the figure climbs to about 53.83%. There are no more people; we have simply widened the set of allowed pairings. Each table of twelve supplies 66 internal pairs; the two together supply 132. In addition, each person at the first table can be paired with each of the twelve at the other, adding 144 cross-table pairs. Adding 132 and 144 yields the 276 pairs of the full group.

A single constructed example suffices to show what the internal question leaves out. Assign dates 1 through 12 to the first table, and date 1 followed by dates 13 through 23 to the second. Each table holds twelve distinct dates. Yet the group contains a pair—the two guests given date 1. It fails the first test and passes the second.

The gap between our two probabilities, about 23.22 percentage points, corresponds to configurations that have a cross-table match with no internal match. It is not the probability of all cross-table matches: some coexist with a pair already sitting at one table. To move from one question to the other, you add the successes it excluded without recounting those it already accepted.

Seeing the overlaps across 256 cases

To examine what the gap between the two tests leaves out, return to our four fictitious dates a, b, c, and d. This time, four guests occupy two tables of two. We list all 4 × 4 × 4 × 4, or 256 assignments across the four distinct seats. Each row receives two labels: is there an internal pair? Is there a pair across the two tables?

In the given rowNo cross-table pairAt least one cross-table pair
No internal pair24120
At least one internal pair6052

Neither internal nor cross-table

Table 1
ab
Table 2
cd

Internal only

Table 1
aa
Table 2
bc

Cross-table only

Table 1
ab
Table 2
ac

Internal and cross-table

Table 1
aa
Table 2
ab
Examples from the small four-date calendar.

The 24 rows in the top left have four different dates: 4 × 3 × 2 × 1 possibilities. To fill the bottom-left cell, look for repetitions confined within a single table. If each table carries its own repeated date, there are four choices for the first and three for the second, giving twelve rows. The two dates must differ, otherwise a cross-table pair would appear as well.

If only one table carries a repeated date, the two members of the other must receive two different dates, both distinct from the first. We have two choices for which table repeats, four for its date, then three and two for the seats at the other table. That gives 48 rows. Together with the twelve above, we recover the 60 internal repetitions with no cross-table pair.

Now count the rows with no internal repetition. The first table allows 4 × 3 possibilities, and the second does too: twelve times twelve gives 144. Of these, 24 have no cross-table pair either, so the remaining 120 fill the top-right cell. The final cell takes the remaining 52 rows: 256 − 24 − 60 − 120. The four cells thus cover the entire list without overlap.

The internal test succeeds on 60 + 52 = 112 rows. The cross-table test succeeds on 120 + 52 = 172. Adding them would produce 284 successes out of a list that holds only 256 rows. We know exactly where the 52 extra counts sit: in the bottom-right cell, included by both tests. To accept all coincidences, one must combine 60, 120, and 52 once each, for 232 rows.

Reading the table this way sharpens the difference used for the two tables of twelve. Adding the cross-table test to the internal test gains 120 rows here, not 172: the other 52 already succeeded. A cross-table pair can therefore occur without adding a new success to the total. The size of the added event and the number of newly accepted configurations are not two ways of writing the same number.

Another small calendar

To examine what happens when equal probabilities are dropped, we build a second four-date calendar. The probabilities of a, b, c, and d are now 0.4, 0.3, 0.2, and 0.1. These weights are invented for the exercise; they describe neither any month nor any real population.

All 64 configurations still exist, yet they no longer carry equal weight. The configuration aaa has probability 0.4 × 0.4 × 0.4, or 0.064. The configuration ddd is worth 0.001. Counting each as one unit and dividing by 64 would wipe out the very change we just introduced. One must sum the probabilities of the configurations that match the question.

For three distinct dates, there are four choices of three letters. The products of their weights are 0.024, 0.012, 0.008, and 0.006, summing to 0.05. Each choice allows six arrangements across the three seats, so the absence of a pair has probability 6 × 0.05, or 0.30. The presence of at least one pair is 0.70. In this particular calendar, it exceeds the 0.625 of the uniform model.

If we already know that the designated guest received a, each of the other two avoids that date with probability 0.6. The chance of at least one partner is 1 − 0.6², or 0.64. If they received d, the same reasoning gives 1 − 0.9², or 0.19. One must therefore keep the information about the designated date rather than mechanically swapping 365 for four.

Before knowing that date, we can take the weighted average of the four cases. The conditional probabilities are 0.64, 0.51, 0.36, and 0.19. With the stated weights, their average is 0.50. That figure applies to a person whose own date is drawn from the model; it does not replace the 0.64 calculated once their date is known to be a. The different figures do not contradict one another—they simply use different information.