Stochastic Differential Equations
Equations that mix deterministic drift with Brownian noise. Their solutions are random paths whose means follow the drift and whose spreads follow the volatility.
Why Does This Exist?
ODEs describe exact motion, but markets wobble, sensors err and samplers inject noise deliberately. Adding a fixed noise trace to an ODE solution understates feedback: noise entering early propagates through later drift. The solution must be a random process defined jointly with its noise, not a deterministic curve plus frosting.
SDEs do that. They define Langevin samplers, Ornstein-Uhlenbeck models and the forward noising of diffusion generative models. Stochastic calculus and SDEs overviews the toolkit; diffusion processes studies their long-run behaviour and reverse-time SDEs run them backwards for generation.
Prerequisite in one paragraph. You need the Ito integral against and Lipschitz drift for existence: keeps paths from exploding. Background is in Brownian motion and the Ito integral.
Think of It Like This
A thermostat in a draughty room
A thermostat pulls temperature toward degrees with strength proportional to the gap (drift), while draughts gust randomly (diffusion). The room never sits still: it wanders in a band around the setting, wider when draughts strengthen, narrower when the thermostat stiffens.
SDE solutions live in that band. Drift centres, noise spreads, and the stationary width balances the two. Crank the thermostat (mean reversion) and the band tightens; open windows (volatility) and it widens.
Where the analogy stops: rooms have bounded air while SDE paths are unbounded with Gaussian tails. Thermostats also switch discretely; SDE drift acts continuously.
How It Actually Works
An SDE with initial has a unique strong solution when are Lipschitz and grow at most linearly. The Ornstein-Uhlenbeck prototype pulls toward level at speed . Its mean satisfies and its variance settles at .
Euler-Maruyama discretises with for standard normal and step . Halving halves the weak error.
Worked example
Take , , starting . Mean path: . At , , so mean . Stationary variance , standard deviation . After units paths sit in with chance about . The diagram band shows that width: drift did the centring, set the scale, the -unit settling time.
Watch Out For
Simulating with too large a step on stiff drift
With and , Euler-Maruyama multiplies by per step and explodes oscillatory, while the true process is stable. Stability needs well below .
Fix: keep below for explicit Euler or switch implicit for stiff drifts. Check one stationary variance before long runs.
Reading pathwise convergence from weak convergence
Halving halves weak error (means, moments) but strong pathwise error shrinks only as . Judging a sampler by single paths looks slow while its moments already converged.
Fix: match error type to use. Densities and means need weak; pathwise couplings need strong with finer steps.
The Quick Version
- SDEs define random paths jointly with their driving noise, not ODE curves plus frosting.
- Lipschitz drift plus linear growth guarantee a unique solution; Euler-Maruyama steps need small .
- Ornstein-Uhlenbeck with speed 2.0 and noise 0.5 centres at 5.0 with stationary standard deviation 0.25.
- After 2 units the mean sits at 4.91 inside a 0.5 band with chance 0.95.
- Stiff drifts need tiny or implicit steps, and weak versus strong errors scale differently.