Larry Feldman and Fred Morgan
Indiana University of Pennsylvania
Journal of Statistics Education Volume 11, Number 2 (2003), jse.amstat.org/v11n2/feldman.html
Copyright © 2003 by Larry Feldman and Fred Morgan, all rights reserved. This text may be freely shared among individuals, but it may not be republished in any medium without express written consent from the authors and advance notification of the editor.
Key Words: Expected value; Optimization; Probability.
The dice game HOG has been used successfully in a variety of educational situations as an activity that not only introduces students to concepts in probability, statistics, and simulation but also fosters student interest in these concepts. This article presents several areas in the statistics curriculum where important concepts can be dealt with in a hands-on way. These areas include probability as decision making, experimental versus theoretical probability, expected value, and optimization.
This article explains the rules for HOG, gives examples of students’ understanding, develops the probability theory, and identifies a “best” strategy for playing the game. This “best” strategy is developed in the context of fair six-sided dice and then generalized to fair s-sided dice.
The dice game HOG was developed by the Mathematical Sciences Education Board (1994) and is described in Bohan and Schultz (1996). The game has been played with a wide variety of audiences including graduate students in mathematics, Masters of Business Administration (MBA) students, students in undergraduate introductory statistics courses, and elementary and secondary school students. The authors have also played HOG numerous times in Statistics Education through Quantitative Literacy (SEQuaL) workshops for K-12 teachers at sites throughout Pennsylvania. The rules for the game are as follows:
Players take turns rolling dice. Each player may choose any number of dice from one up to the total number of dice available. (We recommend that at least ten dice be available for each player or team.)
The number of dice a player chooses to roll can vary from turn to turn.
The player's score for a turn is zero if at least one of the dice comes up with the value one. Otherwise, the player's score for the turn is the sum of the faces showing on the dice. (Rolling a one sets only the score for that turn to zero, not the total cumulative score for the player.)
A cumulative running total of the scores is kept for each player.
The first player to reach or exceed a predetermined score (100 works well) wins the game. If more than one player reaches the predetermined score on the same turn then the player with the highest point total wins the game.
Table 1 displays a sample of the first four turns in a hypothetical two-person game.
Table 1. Sample of the first 4 turns for a two-person game.
Person A rolls |
Person A's score for that roll |
Person A's cumulative score |
Person B rolls |
Person B's score for that roll |
Person B's cumulative score |
2, 4, 5 | 11 | 11 | 3, 6 | 9 | 9 |
1, 4, 5, 5, 6 | 0 | 11 | 2, 3, 5 | 10 | 19 |
3, 4 | 7 | 19 | 1, 2, 2, 2, 4, 6, 6 | 0 | 19 |
2, 4, 4, 5, 6 | 21 | 39 | 3, 4 | 7 | 26 |
We have found that the dice game HOG provides an activity with accompanying assessments that reflect accepted standards and recommendations in the mathematics education community, such as those described in Mathematical Sciences Education Board (1994).
There exists an obvious trade-off in deciding how many dice to roll. The more dice the player rolls, the less the likelihood of a non-zero score. Yet if a one does not appear on any of the dice rolled, more dice will lead to a greater expected score. The number of dice a player chooses to roll may also depend on how far the player is behind or ahead in the cumulative score, or how close the player and any opponents are to winning. These and other factors provide an interesting activity for students with respect to decision making in the face of uncertainty.
Too often in statistics classes students are provided with results of experiments with little motivation. When playing the game HOG students are excited to try out different strategies. After allowing the students time to play against one another using fair six-sided dice, many students are curious to see if a best strategy exists. To this end, we suggest that each student or small group of students be assigned a fixed number of dice to be rolled. For example, one group must always roll exactly one die while the next group must always roll exactly two dice and so on. A fixed number of turns is assigned to the groups (ten turns works well if using actual dice and we recommend about thirty turns if the dice rolls are being simulated using technology).
After playing the game with fixed numbers of dice and comparing the results, students get the feeling that perhaps somewhere around six dice is the optimum number of dice to roll. However, they see that on any single turn different numbers of dice may produce the best score. This helps students to see that the results of experiments may vary and has motivated our students to investigate the “real” (theoretical) answer, which, as will be shown, is to roll either five or six dice.
For example, one of the authors had his “Probability and Statistics for Elementary and Middle School Teachers” students play the game. After they played the game to cumulative scores of 100 in groups of three to four students, each group was asked to list their top three guesses for the best number of dice to use. The results are given in Table 2.
Table 2. Students’ guesses for the best number of dice after playing once.
Group | Guess of best number | Guess of second best number | Guess of third best number |
A B C D E F |
3 3 4 5 3 4 |
4 2 3 4 2 3 |
2 4 2 3 4 2 |
For the most part, the students did not believe numbers above four would be the best, probably since they tended to exaggerate the effect of getting a zero for any single turn.
The groups were then assigned a fixed number of dice to roll ten times with the goal of finding a mean score per roll. Their findings are in Table 3.
Table 3. Mean values for ten rolls using the same number of dice each time.
Number of dice | Mean score per roll |
1 2 3 4 5 6 |
3.6 5.8 5.8 8.3 8.7 8.9 |
After obtaining these results the students were asked once again to list their top three guesses for the best number of dice to use. Their guesses are summarized in Table 4. Note that these guesses are closer to the theoretical best number of dice, which is either five or six dice.
Table 4. Students’ guesses for the best number of dice after finding mean scores.
Group | Guess of best number | Guess of second best number | Guess of third best number |
A B C D E F |
4 3 5 6 5 5 |
5 5 6 5 4 4 |
3 4 4 4 3 6 |
Within each group, each person then chose a number to stick with for each roll in a new game of HOG. The winner for two of the groups was the person who chose to roll five dice. For another two groups the winner was the person who chose to roll six dice, and for another group the winner rolled ten dice.
Sometimes the concept of expected value is presented as a formula that students do not intuitively understand. For many students a visual approach to expected value can be very meaningful. The possible outcomes and the expected score after rolling just one die are displayed in Table 5.
Table 5. Equally likely scores, rolling one die.
Possible scores | |||||
0 | 2 | 3 | 4 | 5 | 6 |
The expected value for rolling one die can be computed by evaluating
Table 6 shows that when rolling two dice the expected value is 200/36 or approximately 5.6, since the sum of all 36 of the possible outcomes is 200 and each outcome is equally likely.
Table 6. Equally likely scores, rolling two dice.
Die 2 | ||||||
Die 1 | 1 | 2 | 3 | 4 | 5 | 6 |
1 2 3 4 5 6 |
0 0 0 0 0 0 |
0 4 5 6 7 8 |
0 5 6 7 8 9 |
0 6 7 8 9 10 |
0 7 8 9 10 11 |
0 8 9 10 11 12 |
The proportion of non-zero area in this table can be represented by 5/6 of the possible outcomes for Die 1 times
5/6 of the possible outcomes for Die 2, or 25/36. The mean of the non-zero values will be four times the number of dice
Table 7. Expected scores for rolling 1-12 fair six-sided dice.
Number of dice | Probability of a 1 | Score for a 1 | Probability of no 1's | Expected score given no 1's | Expected score |
1 2 3 4 5 6 7 8 9 10 11 12 |
0.167 0.306 0.421 0.518 0.598 0.665 0.721 0.767 0.806 0.838 0.865 0.888 |
0 0 0 0 0 0 0 0 0 0 0 0 |
0.833 0.694 0.579 0.482 0.402 0.335 0.279 0.233 0.194 0.162 0.135 0.112 |
4 8 12 16 20 24 28 32 36 40 44 48 |
3.333 5.556 6.944 7.716 8.038 8.038 7.814 7.442 6.977 6.460 5.922 5.384 |
The graph of the expected score function for rolling up to 40 fair six-sided dice is shown in Figure 1.
Figure 1. Expected scores for rolling from 1 to 40 fair six-sided dice.
These results demonstrate that an optimal strategy is to use either five or six dice for each roll. Of course, a player still might want to change the number of dice to roll if the player is far behind or far ahead in the cumulative score.
One of the authors was using this activity with a class of MBA students when one student asked what an optimal strategy would be for ten-sided dice. This led to the authors' search for the optimal strategy for a fair s-sided dice. The results below demonstrate that the optimal strategy is to use s-1 or s dice when rolling fair s-sided dice.
Let s = the number of sides for the dice being used, k = the number of dice rolled, and p = the probability of no 1 occurring = .
Let X = the sum of the dice = (where X_{i} = the number of dots on the top face of the ith die), and
.
Then U = score per turn = XY.
The expected score per turn is given by
E(U) | = E(XY) = E_{Y}[E(XY)|Y] | |
(since 1 + 2 +... + n = n(n+1)/2) | ||
(1) |
The value of k that maximizes the expected score is also the value that maximizes the natural logarithm of the expected score. Thus,
implies
(2) |
Since k must be an integer, more analysis is required to determine which integer on either side of Equation (2) achieves the maximum.
Since
(see Figure 2), |
it follows that
Figure 2. Graph of Y = 1 / X.
Similarly,
.
Therefore,
.
Using the first derivative test for test values s-1 and s,
it is easy to show that the value for k in
Equation (2) above maximizes the expected score. This number
k is between s-1 and s, which are consecutive integers. Therefore, substituting
.
The number of dice to be rolled, k, that will maximize the expected score per turn is s-1 or s. For standard six-sided dice this means the number of dice to roll to maximize the expected score is five or six.
The result extends to "two-sided" dice, or coin flips. If heads is assigned the value 1, and
tails is assigned the value 2, the expected value of the score is maximized by flipping either one or two coins.
Recall that the score for a turn is zero if at least one "1" (heads) appears.
With one coin, the expected score is
As a different extension, it can be shown that the variance of a player's score per turn is:
Var(U) | = Var(XY) = E_{Y}[Var(XY|Y)] + Var_{Y}[E(XY|Y)] |
The dice game HOG can be played and analyzed by elementary school children up through graduate statistics students. This activity is typical of the kinds of activities that teachers and their students seem to enjoy the most. It is a fun activity that has “hidden” deep probabilistic, statistical, and mathematical concepts. These embedded concepts can be adapted for students at a wide variety of levels.
Bohan, J. F., and Schultz, J. L. (1996) "Revisiting and Extending the Hog Game," The Mathematics Teacher, 89(9), pp. 728-733.
Mathematical Sciences Education Board (1994), Measuring Up: Prototypes for Mathematics Assessment, Washington, D.C.: National Academy Press.
Larry Feldman
Mathematics Department
Indiana University of Pennsylvania
Indiana, PA 15701
USA
lmfeldmn@iup.edu
Fred Morgan
Mathematics Department
Indiana University of Pennsylvania
Indiana, Pennsylvania 15701
USA
fwmorgan@iup.edu
Volume 11 (2003) | Archive | Index | Data Archive | Information Service | Editorial Board | Guidelines for Authors | Guidelines for Data Contributors | Home Page | Contact JSE | ASA Publications