Birthday Problem

Suppose that you are in a group of 40 people. Would you bet for or against at least two of the people out of 40 having the same birthday?

Probability of at least two out of 40 having the same birthday can be estimated through a simulation.

Note that P(at least two have the same birthday)=1-P(none of them has the same birthday).

Follow the following steps to carry out the simulation to estimate the proabbaility that none of them has the same birthday:

You can view these steps at the below animation.

The following table provides the theoretical probabilities of no two students having the same birthday when there are 1-40 people in the group. These probabilities are calculated by using the counting rules. The theoretical probability for at least two having the same birthday in a group of 30 students is 1-0.29368=0.70632.

Number of People
Probability
Number of People
Probability
Number of People
Probability
Number of People
Probability
1
1.00000
11
0.85886
21
0.55631
31
0.26955
2
0.99726
12
0.83298
22
0.52430
32
0.24665
3
0.99180
13
0.80559
23
0.49270
33
0.22503
4
0.98364
14
0.77690
24
0.46166
34
0.20468
5
0.97286
15
0.74710
25
0.43130
35
0.18562
6
0.95954
16
0.71640
26
0.40176
36
0.16782
7
0.94376
17
0.68499
27
0.37314
37
0.15127
8
0.92566
18
0.65309
28
0.34554
38
0.13593
9
0.90538
19
0.62088
29
0.31903
39
0.12178
10
0.88305
20
0.58856
30
0.29368
40
0.10877