Yahtzee Probability

I play a round of the game "Yahtzee!", and my goal is to obtain the namesake combination: 5 dice all showing the same number.

What is the probability that I will be able to accomplish this?

The probability can be expressed as a b , \frac{a}{b}, where a a and b b are coprime positive integers. Enter your answer as a + b a + b .

Details and Assumptions :

  • Each round of Yahtzee consists of up to 3 tosses. In the first toss, you roll all 5 dice.
  • In the second toss, you may roll some or all of the 5 dice.
  • In the third toss, you may roll some or all of the 5 dice.
  • The probability to obtain a "Yahtzee" assumes that you follow the optimal strategy.
  • It would be acceptable to use a calculator or computer software to help with computations.


The answer is 7906169.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

K T
Dec 15, 2018

Consider all the 6 5 = 7776 6^5=7776 ordered configurations after throwing all five dice. We classify them into 5 game states

state probability calculated as
A all different 720 7776 \frac{720}{7776} First die can have any value, leaving 5 values for the next, etc. 6 × 5 × 4 × 3 × 2 = 720 6×5×4×3×2=720 ways
B 1 or 2 pairs 5400 7776 \frac{5400}{7776} 1 pair: ( 5 2 ) × 6 × 5 × 4 × 3 = 3600 \binom{5}{2}×6×5×4×3=3600 ways; 2 pairs: ( 5 2 ) × ( 3 2 ) × 1 2 × 6 × 5 × 4 = 1800 \binom{5}{2}×\binom{3}{2}×\frac{1}{2}×6×5×4=1800 ways
C 3 of a kind 1500 7776 \frac{1500}{7776} ( 5 3 ) × 6 × 5 × 5 = 1500 \binom{5}{3}×6×5×5 = 1500 ways
D 4 of a kind 150 7776 \frac{150}{7776} ( 5 4 ) × 6 × 5 = 150 \binom{5}{4}×6×5=150 ways
E yahtzee 6 7776 \frac{6}{7776} 6 ways. One way for each value 1,2,3,4,5, or 6

Table 1. States and their initial probabilities. Note that all fractions can be expressed as 1296ths

Our strategy is as follows: once we have two or more dice of the same value, we start collecting that value, we put them aside and roll the rest.

When having a pair of a certain value (state B), we roll 3 dice, we have probability

  • 125 216 \frac{125}{216} to throw none of that value; however this includes probability 5 216 \frac{5}{216} to throw a triplet with a new value (and we will decide to collect that new value, bringing us to state C) so P ( B B ) = 120 216 P(B|B)=\frac{120}{216}
  • 75 216 \frac{75}{216} (1/6 × 5/6 ×5/6 × 3) to roll one new die of that value, and in addition 5 216 \frac{5}{216} from the previous case, so P ( C B ) = 80 216 P(C|B)=\frac{80}{216}
  • 15 216 \frac{15}{216} 1/6 × 1/6 × 5/6 × 3 to roll two new dice of that value, so P ( D B ) = 15 216 P(D|B)=\frac{15}{216}
  • 1 216 \frac{1}{216} (1/6×1/6×1/6) to throw yahtzee, so P ( E B ) = 1 216 P(E|B)=\frac{1}{216}

When having a triplet of a certain value (state C), we roll 2 dice, we have probability

  • 25 36 \frac{25}{36} to throw none of that value so P ( C C ) = 25 36 P(C|C)=\frac{25}{36}
  • 10 36 \frac{10}{36} (1/6 × 5/6 × 2) to roll one new die of that value, so P ( D C ) = 10 36 P(D|C)=\frac{10}{36}
  • 1 36 \frac{1}{36} 1/6 × 1/6 to roll two new dice of that value, so P ( E C ) = 1 36 P(E|C)=\frac{1}{36}

When having a quadruplet of a certain value (state D), we roll 1 die, we have probability

  • 5 6 \frac{5}{6} not to throw that value so P ( D D ) = 5 6 P(D|D)=\frac{5}{6}
  • 1 6 \frac{1}{6} to throw it, so P ( E D ) = 1 6 P(E|D)=\frac{1}{6}

Summarizing the state transition probabilities:

A B C D E
A 120 1296 \frac{120}{1296} 900 1296 \frac{900}{1296} 250 1296 \frac{250}{1296} 25 1296 \frac{25}{1296} 1 1296 \frac{1}{1296}
B 0 120 216 \frac{120}{216} 80 216 \frac{80}{216} 15 216 \frac{15}{216} 1 216 \frac{1}{216}
C 0 0 25 36 \frac{25}{36} 10 36 \frac{10}{36} 1 36 \frac{1}{36}
D 0 0 0 5 6 \frac{5}{6} 1 6 \frac{1}{6}
E 0 0 0 0 1

Table 2, state transition probabilities For example P ( D C ) = 10 36 P(D|C)=\frac{10}{36} is the probability to get from state C to state D in one roll. Note that the first row reflects the probabilities from table 1.

Next, we calculate the state probabilities after two rolls:

P 2 ( A ) = P 1 ( A ) P ( A A ) = 120 1296 120 1296 = P_2(A)=P_1(A)P(A|A)=\frac{120}{1296}\frac{120}{1296}= 14400 1679616 \frac{14400}{1679616}
P 2 ( B ) = P 1 ( A ) P ( B A ) + P 1 ( B ) P ( B B ) = 120 1296 900 1296 + 900 1296 120 216 = P_2(B)=P_1(A)P(B|A)+P_1(B)P(B|B)=\frac{120}{1296}\frac{900}{1296}+\frac{900}{1296}\frac{120}{216}= 756000 1679616 \frac{756000}{1679616}
P 2 ( C ) = P 1 ( A ) P ( C A ) + P 1 ( B ) P ( C B ) + P 1 ( C ) P ( C C ) = P_2(C)=P_1(A)P(C|A)+P_1(B)P(C|B)+P_1(C)P(C|C)= 687000 1679616 \frac{687000}{1679616}
P 2 ( D ) = P 1 ( A ) P ( D A ) + . . . = P_2(D)=P_1(A)P(D|A)+...= 201000 1679616 \frac{201000}{1679616}
P 2 ( E ) = P 1 ( A ) P ( E A ) + . . . = P_2(E)=P_1(A)P(E|A)+...= 21216 1679616 \frac{21216}{1679616}

Table 3, state probabilities after two rolls

Finally, using tables 2 and 3, the probability to be in state E after 3 rolls is calculated as

P 3 ( E ) = P 2 ( A ) P ( E A ) + P 2 ( B ) P ( E B ) + . . . = 14400 1679616 1 1296 + 756000 1679616 1 216 + . . . = 100194336 2176782336 = 347897 7558272 P_3(E)=P_2(A)P(E|A)+P_2(B)P(E|B) + ... =\frac{14400}{1679616}\frac{1}{1296}+\frac{756000}{1679616}\frac{1}{216}+...=\frac{100194336}{2176782336}=\frac{347897}{7558272} (about 4.6%).

The final answer then is 347897 + 7558272 = 7 , 906 , 169 347897+7558272=\boxed{7,906,169}

Great solution!

David Vreken - 2 years, 5 months ago

There can be a disagreement of optimal strategy. If on the first roll, you get a pair, and on the second roll you get a triple of a different number, your best strategy is the make your third roll a roll of the original pair with a 1/36 of completion.

A Former Brilliant Member - 2 years, 5 months ago

Log in to reply

This strategy is included in KT's solution.

David Vreken - 2 years, 5 months ago
Chris Lewis
Dec 13, 2018

This is an example of the calculations I used. There are 6 5 6^5 possible outcomes from the 1st roll. Say we have 3 matches. There are

( 5 3 ) 6 5 5 = 1500 \begin{aligned} \binom{5}{3}\cdot6\cdot5\cdot5=1500 \end{aligned}

ways this can happen; ( 5 3 ) \binom{5}{3} choices for which 3 match, 6 choices for the repeated number, and 5 choices for each of the other two numbers.

Let's say the matching number is A A . We roll two dice again. With probability 1 36 \frac{1}{36} , we roll A A AA and get a Yahtzee straight away. With probability 10 36 \frac{10}{36} , we roll one A A and something else; we then have probability 1 6 \frac{1}{6} of getting the A A on the 3rd roll. With probability 25 36 \frac{25}{36} , we don't roll an A A on the 2nd roll, and have to roll A A AA on the 3rd, with probability 1 36 \frac{1}{36} .

So overall, the probability of getting 3 matches after the 1st roll and going on to get a Yahtzee is

1500 6 5 ( 1 36 + 10 36 1 6 + 25 36 1 36 ) = 1500 6 7 + 15000 6 8 + 37500 6 9 = 15125 839808 \begin{aligned} \frac{1500}{6^5} \cdot \left( \frac{1}{36} + \frac{10}{36} \cdot \frac{1}{6} + \frac{25}{36} \cdot \frac{1}{36} \right) = \frac{1500}{6^7}+\frac{15000}{6^8}+\frac{37500}{6^9}=\frac{15125}{839808} \end{aligned}

This gets tricky when we have only 1 or 2 matches after the 1st roll - as mentioned in the problem, the most common value can change in these cases. However, the same approach still works.

In summary, the probabilities are

The total probability of a Yahtzee using this strategy is the sum of the final column, which comes out to be 347897 7558272 \frac{347897}{7558272} , giving the final answer 347897 + 7558272 = 7906169 347897+7558272=\boxed{7906169}

Very nice write-up!

David Vreken - 2 years, 6 months ago

Log in to reply

Thank you - quite a lot left to the reader, but my case analysis was enormous! Is this how you did it? Or is there a cunning shortcut?

Chris Lewis - 2 years, 6 months ago

Log in to reply

This is pretty much how I did it, too. After I did it, I found this website to have an extremely helpful solution using a transition matrix (although the final answer given is a decimal and not a fraction).

David Vreken - 2 years, 6 months ago

I don't understand what 2 under 5 have to mean. Can you please explain it?

idk idk - 2 years, 1 month ago

Log in to reply

I'm guessing you mean the ( 5 3 ) 5\choose 3 . This is a binomial coefficient and represents the number of ways of choosing 3 3 (unordered) objects from a set of 5 5 . There's lots of information in the linked article.

Chris Lewis - 2 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...