Brownian motion
Brownian motion is central to stochastic calculus. Define it by independent Gaussian increments, construct it through random walks and the Lévy-Ciesielski series, and study invariance, path irregularity, quadratic variation, reflection, hitting times, martingales and Brownian bridges.
After this lesson you can
- Verify the defining properties of Brownian motion and its scaling, time-inversion and symmetry invariances.
- Simulate paths using increments, rescaled random walks and the Lévy-Ciesielski series, checking their law.
- Prove that quadratic variation is t and deduce infinite total path variation.
- Use reflection for the laws of the maximum and hitting time and check by simulation with discretization correction.
- Apply optional stopping to Brownian martingales to obtain exit probabilities and times.
Before you start
- 26Simple random walkModification and indistinguishabilityMartingaleOptional stopping theoremStrong Markov propertyFinite-dimensional distributionsFiltration
- 04Multivariate Gaussian distributionCentral limit theoremConvergence in distributionBorel-Cantelli lemmas
- 14Gaussian process
- 03Hölder continuityFunctions of bounded variation
A continuous path that never smooths out
In his 1827 observations, Robert Brown described the irregular movement of suspended particles. Bachelier studied a random model for prices in 1900; Einstein related diffusion to molecular motion in 1905. The modern mathematical object specifies a probability law over paths, not a particular empirical path.
Zoom in on a sample and refine its grid. Intermediate points are generated conditional on endpoints, so zooming retains previous observations. The image represents only finite resolution: the line between nodes does not prove the continuous process is smooth.
The law and its symmetries
A standard Brownian motion starts at almost surely, has almost surely continuous paths and independent increments such that for . With respect to its natural filtration, future increments are independent of the past. Continuity is a path property; the laws at individual times do not suffice to define the entire process law.
For times , and . Independence of Gaussian increments allows construction of every finite-dimensional distribution: differences between ordered times are independent normals. Brownian motion is therefore a Gaussian process with that kernel.
Its transformations preserve the law: is Brownian; for , is too; and the process for , extended by zero at , is another Brownian motion. These are equalities in distribution, not claims that two rescaled paths are equal pointwise. Continuity at zero of time inversion requires proof; see Mörters and Peres.
Constructing the process and taking the limit
A construction on a fixed grid sums normal increments with standard deviation , not . To add the midpoint of without changing its endpoints, we condition jointly normal variables:
Midpoints of disjoint intervals are independent conditional on their endpoints. Repeated refinement produces consistent samples on all dyadic grids. In the Lévy-Ciesielski series the same idea is expressed with triangular functions: begin with and add an independent tent of height at level for each dyadic interval. Coefficients are independent standard normals. Almost sure uniform convergence of the series provides a continuous version; the Kolmogorov continuity criterion offers another route from moment bounds.
The Donsker invariance principle goes in the opposite direction: if are independent and identically distributed with mean zero and variance one, the linearly interpolated walk converges in distribution in to Brownian motion. This is convergence of path laws, not equality between a particular sample and Brownian motion. Centering and normalization also matter for asymmetric increments. The result does not require Gaussian starting increments.
Variation that survives refinement
For a deterministic partition , approximate quadratic variation is . By independence and Gaussian moments,
Thus in as the mesh tends to zero. For dyadic partitions the sum of deviation probabilities is controlled by Chebyshev and Borel-Cantelli, so convergence is also almost sure along that sequence. We have not proved almost sure convergence for an arbitrary sequence of partitions.
Path irregularity is stronger than this statement. By continuity, the largest absolute dyadic increment tends to zero. Since and , total variation on any nontrivial interval is almost surely infinite. By contrast, a continuously differentiable function on a compact interval has zero quadratic variation.
The Paley-Wiener-Zygmund theorem further states that almost no Brownian path has a finite derivative anywhere; this does not follow from quadratic variation alone. The classical proof simultaneously controls difference quotients at many scales and uses independence and covering arguments. The theorem and its assumptions are developed in Mörters and Peres. The graph shows a finite grid, not a visual proof of the limit.
On every compact interval, paths are almost surely Hölder of every order . To see this, Gaussian moments satisfy . Kolmogorov’s criterion gives any exponent below ; taking sufficiently large and then a countable intersection gives all . This does not imply differentiability.
Reflection and first hitting
Let and , for . The strong Markov property says that at a finite stopping time, subsequent increments shifted to the origin form a Brownian motion independent of information through that time. The strong version is essential: depends on the path.
The reflection principle reflects the path after . Symmetry of subsequent increments pairs paths that reach and end below with those ending above. Since ,
The first-passage density is for . The probability of ever reaching the level is one, but the tail is heavy enough that . Observing only grid nodes misses crossings between them and underestimates the probability of reaching the barrier.
Martingales and exiting an interval
Brownian martingales include , and for , with respect to the natural filtration. Independence and the moment-generating function of a normal increment give the conditional equality in each case.
For with , first stop at . Continuity ensures that the stopped value remains in , allowing passage to the limit in . Applying stopping to gives , so and almost surely. Passing to the limit,
Optional stopping assumptions matter: applying without justification to first passage to a single level would give a contradiction precisely because suitable integrability is missing there.
Bridge, drift and higher dimensions
A standard Brownian bridge of duration can be written : it is Gaussian, starts and ends at zero and has covariance . Its law matches Brownian motion conditioned to end at zero, interpreted through the conditional Gaussian distribution. For iid observations with continuous CDF, the centered and rescaled empirical process converges to a bridge evaluated at that CDF; this yields the Kolmogorov-Smirnov limiting law.
If , drift changes hitting probabilities and the simple symmetry of the previous formula no longer applies without modification. In dimensions, independent components form a vector Brownian motion. Recurrence means returning to every neighborhood of a point: in dimensions one and two this happens almost surely; in dimension three or higher the process is transient. In two dimensions a fixed point other than the starting point is polar, although every neighborhood is visited: recurrence does not mean hitting it. See Mörters and Peres. Geometric Brownian motion, , anticipates pricing models and the Itô correction studied later.
In diffusion models, a continuous process adds noise and a reverse equation constructs samples; that reversal requires its own assumptions and drift term. Gaussian conditioning that produces the bridge also connects with Gaussian processes from the previous lesson.
Lab: three constructions
All simulations use explicit seeds. Covariance and variation comparisons are finite estimates: their discrepancy with theory does not demonstrate exact equality of samples.
import numpy as np
from scipy.stats import norm
rng=np.random.default_rng(2623)
T=1.; n=128; replicas=3000; dt=T/n
incrementos=rng.normal(0,np.sqrt(dt),size=(replicas,n))
trayectorias=np.column_stack((np.zeros(replicas),np.cumsum(incrementos,axis=1)))
indices=[n//4,n//2,n]
print("covarianza empírica en 1/4, 1/2, 1:",
np.cov(trayectorias[:,indices],rowvar=False))
print("covarianza teórica:",
np.minimum.outer(np.array(indices)/n,np.array(indices)/n))
q=np.sum(incrementos**2,axis=1)
print("media y varianza empíricas de Q, referencias:",q.mean(),q.var(),T,2*T*T/n)The Lévy-Ciesielski construction uses dyadic tents. On the finest grid in this example each subsequent term would be zero at the nodes, so the truncated path has the exact Brownian joint distribution there.
def levy_ciesielski(m, niveles, rng):
n=2**niveles
t=np.linspace(0,1,n+1)
muestras=rng.normal(size=(m,1))*t[None,:]
for j in range(niveles):
escala=2**(-j/2-1)
for k in range(2**j):
u=2**j*t-k
tienda=np.where((u>=0)&(u<=1),2*np.minimum(u,1-u),0.)
muestras += rng.normal(size=(m,1))*escala*tienda[None,:]
return t,muestras
t_lc,lc=levy_ciesielski(3000,6,rng)
print("covarianza serie en 1/4, 1/2, 1:",
np.cov(lc[:,[16,32,64]],rowvar=False))
print("media y varianza de la suma cuadrática en 64 intervalos:",
np.mean(np.sum(np.diff(lc,axis=1)**2,axis=1)),
np.var(np.sum(np.diff(lc,axis=1)**2,axis=1)))The third construction retains all previously generated values when inserting midpoints. Matrices contain one path per row; the normals for each interval and row are independent.
def refinar_muestras(valores,tiempos,rng):
valores=np.asarray(valores,dtype=float); tiempos=np.asarray(tiempos,dtype=float)
if valores.ndim!=2 or valores.shape[1]!=len(tiempos) or np.any(np.diff(tiempos)<=0):
raise ValueError("malla creciente y trayectorias compatibles")
medios=(valores[:,:-1]+valores[:,1:])/2
medios += rng.normal(size=medios.shape)*np.sqrt(np.diff(tiempos)[None,:]/4)
nuevos=np.empty((len(valores),2*len(tiempos)-1))
nuevos[:,::2]=valores; nuevos[:,1::2]=medios
tiempos_nuevos=np.empty(2*len(tiempos)-1)
tiempos_nuevos[::2]=tiempos
tiempos_nuevos[1::2]=(tiempos[:-1]+tiempos[1:])/2
return nuevos,tiempos_nuevos
inicial=np.column_stack((np.zeros(3000),rng.normal(size=3000)))
tiempos=np.array([0.,1.]); puente=inicial.copy()
for _ in range(6):
puente,tiempos=refinar_muestras(puente,tiempos,rng)
print("extremos conservados:",np.array_equal(puente[:,[0,-1]],inicial))
print("covarianza puente refinado en 1/4, 1/2, 1:",
np.cov(puente[:,[16,32,64]],rowvar=False))Crossings the grid cannot see
Conditional on endpoints of an interval of length , the probability that the bridge reaches is
If either endpoint reaches the barrier, crossing is certain. Bridges in distinct intervals are conditionally independent given the nodes: the probability of at least one crossing is one minus the product of no-crossing probabilities. Averaging this conditional probability exactly corrects grid bias for this Brownian motion and barrier; Monte Carlo error from finitely many paths remains. The formula comes from reflection of the bridge density and does not automatically transfer to every diffusion.
a=1.; m=6000; pasos=32; dt=1/pasos
z=rng.normal(0,np.sqrt(dt),size=(m,pasos))
bm=np.column_stack((np.zeros(m),np.cumsum(z,axis=1)))
cruce_nodos=np.max(bm,axis=1)>=a
x=bm[:,:-1]; y=bm[:,1:]
prob=np.ones(m)
sin_nodo=~cruce_nodos
p=np.exp(-2*(a-x[sin_nodo])*(a-y[sin_nodo])/dt)
prob[sin_nodo]=-np.expm1(np.sum(np.log1p(-np.minimum(p,1)),axis=1))
teoria=2*norm.sf(a)
print("nodos, corrección de puente, teoría:",cruce_nodos.mean(),prob.mean(),teoria)
print("diferencia estimada frente a teoría, nodos y puente:",
cruce_nodos.mean()-teoria,prob.mean()-teoria)
print("errores estándar Monte Carlo nodos y puente:",
cruce_nodos.std(ddof=1)/np.sqrt(m),prob.std(ddof=1)/np.sqrt(m))Exercises
Step 1 of 3. What are the expectation and variance of a squared increment?
Step 1 of 3. What is the conditional expectation of Bₜ²−t given the past at s?
import numpy as np
def brownian_bridge_refine(path, times, rng):
passBrownian continuity coexists with positive quadratic variation and extreme irregularity. Simulating nodes is useful, but crossings between nodes and stopping assumptions are part of the answer.
After attempting the numerical exercises, check their results with this cell.
print("primer paso:",2*norm.sf(.5))
prob_superior=1/(1+2)
print("probabilidad de salida superior y tiempo medio:",prob_superior,1*2)