About Wiener Process & Stochastic Calculus

The Wiener process W(t) is the mathematical backbone of modern probability theory and quantitative finance. Named after Norbert Wiener, it is the continuous-time limit of a symmetric random walk: starting at zero, the increment W(t)−W(s) over any interval [s,t] is normally distributed with mean 0 and variance t−s, and increments over non-overlapping intervals are independent.

Three fundamental process families are available in this simulator:

Standard BM:   dX = μ dt + σ dW(t)
Ornstein-Uhlenbeck:   dX = θ(μ − X) dt + σ dW(t)
Geometric Brownian Motion:   dS = μS dt + σS dW(t)

All three are discretised with the Euler-Maruyama scheme: at each step, a Gaussian increment √dt · N(0,1) is drawn and the deterministic drift is added. For GBM the exact solution S(t) = S₀ exp((μ−σ²/2)t + σW(t)) shows that log-prices are normally distributed — the foundation of the Black-Scholes model.

The OU process is the unique stationary Gaussian Markov process. Its mean-reversion speed θ controls how quickly the process returns to the long-run mean μ, while σ sets the noise amplitude. It is widely used in the Vasicek interest-rate model and for modelling spread or pairs-trading strategies.

Frequently Asked Questions

About this simulation

This simulator plots sample paths of a Wiener process, W(t), the continuous-time random walk whose increments are independent and normally distributed with variance equal to the elapsed time. It also lets you switch to two derived models: the mean-reverting Ornstein-Uhlenbeck process and Geometric Brownian Motion, the stochastic differential equation behind the Black-Scholes option-pricing formula. Paths are generated numerically with the Euler-Maruyama scheme, the standard way to integrate a stochastic differential equation on a computer.

🔬 What it shows

Up to 30 independent random paths drawn simultaneously, with their running mean overlaid in white so you can see how individual jagged trajectories average out into a smoother trend. Each process type reveals a different behaviour: BM wanders without bound, OU keeps returning to its long-run mean, and GBM stays strictly positive and grows exponentially on average, like a stock price.

🎮 How to use

Pick BM, OU or GBM from the Process Type buttons. For BM, adjust diffusion σ and drift μ; for OU, set mean-reversion speed θ, long-run mean μ and volatility σ; for GBM, tune annual drift μ and volatility σ (%/yr) and the starting price S₀. Each slider redraws the batch of paths instantly so you can see how the parameter reshapes the spread.

💡 Did you know?

Wiener process paths are continuous everywhere but differentiable nowhere — a mathematical curiosity first proven rigorously by Norbert Wiener in the 1920s, decades after Robert Brown observed the same jittery motion in pollen grains under a microscope in 1827.

Frequently asked questions

What exactly is a Wiener process?

It is a continuous-time stochastic process W(t) that starts at zero and has independent, normally distributed increments: W(t) − W(s) follows a normal distribution with mean 0 and variance t − s. It is the rigorous mathematical model behind Brownian motion, the random jiggling of particles suspended in a fluid.

What is the difference between BM, OU and GBM in this simulator?

BM (Brownian motion) is the pure random walk with no restoring force, so its spread grows without limit. OU (Ornstein-Uhlenbeck) adds a mean-reversion term that pulls the path back toward a target value, making it useful for interest rates or temperatures. GBM (Geometric Brownian Motion) multiplies the randomness by the current value itself, so the path always stays positive, which is why it models stock prices.

How does the simulator generate the paths?

It uses the Euler-Maruyama method, the stochastic equivalent of Euler's method for ordinary differential equations. At each small time step it adds a deterministic drift term plus a random shock drawn from a normal distribution and scaled by the square root of the time step, which is the correct way to discretise a stochastic differential equation.

Why do the individual paths look so jagged while the white mean line is smooth?

Each path is nowhere differentiable, so it zig-zags at every scale and never settles into a smooth curve. Averaging many independent paths cancels out most of the random fluctuation while the underlying drift survives, which is exactly why the white mean path looks far smoother than any single trajectory.

Why is Geometric Brownian Motion used for stock prices instead of plain Brownian motion?

Plain Brownian motion can go negative, which makes no sense for an asset price. GBM instead models the logarithm of the price as a Brownian motion with drift, so the price itself is always positive and log-normally distributed. This is precisely the assumption underlying the Black-Scholes option-pricing model.