The Pigeonhole

Suppose there are 1000 people gathered for a birthday party. The person whose birthday it is tells every body to write their birthday on card and give it to him. Suppose you yourself are also in this party. What is the probability (in %) that your birthday matches with another person's birthday ?

Assume the year has 365 days.


The answer is 93.56.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Aayush Mani
Jun 17, 2014

The formula for such pigeonhole questions is

q(n;d)= 1- (d-1/d)^n

where n is the total no of people, d is the total no of days on which birthday can coincide.

So q(1000;365)=1-(364/365)^1000 which is approximately 93.56%

You should tell us that there're 365 days in 1 year.

Also, do 1000 people includes yourself or not.

But well, I got 93.499% for 366 days and 999 other people and still correct though.

Samuraiwarm Tsunayoshi - 6 years, 8 months ago

I got a 93.547 but still. Correct

A Former Brilliant Member - 6 years, 8 months ago

n=999 = 1000 guests - myself

Vladimir Babev - 6 years, 4 months ago
Noel Athaide
Jan 6, 2021

Let E E be the event that my birthday matches with at least one other person. Then n o t E not\ E is the probability that my birthday doesn't match with anyone.

We can write: P r o b ( E ) = 1 P r o b ( n o t E ) = 1 N d i f f N t o t Prob(E) = 1 - Prob(not\ E) = 1 - \frac{N_{diff}}{N_{tot}} , where

N d i f f N_{diff} : number of possibilities of other peoples birthdays such that they don't match mine

N N : total number of possibilities of other peoples birthdays

  • N1 = number of possibilities of my birthday = 1 (since my birthday is known/given)
  • N 2 = number of possibilities of first person's birthday such that doesn't match mine = (365 -1) = 364
  • N 3 = number of possibilities of second person's birthday such that doesn't match mine = (365 -1) = 364
  • ...
  • N 1000 = number of possibilities of 999th person's birthday such that doesn't match mine = (365 -1) = 364

Total number of possibilities of peoples birthdays such that it doesn't match mine = N1 x N2 x N3 x ... N1000 = 1 x 36 4 999 364^{999}

Similarly total number of possibilities of peoples birthdays(without the matching constraint) = 1 x 36 5 999 365^{999}

So P r o b ( E ) = 1 P r o b ( n o t E ) = 1 36 4 999 36 5 999 = 1 ( 364 365 ) 999 = 0.935477 = 93.5477 % Prob(E) = 1 - Prob(not\ E) = 1 - \frac{364^{999}}{365^{999}} = 1 - (\frac{364}{365})^{999} = 0.935477 = 93.5477 \%

Frank Aiello
Nov 19, 2017

The question is: in a group of n n people gathered for a birthday party, what is the probability that at least one person in the group has the same birthday as you? Let us denote the event that at least one person has the same birthday as you by E E . Then we have:

P ( E ) P(E) = 1 1 - ( 364 365 \frac{364}{365} ) n ^n

In this case, n n = 1000. So we have that in a group of 1000 people gathered for a birthday party, the probability that at least one person has the same birthday as you is:

P ( E ) P(E) = 1 1 - ( 364 365 \frac{364}{365} ) 1000 ^{1000} \approx 93.56%

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...