Stopping Times
Motivation: why this matters in quant finance
A
stopping time is a random time
τ at which you decide to "stop watching" a process —
using only information available up to time τ. 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
K before
T?", "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) — the information flow through time. A
stopping time τ with values in
{0,1,2,…}∪{∞} is a random time such that, at every deterministic time
n, you can decide from the data available at time
n whether
τ has already occurred. Formally:
{τ=n}∈Fnfor every n≥0.
Equivalent and often more convenient:
{τ≤n}∈Fnfor every n≥0.
Both say the same thing: the event "has the stopping triggered yet?" is Fn-measurable at every n. You don't need the future to know whether you have stopped.
Examples you already understand:
- Deterministic times. τ≡5 is a stopping time: {τ≤n}=∅ for n<5 and =Ω for n≥5; either way the event is in Fn.
- First hitting time. τ=min{n:Sn≥100} for a random walk Sn. At time n, you know the whole path up to n, so you know whether Sn has reached 100 yet.
- A non-example. τ= "the time of the maximum of Sn over n∈[0,N]." Not a stopping time: at time n=5 you don't know whether S5 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)n≥0, a map
τ:Ω→{0,1,2,…}∪{∞} is a
stopping time if
{τ≤n}∈Fn for every
n≥0.
Continuous-time stopping time
For a right-continuous filtration (Ft)t≥0, a map τ:Ω→[0,∞] is a stopping time if {τ≤t}∈Ft for every t≥0. Equivalently (in the right-continuous case): {τ<t}∈Ft for every t.
σ-algebra at a stopping time
The information available at τ is:
Fτ:={A∈F:A∩{τ≤n}∈Fn for every n}.
Intuitively, A∈Fτ iff you can decide whether A has occurred using only information up to the random time τ.
Key facts:
- τ is Fτ-measurable (you know τ itself at time τ).
- If Xn is adapted and τ<∞ a.s., then Xτ is Fτ-measurable.
Combinators
Stopping times compose nicely. If σ,τ are stopping times, then so are:
- σ∧τ:=min(σ,τ) — "stop whichever triggers first."
- σ∨τ:=max(σ,τ) — "stop once both have triggered."
- σ+c for a deterministic constant c — "wait c more steps after σ."
But
σ+τ is not necessarily a stopping time — you cannot schedule "stop at
σ plus a value of
τ that is revealed later." Always check the filtration structure carefully.
Canonical examples
1. First hitting time of a level
For a random walk
Sn and a set
B⊆R, the
first hitting time of B is
τB=inf{n≥0:Sn∈B},
with the convention inf∅=∞. Standard argument that τB is a stopping time:
{τB≤n}=k=0⋃n{Sk∈B}∈Fn,
because each {Sk∈B} is in Fk⊆Fn.
2. First exit time of an interval
For a random walk
Sn starting at
x∈(a,b), the
first exit time of (a,b) is
τ=min(τa,τb), where
τa=inf{n:Sn≤a} and
τb=inf{n:Sn≥b}. As the minimum of two stopping times,
τ 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 chosen by the holder based on available information. The holder's optimisation problem is to maximise EQ[e−rτg(Sτ)] over all stopping times τ≤T, where g is the payoff and St 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 Xn, define τ=inf{n:Xn≤0.95⋅maxk≤nXk} — "stop the moment drawdown exceeds 5%." This is a stopping time: the running maximum and the current value are both in Fn.
5. A non-stopping time
Last hitting time. τ∗=sup{n≤N:Sn=0} — "the last time the walk returns to zero before horizon
N." At
n<N, you do not know whether the walk will later return to zero, so
{τ∗≤n} is
not in
Fn. 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) and a stopping time
τ, the
stopped process is
Xnτ:=Xn∧τ.
After time
τ,
Xnτ stays at its value at time
τ. Key fact:
if (Xn) is a martingale, so is (Xnτ) (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+1−Xn)⋅1τ>n, and
1τ>n is
Fn-measurable (since
τ is a stopping time). So conditionally on
Fn:
E[Xn+1τ−Xnτ∣Fn]=1τ>n⋅E[Xn+1−Xn∣Fn]=0.
Done.
Why stopping times are the right abstraction
Four reasons stopping times earn their prominence in the stochastic-processes toolkit:
- They formalise "no peeking." Any theorem about "whenever you stop, the process is fair" naturally requires the stop to be a stopping time.
- 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↑∞, prove things for the bounded stopped process, then pass to the limit.
- 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.
- Stopping times are what make stochastic integration well-defined in the Itô / semimartingale theory. Without them, the move from bounded integrands to the standard L2 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
τ 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 σ-algebra Fτ is the natural filtration of Xn∧τ." Nearly — but be careful:
Fτ is the information
available at the random time τ, which is a more subtle object than "the information available at some deterministic time." For stopping times,
Fτ behaves well; for other random times it may not even be defined.
"Stopping times are closed under addition." Only in restricted senses.
τ+c for a deterministic constant
c is a stopping time.
σ+τ for two stopping times
can fail unless
σ is decided first. Think carefully about what information is needed to know
σ+τ≤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
∞ with positive probability; the optional stopping theorem requires additional integrability conditions in that case. The convention
τ=∞ must be explicitly handled.
"Optional stopping says E[Mτ]=E[M0] always." Only under specific hypotheses (bounded
τ, bounded
M, or
E[τ]<∞ with bounded increments). The classic failure: for a symmetric random walk starting at
1 and stopping at
τ=inf{n:Sn=0}, we have
E[Sτ]=0=1=E[S0]. 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).