Question regarding the birthday problem

89 Views Asked by At

I was trying to work through the Birthday problem with the assumptions that

($1$) February $29$th is excluded as a possible birthday, and
($2$) All days are equally likely for birthdays to occur,

when I noticed something:

If there are $366$ people in the room, the number of $2$-people combinations that can be formed out of those people is $366 \choose 2$. Then, the probability of not getting a birthday match in any of those combinations is given by $(\frac{364}{365})^{366 \choose 2}$

This is a very small positive number close to $0$. But we know by the pigeonhole principle, that any group of 366 people is bound to give a birthday match (with the above assumptions in place), which means that the above probability has to be strictly equal to $0$. Where am I going wrong with my reasoning?

1

There are 1 best solutions below

0
On

Comment:

This is much-traveled territory; searching this site will get you many hits and googling the Internet will get you at least hundreds of them.

Under your assumptions (1) and (2), and with $n$ randomly chosen people $(1 \le n \le 365)$ we have $$P(\text{No Match}) = \frac{{}_{365}P_n}{365^n} =\prod_{i=1}^n \left(1-\frac{i-1}{365}\right).$$

Going through a loop in R statistical software (to avoid using a calculator) with $n = 1, 2, \dots 60$ allows you to make a graph of $P(\text{No Match})$ against $n.$

n = 1:60;  p = numeric(60)
for (i in n) { p[i] = prod(1 - (0:(i-1))/365)  }
plot(n, p)
abline(h=0:1, col="green2")

enter image description here

You speculation on no match with 366 people in the room makes no sense; of course, then there must be a match. Even with only 60 people in the room it is essentially impossible to avoid a match.