0bps

Learn / Track IV / lesson 1 of 4

Random walks and Brownian motion

The continuous-time model of a price, the one strange rule of Itô calculus, and why the median path drifts below the mean.

11 min read

From coin flips to Brownian motion

Take a random walk that steps ±Δt\pm\sqrt{\Delta t} every Δt\Delta t units of time. As Δt→0\Delta t \to 0 it converges to Brownian motion WtW_t (also called a Wiener process), with three defining properties:

  1. W0=0W_0 = 0.
  2. Increments over non-overlapping intervals are independent.
  3. Wt−Ws∼N(0, t−s)W_t - W_s \sim \mathcal{N}(0,\, t - s).

The variance grows linearly with time, so the typical size of a move grows with t\sqrt{t}. That is where every T\sqrt{T} in finance comes from.

Geometric Brownian motion

Prices are modelled as growing proportionally, with proportional noise:

dSt=μSt dt+σSt dWtdS_t = \mu S_t\,dt + \sigma S_t\,dW_t

μ\mu is the drift (expected return) and σ\sigma the volatility. The solution is

St=S0exp⁡ ⁣((μ−σ22)t+σWt)S_t = S_0 \exp\!\Big(\big(\mu - \tfrac{\sigma^2}{2}\big)t + \sigma W_t\Big)

so ln⁡St\ln S_t is normal and StS_t is lognormal. The hero chart on the home page is exactly this formula; drag its sliders to feel how σ\sigma widens the fan.

Where the minus sigma squared over two comes from

In ordinary calculus, d(ln⁡S)=dS/Sd(\ln S) = dS/S. In stochastic calculus there is an extra term, because (dW)2(dW)^2 is not negligible: it behaves like dtdt. Itô’s lemma says that for a smooth function f(S,t)f(S, t),

df=∂f∂tdt+∂f∂SdS+12∂2f∂S2(dS)2df = \frac{\partial f}{\partial t}dt + \frac{\partial f}{\partial S}dS + \frac{1}{2}\frac{\partial^2 f}{\partial S^2}(dS)^2

with (dS)2=σ2S2 dt(dS)^2 = \sigma^2 S^2\,dt. Applying it to f=ln⁡Sf = \ln S gives

d(ln⁡S)=(μ−σ22)dt+σ dWd(\ln S) = \big(\mu - \tfrac{\sigma^2}{2}\big)dt + \sigma\,dW

The −σ2/2-\sigma^2/2 is the same volatility drag you met in returns: the expected price grows at μ\mu, but the median price — the typical path — grows at only μ−σ2/2\mu - \sigma^2/2.

Worked example

An asset with μ=10%\mu = 10\% and σ=80%\sigma = 80\% (crypto-like) has a median growth rate of 0.10−0.32=−22%0.10 - 0.32 = -22\% a year. Its expected value rises over time while the typical outcome falls towards zero. A few explosive paths carry the average. Run it in the path simulator.

Hitting probabilities

A useful closed form: for Brownian motion with drift ν\nu and volatility σ\sigma, starting at 0, the probability of ever touching a level −a-a below (with ν>0\nu > 0) is e−2νa/σ2e^{-2\nu a/\sigma^2}. Applied to log-prices, this gives the odds that a position ever hits its stop before drifting away — the continuous cousin of gambler’s ruin.

Limits of the model

GBM assumes constant volatility, no jumps and independent increments. Real markets violate all three: volatility clusters, gaps happen, and microstructure creates short-term reversal. Extensions include stochastic volatility (Heston), jump-diffusion (Merton), and mean-reverting processes (Ornstein–Uhlenbeck). GBM remains the baseline because it is simple, tractable and right about the most important thing: risk scales with t\sqrt{t}.

Put it to work

esc

Try , , or .

↑↓ move↵ open