The Birthday Paradox Explained |Why 23 People Are Enough |Probability & Statistics |Tanmay Kulkarni

The video explains the birthday paradox by counting pairs instead of people, then tests three changes: group size, uneven birthdays and the number of days. It ends with a square-root rule that works for birth months or random numbers.

4:49 video3 min readWatch on YouTube

Most people would bet against two of 23 people sharing a birthday, and they lose that bet about half the time. In this video, Tanmay Kulkarni shows why, using simulation and the exact calculation. He tests three things that could change the odds: how many people are in the group, how uneven the birthdays are, and how many days the birthdays can land on.

Count pairs, not people

The key move is to stop counting people and count pairs. 23 people make 253 pairs, and each pair is a small chance. Those 253 small chances pile up faster than intuition expects. The video simulates 400,000 random groups of 23 and finds a shared birthday in 50.7% of them, and the exact calculation agrees.

What happens as the group grows

Adding people raises the odds as you would expect: about 12% with 10 people, 71% with 30, 97% with 50, and past 99% by 57. The video also stresses what the claim does not say. It says some pair shares a birthday, not a pair that includes you. For someone to share your birthday at even odds, you need 253 other people, and with 22 others in the room your chance is under 6%.

Uneven birthdays barely matter

So far every day was treated as equally likely, which is false. The video uses federal counts of births per day from the National Center for Health Statistics and the Social Security Administration, covering 2000 to 2014. The busiest day runs about 12% above average, and February 29th runs at about a quarter of a normal day. Rerunning the simulation on the real calendar gives 50.8% against 50.7% for even days. Uneven days can only raise the odds, and here by a tenth of a point at most. About 96% of days sit within 10% of average, so the wrong assumption was forgiving.

The number of days decides almost everything

Squeezing the number of available days changes the answer sharply. For 23 people born inside the same 90 days, the odds are 95.4%. The video slides the window: a full year gives 50.8%, half a year 77%, 90 days 95%, and 60 days 99%. Within the same month the odds are better than 99.9%, and with a window of 7 days, 23 people cannot avoid sharing. Asked the other way, the people needed for even odds are 23 for a year, 12 for 90 days, 10 for 60 days, 7 for 30 days, 5 for a fortnight and 4 for a week.

A square-root rule

These head counts follow a rule: take the square root of the number of days, multiply by 1.2, add a half and round. It matches every window in the film and is never more than one person off from two slots up to 2,000. For birth months, with 12 slots, it gives 5 people; four give 43% and five give 62%. The video also answers the objection that classmates are the same age: a school year with a cutoff date still contains every day of the calendar once, so it behaves like the full year, about 50.8%.

Key takeaways

  • Count pairs: 23 people make 253 pairs, which is why the odds reach 50.7%.
  • The claim is about some pair matching, not a match with you.
  • Group size moves the odds as expected; 10 people give about 12% and 57 give past 99%.
  • Real, uneven birth data changes the result by a tenth of a point at most.
  • The number of available days is the factor that matters most.
  • Rule of thumb: square root of the slots, times 1.2, plus a half, rounded.
  • The slots set the scale and their square root sets the crowd.

Try it yourself

Try the video's own exercise. Everyone in a class picks a random number from 1 to 50, so how many people before two probably match? Use the rule before looking: the square root of 50 is about 7, times 1.2 plus a half, rounds to 9. Nine people give 53% and eight give 45%, well short of the intuitive guess of 25.

Full transcript(auto-generated, with timestamps)

[0:00]23 people in a room bet me two of them share a birthday. Most people take the other side. They lose that bet about half the time and I want to show you exactly how I know. Hi, I'm Tanmay Kulkarni in for Humanitarians AI. Three things could change that odds figure. How many people are in the group, how uneven the birthdays are, and how many days they have to land on. I'll change each one and watch the number. One of them barely matters, one matters the way you'd expect, and one decides almost everything. Hold a guess about which. The trick is to stop counting people and

[0:31]Count pairs. 23 people make 253 pairs. Each pair is a small chance and 253 small chances pile up faster than your gut expects. First change the people. I run 400,000 random groups of 23 and count how often a pair shares a day. 50.7% The exact calculation agrees. Now add people. With 10 about 12%, with 30 71%, with 50 97%. By 57 people past 99%. More people, more odds, just as you'd expect. One thing the claim does not say. It says some pair, not a pair with you. For somebody to share your birthday, you need 253 other people to reach even odds. With 22 others in the room, your

[1:12]Chance is under 6%. Same crowd, a different question. Second change how even the days are. So far every day was equally likely and that's false. I used federal counts of babies born each day. They come from the National Center for Health Statistics and the Social Security Administration and cover 2000 to 2014. The busiest day runs about 12% above average. February 29th runs at about a quarter of a normal day because it only exists one year in four. So I ran it again on the real calendar. 50.8% against 50.7 for even days. Uneven days can only raise the odds and they did by a tenth of a point at most.

[1:50]That's tiny. About 96% of days sit within 10% of average, so the real calendar is close enough to even that the model barely notices. The wrong assumption was forgiving. Keep that in mind because the third change breaks the model somewhere else entirely. Third change, how many days there are to land on, squeeze it. Not 23 people from anywhere in the year, but 23 people all born inside the same 90 days. 95.4% same group size, a quarter of the calendar, and the odds go from a coin flip to nearly certain. Let me slide the window. A full year 50.8, half a year 77, 90 days 95, 60

[2:29]Days 99. Born in the same month, better than 99.9%, and with a window of 7 days, 23 people can't avoid sharing. There aren't enough days. Flip it around and ask how many people you need for even odds. Across a whole year, 23. 90-day window, 12. 60 days, 10. A 30-day window, 7. A fortnight, 5. A week, 4. Here is what I almost missed. Does the uneven calendar still matter inside those windows? A tenth of a point at most, again. Seasons weren't the story. Of the three things, the head count moves the odds the way you'd expect. The evenness of the days barely moves them, and the number of days decides almost

[3:07]Everything. Look at those head counts again. 23 for 365 days, 12 for 90, 7 for 30. They follow a rule. Take the square root of the days, multiply by 1.2, add a half, and round. A year gives 23, 90 days gives 12, 30 days gives 7, a week gives 4. It is right for every window in this film, and never more than one person off anywhere from two slots to 2,000. A fair objection, classmates are all about the same age. But a school year with a cutoff date still contains every day of the calendar once, so it behaves like the full year, about 50.8%. The squeeze only happens if the group is

[3:42]Pinned to a narrow stretch of days. Now use it on something that isn't a birthday. Birth months, 12 slots. The square root of 12 is about 3 and 1/2 * 1.2 + 1/2 rounds to 5. So, five people are enough for even odds that two share a birth month if every month were equally likely. Four people give 43%, five give 62. Your turn. Everyone in a class picks a random number from 1 to 50. How many people before two probably match? Use the rule. Attempting wrong answer is half the slots, 25. Pause, work it out, and I'll say. The root of 50 is about 7 * 1.2 + 1/2

[4:27]Rounds to 9. Nine people give 53%, eight give 45, not 25. The slots set the scale and their square root sets the crowd. Next time someone quotes odds that two things match, ask how many slots they could fall into. The square root of that number is about how many it takes. Tanmay Kulkarni, in for Humanitarian's AI.

More from Humanitarians AI Fellows

Humanitarians AI Lyrical Literacy Project