Dice Game: 6-sided die vs 20-sided die

  • Thread starter Master1022
  • Start date
  • #1
Master1022
611
116
Homework Statement:
There is a game where one person rolls a 20-sided dice and another person rolls three 6-sided dice. They both roll their dice and whoever gets a sum of numbers wins the game. Which person would you rather be? Is it a fair game?
Relevant Equations:
Expectation and variance
Hi,

I was taking a look at the following question.

Question: There is a game where one person rolls a 20-sided dice and another person rolls three 6-sided dice. They both roll their dice and whoever gets a higher number (for 20-sided die) OR sum of numbers (for three 6-sided dice) wins the game. Which person would you rather be? Is it a fair game? Assume the dice are all fair

Attempt:
I think the general concept is about looking at expectation and variance for both cases and then make a decision from there.

So for the person with the 20-sided die, the expectation and variance are given by:
[tex] E(\text{20 sided die}) = \frac{n + 1}{2} = \frac{21}{2} = 10.5 [/tex]
[tex] Var(\text{20 sided die}) = \frac{n^2 - 1}{12} = \frac{(20)^2 - 1}{12} = \frac{399}{12} [/tex]

For the person with the three 6-sided dice:
[tex] E(\text{three 6 sided die}) = E(X_1 + X_2 + X_3) = 3 \cdot E(\text{one 6 sided die}) = 3 \cdot \frac{7}{2} = 10.5 [/tex]
[tex] Var(\text{three 6 sided die}) = Var(X_1 + X_2 + X_3) = 3 \cdot \frac{n^2 - 1}{12} = 3 \cdot \frac{(6)^2 - 1}{12} = \frac{35}{4} [/tex]

Thus, both of the distributions have the same expected value/mean. Therefore, perhaps we would rather be the person who chooses the lower variance side, which is the three 6-sided die. Does that seem reasonable?

Also, what does the 'is the game fair' part mean? Is that basically asking if the mean and variance are the same? If so, then based on the calculations above, I would say the game isn't fair...

Any help would be greatly appreciated.
 
Last edited:

Answers and Replies

  • #2
DaveC426913
Gold Member
21,169
4,606
It kind of depends on the number to win.


If the number is 10 or 11, then
- the 1D20 has a 1-in-20 chance of winning
- the 3D6 have a 27-in-216 (1-in-12.5) chance of winning .

If the number is 3 or 18, then
- the 1D20 has a 1-in-20 chance of winning
- the 3D6 have a 1-in-216 chance of winning.

Heck, if the number is 1, the 3D6 has a zero chance of winning.

Or am I misunderstanding the rules?
 
  • #3
Master1022
611
116
It kind of depends on the number to win.

If the number is 3 (or 18), then
- the 1D20 has a 1:20 chance of winning
- the 3D6 have a 1:216 chance of winning.

Heck, if the number is 1, the 3D6 has a zero chance of winning.

Or am I mis-understanding the rules?
Hi @DaveC426913 , thanks for the reply! Sorry, I think there was a word missing from my original question. Basically, the person with the three 6-sided die adds up their 3 numbers and compares the sum to the 1 number from the person who rolled the 20-sided die. Then whichever number is higher wins the game.

Apologies - I hope this is more clear
 
  • #4
DaveC426913
Gold Member
21,169
4,606
whichever number is higher wins the game.
Ah.

There's a super-duper easy way to answer this question, but your teach might not like it.
 
  • Wow
Likes Master1022
  • #5
Master1022
611
116
Ah.

There's a super-duper easy way to answer this question, but your teach might not like it.
Does it have something to do with the fact that the 20-sided die has two cases which cannot be beaten by the other player (19 and 20)? Or should I continue thinking along the mean and variance line?
 
  • #6
DaveC426913
Gold Member
21,169
4,606
For both dice sets, the probability curve is symmetrical.

You could just as easily make the rule "whoever gets the lowest score wins" and you have the exact same problem with the exact same solution - just mirrored.

I could produce a graph of the probabilities and show them to you horizontally flipped or unflipped, and you would not be able to tell me which rule is applied.

Therefore, neither dice set can have an advantage.

Your teacher will not like this answer because it doesn't help you practice the math - although it might help you intuit and verify the math..
 
  • Like
  • Informative
Likes Master1022 and jbriggs444
  • #7
Master1022
611
116
For both dice sets, the probability curve is symmetrical.

You could just as easily make the rule "whoever gets the lowest score wins" and you have the exact same problem with the exact same solution - just mirrored.

I could produce a graph of the probabilities and show them to you horizontally flipped or unflipped, and you would not be able to tell me which rule is applied.

