What is it about?
What is the probability that in a class of people at least two share a birthday? Many people guess only a few percent for people – in fact it is almost .
Model: Each of the days is equally likely (no leap days, no twins), and the birthdays are independent.
Calculation via the complement (view “Calculation”): Instead of “at least two equal” we compute “all different”. The people arrive one by one: the first may have any day, the second must hit one of the free days, the third one of the remaining … By the path rule we multiply:
Why so high? – Counting pairs (view “Pairs”): It is not about one particular day but about any pair. people form pairs, already for people. Each pair shares a birthday with probability . If we pretend the pairs are independent, we get the good approximation
Compare: “on my birthday”. Here only the pairs “me – other person” count:
Only from other people on is this value above .
Simulation (view “Many classes”): Each tile is a randomly drawn class: filled with, light with a border without a shared birthday. The relative frequency varies a lot at first and then approaches the probability (empirical law of large numbers). The light funnel shows where lies after classes in about of all cases: .
Same month, same weekday: The same calculation works with months or weekdays. With only people, two share a birth month with probability . From people on it is certain: there are only months, so two must share one (pigeonhole principle). The product then contains the factor .
Try it
- Press New class several times. How often do you find a shared day? One class
- Tap your birthday in the calendar and compare the two questions. My birthday
- Start 1000 classes and watch the curve of the relative frequency settle into the funnel. Simulation
- Watch the free days shrink. From which person on is smaller than ? Calculation
- Tap a person in the pairs view: how many pairs does it form? How many pairs are there in total? Pairs
- Switch the pairs view to “on my birthday”. Why are there suddenly far fewer lines? Only my pairs
- Choose “same month” and increase from to . What happens at ? Same month · 13 people
Tasks
Task 1: Three people
Find the probability that at least two of three people share a birthday. Load task
Show solution
, so about . Show in the simulation
Task 2: Your class
Find the probability for a class size of . About how many of classes of this size have a shared birthday? Check with the simulation. Load task
Show solution
For , , so about of classes. The simulation gives values around this; after classes almost always lies between about and . Show in the simulation
Task 3: Pairs and approximation
How many pairs do people form? Use this to compute the approximation and compare it with the exact value . Load task
Show solution
pairs. Approximation: – just below the exact value . Show in the simulation
Task 4: My birthday
What is the probability that one of other people has a birthday on exactly your birthday? Why is this so much less than ? Load task
Show solution
. Here someone has to hit one particular day, and there are only pairs “me – other”. In the birthday problem any of pairs is enough. Show in the simulation
Task 5: Same weekday
What is the probability that at least two of people were born on the same weekday? From how many people on is it certain? Load task
Show solution
. From people on it is certain (pigeonhole principle: only weekdays). Show in the simulation
Task 6: Model check
In reality, birthdays are not spread quite evenly over the year. Does this make a shared birthday more or less likely?
Show solution
Rather more likely: if some days are more frequent, birthdays cluster there and matches become more likely. The even distribution is the “least favourable” case for shared birthdays.
Ideas for the classroom
- Use: Lower secondary, multi-stage random experiments and stochastic simulations. Let the class estimate before calculating – and perhaps take a look at the birthdays in your own class.
- Simulation and calculation: The view “Many classes” makes the surprising size plausible, the view “Calculation” explains it. The funnel shows how much relative frequencies still vary after classes.
- Same month works well as a game in class: even in small groups a shared month almost always turns up.
- Compare groups: Each device draws its own classes. Collect the numbers of hits after classes each on the board – the spread between the groups fits the funnel well.
- Common stumbling blocks:
- The birthday problem is confused with “someone shares my birthday”.
- Computing – which is even greater than for large .
- Adding the factors instead of multiplying them.