A typical homework problem is also how many people do you need in a room so that the probability that two share their birthdays is more than 50%. The answer would be
Isn’t the “classical” question usually, “For N people, what is the probability that at least 2 share the same birthday?” I believe that is the solution to that is given by Marco. But, the original question seemed to be exactly two people out of 100. The “at least” probability would need to multiplied by the probability none of the other 98 share the same birthday as our lucky two.
So, let’s try an approximation by brute force for exactly 2:
For how long it takes me for writing the mathematica without asking questions here, or help others?
Between 0 and 25 years! I believe that anyone--who is interested--can write useful code in less than an hour by following examples here and in the help browser.
However, I am still learning how to write code and to help others after nearly 25 years.
I am not really sure about the original question either. You are absolutely right: In fact, I did read it as
“How to find the probability for (at least/any) two people who have the same birthday among the 100 people?”
Without any quantifier like “exactly” that is the default mathematical interpretation, I believe. Otherwise I would have expected the question to explicitely state “exactly two people”.
Here is the usage I adhered to:
Two queens are red.To a layperson (i.e. in everyday language), or in some mathematical contexts, this means “there are exactly two red queens”. But in logical, it gets unpacked as “there exist two queens which are red” which is true as long as there are at least two red queens. In cases like these, it’s usually a good idea to add at least or exactly to avoid any possible confusion.
You are quite right that Michelle’s question might have been about exactly two people. And as you say, the question you answer is" …, exactly two people out of 100." which is a different question to the one I wanted to answer.
By the way, the question could technically also mean exactly two people share their birthdays and none of the remaining 98 people share their birthdays with anyone - so there is no other couple of people sharing the same birthday (which might be different from the first couples’).