This works only if you're matching the birthday of the first person in the room. Since the question is any two people in the room having the same birthday you have to include the possibility of permutations of any two birthdays. Consequently, if your going to use this method, once a third person enters the room you have to include the probability that the third person doesn't have the same birthday as the first and the second, the fourth person doesn't have the same birthday as the first, second, or third and so on.
Accordingly, the probability is the product of any two people having the same birthday is the product of the probability of any single individual having a birthday (1 or 365/365 that is unless you're John Smith) and the second person having the same birthday (1/365). The since there are n people in the room you have to consider that any two people in the room can have the same birthday, so you have to consider the permutations, That is, the common birthdays could be the first and the fourth person, or the fifth and the sixteenth. Fortunately Pascal developed a method to determine the number of permutations.
Your method would work, if you included the cumulative probabilities of any two common birthdays.
Or, P(E)=1-Q<sub>0</sub>-Q<sub>1</sub>-
.-Q<sub>n</sub>=0.5
BTW using the permutation method, then the probability [P(E)] of any two people sharing a birthday is 1 at n=28, which is a good agreement with the 30 people rule stated above.
Rap c∫
/