A standard deck of cards, red and black, is shuffled and dealt face up one at a time. Each red card drawn pays you one dollar and each black card costs you one dollar, and you may tell the dealer to stop at any moment. What is the optimal stopping rule, and how much is the game worth to you?
Reveal solutionHide solution
#The value recursion
Suppose red and black cards remain. Whatever you have banked so far is settled, so let be the expected additional profit under optimal play from this point. You may stop, for nothing more, or draw the next card. It is red with probability , paying and leaving , or black with probability , costing and leaving . So
with and .
#Stop when the edge is gone
Keep drawing while the bracket is positive and stop the instant it reaches . Draining all remaining cards nets exactly , so once black outnumbers the red still to come the deck becomes a drag, but quitting at the right surplus still banks a profit.
#The value
The full deck holds equal red and black, so playing stubbornly to the last card nets exactly zero. The entire worth of the game, about $2.62, is the value of the option to walk away once you are ahead.