You are given a single die. When you roll the die, you have two choices:
- End the game here, in which case the number you just rolled is your final score.
- Continue the game and roll once again, after which you will face these same two choices.
You can roll the die a maximum of 4 times. After the fourth roll, you will not have a choice and will have to accept whatever you rolled as your final score.
There are two questions to answer here:
- What is the optimal strategy to maximize your final score?
- What is the expected value of the final score?
I was asked this question in an interview and struggled to work it out. I ended up getting the job anyway, but am still interested to figure out the approach to this question. When I was unable to answer this question, my interviewer said that he didn't expect me to answer this question as it needs some intuition from Markov chains, which I had no prior exposure to.
You continue if the expected value of continuing is higher than your current role.
On the third roll, the expected value of continuing equals $$C_{3}=\frac{1}{6}(1+2+3+4+5+6)=\frac{7}{2}=4-\frac{1}{2},$$ so you continue if you roll lower than $4$.
On the second roll, the expected value of continuing equals $$C_{2}=\frac{1}{6}(4+5+6)+\frac{1}{2}C_{3}=\frac{17}{4}=5-\frac{3}{4},$$ so you continue if you roll lower than $5$.
On the first role, the expected value of continuing equals $$C_{1}=\frac{1}{6}(5+6)+\frac{2}{3}C_{2}=\frac{22}{12}+\frac{51}{12}=\frac{71}{12}=6-\frac{1}{12},$$ so you continue if you roll lower than $6$.