**THE BIRTHDAY PROBLEM**In this current semester I take the course Mathematics-I in the department of EEE. There are two sections. In each the number of students are 43 and 42.

Now one day I ask myself what is the probability for sharing my birthday to any other students?

Or, I can ask what is the probability that any two or more students share the same birthday?

It is a possibly surprising fact that if you have 23 students in your class or at a party, there is a better than 50% chance that two people share the same birthday (same month and day, not necessarily in the same year).

Let us solve this problem. If we ignore the complication of leap-days there are 365 days on which a birthday can occur. A moment of thought tells us that if there are 366 people in a room then it is certain (probability = 1) that at least one pair of them must share a birthday (think about it!!). If the number of people were reduced to 365 or 364, then while it is not certain that at least one pair share a birthday, our intuition tells us that the probability of this must be very close to 1 â€” indeed we should be astonished if no two people shared a birthday with such numbers. If the number of people were reduced further then, clearly, the probability would reduce but would still remain high down to 200 people or so.

Let us now start at the other end with two people in a room. The probability that they have the same birthday is low and is easy to calculate. One way of thinking about it is to consider that one of them tells you his birthday. Then you ask the other one for his birthday. There are 365 possible answers he can give but only one of them will match the birthday given by the first person. Hence the probability of the birthdays being the same is 1/365.

The other possible way to look at this problem is to first ask the question â€œIn how many possible ways can two people have birthdays without any restriction?â€ Since there are 365 possibilities for each of them then the answer to this is 365Ã—365â€”every date in the calendar for one combined with every date in the calendar for the other. Now, we are going to ask a question that is not, perhaps, the obvious one to ask â€” â€œIn how many ways can the two people have different birthdays?â€.Well, the first one has 365 possibilities but once his birthday is fixed then, for the birthdays to be different, the second has only 364 possibilities so the answer is 365 Ã— 364. Now, we can find the probability that they have different birthdays as

*p*_{diff} = (Number of ways of having different birthdays)/(Total number of ways of having birthdays)

= (365 Ã— 364)/(365 Ã— 365)

= 364/365

= 0.997260

≈ 99.72%

Now, either the two individuals have the same birthday or they do not and these are the only possibilities and they are mutually exclusive so that

*p*_{diff} + *p*_{same} = 1,

or, *p*_{same} = 1 − *p*_{diff} = 1 â€“ 364/365 = 1/365

the answer obtained previously. The reason we have introduced this apparently convoluted way of getting the answer is because it better lends itself to dealing with the problem of when there are three or more people in the room. Now consider three people in a room. The number of ways they can have birthdays, without any restriction, is

365 Ã— 365 Ã— 365.

The number of ways they can have different birthdays is found by noting that the first person can have a birthday in 365 ways, for the second to be different from the first there are 364 ways and for the third to be different from the other two there are 363 ways. Hence the total number of ways they can have different birthdays is

365Ã—364Ã—363.

Hence the probability that they have different birthdays is

*p*_{diff} = number of ways birthdays can be different number of ways they can have birthdays

= (365 Ã— 364 Ã— 363)/(365 Ã— 365 Ã— 365) = 0.9917958.

If the birthdays are not all different then at least two of them must be the same and the probability of this is

*p*_{not diff} = 1 − *p*_{diff} = 0.0082042.

We should now be able to see by extending the principle that the probability that at least two people out of five people in a room would share a birthday is

*p*_{not diff} = 1 â€“ (365 Ã— 364 Ã— 363 Ã— 362 Ã— 361)/ (365 Ã— 365 Ã— 365 Ã— 365 Ã— 365) = 0.027136.

The advantage of calculating the probability in the way that we do, by finding the probability that all birthdays are different and then subtracting from 1, is now evident. Suppose that, we tried to directly find the probability that two or more people in a set of five shared a birthday. We would have to consider one pair the same and the others all different, three with the same birthday with the other two different, two pairs with the same birthday, and many other combinations. All birthdays being different is a single outcome, the probability of which is comparatively easy to find.

Now, we ask the question that is really the basis of this sectionâ€”â€œHow many people must there be in a room for there to be a probability greater than 0.5 (or, 50% chance) that at least two of them would share a birthday?â€ This can be done with a calculator. We work out the following product term-by-term until the answer we get is less than 0.5.

(365/365) Ã— (364/365) Ã— (363/365) Ã— (362/365) Ã— (361/365) Ã— (360/365) Ã— â€¢ â€¢ â€¢

The value of

*n* for which the answer first falls below 0.5 is when the probability of all birthdays being different is less than 0.5 and hence when there is a probability greater than 0.5 that two or more people have the same birthday. This is the number of people that fulfills our requirement. What is your intuitive assessment of n at this point? In the following table, we give the probability of having at least two people with the same birthday with increasing

*n*. We see that the probability just exceeds 0.5 when 23 individuals are present â€” a result that most people find surprisingly low.

There is greater than 50% chance that two of these will share a birthday!

**References****Woolfson, M. M.** *Every day Probability and Statistics*, Imperial College Press, 2008.

**Deep, R.** *Probability and Statistics*, Academic Press, 2006.

**Blinder, S. M.** *Guide to Essential Math A Review for Physics Chemistry and Engineering Students*, Academic Press, 2008.