Brownian Motion Simulator
by Harry Lonsdale
Understanding Brownian Motion
Brownian motion—also known in mathematical contexts as the Wiener process—describes a continuous-time stochastic process that models random movement. These terms are often used interchangeably, although "Brownian motion" is the more general term used in physics and applied sciences, while "Wiener process" refers specifically to the standard mathematical formulation with mean zero and variance growing linearly in time.
A common generalization of Brownian motion includes both a deterministic trend and a random component. This is captured by a stochastic differential equation (SDE) for a one-dimensional process :
In this equation, is the infinitesimal change in the process over a small time interval . The term represents the drift—a deterministic component where is the drift coefficient indicating the average rate of change. Positive drift () implies an upward trend over time, while negative drift implies a downward trend.
The term captures the diffusion, where is an increment of the standard Wiener process. This component introduces randomness, modeling unpredictable fluctuations. The coefficient controls the magnitude of this noise: higher values of lead to more volatile trajectories.
The Wiener process is a mathematical idealization of Brownian motion: it starts at zero, has continuous paths, independent increments, and for any time , the increment is normally distributed with mean 0 and variance . In symbols: .
When and , the SDE simplifies to , and the process is just the standard Wiener process itself—that is, standard Brownian motion without drift or scaling.
This framework is foundational in modeling systems that combine predictable trends with random variation, including applications in physics, biology, and especially finance (e.g., the Black–Scholes model). The parameters and together determine the relative strength of deterministic versus stochastic forces.
For more background, visit the Wikipedia pages on Brownian motion and Wiener process.
- μ (drift): The average rate of change over time
- σ (diffusion): The volatility or randomness intensity
- n (steps): Number of discrete time steps
- k (interval): Total time length of the simulation