4.1.4 problem 4

Let’s start defining some convenient r.v.s for this problem:

The optimal strategy is to stop if the value of the last roll is greater than the expected winning if one keeps playing. In other words, keep rolling if doing so brings winnings that are, on average, greater than the last roll:

1.
If , STOP after 1 roll.
2.
Else if , STOP after 2 rolls.

Since the rolls are independent, we can calculate the expectations of and in reverse order.

The winning is equal to the value of the third roll:

This reveals the second part of the optimal strategy: stop after 2 rolls if .

The PMF of is given by

Using those probabilities to calculate the expected winning

from the definition of expectation:

Now we can fully describe the optimal strategy, which maximizes the expected winnings:

1.
If the value of the first roll is 5, STOP after 1 roll.
2.
Else if the value of the second roll is 4, STOP after 2 rolls.

Finally, let’s calculate the expected winning of the optimal strategy. The PMF of is calculated below

Plugging these probabilities into the definition of expectation: