Skip to main content

THE BIRTHDAY PARADOX

    If there are 60  people in a gathering, will any two persons have the same birth day?  We are doubtful. we think if there are more than 365 persons, there may be a possibility of two persons sharing same birthday.  But the statistics' answer is stunning.  Here we go.

     In a coin toss, chance of getting head or tail is 50 % or 1/2.  Chance of head is 1/2 and the tail is 1/2.  Hence the total probability is 1.  

     In a dice throw, chance of getting '1' is 1/6 and the chance of 'not' getting '1' is 5/6 = 1-1/6

     In a gathering, the chance for a person to have any date in a year as a birthday is 365/365=1=100%.  For another person, the chance of not having a birthday same as first person is 364/365.  For a third person, the chance of not having a birthday same as previous two persons is 363/365.  Hence the probability for not having a match (two persons having same birth day ) among three persons is (365/365) * (364/365)*(363/365)  (based on property of probability).

     In another words,  the probability of having a match among three persons is

               1 -  (365/365) * (364/365)*(363/365)    

So the chance of finding a match of birthday among N persons is 

                      = 1 -  (365/365) * (364/365)*(363/365)* ........*(365-N+1/365)

                      = 1-[365*364*363*...........*(365-N+1)/365^N]  
  
Using the above formula, let us calculate the probability of a match for different number of persons N = 1,2,3... and tabulate the results.

N                                P
no. of persons             probability of a match

1                                 0
9                                 0.1 or 10%
23                               0.5 or 50%
30                               0.7 or 70%
58                               1    or 100%




     So the chance for two persons having same birthday (a match)  is 50% even for 23 persons.  A shocking result.  If there are 58 persons in a  room, there is a 100% chance for a match.Try to verify yourself.

     This birthday problem(clash of dates, clash of data, clash of occupancy).  Finds applications in spread of epidemics, photons occupancy and cryptography.    

Comments

Popular posts from this blog

THE EARTH, A SUPER ORGANISM

     JOIN MY COURSE: "Become a programmer in a day with python"       A man called 'love lock' (what a name) proposed a theory called Gaia theory, named after Greek Goddess.      It says, "Earth is a self-regulating organism like a human being.  The organic life in it interacts with in-organic matter and maintains atmosphere, temperature and environment".  Hence the earth is still suitable for the life to thrive.      Imagine, in a particular place, there are lot of flowers.  Some flowers are white and some are darkly coloured.  We know, white reflects light and heat while dark absorbs the same.  White flowers can thrive in hot climate.  But dark flowers requires cold climate.  The absorption and reflection balances and the environment reaches average, warm temperature at which both the flowers can co-exist.  This is the essence of "Gaia" theory.      On our earth, ...

DISORDER IS THE "ORDER OF THE DAY"

         Imagine a balloon full of air.  The air molecules are moving randomly inside the balloon.  Let us pierce the balloon with a pin.  The air rushes out.  Why should not the air molecules stay inside the balloon safely and ignore the little hole?  That is not the way the world works.  The molecules always "want to occupy as many states as possible".  Hence the air goes out in the open to occupy more volume.   The things always goes into disorder (entropy) and the disorder increases with time.  The above statement is what we call "second law of thermodynamics".      Consider a cup of coffee on the table. Suppose the heat from entire room flows to your cup of coffee, the coffee will boil and the rest of the room will freeze.  Freezing means bringing things to order and arrangement.  It violates the second law.  Hence it will never happen.  Hence heat must flow from high ...

CASINO'S GAME

           Let us find out how the casino survives with mathematics.      Say, your friend invite you for a game of dice.  You must bet (wager) 2 dollars.  If you roll 'six' you will get back 8 dollars.  The game will go on for 30 rounds.  All sounds good.      The probability of rolling 'six' is 1/6.  Since the game will be played for 30 times, the 'expected win' is 30*1/6 = 5.  That is, you are expected to win 5 rounds out of 30.  Hence your gain will be 5 * 8 =40 dollars.  ok.  This also implies that you will loose 25 rounds.  Hence your loss will be 25*2 =50 dollars.  Your net gain will be gain-less = 40-50 = -10 dollars. For 30 rounds, the loss is -10 dollars, Hence, for one round =-10/30 = -1/3 dollars.  There will be a loss of -1/3 or 0.33 dollars per round.  It is not a fair game.     Let us make a simple formula to calculate  'Pa...