Red/black card game
A shuffled deck is turned over one card at a time. Every red card pays you $1, every black card costs you $1. You can stop whenever you like and keep what you have. When should you stop?
Why trading firms ask this
A full deck has as many red as black cards, so drawing every card always ends at $0. The edge comes from stopping: when more red cards have come out than black, the rest of the deck is tilted against you, and the expected value of drawing on can fall below what you already have. The best strategy keeps going while the expected value of continuing is positive, and earns about $2.62 a round on average.
It's the same question a trader faces every day: is the expected value of staying in this trade still better than taking what you have?
Further reading
- Problem 14 (Gwern) · A friendly walk-through of this exact interview puzzle, with code. Gets the same $2.62.
- On a simple optimal stopping problem (Boyce, 1973) · The classic paper: exact stopping points for decks of up to 200 cards. PDF.
- With or without replacement? (Glover) · A modern research twist on the game, known to mathematicians as Shepp's urn.
All free to read. Links open on other sites.
You're paid what the die shows, and you may roll again twice. Keep it or risk it?