CONTENTS

Stopping Times

Motivation: why this matters in quant finance

A stopping time is a random time τ\tau at which you decide to "stop watching" a process — using only information available up to time τ\tau. No peeking at the future. This is the exact mathematical formalisation of a trading rule: the rule that says "exit when the moving average crosses the price," "close the position if drawdown exceeds 5%," "exercise the American option the moment the continuation value drops below intrinsic." Every rule an algorithmic trader writes is a stopping time, and every theorem about them tells you something about what your rule can and cannot achieve.
Stopping times are also the glue between martingales and actual computations in quant finance. The optional stopping theorem says that fair games stay fair under any reasonable stopping rule — but you cannot even state that theorem without knowing what a stopping time is. First-passage problems — "what is the probability the stock hits KK before TT?", "what is the expected time to trigger a VaR breach?", "when does a barrier option knock in?" — are all stopping-time problems, typically solved by martingale methods applied at the stopping time.
More subtly, stopping times appear in the mathematical definition of localisation — the trick used to extend Itô's lemma and stochastic integration from bounded processes to possibly-exploding ones. Local martingales, semimartingales, and BSDE solutions all depend on the ability to stop a process at a well-chosen random time. Without stopping times the whole modern theory of stochastic calculus collapses.

The informal idea

Fix a filtration (Fn)(\mathcal{F}_n) — the information flow through time. A stopping time τ\tau with values in {0,1,2,}{}\{0, 1, 2, \ldots\} \cup \{\infty\} is a random time such that, at every deterministic time nn, you can decide from the data available at time nn whether τ\tau has already occurred. Formally:
{τ=n}Fnfor every n0.\{\tau = n\} \in \mathcal{F}_n \quad\text{for every } n \ge 0.

Equivalent and often more convenient:

{τn}Fnfor every n0.\{\tau \le n\} \in \mathcal{F}_n \quad\text{for every } n \ge 0.

Both say the same thing: the event "has the stopping triggered yet?" is Fn\mathcal{F}_n-measurable at every nn. You don't need the future to know whether you have stopped.

Examples you already understand:
  • Deterministic times. τ5\tau \equiv 5 is a stopping time: {τn}=\{\tau \le n\} = \emptyset for n<5n < 5 and =Ω= \Omega for n5n \ge 5; either way the event is in Fn\mathcal{F}_n.
  • First hitting time. τ=min{n:Sn100}\tau = \min\{n : S_n \ge 100\} for a random walk SnS_n. At time nn, you know the whole path up to nn, so you know whether SnS_n has reached 100 yet.
  • A non-example. τ=\tau = "the time of the maximum of SnS_n over n[0,N]n \in [0, N]." Not a stopping time: at time n=5n = 5 you don't know whether S5S_5 is the future maximum; that requires looking ahead.

The "no peeking" rule is what makes stopping times mathematically useful. You cannot engineer a winning strategy by choosing a stopping time that somehow knows the future — the optional stopping theorem makes this precise.

Formal definitions and properties

Discrete-time stopping time

Given a filtration (Fn)n0(\mathcal{F}_n)_{n \ge 0}, a map τ:Ω{0,1,2,}{}\tau: \Omega \to \{0, 1, 2, \ldots\} \cup \{\infty\} is a stopping time if {τn}Fn\{\tau \le n\} \in \mathcal{F}_n for every n0n \ge 0.

Continuous-time stopping time

For a right-continuous filtration (Ft)t0(\mathcal{F}_t)_{t \ge 0}, a map τ:Ω[0,]\tau: \Omega \to [0, \infty] is a stopping time if {τt}Ft\{\tau \le t\} \in \mathcal{F}_t for every t0t \ge 0. Equivalently (in the right-continuous case): {τ<t}Ft\{\tau < t\} \in \mathcal{F}_t for every tt.

σ\sigma-algebra at a stopping time

The information available at τ\tau is:

Fτ:={AF:A{τn}Fn for every n}.\mathcal{F}_\tau := \{A \in \mathcal{F} : A \cap \{\tau \le n\} \in \mathcal{F}_n \text{ for every } n\}.

Intuitively, AFτA \in \mathcal{F}_\tau iff you can decide whether AA has occurred using only information up to the random time τ\tau.

Key facts:

  • τ\tau is Fτ\mathcal{F}_\tau-measurable (you know τ\tau itself at time τ\tau).
  • If XnX_n is adapted and τ<\tau < \infty a.s., then XτX_\tau is Fτ\mathcal{F}_\tau-measurable.

Combinators

Stopping times compose nicely. If σ,τ\sigma, \tau are stopping times, then so are:

  • στ:=min(σ,τ)\sigma \wedge \tau := \min(\sigma, \tau) — "stop whichever triggers first."
  • στ:=max(σ,τ)\sigma \vee \tau := \max(\sigma, \tau) — "stop once both have triggered."
  • σ+c\sigma + c for a deterministic constant cc — "wait cc more steps after σ\sigma."
But σ+τ\sigma + \tau is not necessarily a stopping time — you cannot schedule "stop at σ\sigma plus a value of τ\tau that is revealed later." Always check the filtration structure carefully.

Canonical examples

1. First hitting time of a level

For a random walk SnS_n and a set BRB \subseteq \mathbb{R}, the first hitting time of BB is
τB=inf{n0:SnB},\tau_B = \inf\{n \ge 0 : S_n \in B\},

with the convention inf=\inf\emptyset = \infty. Standard argument that τB\tau_B is a stopping time:

{τBn}=k=0n{SkB}Fn,\{\tau_B \le n\} = \bigcup_{k=0}^n \{S_k \in B\} \in \mathcal{F}_n,

because each {SkB}\{S_k \in B\} is in FkFn\mathcal{F}_k \subseteq \mathcal{F}_n.

2. First exit time of an interval

For a random walk SnS_n starting at x(a,b)x \in (a, b), the first exit time of (a,b)(a, b) is τ=min(τa,τb)\tau = \min(\tau_a, \tau_b), where τa=inf{n:Sna}\tau_a = \inf\{n : S_n \le a\} and τb=inf{n:Snb}\tau_b = \inf\{n : S_n \ge b\}. As the minimum of two stopping times, τ\tau is a stopping time. This is the gambler's ruin stopping time.

3. American option exercise time

An American option can be exercised at any time τT\tau \le T chosen by the holder based on available information. The holder's optimisation problem is to maximise EQ[erτg(Sτ)]\mathbb{E}^{\mathbb{Q}}[e^{-r\tau}g(S_\tau)] over all stopping times τT\tau \le T, where gg is the payoff and StS_t is the underlying. The optimal exercise time is a stopping time — the holder cannot foresee the future and must choose using information available at each moment.

4. Drawdown stop

In a trading strategy with wealth XnX_n, define τ=inf{n:Xn0.95maxknXk}\tau = \inf\{n : X_n \le 0.95\cdot \max_{k \le n}X_k\} — "stop the moment drawdown exceeds 5%." This is a stopping time: the running maximum and the current value are both in Fn\mathcal{F}_n.

5. A non-stopping time

Last hitting time. τ=sup{nN:Sn=0}\tau^* = \sup\{n \le N : S_n = 0\} — "the last time the walk returns to zero before horizon NN." At n<Nn < N, you do not know whether the walk will later return to zero, so {τn}\{\tau^* \le n\} is not in Fn\mathcal{F}_n. The last zero is a beautiful mathematical object (its distribution is the arcsine law for Brownian motion) but it cannot be used as a trading trigger.

Stopped processes

