Video 1, chapter 14

Nontransitive Dice

How three fair nontransitive dice beat each other in a cycle, why their win probability relation is not a transitive relation, and why equal expected value does not decide a matchup.

  • Video 1, chapter 14
  • When better goes in circles

Video 1, chapter 14

Nothing loads from YouTube until you press play.

Three fair dice carry unusual numbers on their faces. Die B is more likely than not to beat die A, and die A is more likely than not to beat die C. Surely B should then beat C? It does not, because C beats B with the same probability, 5/95/9. This page counts every matchup exactly, explains why “beats” does not have to put the dice in order, and shows why the averages of the dice settle nothing.

Key terms

Nontransitive dice

Definition A set of dice is nontransitive when the relation “beats” among them is not transitive. The relation comes from a game for two players. Each player chooses a different die from the set, the second player after seeing the first player’s choice. Each player rolls their die once, the two rolls are independent, and each die is fair, which means that each of its six faces is equally likely to land on top, even when two faces show the same number. The higher number wins the roll, and one die beats another when it is more likely to win the roll than to lose it. A standard set uses these three dice.

DieFacesAverage
A1, 1, 6, 6, 8, 85
B2, 2, 4, 4, 9, 95
C3, 3, 5, 5, 7, 75

No number appears on two different dice, so a roll can never tie. Die B beats A, A beats C and C beats B, each with probability 5/95/9. The resolution is that “beats” compares two dice at a time, each comparison with its own 3636 equally likely pairs of faces, and nothing forces these separate comparisons to fit into one ranking from strongest to weakest. So whichever die the first player chooses, the second player can choose one that wins a roll with probability 5/95/9, taking B against A, C against B and A against C. That is an advantage, not a certainty, since the second player still loses a roll with probability 4/94/9.

In plain words Each die is strong against one of the others and weak against the other one, much like rock, paper and scissors, except that every roll is decided by chance. No die is best, so choosing second is an advantage. Three numbers actually rolled can always be put in order. The cycle is about chances in separate matchups, not about one set of three rolls.

Example Take die A against die C. Each number appears on exactly two faces of its die, so each pairing of a number of A with a number of C has probability

26⋅26=19.\frac{2}{6} \cdot \frac{2}{6} = \frac{1}{9}.
C shows 3C shows 5C shows 7
A shows 1C winsC winsC wins
A shows 6A winsA winsC wins
A shows 8A winsA winsA wins

Die A wins in 55 of the 99 equally likely cells, so it wins a roll against C with probability 5/9≈0.5565/9 \approx 0.556 and loses with probability 4/94/9. Each cell stands for 2⋅2=42 \cdot 2 = 4 of the 3636 pairs of faces, so A wins 2020 pairs of faces and loses 1616.

Transitive relation

Definition A relation on a set says, for each ordered pair (x,y)(x, y) of members of the set, whether xx is related to yy. The relation is transitive if, for all members xx, yy and zz, whenever xx is related to yy and yy is related to zz, also xx is related to zz. A relation that fails this for at least one choice of xx, yy and zz is not transitive, also called nontransitive. When the members are ranked in a list without ties, the relation “comes earlier in the list” is transitive, so a relation that is not transitive cannot be read off from any ranking.

In plain words A transitive relation lets advantages chain together. If xx is ahead of yy and yy is ahead of zz, then xx is ahead of zz. Many everyday comparisons work like this, but nothing guarantees it for a comparison defined by chances.

Example The relation “is less than” on numbers is transitive, since a<ba < b and b<cb < c give a<ca < c, and so are “is taller than” and “is older than”. The relation “beats” on the three dice is not. Die B beats A and A beats C, but B does not beat C, because C beats B. Transitivity fails for x=Bx = \text{B}, y=Ay = \text{A} and z=Cz = \text{C}, so no ranking of the three dice agrees with all three matchups.

Win probability

Definition For two dice XX and YY rolled once each, independently, the win probability of XX against YY is P(X>Y)P(X > Y), the probability that XX shows a strictly higher number. The three probabilities P(X>Y)P(X > Y), P(X=Y)P(X = Y) and P(X<Y)P(X < Y) add to 11, so when ties are possible a win probability below 1/21/2 can still be larger than the chance of losing. On this page XX beats YY when P(X>Y)>P(X<Y)P(X > Y) > P(X < Y), and when ties cannot happen this is the same as P(X>Y)>1/2P(X > Y) > 1/2. If both dice are fair and six-sided, each of the 3636 ordered pairs made of one face of XX and one face of YY has probability 1/361/36, so

P(X>Y)=N36,P(X > Y) = \frac{N}{36},

where NN is the number of those pairs in which the face of XX shows the higher number.

In plain words Pair every face of one die with every face of the other and count the share of pairs that the first die wins. Two faces with the same number are still two separate faces, which is why the count uses all 3636 pairs.

Example For B against A, each of the two faces of B showing 22 beats the two faces of A showing 11, and so does each of the two faces showing 44. Each of the two faces showing 99 beats all six faces of A. That gives

2⋅2+2⋅2+2⋅6=202 \cdot 2 + 2 \cdot 2 + 2 \cdot 6 = 20

