html`<style>
.plot-title-small {
font-size: 13px;
font-weight: 600;
}
.plot-subtitle-small {
font-size: 11px;
font-weight: 400;
}
</style>`Brownian Motion
This page illustrates the difference between the Generalized Wiener Process (GWP), also known as Arithmetic Brownian Motion, and Geometric Brownian Motion (GBM). GWP shows up in models for P/L, interest rates, or temperature spreads where values can freely cross zero, while GBM is the backbone of the Black–Scholes–Merton equity-pricing framework where prices must remain positive.
Simulation Parameters
Adjust the parameters below to observe how they affect the paths of both processes. As a rule of thumb for applications: equity underlyings often use \(\mu\) between [-0.05, 0.10] yearly with \(\sigma\) in the 15–40% range, FX pairs tend to have smaller drifts but comparable volatilities, and rates or P/L series modeled with GWP typically sit closer to zero drift with volatility quoted in basis points.
Simulation horizon: Slider inputs are annualized. Each chart simulates \(T = 2\) years of evolution with \(N = 500\) steps (\(\Delta t = T/N \approx 0.004\)), so changing \(\mu\) or \(\sigma\) alters the drift and diffusion applied at every discrete step.
Comparison
The two graphs below show the evolution of the asset price under the two different models using the same random shocks.
Graph A: Generalized Wiener Process
The process is described by the following Stochastic Differential Equation (SDE): \[dX_t = \mu dt + \sigma dz\] The solution to this equation gives the value of the process at time \(t\): \[X_t = X_0 + \mu t + \sigma z_t\] Where \(z_t\) is a standard Wiener process.
GWP moments: \(\mathbb{E}[X_t] = X_0 + \mu t\) grows linearly with time, while \(\text{Var}(X_t) = \sigma^2 t\) is unbounded as \(t\) increases. The combination of additive shocks and unbounded support (\(X_t \in (-\infty, \infty)\)) explains why values cross zero so easily.
Graph B: Geometric Brownian Motion
The SDE for a variable \(S_t\) that follows a GBM is: \[dS_t = \mu S_t dt + \sigma S_t dz\] The solution, which can be found using Itô’s Lemma, gives the price at time \(t\): \[S_t = S_0 \exp\left( (\mu - \frac{1}{2}\sigma^2)t + \sigma z_t \right)\] Notice the drift term is not \(\mu\), but \(\mu - \frac{1}{2}\sigma^2\). This term, often called the “convexity correction” or “Itô term,” accounts for the difference between the arithmetic mean return and the geometric mean return, which is crucial for lognormally distributed processes. Because \(S_t\) is lognormal, we can immediately read off moments that matter for pricing: \(\mathbb{E}[S_t] = S_0 e^{\mu t}\) and \(\text{Var}(S_t) = S_0^2 e^{2\mu t}(e^{\sigma^2 t}-1)\), reinforcing why the distribution never reaches or crosses zero.
Experiment and Observe
Experiment: Try setting the Drift (\(\mu\)) to a negative value (e.g., -0.5) and increase the Volatility (\(\sigma\)) (e.g., 0.8).
Observe the difference in behavior:
Graph A (GWP): The path behaves like a random walk with a downward trend. Because the noise term \(\sigma dz\) is additive, large negative shocks can easily push the value below zero. This makes GWP unsuitable for modeling stock prices (which cannot be negative) but acceptable for variables like temperature or profit/loss.
Graph B (GBM): As the price drops, the absolute magnitude of the random swings (\(\sigma S dz\)) decreases because they are proportional to the current price \(S\). The price asymptotically approaches zero but never crosses it. This “limited liability” property makes GBM the standard model for stock prices in the Black-Scholes-Merton framework.
Try another scenario: Increase \(\mu\) to 0.4 while keeping \(\sigma\) moderate (0.25) to see GBM’s compounding accelerate relative to the additive GWP drift. In option-pricing terms, that same higher \(\sigma\) implies a fatter lognormal right tail, so call premia expand even when the drift is unchanged—an intuition that’s easier to grasp once you see the multiplicative shocks on the plot.
A Note on Itô’s Lemma
It is important to understand where the solution to the GBM process comes from. The SDE for GBM is \(dS_t = \mu S_t dt + \sigma S_t dz\). We cannot integrate this as a standard deterministic integral because of the stochastic term \(dz\).
However, we can use Itô’s Lemma, a cornerstone of stochastic calculus, to find the process followed by a function of \(S_t\), such as \(f(S_t) = \ln(S_t)\). Itô’s lemma states that for a function \(f(t, S_t)\):
\[ df = \left( \frac{\partial f}{\partial t} + \mu S_t \frac{\partial f}{\partial S_t} + \frac{1}{2} \sigma^2 S_t^2 \frac{\partial^2 f}{\partial S_t^2} \right) dt + \sigma S_t \frac{\partial f}{\partial S_t} dz \]
For our case, \(f(S_t) = \ln(S_t)\), the partial derivatives are: \(\frac{\partial f}{\partial S_t} = \frac{1}{S_t}\) and \(\frac{\partial^2 f}{\partial S_t^2} = -\frac{1}{S_t^2}\).
Plugging these in gives the process for \(\ln(S_t)\):
\[ d(\ln S_t) = \left( \mu S_t \left(\frac{1}{S_t}\right) + \frac{1}{2} \sigma^2 S_t^2 \left(-\frac{1}{S_t^2}\right) \right) dt + \sigma S_t \left(\frac{1}{S_t}\right) dz \]
\[ d(\ln S_t) = \left(\mu - \frac{1}{2}\sigma^2\right)dt + \sigma dz \]
This is a Generalized Wiener Process. Integrating both sides from \(0\) to \(t\) gives:
\[ \ln(S_t) - \ln(S_0) = \left(\mu - \frac{1}{2}\sigma^2\right)t + \sigma z_t \]
Exponentiating both sides gives us the final solution for \(S_t\):
\[ S_t = S_0 \exp\left( \left(\mu - \frac{1}{2}\sigma^2\right)t + \sigma z_t \right) \]
This transformation is fundamental in derivatives pricing, as it allows us to move from a process with a stochastic component in the drift (multiplicative noise) to one with a constant drift. In the next step toward valuation, we replace the real-world drift \(\mu\) with the risk-free rate \(r\) under the risk-neutral measure, a switch justified precisely because Itô’s Lemma gives us a tractable log-price process.