This question is inspired by a dice game called "Tenzi". You throw ten dice and try to achieve the maximum number of matching face values of the dice. What is the probability that a maximum matching of size $x$ occurs?
For $x\in[6,10]$, this is easy. The number of ways this can occur is $6{10\choose x}5^{10-x}$, i.e., selecting the face that gets matched (6 ways), choosing which of the $x$ dice get matched, and finally selecting all possible ways the remaining dice get matched.
When we get to the case where $x=5$, this method overcounts when we have two matchings of five dice. So, the number of ways this can occur is $6{10\choose 5}(5^5 - 5)$. The subtraction of the five at the end is because of the five possible cases where we have another matching of five dice resulting in the same value of $x$.
This suddenly gets very tricky when $x=4$. I'm thinking the inclusion/exclusion but I don't really know how to implement that. We must guarantee that no other matchings of size 4 or larger occur.
Obviously, $P(X=1)=0$, but for $x=2,3,4$, I don't know what to do.
Any ideas?


For $x=2$, you need to split it into disjoint events, and then add up their probabilities:
For $x=3$, you need to split it into disjoint events, and then add up their probabilities:
For $x=4$, you need to split it into disjoint events, and then add up their probabilities: