Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide/Stochastic models

Filtrations, adapted processes and stopping times

Lesson 3 of 15 · 1 min read

The lesson "Probability spaces, σ-algebras and random variables" modelled a state of information as a σ-algebra and showed that, on a finite sample space, a σ-algebra is a partition into atoms. Prices are observed over time, so information grows. This lesson makes that growth precise with filtrations, defines which processes are known at each time (adapted) or one step ahead (predictable), and defines stopping times, the random times at which one can act without seeing the future. Three tosses of a fair coin serve as the running example.

Filtrations

Fix a probability space (Ω,F,P)(\Omega, \mathcal{F}, \mathbb{P})(Ω,F,P) and an index set of times III, either {0,1,2,…}\{0, 1, 2, \ldots\}{0,1,2,…} or [0,∞)[0, \infty)[0,∞). A filtration is a family (Ft)t∈I(\mathcal{F}_t)_{t \in I}(Ft​)t∈I​ of σ-algebras with

Fs⊆Ft⊆Ffor all s≤t.\mathcal{F}_s \subseteq \mathcal{F}_t \subseteq \mathcal{F} \qquad \text{for all } s \le t.Fs​⊆Ft​⊆Ffor all s≤t.

Ft\mathcal{F}_tFt​ is the collection of events whose occurrence is decided by time ttt. The inclusion says that information is never lost: an event that is decided at time sss is still decided at any later time. The quadruple (Ω,F,(Ft),P)(\Omega, \mathcal{F}, (\mathcal{F}_t), \mathbb{P})(Ω,F,(Ft​),P) is a filtered probability space.

Given a process (Xt)t∈I(X_t)_{t \in I}(Xt​)t∈I​, its natural filtration is the information generated by its own history,

FtX=σ(Xs:s≤t),\mathcal{F}^X_t = \sigma(X_s : s \le t),FtX​=σ(Xs​:s≤t),

the smallest σ-algebra for which every XsX_sXs​ with s≤ts \le ts≤t is measurable. A filtration may be larger than the natural one, for example when an investor also watches other assets, but never smaller if the investor sees XXX.

Three coin flips

Toss a fair coin three times: Ω={H,T}3\Omega = \{H, T\}^3Ω={H,T}3 has 8 outcomes, each with probability 18\tfrac1881​, and F=2Ω\mathcal{F} = 2^\OmegaF=2Ω. Let ξk(ω)\xi_k(\omega)ξk​(ω) be the kkk-th toss and Fk=σ(ξ1,…,ξk)\mathcal{F}_k = \sigma(\xi_1, \ldots, \xi_k)Fk​=σ(ξ1​,…,ξk​), with F0={∅,Ω}\mathcal{F}_0 = \{\emptyset, \Omega\}F0​={∅,Ω}. By the previous lesson each Fk\mathcal{F}_kFk​ is a partition. Its atoms are the sets of outcomes that agree on the first kkk tosses: there are 2k2^k2k of them, each containing 23−k2^{3-k}23−k outcomes. The number of events is therefore

∣Fk∣=22k:∣F0∣=2,∣F1∣=4,∣F2∣=16,∣F3∣=256.|\mathcal{F}_k| = 2^{2^k}: \qquad |\mathcal{F}_0| = 2,\quad |\mathcal{F}_1| = 4,\quad |\mathcal{F}_2| = 16,\quad |\mathcal{F}_3| = 256.∣Fk​∣=22k:∣F0​∣=2,∣F1​∣=4,∣F2​∣=16,∣F3​∣=256.

Each atom of Fk\mathcal{F}_kFk​ splits into two atoms of Fk+1\mathcal{F}_{k+1}Fk+1​, which is the inclusion Fk⊆Fk+1\mathcal{F}_k \subseteq \mathcal{F}_{k+1}Fk​⊆Fk+1​ seen as a refinement of partitions. A fair picture is a binary tree: a node at depth kkk is an atom of Fk\mathcal{F}_kFk​, and the leaves below it are the outcomes it contains.

The figure draws the 8 paths as such a tree. Step the time kkk from 0 to 3 with the arrows or press play: the nodes up to depth kkk appear and the leaves are grouped into the 2k2^k2k atoms of Fk\mathcal{F}_kFk​. At k=0k = 0k=0 all 8 leaves form one block; at k=3k = 3k=3 every leaf is its own block.

The filtration of three coin flipsOpen in Stochastic Learning Studio →
k = 1
k = 0k = 3
HTHTHTHTHTHTHTHHH · τ = 1HHT · τ = 1HTH · τ = 1HTT · τ = 1THH · τ = 2THT · τ = 2TTH · τ = 3TTT · τ = none

