Learn / Library / Probability
Keep or reroll
You roll a fair -sided die and are paid the number shown. After seeing any roll, you may reject it and roll again, but you may roll at most times in total, and the last roll must be kept if you reach it. Playing optimally to maximise the expected payoff, what is the expected payoff? Give an exact fraction in lowest terms.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Work backwards: the value of continuing is the value of the game with one fewer roll left.
Solution
- With roll left the expected payoff is .
- With rolls left, keep a result only if it beats , which means , or . So .
- With rolls left, keep a result only if it beats , which means or . Results to are rerolled.
- So .
- This reduces to .
Answer: