Sponsored message
Audience-funded nonprofit news
radio tower icon laist logo
Next Up:
0:00
0:00
Subscribe
  • Listen Now Playing Listen
NPR News

Math Guy: The Birthday Problem

This story is free to read because readers choose to support LAist. If you find value in independent local reporting, make a donation to power our newsroom today.

Listen 0:00
Listen

The Weekend Edition Saturday Math Guy, Stanford professor Keith Devlin, has a problem. In fact, he has more than one... which he's happy to share with Scott Simon.

What is the probability that in a room filled with 23 people at least two of them have the same birthday? (It's more than half!)

Devlin explains:

The birthday problem asks how many people you need to have at a party so that there is a better-than-even chance that two of them will share the same birthday. Most people think the answer is 183, the smallest whole number larger than 365/2. In fact, you need just 23. The answer 183 is the correct answer to a very different question: How many people do you need to have at a party so that there is a better-than-even chance that one of them will share YOUR birthday? If there is no restriction on which two people will share a birthday, it makes an enormous difference. With 23 people in a room, there are 253 different ways of pairing two people together, and that gives a lot of possibilities of finding a pair with the same birthday.

Here is the precise calculation. To figure out the exact probability of finding two people with the same birthday in a given group, it turns out to be easier to ask the opposite question: what is the probability that NO two will share a birthday, i.e., that they will all have different birthdays? With just two people, the probability that they have different birthdays is 364/365, or about .997. If a third person joins them, the probability that this new person has a different birthday from those two (i.e., the probability that all three will have different birthdays) is (364/365) x (363/365), about .992. With a fourth person, the probability that all four have different birthdays is (364/365) x (363/365) x (362/365), which comes out at around .983. And so on. The answers to these multiplications get steadily smaller. When a twenty-third person enters the room, the final fraction that you multiply by is 343/365, and the answer you get drops below .5 for the first time, being approximately .493. This is the probability that all 23 people have a different birthday. So, the probability that at least two people share a birthday is 1 - .493 = .507, just greater than 1/2.

The Children Puzzle

I tell you that a couple has two children and that (at least) one of them is a boy. I ask you what is the probability that their other child is a boy. Most people think the answer is 1/2, arguing that it is equally likely that the other child is a boy or a girl. But that's not the right answer for the question I have asked you. Here's why. In terms of order of birth, there are four possibilities for the couple's children: BB, BG, GB, GG. When I tell you that at least one child is a boy, I rule out the possibility GG. That leaves three possibilities: BB, BG, GB. With two of these, the other child is a girl; so the probability of the other child being a girl is 2/3. Leaving the probability of the other child being a boy at 1/3.

Sponsored message

Copyright 2022 NPR. To see more, visit https://www.npr.org.

You come to LAist because you want independent reporting and trustworthy local information. Our newsroom doesn’t answer to shareholders looking to turn a profit. Instead, we answer to you and our connected community. We are free to tell the full truth, to hold power to account without fear or favor, and to follow facts wherever they lead. Our only loyalty is to our audiences and our mission: to inform, engage, and strengthen our community.

Right now, LAist has lost $1.7M in annual funding due to Congress clawing back money already approved. The support we receive from readers like you will determine how fully our newsroom can continue informing, serving, and strengthening Southern California.

If this story helped you today, please become a monthly member today to help sustain this mission. It just takes 1 minute to donate below.

Your tax-deductible donation keeps LAist independent and accessible to everyone.
Senior Vice President News, Editor in Chief

Make your tax-deductible donation today

A row of graphics payment types: Visa, MasterCard, Apple Pay and PayPal, and  below a lock with Secure Payment text to the right