Say there are 20 people in a room. What is the probability there are exactly 2 triples and 4 pairs. Is my answer shown below correct? Assume 365 days in the year.
$P= \dfrac{\binom{365}{2}\binom{363}{4}\binom{20}{3}\binom{17}{3}\binom{14}{2}\binom{12}{2}\binom{10}{2}\binom{8}{2} \cdot 359 \cdot 358 \cdot 357 \cdot 356 \cdot 355 \cdot 354}{365^{20}}$?
Term $365C2$ chooses the $2$ birthdays for the $2$ triples. Each triple has a different birthday. Term $363C4$ chooses the $4$ birthdays for the $4$ pairs. Each pair has different birthdays. Term $20C3$ selects the $3$ people for the first triple and $17C3$ the $3$ people for the second triple. Term $14C2$ picks the $2$ people for first pair, $12C2$ for second pair, $10C2$ the third pair, and finally $8C2$ for the fourth pair. The term $(359 \cdot 358 \cdot 357 \cdot 356 \cdot 355 \cdot 354)$ is the birthdays for the remaining $6$ people, which do not match. I start with $359$ because $6$ birthdays have taken by the $2$ triples and the $4$ pairs. All this is then divided by the total number of possible birthday selections $365^{20}$.
I am wondering if the selection of the people for the $2$ triples should be $20C6$ instead of $20C3 \cdot 17C3$ as I show. I believe my method is the correct one. Please let me know.
You have solved the problem correctly.
There are $\binom{365}{2}$ ways to choose the two days for the triples. There are $\binom{20}{3}$ ways to choose which three people share the earlier of these two birthdays and $\binom{17}{3}$ ways to choose which three of the remaining people share the later of these two birthdays.
If you chose which six people were part of the triples, you would have to multiply the $\binom{20}{6}$ ways of selecting the six people by the $\binom{6}{3}$ ways of selecting which three of those six people had the earlier birthday. Notice that $$\binom{20}{3}\binom{17}{3} = \frac{20!}{3!17!} \cdot \frac{17!}{3!14!} = \frac{20!}{3!3!14!} = \frac{20!}{6!14!} \cdot \frac{6!}{3!3!} = \binom{20}{6}\binom{6}{3}$$