Stochastic Differential Equations
A rule of motion for something that is pushed by a predictable force and kicked by a random one at the same time. Writing that rule down gives you a whole distribution of futures instead of a single forecast, and almost every model in derivatives and rates is one of these.
Prerequisites: The Itô Integral, Itô's Lemma, Brownian Motion
An ordinary differential equation is a promise: tell me where the system is now, and I will tell you exactly where it goes next. That promise is useless for a share price. Nothing about today's close determines tomorrow's, and a model that returns a single number is answering a question nobody asked. What you actually want is a rule that produces a spread of tomorrows, with the right centre and the right width. A stochastic differential equation is exactly that rule.
The picture before any symbols
Think of a small boat crossing a choppy lake under engine power. Two things move it. The engine pushes steadily in a chosen direction — over an hour it covers a predictable distance. The chop shoves it about randomly — over an hour those shoves partly cancel, so the boat ends up displaced, but far less than the sum of the individual shoves.
That asymmetry is the entire mathematical content. Steady push accumulates in proportion to time. Random shoves accumulate in proportion to the square root of time, because they cancel each other out on average. Over a minute the chop dominates and you cannot tell where the engine is pointing. Over a day the engine wins and the chop is a blur around the track. Everything below is bookkeeping for those two rates.
Writing the rule down
The standard form is
Reading it symbol by symbol: is the thing you are modelling at time — a price, a rate, a spread. is the drift, the engine: how much is expected to move per unit of time, possibly depending on where currently is. is the diffusion coefficient or volatility, the chop: how large the random kicks are. is an increment of Brownian motion — a fresh, unpredictable shock with mean zero and standard deviation .
In plain English: over the next sliver of time, moves by a predictable amount proportional to the length of the sliver, plus a random amount proportional to the square root of that length.
The 's are not derivatives; Brownian paths have no derivative anywhere. The equation above is shorthand for an honest statement about Itô integrals:
In words: where you end up equals where you started, plus everything the engine did, plus everything the chop did. The second integral is the one that needs Itô's construction; the first is ordinary calculus.
Why changes how you think
Put numbers on the boat. Take a stock with drift per year and volatility per year. Over one trading day, :
- drift contribution: , about 0.03 percent
- noise standard deviation: , about 1.26 percent
The noise is roughly 40 times the drift over a single day. That is why one day of price action tells you essentially nothing about expected return. The two are equal when , that is when , so years. Below six years of data, the noise in a mean-return estimate is larger than the mean itself. This single calculation explains why Sharpe ratios need decades to measure and why risk models are estimable from a few months of data.
Worked example 1: solving the equation for a stock
The standard equity model is geometric Brownian motion, where both drift and volatility scale with the price:
In words: the stock moves by a percentage each instant, not a dollar amount, so a 100-dollar stock and a 10-dollar stock have the same return dynamics.
To solve it, apply Itô's lemma to . The first derivative is , the second is , and the lemma's extra half-second-derivative term contributes :
The right-hand side no longer mentions , so it integrates directly and exponentiates back:
In words: the log price is a straight-line drift plus a Brownian wobble, so the price itself is lognormal.
Numbers, with , , , :
- log-drift:
- suppose the year's shock lands at . Exponent , so
- expected price:
- median price:
The mean and the median differ by more than two dollars, and the median is the lower one. Half of all outcomes land below 106.18 even though the average is 108.33 — a handful of large upside paths drag the mean up. And the chance of simply losing money over the year is , so 38 percent of one-year paths finish below where they started despite a positive drift. That term is where most of the intuition damage happens.
Worked example 2: simulating one you cannot solve
Most SDEs have no closed form. You step them numerically with Euler–Maruyama: replace with and with , where is a standard normal draw.
Take a short rate that is pulled toward 4 percent: , starting at , stepping quarterly so and . Suppose the four normal draws are .
| step | pull term | shock | new |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
Read the middle column down: it is negative while the rate sits above 4 percent, flips positive the moment the rate falls below, and shrinks to almost nothing once the rate is close. That is a drift that depends on the state — the thing an ODE-shaped intuition keeps missing. The path goes 6.00, 5.30, 3.13, 4.08, 3.52 percent: overshooting, getting hauled back, overshooting less. This is the Ornstein–Uhlenbeck process, the workhorse for spreads and rates.
Set the explorer below to gbm and drag the drift to zero: the fan of paths still spreads out, it just stops leaning. Then switch to reverting and watch the fan stop widening altogether — the drift term is now pulling every path back and the spread reaches a ceiling. Same equation shape, completely different long-run behaviour, and the only thing that changed is whether depends on .
An SDE says: next move = drift × (time elapsed) + volatility × (random shock scaled by the square root of time elapsed). Because noise grows like and drift like , short horizons are all noise and long horizons are all drift. The solution is never a number — it is a distribution of paths.
What this means in practice
- Pricing. Black–Scholes is one SDE (geometric Brownian motion) plus a change of drift under the risk-neutral measure. Heston is two coupled SDEs, one for the price and one for its variance. Reading a pricing paper is largely reading which SDE the author chose.
- Choosing the diffusion term. (constant, additive) lets go negative — fine for spreads, wrong for prices. keeps positive but makes vol proportional to level. sits between and is why CIR rates stay non-negative. The shape of is a modelling decision with visible consequences at the boundaries.
- Calibration. The drift is nearly unobservable on any realistic sample, as the 6.25-year calculation showed. The diffusion is estimable from high-frequency data almost exactly, because quadratic variation converges quickly. Trust your fitted ; treat your fitted as a prior.
- Risk systems. Scenario generators, VaR engines and stress libraries are all SDE simulators. If your engine steps too coarsely near a barrier or a default boundary, discretisation error shows up as understated tail risk rather than as an obvious bug.
The in is not the growth rate of the stock. The stock grows at in log terms; is the growth rate of the average, which no individual path achieves. With and , the log drift is — the typical path goes nowhere at all while the expected value still rises 8 percent a year. The second common error is treating as a "noise function"; no such function exists, and any manipulation that implicitly divides by is invalid.
Before touching an SDE algebraically, ask two questions of the drift: where does it vanish, and which way does it point on either side of that point? For it vanishes at 4 percent and points inward from both sides, so the process is mean-reverting. For it vanishes at zero and points outward, so the process runs away. That thirty-second check tells you the qualitative answer before any calculus.
Related concepts
Practice in interviews
Further reading
- Øksendal, Stochastic Differential Equations (ch. 5)
- Shreve, Stochastic Calculus for Finance II (ch. 6)
- Kloeden & Platen, Numerical Solution of Stochastic Differential Equations