After k = 1, 𝓕_k has 2 atoms. {τ ≤ 1} is a union of atoms, so it is in 𝓕_1.

Adapted processes

A process (Xt)(X_t)(Xt​) is adapted to (Ft)(\mathcal{F}_t)(Ft​) if XtX_tXt​ is Ft\mathcal{F}_tFt​-measurable for every ttt: its current value is known from the current information. On the coin space, the Doob–Dynkin lemma from the previous lesson says that XkX_kXk​ is adapted exactly when Xk=fk(ξ1,…,ξk)X_k = f_k(\xi_1, \ldots, \xi_k)Xk​=fk​(ξ1​,…,ξk​) for some function fkf_kfk​. The number of heads so far, Sk=∑j≤k1{ξj=H}S_k = \sum_{j \le k} \mathbf{1}\{\xi_j = H\}Sk​=∑j≤k​1{ξj​=H}, and the walk Wk=∑j≤k(2⋅1{ξj=H}−1)W_k = \sum_{j \le k} (2\cdot\mathbf{1}\{\xi_j = H\} - 1)Wk​=∑j≤k​(2⋅1{ξj​=H}−1) are adapted. The process Yk=S3Y_k = S_3Yk​=S3​ for all kkk, which reveals the final number of heads at time 0, is not: Y0Y_0Y0​ is not constant on the single atom Ω\OmegaΩ of F0\mathcal{F}_0F0​. Every process is adapted to its own natural filtration.

Predictable processes

A discrete-time process (Hk)k≥1(H_k)_{k \ge 1}(Hk​)k≥1​ is predictable if HkH_kHk​ is Fk−1\mathcal{F}_{k-1}Fk−1​-measurable for every k≥1k \ge 1k≥1: it is known one step before the time it is indexed by. This is the shape of a trading strategy. HkH_kHk​ is the number of units held over the period from k−1k-1k−1 to kkk, chosen at time k−1k-1k−1, so the gain from holding a walk WWW is

Gn=∑k=1nHk (Wk−Wk−1).G_n = \sum_{k=1}^{n} H_k\,(W_k - W_{k-1}).Gn​=k=1∑n​Hk​(Wk​−Wk−1​).

Predictability makes such games fair. The increment Wk−Wk−1W_k - W_{k-1}Wk​−Wk−1​ is independent of Fk−1\mathcal{F}_{k-1}Fk−1​ and has mean 0, while HkH_kHk​ is Fk−1\mathcal{F}_{k-1}Fk−1​-measurable, so for bounded HHH each term has E[Hk(Wk−Wk−1)]=E[Hk]⋅0=0\mathbb{E}[H_k(W_k - W_{k-1})] = \mathbb{E}[H_k]\cdot 0 = 0E[Hk​(Wk​−Wk−1​)]=E[Hk​]⋅0=0 and E[Gn]=0\mathbb{E}[G_n] = 0E[Gn​]=0. The strategy "hold one unit after a tail, none after a head" is predictable and earns 0 on average. The strategy Hk=1{ξk=H}H_k = \mathbf{1}\{\xi_k = H\}Hk​=1{ξk​=H} uses the kkk-th toss to decide the kkk-th position. It is adapted but not predictable, and it gains 1 on every head, so E[G3]=1.5\mathbb{E}[G_3] = 1.5E[G3​]=1.5: it is a model of trading on information from the future.

Stopping times

A stopping time is a random time τ:Ω→I∪{∞}\tau : \Omega \to I \cup \{\infty\}τ:Ω→I∪{∞} such that

{τ≤t}∈Ftfor every t∈I.\{\tau \le t\} \in \mathcal{F}_t \qquad \text{for every } t \in I.{τ≤t}∈Ft​for every t∈I.

Whether τ\tauτ has already happened by time ttt must be decided by the information at time ttt. The value τ=∞\tau = \inftyτ=∞ means the time never occurs. In discrete time the condition is equivalent to {τ=k}∈Fk\{\tau = k\} \in \mathcal{F}_k{τ=k}∈Fk​ for every kkk. Proof: if all {τ≤k}∈Fk\{\tau \le k\} \in \mathcal{F}_k{τ≤k}∈Fk​, then {τ=k}={τ≤k}∖{τ≤k−1}\{\tau = k\} = \{\tau \le k\} \setminus \{\tau \le k-1\}{τ=k}={τ≤k}∖{τ≤k−1} is in Fk\mathcal{F}_kFk​ because Fk−1⊆Fk\mathcal{F}_{k-1} \subseteq \mathcal{F}_kFk−1​⊆Fk​. Conversely, {τ≤k}=⋃j≤k{τ=j}\{\tau \le k\} = \bigcup_{j \le k} \{\tau = j\}{τ≤k}=⋃j≤k​{τ=j}, a union of events from Fj⊆Fk\mathcal{F}_j \subseteq \mathcal{F}_kFj​⊆Fk​.

