Learn / Library / Expected value
Optional rerolls of a die
You roll a fair -sided die and may reroll it up to times, seeing each result before you decide. The last roll is your payoff, so if you use both rerolls the third roll counts. Playing optimally, what is the expected payoff?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Work backwards: find the value with roll left, then with rolls left, then with rolls left.
Solution
- With roll left the value is .
- With rolls left you keep faces above , which gives value .
- With rolls left you keep faces above , that is or , with probability and average , contributing .
- Otherwise, with probability , you reroll and get , contributing .
- The total is .
Answer: