How to use it
- Type the number of people in the group.
- Leave the year at 365 days, or change it.
- Read the chance of a match, the odds, and the table for other group sizes.
How it works
For n people and d days, the chance that all birthdays are different is (d / d) × ((d − 1) / d) × … × ((d − n + 1) / d). The chance of a shared birthday is 1 minus this product. If n is larger than d, the product is 0 and a match is certain.
Worked example
For 23 people in a 365-day year the product is about 0.4927, so the chance of a shared birthday is about 50.73%. With 22 people it is about 47.57%. For 57 people it first passes 99%.
Tips
- The chance counts any pair, not a match with you. For a match with one given date, the numbers are much smaller.
- Change the day count to model other coincidences, such as hash collisions.