Assuming a uniform distribution, the probability is 1/365 for any person#. Those probabilities add up linearly if the people are guaranteed to have different birthdays (union/OR). Otherwise the probability of NOT having someone with the same birthday goes down exponentially as a an exponential power of the fraction 364/365 (intersection of complement/AND NOT)
It’s exactly what you would expect from classical combinatorics with cards with or without replacement. Your term “confident” is vague.
I produced a series called Thinking Mathematically on youtube that makes all of this and other related topics clear for anyone... I recommend checking it out!
> Assuming a uniform distribution, the probability is 1/365 for any person#. Those probabilities add up linearly if the people are guaranteed to have different birthdays (union/OR). Otherwise the probability of NOT having someone with the same birthday goes down exponentially as a an exponential power of the fraction 364/365 (intersection of complement/AND NOT)
Why would we assume a uniform distribution of birthdays? For example, birthdays occurring on the 31st of a month are probably less likely to occur on average given that every month does not have 31 days. This is just one example and doesn't even go into seasonality of conception cycles.
How confident? Even with an even distribution of birthdays it's possible to have a billion people in the room that don't share your birthday. Very unlikely, but as there's only about 20 million people with your birthday, and 7 billion without, it's quite doable.
"Very unlikely" is a severe understatement. With only 100k people, the odds of no one else having your birthday is 10^-120. With a million people, it is 10^-1192.
And with a billion people... apparently, there are over a million zeroes between the decimal place and the first non-zero number. That is a pretty damn small probability.
Here is the code I used in python 3:
from decimal import Decimal
print((Decimal(364) / Decimal(365)) ** num_people)
There's other things as play. Imagine you, born on July 15th, walked into a room with 1000 people. You'd be fairly confident someone will be born on July 15?
What if I then told you it was the annual astrology get together of Capricorns?