English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

The easiest approach is to compute the probability that no two students have the same birthday, and then subtract this probability from 1.

By the laws of conditional probability, (the probability that n students share no birthdays) equals (the probability that (n-1) students share no birthdays, times the probability that student n doesn't have the same birthday as any of the first n-1 students). Since those n-1 students have n-1 different birthdays, there are 365 - n + 1 birthdays that work for student n, out of 365 possibilities.

Since this probability is clearly 1.0 when n = 1, we get the following formula for the probability that no two students have the same birthday in a class of S students:

p = Product (n = 1 to S) of (365-n+1)/365.

This is a royal pain to compute by hand for S as large as 25. However, firing up Python real quick gives me that p ~= .431.

Thus, the probability you ask for = 1 - p ~= .569

The Python session to get this answer looks like this:

>>> p = 1.0
>>> for i in range(25):
... p*= (365-i)/365.0
>>> p
0.43130029603053599
>>> 1 - p
0.56869970396946401

2007-01-30 16:52:56 · answer #1 · answered by happymutant42 1 · 0 0

I remember this in a high school statistics class. Answer is 50%. Just don't ask me to do the math to explain why...

2007-01-31 00:34:23 · answer #2 · answered by GatorMatt 1 · 0 0

It is close to 50%

2007-01-31 00:34:22 · answer #3 · answered by J C 5 · 0 0

100%

2007-01-31 00:29:43 · answer #4 · answered by scummibear 4 · 0 1

.137 or 13.7%

2007-01-31 00:35:23 · answer #5 · answered by jaggie_c 4 · 0 0

fedest.com, questions and answers