The Math Behind The Birthday Paradox
This post will explore the math behind the birthday paradox, which was covered in my previous post
This article is for those who are interested in knowing the math behind the birthday paradox, which I covered in my previous post
If you recall, from the birthday paradox post
p(atleast 2 people sharing bday) = 1 - p(Case 1)
Where
The above can be written concisely as:
We can make use of the below approximation for small values of x
Approximating, we get
Substituting in the equation of p(Case 1)
From this we obtain a compact expression
By substituting the value for n (no. of people in the room), we can obtain the corresponding probability
Let us now try to verify the paradox: Is it actually true that the probability is 50% for 23 people
Substituting n=23 in the above equation, we get
This matches with the paradox and also the value obtained from the graph
Another approach to this calculation is given in the below website which I have referenced in the previous post also:
https://betterexplained.com/articles/understanding-the-birthday-paradox/
Thanks for reading!!!