3
$\begingroup$

How many people do you need in the same room for the probability $p$ to be at least $0.5$ for two people to have the same birthday?

My idea is that for every pair of people the probability that their birthday is the same day is $\frac{1}{365}$, thus we need to count the pairs of people we can match and divide by $365$. If there are $n$ people in the same room there are $\binom{n}{2}$ pairs we can match. Therefore if we set $\frac{\binom{n}{2}}{365}=0.5$ and solve for $n$ we should find how many people are needed. $$\frac{\binom{n}{2}}{365}=\frac{\frac{n\cdot (n-1)(n-2)!}{2(n-2)!}}{365}=\frac{n(n-1)}{2\cdot 365}=0.5$$ $$n(n-1)=365$$ $$n^2-n-365=0$$ Using abc formula we get: $n \approx 19.5$ (since n must be positive).

However the correct solution is $n\approx 23$. So I am "close", but wrong. Where is my mistake?

$\endgroup$
5
  • 5
    $\begingroup$ For one thing, you're multiplying probabilities of events that are not independent. $\endgroup$ Commented Nov 20, 2020 at 19:55
  • $\begingroup$ Sharing a birthday is a transitive relation $\endgroup$
    – WaveX
    Commented Nov 20, 2020 at 20:01
  • 3
    $\begingroup$ Maybe it would be helpful for you to consider the same argument but with $\frac{n\choose2}{365}=1$. $\endgroup$
    – MJD
    Commented Nov 20, 2020 at 20:17
  • $\begingroup$ @MichaelHardy "For one thing..." - is there something else wrong? thank you! $\endgroup$
    – timtam
    Commented Nov 20, 2020 at 20:26
  • $\begingroup$ @MichaelHardy What events is OP multiplying the probabilities of, independent or otherwise? $\endgroup$
    – DongKy
    Commented Nov 20, 2020 at 21:14

1 Answer 1

6
$\begingroup$

You are finding an $n$ where the expected number of shared birthday pairs is 0.50. Sometimes, there will be more than one pair with a shared day. This means that the average number of shared pairs GIVEN at least one shared pair is greater than $1.$ So, for that $n,$ the probability of at least one shared pair is less than $.50.$ You have found a lower bound for the birthday problem.

Put it another way, when $n=28,$ you get $1.03.$ Does this mean there is a $103\%$ chance of a shared birthday? No. It means there are $1.03$ pairs who share a birthday on average. Some groups of $28$ will have no shared birthday pairs. Some will have many.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .