Please help with a simple problem that Mathisfun provides on this page: https://www.mathsisfun.com/data/probability-shared-birthday.html
Name of the problem:
Friends and Random Numbers
Problem statement:
4 friends (Alex, Billy, Chris and Dusty) each choose a random number
between 1 and 5.
What is the chance that any of them chose the same number?
*** Question 1 about problem formulation: As I understand any combination of 2 , 3 or all 4 friends choosing the same number will be a solution to the problem, correct?
Next Mathisfun gives the following problem solution:
"First, what is the chance that Alex and Billy have the same number?
Billy compares his number to Alex's number. There is a 1 in 5 chance of a match."
*** Question 2: Why 1/5 chance of a match? Any friend (Alex and Billy in this case) can choose any number with probability 1/5, but for me when two friends choose the same number probability should be 1/5 * 1/5 = 1/25. What am I missing?
Mathisfun continues:
"Now, let's include Chris ...
But there are now two cases to consider (called "Conditional Probability"):
If Alex and Billy did match, then Chris has only one number to compare to.
But if Alex and Billy did not match then Chris has two numbers to compare to."
*** Question 2: Why "if Alex and Billy did match, then Chris has only one number to compare to" and if they do not match Chris has two numbers to compare to?
Update
If Alex and Billy match and Chris match with them as well, so now we have three people choosing the same number, what is probability then? Why this case is not shown in the tree diagram? I agree that for two people to match we don't care what number it is, any one of five numbers will do. Now when we have the third person (Chris) matching with them, it must be the same number as they have chosen. The case 'three friends choose the same number' as well as the case 'all four friends choose the same number' should be accounted in the solution or not?
For the first case, you are interested in Alex and Billy's numbers being equal to each other, rather than Alex and Billy's numbers being equal to some specified number. It's easy to see if you just chart the possibilities.
In the table below, the first row contains possibilities for Alex's numbers and the first column contains possibilities for Billy's numbers. We see that there are a total of $25$ possibilities.
$$\pmatrix{ &1&2&3&4&5\\ 1&*\\ 2&&*\\ 3&&&*\\ 4&&&&*\\ 5&&&&&* } $$
Their numbers being equal corresponds to the diagonal, and that's $5$ possibilities, so $5/25 = 1/5$.
Another way to think of this is that whatever Alex's number is, there is only $1$ possible Billy number $($out of $5)$ that matches it.
For question $2$, if you assume that Alex and Billy matched their numbers, then once again there is only one possible Chris number $($out of $5)$ that matches their number.
If Alex and Billy did not match their numbers, then there are two possibile Chris numbers $($out of $5)$ that result in a match: the number that equal Alex's and the number that equals Billy's.