1
$\begingroup$

If you roll five dice your chances of getting all five matching is $\frac{1}{6^5} = \frac{1}{7776} \approx 0.08\%$.

I recently learned the binomial probability formula: $P = nCr \times p^r \times (1 - p)^{n-r}$.

  • $nCr = \frac{n!}{r!(n-r)!}$ << The different possible combinations
  • $r$ is the number of dice you need to match
  • $n$ is the number of dice you're rolling
  • I use $\frac{1}{6}$ in the formula because that's dice probability

Because I am rolling 5 dice and need 5 matches, I set $r = 5$ and $n = 5$ and came up with this equation: $P=\frac{5!}{(5-5)!5!}\times(\frac{1}{6})^{5}\times(1-\frac{1}{6})^{5-5}\approx0.012\%$

But when I set $r = 4$, $n = 4$ with the formula below I do get the desired result. $P=\frac{4!}{(4-4)!4!}\times(\frac{1}{6})^{4}\times(1-\frac{1}{6})^{4-4}\approx0.08\%$

Why is this? Shouldn't $r$ and $n$ be 5 because I'm rolling 5 dice and need 5 matches?

$\endgroup$
4
  • 5
    $\begingroup$ When you roll a dice five times the probability that all five match is $1/6^4$. It doesn't matter what the first roll is, all you require is that the following four are all the same as the first. $\endgroup$
    – K.defaoite
    Commented Dec 27, 2021 at 21:04
  • 2
    $\begingroup$ I agree with K.defaoite. If you want all 5 coins to equal the outcome $i$ (for some $i$ in $\{1,\dots,6\}$) then the probability is $1/6^5$. But then you sum over all possible choices of $i$. So you add that probability $1/6^5$ to itself 6 times (for the 6 possible outcomes of $i$). So you get $6/6^5=1/6^4$. $\endgroup$ Commented Dec 27, 2021 at 21:21
  • $\begingroup$ In your first line, $\frac{1}{6^5} = \frac{1}{7776} \approx 0.08\%$ is wrong. It's true that $6^5 = 7776$, but the approximation is wrong. $\endgroup$ Commented Dec 27, 2021 at 22:39
  • $\begingroup$ Your line... $P=\frac{5!}{(5-5)!5!}\times(\frac{1}{6})^{5}\times(1-\frac{1}{6})^{5-5}\approx0.012\%$ is the probability for ONE particular number. Just multiply this by 6 and you have your answer $\endgroup$
    – Peter
    Commented Dec 27, 2021 at 23:23

1 Answer 1

2
$\begingroup$

First off, note that $$\frac{1}{6^5} = \frac{1}{7776} \approx 0.013\%$$ so your first computation is incorrect. It is true that $\approx 0.08\%$ of the time that all five dice rolls will match one another, but this isn't given by $1/6^5$. Rather, it's given by $6/6^5 = = 1/6^4$.

The reason for this has been given in the comments, but in short, it's because there are $6$ ways for all five dice rolls to match. That is, all five could come up 1, all five could come up 2, all five could come up 3, and so on for each of the six faces. Therefore, out of the $6^5$ total equally likely results for the five dice rolls, $6$ result in all five matching, giving the correct probability of $6/6^5 = 1/6^4$.


Now I'll address the major issue in your formulation of the binomial probability: Your definition of $r$ is deficient.

  • $r$ is the number of dice you need to match

to match... what? To be correct, it should be

  • $r$ is the number of dice you need to match a fixed value

For instance, you could define $r$ as the number of dice that come up $6$. Then the probability that all $5$ rolls come up $6$ would be given as the binomial probability $$P=\frac{5!}{(5-5)!5!}\times(\frac{1}{6})^{5}\times(1-\frac{1}{6})^{5-5}\approx0.012\%$$ with no error.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .