- #1
r0bHadz
- 194
- 17
Homework Statement
a)
Consider a class with 30 students. Compute the probability that at least two of them
have their birthdays on the same day. (For simplicity, ignore the leap year).
b)
How many students should be in class in order to have this probability above 0.5?
Homework Equations
The Attempt at a Solution
the answer to a is
P(at least two have birthday on same day) = 1 - P(none have bday on same day)
= 1 - ( (365)(364)...(336) / (365)^30 ) = about .71
Honestly, just computing the first answer was tedious enough. I had to multiply everything out and it took forever. So I decided to write a python script to make it faster.
Now for the second one it is
solving the equation 1- P(365,r)/365^30 > .5 => (365-r)! > (364!)/( (.5)(365)^29 )
but there must be some way to solve this without plug and chugging but my IQ is limiting me from arriving to how. Of course I can just plug numbers in but that doesn't seem practical. And my school doesn't allow graphing calculators, but even if it did I doubt the calc wouldn't overflow with numbers so large