Stop Drawing From a Red and Black Deck Optimally

Last updated: November 29, 2026

Quick Overview

A shuffled deck has r red and b black cards. You flip cards one at a time, winning $1 for each red and losing $1 for each black, and may stop at any time. Find the value of the game for 2 red and 2 black, describe the optimal strategy, and discuss a full 26 and 26 deck.

Akuna Capital
Statistics & Math
Quantitative Researcher
Akuna Capital
November 29, 2026
Quantitative Researcher
Onsite
Statistics & Math
Hard

0

0

0 solved


A shuffled deck has r red and b black cards. You flip cards one at a time, winning $1 for each red and losing $1 for each black, and may stop at any time. Find the value of the game for 2 red and 2 black, describe the optimal strategy, and discuss a full 26 and 26 deck.

Optimal stopping questions show up in Akuna Capital's quant and trader onsites because they test the same dynamic programming that prices American options. The interviewer looks for a correct recursion with a max against stopping, hand computation on a small deck, and intuition for why the option to stop has value even when the deck is fair.

What the Interviewer Expects
  • Define V(r, b) as the value with r red and b black left
  • Write V = max(0, draw value) with correct boundary cases
  • Compute V(2, 2) = 2/3 by hand
  • Explain why a fair deck has positive value
  • Describe the strategy as a threshold on the remaining deck and connect it to early exercise
Key Topics to Cover
optimal stopping
dynamic programming
expected value
American options
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • Would you pay $2.50 to play with a full deck?
  • How does the value change if you must stop after at most 10 cards?
  • Contrast with guessing whether the next card is red: can you beat 50% there?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Stopping is free and you can stop before drawing any card. Payoff is cumulative, so only the remaining composition matters for future decisions....

Approach

Let V(r,b)V(r, b) be the expected future gain with rr red and bb black left. Boundaries: V(0,b)=0V(0, b) = 0 (stop), V(r,0)=rV(r, 0) = r (draw everything). Otherwise


Submit Your Answer
Markdown supported

Related Questions