r/MathHelp • u/Jartblacklung • Oct 02 '24
Birthday paradox
I’ve heard multiple times now that if there are 23 students in a room, the chances of any two of them sharing the same birthday are 50% (Setting aside other factors and just assuming birth dates are completely random of course)
If that’s the math then that’s the math, but I don’t think I’ll ever be at peace with it.
So, just to be sure: are you telling me that if I set up a random number generator, ask it to give me sets of 23 numbers between 1 and 365, then run this test a million times…
…that I should expect roughly half the sets to contain at least one pair of duplicate numbers? That’s the same thing right?
7
u/edderiofer Oct 02 '24
So, just to be sure: are you telling me that if I set up a random number generator, ask it to give me sets of 23 numbers between 1 and 365, then run this test a million times…
…that I should expect roughly half the sets to contain at least one pair of duplicate numbers? That’s the same thing right?
Yes, that is correct (if by "set" you allow for duplicates, unlike the standard mathematical definition of "set").
One argument that works better for the intuition is that although you have 23 students, you have 253 pairs of students, and each of these pairs must have two distinct birthdays. Since there is a 364/365 probability of a pair having two distinct birthdays, one might estimate there to be a (364/365)253 probability of all pairs having two distinct birthdays. Indeed, (364/365)253 is about 0.4995.
(This argument is faulty because it doesn't generalise to what happens if you have 366 students, but hopefully it's more intuitive now as to why the birthday paradox is the way that it is; there are a lot of pairs of students.)
2
u/Boyswithaxes Oct 02 '24
You must remember the implicit factorial. Consider the inversion: assume unique birthdays. The first person in the room has a 100% chance of having a unique birthday. The next person has a 364/365 chance of having a unique birthday, followed by 363/365 as more candidates are taken away. We can consider each additional person as a trial in a statistical test. Once we get to 342/365 odds, when all multiplied together, it yields a 50% chance of success
To answer your question more specifically, yes. That should be the case
1
u/AutoModerator Oct 02 '24
Hi, /u/Jartblacklung! This is an automated reminder:
What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)
Please don't delete your post. (See Rule #7)
We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/Jartblacklung Oct 02 '24
I appreciate these answers. I understand them (I think). I respect mathematics, and I recognize your expertise.
But this makes me angry at math. I don’t think it should do this and I would like to speak with math’s manager