ENGI 4421: Simulation for Probability of Shared Birthdays
in a room of n people
This page finds,
by simulation, the empirical probability that, in a
room of n randomly chosen people, at least two will share
the same birthday.
Using the sliders, select the number of people in each room and the
number of rooms, then click on the "Simulate" button.
Number of people:
Number of rooms:
Number of People = 23
Number of Rooms = 100
Number of rooms with at least one shared birthday =
Number of rooms with no shared birthdays =
Empirical probability of a room having a shared birthday =
The exact classical probability for this number of people
(good to at least 10 decimal places), using
1 - (365! / (365 - numPeople)! * 365 ^ numPeople)), is