winning pairs, so P(B>A)=20/36=5/9P(\text{B} > \text{A}) = 20/36 = 5/9. For C against B, each face of C showing 33 beats the two faces of B showing 22, and each face showing 55 or 77 beats the two faces showing 22 and the two showing 44. That gives

2⋅2+2⋅4+2⋅4=202 \cdot 2 + 2 \cdot 4 + 2 \cdot 4 = 20

winning pairs, so P(C>B)=5/9P(\text{C} > \text{B}) = 5/9 as well. Together with P(A>C)=5/9P(\text{A} > \text{C}) = 5/9 from the first card, every arrow of the cycle has the same strength.

Expected value

Definition The expected value of a random number XX that takes the values x1,…,xkx_1, \dots, x_k with probabilities p1,…,pkp_1, \dots, p_k is

E[X]=x1p1+x2p2+⋯+xkpk.\begin{aligned} E[X] &= x_1 p_1 + x_2 p_2 \\[0.4em] &\quad + \dots + x_k p_k. \end{aligned}

For a fair six-sided die it is the sum of the six face numbers divided by 66, and over many independent rolls the average of the results tends to settle close to it. The expected value describes one die on its own, while a win probability depends on how the numbers of two dice fall between each other. So equal expected values do not make two dice equally strong against each other, and a larger expected value does not guarantee a win probability above 1/21/2.

In plain words The expected value is the long-run average roll. A roll is won by being higher, not by how much higher, so averages can mislead.

Example The faces of each of A, B and C add up to 3030, so each die has expected value 30/6=530/6 = 5. Yet each of them wins one matchup and loses another with probability 5/95/9. A die with a much larger average can even lose to all three. A die D with faces 0,0,0,0,0,600, 0, 0, 0, 0, 60 has

E[D]=0⋅5+606=10,E[D] = \frac{0 \cdot 5 + 60}{6} = 10,

twice the average of the others, but it beats A, B or C in a roll only when it shows 6060, which has probability 1/61/6, and it loses with probability 5/65/6. Its one big number counts as a single win, however far it is above the opponent’s roll.

Check yourself

  1. Change the rule so that the lower number wins the roll. Which die beats which now, and which die should the second player choose against A?
Show the answer

These dice never tie, so the lower number of a roll belongs to the die that loses under the old rule. The probability that XX wins under the new rule is therefore P(X<Y)=P(Y>X)P(X < Y) = P(Y > X), and every arrow turns around. Now A beats B, C beats A and B beats C, each with probability 5/95/9. The dice still form a cycle, run in the other direction. Against A the second player should now take C, which shows the lower number with probability P(A>C)=5/9P(\text{A} > \text{C}) = 5/9.

  1. Replace the two faces showing 77 on die C by faces showing 88, which gives a die C* with faces 3,3,5,5,8,83, 3, 5, 5, 8, 8. Can the second player still answer every first choice with a die that is more likely to win than to lose?
Show the answer

No. Each number still appears on two faces, so each of the 99 pairings of numbers has probability 1/91/9. Against A, the die C* wins the cells (1,3)(1, 3), (1,5)(1, 5), (1,8)(1, 8) and (6,8)(6, 8), where the first number is A’s, while A wins (6,3)(6, 3), (6,5)(6, 5), (8,3)(8, 3) and (8,5)(8, 5), and (8,8)(8, 8) is a tie. So A and C* each win with probability 4/94/9 and tie with probability 1/91/9, and neither beats the other. Against B, the die C* wins with 33 against 22, with 55 against 22 and 44, and with 88 against 22 and 44, which is 55 of the 99 cells, so C* beats B with probability 5/95/9. Die B still beats A with probability 5/95/9.

If the first player chooses C*, neither A nor B beats it, so the second player has no winning reply. Against A the only cell that changed is (8,8)(8, 8), which was a win for A and is now a tie, and that single tie removes A’s advantage. A win probability of 4/94/9 is below 1/21/2 and equal to the chance of losing, so A does not beat C* whether “beats” asks for a win probability above 1/21/2 or above the chance of losing. With other ties these two readings can disagree, which is why the rule has to be stated. The relation is still not transitive, since C* beats B and B beats A, yet C* does not beat A.

  1. A friend chooses C, and you play best of three, so whoever wins at least two of three independent rolls wins the match. Which die do you choose, and what is your chance of winning the match?
Show the answer

Choose A, which wins each roll against C with probability p=5/9p = 5/9, and no roll can tie. You win the match if you win all three rolls, or exactly two of them, where the lost roll can be the first, second or third. So the chance is

p3+3p2(1−p)=125729+300729=425729≈0.583.\begin{aligned} &p^3 + 3p^2(1 - p) \\[0.4em] &\quad = \frac{125}{729} + \frac{300}{729} \\[0.4em] &\quad = \frac{425}{729} \approx 0.583. \end{aligned}

The match gives a larger edge than a single roll, which you win with probability about 0.5560.556. A best of five match, won by taking at least three rolls, raises it to 11875/19683≈0.60311875/19683 \approx 0.603.