Probability · martingales

Optional stopping: when can you stop a fair game?

If a game is fair at every step, can you make its expected payoff positive by choosing when to stop? Optional stopping provides a powerful way to answer that question, but its conditions matter. The same calculation that solves a two-boundary hitting problem fails if you wait without limit for a one-sided target.

Stopping at a boundary changes the win chance

Chance of reaching +a before −1 (%)

Fair simple random walk started at zero, stopped at +a or −1; bounded stopped outcomes justify the expectation calculation.

What makes a stopping time?

A process MnM_n is a martingale with respect to an information sequence Fn\mathcal F_n when it is integrable, known at time nn, and satisfies

E[Mn+1∣Fn]=Mn.\mathbb E[M_{n+1}\mid\mathcal F_n]=M_n.

A stopping time τ\tau is a rule for which the event {τ≤n}\{\tau\le n\} is known from information available by time nn. “Stop the first time the walk reaches 5” qualifies. “Stop the day before the highest price this year” generally does not: identifying that day requires future information.

One safe version of optional stopping says that if τ\tau is bounded by a deterministic integer NN, then

E[Mτ]=E[M0].\mathbb E[M_\tau]=\mathbb E[M_0].

The proof writes the stopped change as ∑k=0N−11{τ>k}(Mk+1−Mk)\sum_{k=0}^{N-1}\mathbf1_{\{\tau>k\}}(M_{k+1}-M_k). The decision to continue is known at time kk, so every term has expectation zero. For an unbounded stopping time, passing from τ∧N\tau\wedge N to τ\tau requires an additional argument; almost-sure finiteness alone is not enough.

Two boundaries: a worked example

Let a fair random walk start at zero and stop when it hits either +3+3 or −2-2. The stopping time is finite almost surely: from any interior state there is a fixed positive chance of reaching a boundary within four steps. The stopped walk is bounded between −2 and +3, so bounded convergence allows us to apply optional stopping to τ∧N\tau\wedge N and let NN grow.

If pp is the probability of hitting +3 first, then

0=E[Mτ]=3p−2(1−p),p=25.0=\mathbb E[M_\tau]=3p-2(1-p),\qquad p=\frac25.

More generally, with upper boundary +a+a and lower boundary −b-b for positive integers a,ba,b, the upper hitting probability is b/(a+b)b/(a+b). The result uses the terminal values and the martingale property; it does not require enumerating all possible paths.

Why “wait until you win” is different

Now remove the lower boundary and stop a fair random walk when it first reaches +1. The walk reaches +1 almost surely, so the terminal value is 1 almost surely. Yet its initial value is 0. There is no contradiction: the stopping time is unbounded, the stopped values before hitting are not bounded below, and the limiting step in the optional-stopping argument fails. In fact, the expected hitting time is infinite.

The finite versions remain fair: stopping at τ∧N\tau\wedge N gives expected value zero for every NN. Rare paths that have not yet hit +1 can have large losses and offset the frequent +1 outcomes. Almost-sure convergence of stopped values does not by itself guarantee convergence of their expectations.

Conditions before calculation

  • A stopping time must be determined by information available at the time of the decision.
  • A finite stopping time almost surely is not necessarily bounded, nor does it necessarily have finite expectation.
  • A bounded stopping time is one sufficient condition, not the only one. For example, uniform integrability of the martingale is another route under the appropriate theorem.
  • In finance, discounted prices may be martingales under a specified pricing measure and assumptions. That is a pricing statement; it does not say real-world expected returns are zero.

Practice

InformationIs the first time a stock price exceeds 100 a stopping time with respect to its observed price history?
Show answer

Yes, assuming the price is observed at the decision times: whether the threshold has already been crossed is known from the history so far.

HittingA fair walk starts at zero and stops at +4 or −6. What is the probability it hits +4 first?
Show answer

The stopped walk is bounded, and 4p−6(1−p)=04p-6(1-p)=0. Hence p=6/10=0.6p=6/10=0.6.

ConditionsWhy can't you conclude E[Mτ] = E[M0] merely because τ is finite almost surely?
Show answer

The limit of stopped martingale values need not preserve expectation. An additional condition, such as bounded stopped values in the example, is needed.

Further reading: MIT OpenCourseWare, Introduction to Stochastic Processes, Lecture 18; Doob’s Optional Stopping Theorem.

Related: First-step analysis and the reflection principle.