A stopping time is a rule for when to act that uses only the past and present: {τ≤t}∈Ft\{\tau \le t\} \in \mathcal{F}_t{τ≤t}∈Ft​ for all ttt. Exercise dates of American options and stop-loss triggers are stopping times; "sell at the highest price of the year" is not.

Simple facts follow directly from the definition. A constant τ=c\tau = cτ=c is a stopping time, since {τ≤t}\{\tau \le t\}{τ≤t} is ∅\emptyset∅ or Ω\OmegaΩ. If τ\tauτ and ρ\rhoρ are stopping times, so are min⁡(τ,ρ)\min(\tau, \rho)min(τ,ρ) and max⁡(τ,ρ)\max(\tau, \rho)max(τ,ρ), because {min⁡(τ,ρ)≤t}={τ≤t}∪{ρ≤t}\{\min(\tau,\rho) \le t\} = \{\tau \le t\} \cup \{\rho \le t\}{min(τ,ρ)≤t}={τ≤t}∪{ρ≤t} and {max⁡(τ,ρ)≤t}={τ≤t}∩{ρ≤t}\{\max(\tau,\rho) \le t\} = \{\tau \le t\} \cap \{\rho \le t\}{max(τ,ρ)≤t}={τ≤t}∩{ρ≤t}.

First hitting times

Let XXX be adapted and AAA a Borel set. The first hitting time of AAA in discrete time is τA=min⁡{k≥0:Xk∈A}\tau_A = \min\{k \ge 0 : X_k \in A\}τA​=min{k≥0:Xk​∈A}, with τA=∞\tau_A = \inftyτA​=∞ if XXX never enters AAA. It is a stopping time because

{τA≤k}=⋃j=0k{Xj∈A}∈Fk,\{\tau_A \le k\} = \bigcup_{j=0}^{k} \{X_j \in A\} \in \mathcal{F}_k,{τA​≤k}=j=0⋃k​{Xj​∈A}∈Fk​,

each {Xj∈A}\{X_j \in A\}{Xj​∈A} being in Fj⊆Fk\mathcal{F}_j \subseteq \mathcal{F}_kFj​⊆Fk​. On the coin space take τ\tauτ = the time of the first head. Then {τ≤1}\{\tau \le 1\}{τ≤1} is the atom "first toss H", {τ≤2}\{\tau \le 2\}{τ≤2} is the union of the atoms HH, HT and TH of F2\mathcal{F}_2F2​, and {τ≤3}\{\tau \le 3\}{τ≤3} is everything except TTT. Its law is P(τ=k)=2−k\mathbb{P}(\tau = k) = 2^{-k}P(τ=k)=2−k for k=1,2,3k = 1, 2, 3k=1,2,3 and P(τ=∞)=18\mathbb{P}(\tau = \infty) = \tfrac18P(τ=∞)=81​, so P(τ≤2)=12+14=0.75\mathbb{P}(\tau \le 2) = \tfrac12 + \tfrac14 = 0.75P(τ≤2)=21​+41​=0.75.

Last exit times

Now let σ\sigmaσ be the time of the last head among the three tosses, with no value if all three are tails. It is not a stopping time. At k=1k = 1k=1, {σ≤1}={HTT}\{\sigma \le 1\} = \{HTT\}{σ≤1}={HTT}, which is not a union of atoms of F1\mathcal{F}_1F1​: the outcomes HTT and HTH agree on the first toss, yet σ(HTT)=1≤1\sigma(HTT) = 1 \le 1σ(HTT)=1≤1 and σ(HTH)=3>1\sigma(HTH) = 3 > 1σ(HTH)=3>1. At k=2k = 2k=2, {σ≤2}={HHT,HTT,THT}\{\sigma \le 2\} = \{HHT, HTT, THT\}{σ≤2}={HHT,HTT,THT} splits the atoms HH, HT and TH of F2\mathcal{F}_2F2​. To know at time 1 that the last head has already happened, you would need to see tosses 2 and 3.

