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.
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.
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.
I got a 93.547 but still. Correct
n=999 = 1000 guests - myself
Let E be the event that my birthday matches with at least one other person. Then n o t 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 t o t N d i f f , where
N d i f f : number of possibilities of other peoples birthdays such that they don't match mine
N : total number of possibilities of other peoples birthdays
Total number of possibilities of peoples birthdays such that it doesn't match mine = N1 x N2 x N3 x ... N1000 = 1 x 3 6 4 9 9 9
Similarly total number of possibilities of peoples birthdays(without the matching constraint) = 1 x 3 6 5 9 9 9
So P r o b ( E ) = 1 − P r o b ( n o t E ) = 1 − 3 6 5 9 9 9 3 6 4 9 9 9 = 1 − ( 3 6 5 3 6 4 ) 9 9 9 = 0 . 9 3 5 4 7 7 = 9 3 . 5 4 7 7 %
The question is: in a group of 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 . Then we have:
P ( E ) = 1 − ( 3 6 5 3 6 4 ) n
In this case, 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 ) = 1 − ( 3 6 5 3 6 4 ) 1 0 0 0 ≈ 93.56%
Problem Loading...
Note Loading...
Set Loading...
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%