Therefore, neither dice set can have an advantage.
Okay thank you, I agree with regards to the symmetry. However, would the variance come into consideration if we had to choose one set with which to play the game?
 
  • #8
DaveC426913
Gold Member
21,169
4,606
Okay thank you, I agree with regards to the symmetry. However, would the variance come into consideration if we had to choose one set with which to play the game?
Both set of dice average 10.5. If the goal is to get the highest sum, then they are equal.
 
  • Like
Likes Master1022
  • #9
FactChecker
Science Advisor
Gold Member
7,437
3,218
However, would the variance come into consideration if we had to choose one set with which to play the game?
Not really. It would only indicate if you lost (won) a roll by a lot or a little. If the expected values are equal, then the game is fair.
 
  • Like
  • Informative
Likes Master1022 and phyzguy
  • #10
DaveC426913
Gold Member
21,169
4,606
Note that my "solution" is off-topic for the Mathematics Homework forum (though it might be on-topic in a Mathematics or Logic forum).
 
  • #12
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
Okay thank you, I agree with regards to the symmetry. However, would the variance come into consideration if we had to choose one set with which to play the game?
Symmetry, not variance, is the key.
 
  • Wow
Likes Master1022
  • #13
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
Your teacher will not like this answer because it doesn't help you practice the math - although it might help you intuit and verify the math..
I'm not sure the student is supposed to crunch the numbers here, in terms of probability calculations. If anything, I'd do a computer simulation to check the symmetry argument.
 
  • #14
DaveC426913
Gold Member
21,169
4,606
I'm not sure the student is supposed to crunch the numbers here, in terms of probability calculations.
I guess. My solution bypass any math completely. Not sure if an elegant, intuitive proof is allowed.
If anything, I'd do a computer simulation to check the symmetry argument.
You mean check that a D20 has a symmetrical distribution, and that 3D6 has a symmetrical distribution?
That's too trivial to warrant a simulation is it not? It's self-evident.
 
  • #15
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
I guess. My solution bypass any math completely. Not sure if an elegant, intuitive proof is allowed.

You mean check that a D20 has a symmetrical distribution, and that 3D6 has a symmetrical distribution?
That's too trivial to warrant a simulation is it not? It's self-evident.
Your solution is probably what is expected.

There's no harm in running a simulation just to confirm. Even just writing the code may give an insight into why the symmetry argument works.
 
  • Like
Likes jedishrfu
  • #16
14,047
8,009
When in doubt, write a program to figure it out.
 
  • Like
Likes Master1022, Dale and berkeman
  • #17
berkeman
Mentor
63,590
14,710
When in doubt, write a program to figure it out.
Or use Excel... :smile:
 
  • Haha
Likes jedishrfu
  • #18
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
  • Haha
Likes SammyS, jedishrfu and berkeman
  • #19
jbriggs444
Science Advisor
Homework Helper
11,419
6,032
If you turn it into a three person game, variance becomes a useful heuristic and the d20 has an advantage.
 
  • Like
Likes PeroK
  • #20
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
If you turn it into a three person game, variance becomes a useful heuristic and the d20 has an advantage.
That depends on what the third player has, I imagine!
 
  • Like
Likes jbriggs444
  • #21
jbriggs444
Science Advisor
Homework Helper
11,419
6,032
That depends on what the third player has, I imagine!
Indeed. We might constrain the third player to a set of dice with an expectation of 10.5. Or to a choice between 3d6 and 1d20.
 
  • #22
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
Indeed. We might constrain the third player to a set of dice with an expectation of 10.5. Or to a choice between 3d6 and 1d20.
I see what you mean. The D20 player can't be worse, it seems. If the third player has a two-sided die showing 0 and 21, then the D20 and the 3xD6 are still equal.
 
  • #23
jbriggs444
Science Advisor
Homework Helper
11,419
6,032
I see what you mean. The D20 player can't be worse, it seems. If the third player has a two-sided die showing 0 and 21, then the D20 and the 3xD6 are still equal.
I think that against an intentionally sub-optimal and asymmetric third player with something like a 5, 5, 5, 6, 21, 21 that you can get an advantage with a symmetric low variance (3d6) over a symmetric high variance (1d20).
 
  • #24
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
I think that against an intentionally sub-optimal and asymmetric third player with something like a 5, 5, 5, 6, 21, 21 that you can get an advantage with a symmetric low variance (3d6) over a symmetric high variance (1d20).
I did a Python simulation and there seems to be a slight edge to D20 there. For simplicity I didn't count draws, only when one player won.

I can't immediately find any third option that gives 3D6 an advantage over D20.
 
  • #25
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
PS I assigned the third player a fixed score of everything from 1-20 and there is no score that creates an advantage for 3D6. The higher the number, the greater the advantage to D20.