Given an adapted process (Xn)(X_n) and a stopping time τ\tau, the stopped process is
Xnτ:=Xnτ.X_n^\tau := X_{n \wedge \tau}.
After time τ\tau, XnτX_n^\tau stays at its value at time τ\tau. Key fact: if (Xn)(X_n) is a martingale, so is (Xnτ)(X_n^\tau) (Doob's stopping theorem). The stopped process inherits the martingale property — this is the key mechanism that lets the optional stopping theorem work.
Discrete-time proof (one line): Xn+1τXnτ=(Xn+1Xn)1τ>nX_{n+1}^\tau - X_n^\tau = (X_{n+1} - X_n)\cdot \mathbf{1}_{\tau > n}, and 1τ>n\mathbf{1}_{\tau > n} is Fn\mathcal{F}_n-measurable (since τ\tau is a stopping time). So conditionally on Fn\mathcal{F}_n:
E[Xn+1τXnτFn]=1τ>nE[Xn+1XnFn]=0.\mathbb{E}[X_{n+1}^\tau - X_n^\tau \mid \mathcal{F}_n] = \mathbf{1}_{\tau > n}\cdot \mathbb{E}[X_{n+1} - X_n \mid \mathcal{F}_n] = 0.

Done.

Why stopping times are the right abstraction

Four reasons stopping times earn their prominence in the stochastic-processes toolkit:

  1. They formalise "no peeking." Any theorem about "whenever you stop, the process is fair" naturally requires the stop to be a stopping time.
  2. Stopped processes preserve structure. Martingales, submartingales, local martingales — all remain in class under stopping. This is what makes localisation work: to deal with an unbounded or exploding process, stop it at a carefully chosen τn\tau_n \uparrow \infty, prove things for the bounded stopped process, then pass to the limit.
  3. First hitting times describe boundary events. Barrier options, lookback options, default times in credit modelling, triggers in pairs trading — all are first hitting times. Closed-form formulas for their distributions come from martingale methods applied at the stopping time.
  4. Stopping times are what make stochastic integration well-defined in the Itô / semimartingale theory. Without them, the move from bounded integrands to the standard L2L^2 theory is impossible.

Common confusions and pitfalls

"Any random time I choose is a stopping time." No. Only times that are decidable from the past and present. The classic mistake: "let τ\tau be the time I would have bought at the minimum in hindsight." Not a stopping time. Not a legitimate trading rule. The optional stopping theorem does not apply.
"The σ\sigma-algebra Fτ\mathcal{F}_\tau is the natural filtration of XnτX_{n \wedge \tau}." Nearly — but be careful: Fτ\mathcal{F}_\tau is the information available at the random time τ\tau, which is a more subtle object than "the information available at some deterministic time." For stopping times, Fτ\mathcal{F}_\tau behaves well; for other random times it may not even be defined.
"Stopping times are closed under addition." Only in restricted senses. τ+c\tau + c for a deterministic constant cc is a stopping time. σ+τ\sigma + \tau for two stopping times can fail unless σ\sigma is decided first. Think carefully about what information is needed to know σ+τn\sigma + \tau \le n.
"First hitting time of an open set is a stopping time in continuous time." Actually true, but it requires right-continuity of the filtration. In left-continuous or "bare" filtrations, hitting open sets can fail to be a stopping time. Always work with right-continuous filtrations for continuous-time hitting arguments.
"Stopping times are always finite." Not necessarily. A random walk's first hitting time of a high level may be \infty with positive probability; the optional stopping theorem requires additional integrability conditions in that case. The convention τ=\tau = \infty must be explicitly handled.
"Optional stopping says E[Mτ]=E[M0]\mathbb{E}[M_\tau] = \mathbb{E}[M_0] always." Only under specific hypotheses (bounded τ\tau, bounded MM, or E[τ]<\mathbb{E}[\tau] < \infty with bounded increments). The classic failure: for a symmetric random walk starting at 11 and stopping at τ=inf{n:Sn=0}\tau = \inf\{n : S_n = 0\}, we have E[Sτ]=01=E[S0]\mathbb{E}[S_\tau] = 0 \ne 1 = \mathbb{E}[S_0]. Be careful.

Where this goes next

  • Optional Stopping Theorem: The payoff theorem for everything in this lesson.
  • Martingales (Discrete Time): The class of processes to which stopping times apply most powerfully.
  • Brownian Motion: Hitting times for Brownian motion have closed-form distributions (reflected-Brownian reflection principle, Lévy's arcsine law) that are core tools in barrier-option pricing.
  • American Options and Optimal Stopping: The decision of when to exercise an American option is the canonical optimal-stopping problem in finance. Solved by dynamic programming and by continuation-value algorithms (Longstaff-Schwartz).
  • Barrier Options: Knock-in and knock-out options pay off conditionally on a first hitting time, so their prices involve expectations of martingales stopped at hitting times.

References

  • Lawler, G. F. (2023). Stochastic Calculus: An Introduction with Applications. Ch. 1 §1.3 (Optional sampling theorem), Ch. 4 §4.1 (Martingales and local martingales).

Exercises

Test your understanding with 3 exercises for this lesson.