Quant Memo
Core

The Red-Black Card Stopping Game

A shuffled deck is turned over one card at a time. You can stop whenever you want and bet the next card is red. Is there a strategy that beats 50/50, and if so, what edge does it give you?

Prerequisites: The Secretary Problem and Optimal Stopping

A standard 52-card deck (26 red, 26 black) is shuffled and turned face-up one card at a time. At any point before the last card, you may say "stop" — and you win if the next card is red. You must stop before the deck runs out. Does any stopping strategy beat simply calling it on the very first card, which wins with probability 1/2?

Think about it before reading on. The surprising answer is no — and proving why not is one of the cleanest applications of a martingale-style argument you'll see in an interview.

The naive intuition, and why it's wrong

It feels like there should be an edge: if you've watched 20 red cards and only 5 black ones come off the top, surely the remaining deck is black-heavy and you should wait to bet after a red-heavy run flips the odds your way? That intuition is correct in spirit — the conditional probability of red genuinely does drift above and below 1/2 as the deck depletes unevenly. The surprising fact is that no matter how cleverly you choose when to stop based on what you've seen so far, your unconditional win probability, averaged over all possible shuffles, is still exactly 1/2.

The fairness argument

Here's the key equivalence: betting "the next card is red" is exactly the same wager as betting "a uniformly random position in the deck holds a red card." Before any cards are dealt, every one of the 52 positions is equally likely to be any of the 52 cards, by symmetry of the shuffle — position 17 is red with probability 26/52 = 1/2, exactly like position 1. Your stopping rule only decides which position you're betting on; it can't change the fact that each position, examined in isolation before the shuffle, is red with probability exactly 1/2.

52 positions, each red with probability 1/2 before any card is revealed stop here? or here? every position was equally likely to be red before the shuffle — the stopping rule can't retroactively change that
Your stopping rule chooses which position you're betting on, but every position, unconditionally, carries the same 1/2 odds of being red.

More formally: let SS be your (possibly random, possibly history-dependent) stopping position, chosen using only information from cards already revealed. Since SS depends only on the past and not on the future card, and the identity of card S+1S+1 is symmetric under swapping any two not-yet-revealed cards, the event "card S+1S+1 is red" has probability exactly 26/5226/52 no matter what rule generated SS. This is a martingale argument: the process "fraction of remaining cards that are red" is a fair game — your information updates as cards are revealed, but there's no way to convert that information into a systematic edge on the next single card, because the shuffle was uniform and every card is equally likely to occupy every remaining slot.

Worked check: a tiny deck

Take a 4-card deck: 2 red (R), 2 black (B). Verify with brute force that "always bet on card 1" and "wait, then bet after seeing exactly one card" both give exactly 1/2.

There are (42)=6\binom{4}{2} = 6 equally likely arrangements of 2 R's and 2 B's: RRBB, RBRB, RBBR, BRRB, BRBR, BBRR.

Strategy A — bet on card 1 always. Red is card 1 in RRBB, RBRB, RBBR — 3 of 6 shuffles. Win probability 3/6=1/23/6 = 1/2. ✓.

Strategy B — "stop as soon as you've seen a black card, then bet the next card is red" (skip position 1 if it's already red, since you want to catch a black-heavy stretch). Apply it card by card to each shuffle: RRBB → first card R, rule says only stop after seeing black, so wait; second card R, still wait; third card B — stop, bet card 4 is red, but card 4 is B: lose. RBRB → first card R, wait; second card B — stop, bet card 3: it's R: win. RBBR → first R, wait; second B — stop, bet card 3: it's B: lose. BRRB → first card B — stop immediately, bet card 2: it's R: win. BRBR → first card B — stop, bet card 2: it's R: win. BBRR → first card B — stop, bet card 2: it's B: lose.

Tally: win, lose, lose, win, win, lose — 3 wins out of 6, exactly 1/2 again. The "smarter" strategy, despite reacting to what it's seen, nets the identical 1/2.

Any stopping rule based only on cards already seen wins with probability exactly (red cards)/(total cards) — the same as betting blind on card 1. Watching the cards changes what you believe about the next card, but it cannot change your unconditional win rate, because the position you land on was always equally likely to be red before the shuffle happened.

The trap is confusing "conditional probability shifts as you observe" (true — after seeing 20 reds and 5 blacks, the remaining deck really is black-heavy) with "unconditional win probability shifts" (false). The fact that your beliefs update doesn't mean you can exploit those updates to beat 1/2 on average, because the very same shuffle that made you excited when black ran hot is, symmetrically, exactly as likely to have run red hot instead.

The generalizable technique

The reusable move — recasting "when do I bet" as "which fixed position am I effectively betting on" — is a fairness or symmetry argument, the same family of tool used to show a fair coin's stopping rules can't beat 50/50 in a related problem, and it's the seed of why trading strategies that only use past price information can't have an edge on an efficiently random next tick without some genuine informational advantage. Whenever a puzzle asks "can cleverness beat the base rate," check first whether the underlying process is exchangeable — if every future outcome was equally likely under the original random draw, no amount of watching changes the unconditional odds.

Related concepts

Practice in interviews

Further reading

  • Chow, Robbins & Siegmund, Great Expectations: Theory of Optimal Stopping
  • Ferguson, Optimal Stopping and Applications (online notes, ch. 1)
ShareTwitterLinkedIn