# Expected value of a dice game

Say that I have a dice game. You can roll the die first and then have two choices.

First, take the dollar amount of the number that shows up (if you rolled a 5, you get $5 ). Second, you can re-roll. However, if you decide to take the second choice, you are obligated to take whatever you get in the second roll (if you rolled a 1 in your second try, you must take$1, regardless of what you got in the first roll).

You need to pay for this game before you enter the game. Assuming that you are risk neutral, what's the maximum amount that you would like to pay for this game?

• This reads a bit like a rather routine textbook question; is this for some subject? Commented Oct 26, 2014 at 22:12
• Wut? The question does not give me any way to pay a bet or lose money, why do I need to break even? I'll just keep rolling and get whatever in the first roll in order to maximize my gain in limited time until the dealer finds out this is a bad deal. Commented Oct 26, 2014 at 22:14
• @Penguin_Knight It's actually an interview question. Let's assume that you need to pay for this game before you play. What's the maximum amount that you'd like to pay, assuming that you're risk neutral. Commented Oct 26, 2014 at 22:16
• Yes indeed. Great explanation! Commented Oct 26, 2014 at 22:32

$\text{E}(X) = \sum_{i=1}^{n}{\text{E}(X | A_i) \text{P}(A_i)}\,,$
at that link (where $A_i$ here are the two possibilities 'roll retained' and 'die rerolled' for $i=1,2$ respectively, and which cover all possible cases of $A$) and $X$ is the amount won in the game. All the probabilities and expectations for that formula are given above.