The figure lets you compare the two rules. Switch the random time between "first H" and "last H". Each leaf shows the time for its path, or "none". For the current kkk the readout says whether {τ≤k}\{\tau \le k\}{τ≤k} is a union of atoms of Fk\mathcal{F}_kFk​, and for "last H" it shows a pair of paths that agree up to time kkk but disagree on whether τ≤k\tau \le kτ≤k. Step through kkk and note that "first H" passes at every kkk, while "last H" fails at k=1k = 1k=1 and k=2k = 2k=2.

The σ-algebra at a stopping time

The information available at a stopping time τ\tauτ is the σ-algebra

Fτ={A∈F:A∩{τ≤t}∈Ft for all t},\mathcal{F}_\tau = \{A \in \mathcal{F} : A \cap \{\tau \le t\} \in \mathcal{F}_t \text{ for all } t\},Fτ​={A∈F:A∩{τ≤t}∈Ft​ for all t},

the events whose occurrence is known once τ\tauτ has happened. For τ\tauτ = first head, the event "toss 2 was H" belongs to Fτ\mathcal{F}_\tauFτ​ only together with the knowledge of τ\tauτ: on {τ=1}\{\tau = 1\}{τ=1} it is not yet decided, on {τ=2}\{\tau = 2\}{τ=2} it is. The strong Markov property and optional stopping, in later lessons, are statements about Fτ\mathcal{F}_\tauFτ​.

Brownian motion in continuous time

For Brownian motion WWW the natural filtration is FtW=σ(Ws:s≤t)\mathcal{F}^W_t = \sigma(W_s : s \le t)FtW​=σ(Ws​:s≤t). WWW is adapted to it, and by independent increments every future increment Wu−WtW_u - W_tWu​−Wt​, u>tu > tu>t, is independent of FtW\mathcal{F}^W_tFtW​. The first passage time τa=inf⁡{t≥0:Wt=a}\tau_a = \inf\{t \ge 0 : W_t = a\}τa​=inf{t≥0:Wt​=a} to a level a>0a > 0a>0 is a stopping time. Since paths are continuous and start at 0<a0 < a0<a,

{τa≤t}={max⁡s≤tWs≥a}=⋂n=1∞  ⋃s∈(Q∩[0,t])∪{t}{Ws>a−1n},\{\tau_a \le t\} = \Big\{\max_{s \le t} W_s \ge a\Big\} = \bigcap_{n=1}^{\infty} \; \bigcup_{s \in (\mathbb{Q} \cap [0,t]) \cup \{t\}} \Big\{W_s > a - \tfrac1n\Big\},{τa​≤t}={s≤tmax​Ws​≥a}=n=1⋂∞​s∈(Q∩[0,t])∪{t}⋃​{Ws​>a−n1​},

which uses only countably many times s≤ts \le ts≤t and so lies in FtW\mathcal{F}^W_tFtW​. For hitting times of open sets, and for many other constructions, one needs a slightly enlarged filtration satisfying the usual conditions: it is right-continuous, Ft=⋂s>tFs\mathcal{F}_t = \bigcap_{s > t} \mathcal{F}_sFt​=⋂s>t​Fs​, and F0\mathcal{F}_0F0​ contains all P\mathbb{P}P-null sets. Later lessons assume these without further comment.

Summary

  • A filtration (Ft)(\mathcal{F}_t)(Ft​) is an increasing family of σ-algebras; Ft\mathcal{F}_tFt​ is the information at time ttt, and the natural filtration σ(Xs:s≤t)\sigma(X_s : s \le t)σ(Xs​:s≤t) is the history of XXX.
  • With nnn coin tosses, Fk\mathcal{F}_kFk​ is the partition into 2k2^k2k atoms of outcomes that agree on the first kkk tosses, with 22k2^{2^k}22k events.
  • Adapted means XtX_tXt​ is Ft\mathcal{F}_tFt​-measurable; predictable means HkH_kHk​ is Fk−1\mathcal{F}_{k-1}Fk−1​-measurable, the form of a trading position chosen in advance.
  • A stopping time satisfies {τ≤t}∈Ft\{\tau \le t\} \in \mathcal{F}_t{τ≤t}∈Ft​. First hitting times are stopping times; last exit times are not.
  • For Brownian motion, FtW\mathcal{F}^W_tFtW​ is independent of future increments, and first passage times are stopping times.
Try itStep through a coin-flip walk in the Stochastic Models studio →
3 questions on this lesson at the end of the series →
← PreviousProbability spaces, σ-algebras and random variablesNext →Conditional expectation and martingales
Connections
Filtrations, adapted processes and stopp…
Open the full graph →
Labs for this lesson
Stochastic Learning Studio