[Math] Rolling a $6$-sided dice indefinitely until lower than the previous throw

contest-mathprobabilitysequences-and-series

You will play a game with a fair 6-sided die.

You will throw the die and as long as the result of the throw is greater than or equal to the previous throw, you will continue throwing. If the throw is lower than the previous one, you will stop and get as many points as the sum of all throws, including the last one.

For example, if you get 2, 5, 5, and 3 as a result of 4 throws, the game will end with 15 points.

What is the expected value of the points you will get at the end of the game?

Best Answer

Consider the expected number of points you will obtain after rolling a particular number.

e.g. Suppose we have just rolled a 6. We need to roll another 6 to keep playing, otherwise we stop. Using conditional expectation, we can compute the number of future points we expect to obtain, $E_6$: $$E_6 = \frac{1}{6}(E_6 + 6) + \frac{5}{6}\times 3.$$

The first term corresponds to rolling a 6, and we are back in the same position as before, just with 6 extra points. The second term gives expected number of points obtained, given that we roll a lower number and stop playing. We solve this to obtain $$E_6 = \frac{21}{5}.$$

Now suppose that, in a new game, we have just rolled a 5. What is the expected number of points from this point, $E_5$? Using the same conditional expectation rules as before: $$E_5 = \frac{1}{6}(E_5+5) + \frac{1}{6}(E_6+6) + \frac{4}{6} \times \frac{5}{2}.$$ Since we know $E_6$ from above, we can now solve for $E_5$.

Repeat this for $E_4, \dots, E_1$, and we know the expected number of future points given the most recent roll number.

Finally, the expected number of points, $E$, will be the conditional sum of these values, i.e.

\begin{equation} E = \sum_{n=1}^6 \frac{1}{6}(E_n + n). \tag{1} \end{equation}

Edit: following an observation by Taner, I thought I'd add a few more lines.

After some generalizing and rearranging, we obtain $$E_n = \frac{1}{5}\left(\sum_{m=n+1}^6 E_m + 21\right),$$ and we can set up a recurrence relation for $E_n$ so we don't have to do this sum every time to compute it. We have

\begin{align} E_{n+1} &= \frac{1}{5}\left(\sum_{m=n+2}^6 E_m + 21\right) \\ &= \frac{1}{5}\left(\sum_{m=n+1}^6 E_m + 21 - E_{n+1}\right) \\ &= E_n - \frac{1}{5}E_{n+1}, \end{align}

which we rearrange to obtain $$E_{n+1} = \frac{5}{6}E_n,$$ which has solution $$E_n = C \left(\frac{5}{6}\right)^n,$$ where $C$ is some constant, for which we can solve by setting $n=6$ and using our value of $E_6$. We obtain (allowing for possible arithmetic errors made by me) $$E_n = \frac{21}{5}\left(\frac{5}{6}\right)^{n-6}.$$

We can substitute this into Equation (1) and use geometric and arithmetic sum formulae to obtain the final answer.

Edit 2: as Alex Zorn pointed out, we don't even need to do this geometric and arithmetic sum stuff in Equation (1). Note that the game is the same before and after rolling a 1, so this tells us straight away that $$E = E_1 = \frac{21}{5}\left(\frac{5}{6}\right)^{-5} = \frac{163296}{15625} \approx 10.45.$$

Related Question