Wednesday, August 5, 2009

The problem statement has the words like probability and chance. So this must surely be a problem in probability. Ok. The problem seems interesting. The problem is simple but it is made big so as to create an illusion of the problem being difficult to solve.

Let us simplify the problem. The problem asks us to find the chance or probability that at least 2 people have the same birthday (i.e. their birthdays fall on the same day of the week) among 50 people.

We know from probability that,
(Probability that at least 2 people among n people have same birthday) = 1 – (Probability that all n people have different birthdays)

Let us denote


The problem asks us to find S50 and it is very difficult to find it without using the above formula.

Now let us find Dn

We assume that there are only 365 days in a year and that all birthdays are equally probable, which are not quite met in reality.

The first of the n people has of course some birthday with probability 365/365 = 1. Then, if the second person is to have a different birthday, it must occur on one of the other 364 days. Therefore, the probability that the third person has a birthday different from the first two is 363/365. Finally, the probability that the nth person has a birthday different from the others is (365-n+1)/365. We therefore have







Taking logarithm on both sides


We know a formula from Calculus



Expanding and simplifying, we have


Substituting n = 50 and considering only the significant terms, we have






Therefore, there was a 97% chance or probability of Rohit winning the bet and only 3% probability of him losing the bet. Even after proving the result, it is an unbelievable fact. Rohit knew all about this. So he bet. Awesome!!!

There may be two types of questions
a) To find Sn when n is given. Ex: the above problem.
b) To find n when Sn is given. Ex: find the minimum number of people required to make the probability that at least 2 people among n people have same birthday greater than 50%.

The latter problem is like this.
Find minimum i such that


Or Find maximum i such that


For small n compared to 365 i.e. for n < 30, in the formula, the second and higher degree terms are neglected and hence a good approximation is



Here substituting Di = 0.5 and simplifying we get n = 23

Find out for yourself these facts

n102023304050607080
Sn in %11.6941.1450.7270.6389.1297.0399.4199.9299.99

All the aforementioned calculations are fine, right, but who on earth will know when to take logarithms and when to apply those unknown formulae from Calculus??? Ok. Ok. If you are fed up by all these tedious proofs and creepy calculations, then you can do one thing. Very simple. Ask the computer to solve your problem by calculating the stuffs. Simple





From a program, we can find both



Click here to download the source code of the program.

No comments:

Post a Comment