In Hog, two players alternate turns trying to be the first to end a
turn with at least 100 total points. On each turn, the current player
chooses some number of dice to roll, up to 10. That player’s score for
the turn is the sum of the dice outcomes. However, a player who rolls
too many dice risks:
Sow Sad. If any of the dice outcomes is a 1, the
current player’s score for the turn is 1.
In this paper, we show that for an
n-sided
die, the expected value is maximized by rolling
n
dice for every natural number
n≥2.
Therefore, when there is no limit to the number of dice that can be
rolled, the optimal choice for an
n-sided
die is to roll
n
dice.
Derive the expected turn
score
For one six-sided die,
P(1)=61,P(¬1)=65
And the total expectation is
E(X)=61(1)+61(2+3+4+5+6)
Grouping the five outcomes that are not
1,
E(X)=61(1)+65(4)=3.5
where
4
is the average of the outcomes
2
through
6.
We now generalize this idea to rolling
m
dice, each with
n
sides. With multiple dice, Sow Sad occurs if at least one of the
m
dice rolls a
1.
Then since the dice are independent, the probabilities become
P(no 1s)=(nn−1)m
and
P(at least one 1)=1−(nn−1)m
From the law of total expectation, if a set of events is mutually
exclusive and covers every outcome, then the expected value is the sum
of the expected value given each event
Ai
multiplied by the probability of that event.
E(X)=i∑P(Ai)⋅E(X∣Ai)
Sow Sad and its complement are two such events, so
E(X)=P(at least one 1)E(X∣at least one 1)+P(no 1s)E(X∣no 1s)
Then since Sow Sad gives you 1 point,
E(X∣at least one 1)=1
Therefore,
E(X)=[1−(nn−1)m](1)+(nn−1)mE(X∣no 1s)(1)
To compute
E(X∣no 1s),
we start by thinking in terms of a single die.
Let
Y
be the outcome of rolling
1
die given that it is not a
1,
so
Y
is equally likely to be any of
2
through
n.
On a six-sided die, there are
6−1=5
ways to roll between a
2
and
6,
hence
P(Y=i)=6−11.
To generalize to the probability of rolling an
n-sided
die from
2
to
n,
we use
P(Y=i)=n−11.
The expected value of this is then
E(Y)=i=2∑ni(n−11)=n−12+3+⋯+n
To calculate the sum of the first
n
positive integers, we use
2n(n+1).
And since we exclude the outcome
1,
we subtract it from that sum and get
E(Y)=n−12n(n+1)−1=2(n−1)n(n+1)−2=2(n−1)(n−1)(n+2)=2n+1
Then note that conditioned on no 1s, each of the
m
dice is an independent copy of
Y,
so the distribution
(X∣no 1s)
is the same as the “sum” (convolution) of rolling
m
of the
Y
dice:
(X∣no 1s)=m timesY1+Y2+⋯+Ym.
We can then use the linearity of expectation:
E(X∣no 1s)=E(m timesY1+Y2+⋯+Ym)=m⋅E(Y)=m⋅(2n+1)
Plugging into equation (1), the expected value is
E(X)=[1−(nn−1)m](1)+(nn−1)mm(2n+1)=1+(nn−1)m(2m(n+2)−1)(2)
We write
E(m,n)
when we want to make the dependence on
m
and
n
explicit.
Figure 1. Expected turn score against the number of
dice rolled, for n = 4, 6, and 10. Each curve is maximized at
exactly m = n.
Prove the maximum is at
m=n
For a fixed number of sides, the line in Figure 1 goes up and then
down. We want to determine where the greatest expectation is.
We define
Δ=E(m+1,n)−E(m,n),
or the difference in expectation between rolling
m+1
dice and rolling
m
dice.
Substituting equation (2) into this definition and simplifying, we
have
Δ=(nn−1)m2nn(n+1)−m(n+2)
Since
(nn−1)m
and
2n
are always positive, the sign of
Δ
depends only on
n(n+1)−m(n+2)
When
Δ>0,
the expectation is increasing on the graph and
E(m,n)<E(m+1,n).
Therefore
Δ>0
exactly when
integerm<n+2n(n+1)=integern−1+fractionaln+22
Since
n+22
is fractional,
0<n+22<1for n≥2
and adding
n−1
to all sides,
n−1<n−1+n+22<n
Since
n−1
and
n
are integers,
n+22
is a fraction, and
m<n−1+n+22,
we have
m≤n−1⟺Δ>0
To illustrate this, imagine a number line with
m
on the left and
n−1+n+22
(integer plus a fraction) on the right. Since
m
is the integer right before
n−1+n+22,
m
must be less than or equal to the integer
n−1.
Since
n−1+n+22
is never an integer,
Δ
is never exactly
0.
Similarly, by negating terms of the biconditional (and that
m,n
are integers),
Δ<0⟺m≥n
Since
Δ
represents the change from
m
to
m+1,
these statements mean
E(m,n)
is increasing until
m=n,
and then exactly at
m=n,
we have
E(m=n,n)>E(m=n+1,n),
hence all values
E(m>n,n)
are less than
E(m=n,n),
and this means
n
is optimal.
For intuition, on the expectation graph, one can imagine expectation
increasing when
Δ>0
and expectation decreasing when
Δ<0.
The maximum is the turning point when
m
switches from being less than or equal to
n−1
to being greater than or equal to
n,
which implies
n
is optimal.