Therefore, there is no combination of numbers for the third player that gives 3D6 an advantage.
 
  • Like
Likes jbriggs444
  • #26
36,429
8,409
There's no harm in running a simulation just to confirm.
Here's a Python simulation with two players as in the original problem.
Python:
from random import choice

SixDie = [1, 2, 3, 4, 5, 6]
TwentyDie = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
SDTotal = 0
TDTotal = 0

NTrials = 1000000
for i in range(0, NTrials+1):
   SDScore = choice(SixDie) +  choice(SixDie) +  choice(SixDie)
   SDTotal += SDScore
   TDScore =  choice(TwentyDie)
   TDTotal += TDScore

print("Six dice average: ", {SDTotal / NTrials})
print("Twenty die average:  ", {TDTotal / NTrials})
Output with 1,000,000 trials is
Code:
Six dice average:  {10.501267}
Twenty die average:   {10.501052}
Running time in Python is about 8 seconds.
 
  • #27
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
The game is who wins the most; not the highest average. The average scores are clearly equal.

Anyway, if a third player is involved, then in general the 20-sided die is better than the three 6-sided dice - or, at least, no worse.
 
  • #28
36,429
8,409
I did a Python simulation and there seems to be a slight edge to D20 there. For simplicity I didn't count draws, only when one player won.
I had forgotten that the aim was to see which was the winner. I edited my Python code to count wins, and saw a slight advantage for 1D20, likely for the reason already given, that for a 20-sided die, there are possible scores of 19 and 20 that can't be matched by three 6-sided dice.

If we modify the game with four 5-sided dice (no such Platonic solid exists, but never mind) vs. the 20-sided die, the four 5-sided dice have a clear advantage. Each has an expected value of 3, so the expected value of four of them would be 12, which is higher than the 10.5 expected value for the 20-sided die.
 
  • #29
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
I had forgotten that the aim was to see which was the winner. I edited my Python code to count wins, and saw a slight advantage for 1D20, likely for the reason already given, that for a 20-sided die, there are possible scores of 19 and 20 that can't be matched by three 6-sided dice.
By a symmetry argument the game is equal. The automatically winning scores of 19 and 20 are counterbalanced by the losing scores of 1 and 2. Likewise scores of 18 and 3 counterbalance etc.
 
  • Like
  • Informative
Likes Master1022 and pbuk
  • #30
FactChecker
Science Advisor
Gold Member
7,437
3,218
The game is who wins the most; not the highest average. The average scores are clearly equal.

Anyway, if a third player is involved, then in general the 20-sided die is better than the three 6-sided dice - or, at least, no worse.
Can you specify how the third player is involved? I am confused by this.
 
  • Like
Likes Master1022
  • #31
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
Can you specify how the third player is involved? I am confused by this.
You have a third player with a third way of scoring. It could be anything. Absolutely anything. Then, excluding draws between two or more players, you count how often each player wins outright.

The hypothesis is that the 20-sided die is never worse than the three 6-sided dice. And, in general, is almost always better.
 
  • #32
FactChecker
Science Advisor
Gold Member
7,437
3,218
You have a third player with a third way of scoring. It could be anything. Absolutely anything. Then, excluding draws between two or more players, you count how often each player wins outright.

The hypothesis is that the 20-sided die is never worse than the three 6-sided dice. And, in general, is almost always better.
Is the third player rolling another 20-sided die, or another set of three 6-sided die, or doesn't it matter?
Before I think hard about it, I want to know what I am thinking hard about. :-)
 
  • #33
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2021 Award
23,219
14,724
Is the third player rolling another 20-sided die, or another set of three 6-sided die, or doesn't it matter?
It could be those or anything at all. They might get a fixed score of 15 every time; or scores of 5 or 10 with equal probability; or, absolutely anything.
 
  • #34
FactChecker
Science Advisor
Gold Member
7,437
3,218
It could be those or anything at all. They might get a fixed score of 15 every time; or scores of 5 or 10 with equal probability; or, absolutely anything.
So, as long as the winner has to beat two others, it is an advantage to have a larger variance than at least one other (and not less than others). Is that what you are saying? I'll buy that.
(That is, given equal means.)
 
Last edited:
  • Like
Likes PeroK
  • #35
pbuk
Science Advisor
Gold Member
3,867
2,244
NTrials = 1000000
for i in range(0, NTrials+1):
That loop will execute 1,000,001 times.
 

Suggested for: Dice Game: 6-sided die vs 20-sided die

Replies
2
Views
635
Replies
3
Views
518
Replies
11
Views
802
Replies
34
Views
1K
Replies
10
Views
448
Replies
27
Views
344
Replies
5
Views
525
  • Last Post
Replies
6
Views
267
Replies
22
Views
370
Top