Search Knowledge

© 2026 LIBREUNI PROJECT

Mathematics / Probability & Statistics

Stochastic Calculus & Brownian Motion

Stochastic Calculus & Brownian Motion

In classical calculus, we deal with functions that are sufficiently smooth. However, in the physical and financial worlds, many processes are driven by inherent randomness that is everywhere non-differentiable. Stochastic calculus provides the mathematical framework to integrate and differentiate with respect to these “jagged” paths, most notably Brownian Motion.

1. Brownian Motion (The Wiener Process)

A stochastic process is a standard Wiener Process (or Brownian Motion) if it satisfies the following properties:

  1. Initial Value: almost surely.
  2. Independent Increments: For any , the increment is independent of the process history up to time , i.e., is independent of .
  3. Stationary Gaussian Increments: The increment is normally distributed with mean 0 and variance :
  4. Path Continuity: is continuous almost surely.

The Path-Wise Paradox

While Brownian motion is continuous, it is nowhere differentiable and has infinite total variation on any interval . However, it has a finite and non-zero quadratic variation: Heuristically, this leads to the fundamental identity of stochastic calculus:

2. Martingales and Filtrations

To handle information arriving over time, we define a filtration , representing the “information available at time “.

A process is a Martingale with respect to a filtration if:

  1. is -measurable for all .
  2. for all .
  3. Fairness Property: For all ,

Standard Brownian motion is a martingale, as is .

3. The Ito Integral

We wish to define an integral of the form: where is an adapted process (its value at depends only on ). Because has infinite variation, the traditional Riemann-Stieltjes integral does not converge.

The Ito Integral is defined as the limit of the sum: Crucially, the integrand is evaluated at the left-endpoint . This ensures that is a martingale. If we were to evaluate at the midpoint (Stratonovich integral), we would lose the martingale property but gain standard calculus rules.

Ito Isometry

One of the most powerful tools for computing variances:

4. Ito’s Lemma

Ito’s Lemma is the stochastic counterpart to the chain rule. If is a twice-differentiable function and is an Ito process, then: Substituting and using :

5. Stochastic Differential Equations (SDEs)

A general SDE takes the form: where is the drift and is the diffusion (volatility).

Geometric Brownian Motion (GBM)

In finance, the price of an asset is often modeled by: Using Ito’s Lemma on :

Integrating both sides gives the closed-form solution:

6. Feynman-Kac Formula

The Feynman-Kac formula establishes a link between SDEs and second-order linear PDEs. It states that the solution to the PDE: with terminal condition , can be represented as an expectation of the stochastic process : This is fundamental to the Black-Scholes model and many fields of physics.

7. Python Implementation: Simulating SDEs

We can use the Euler-Maruyama method to simulate paths of Brownian Motion and GBM.

import numpy as np
import matplotlib.pyplot as plt

def simulate_paths(S0, mu, sigma, T, dt, N_paths):
    N_steps = int(T / dt)
    t = np.linspace(0, T, N_steps)
    
    # Generate random increments
    dW = np.random.normal(0, np.sqrt(dt), (N_paths, N_steps))
    W = np.cumsum(dW, axis=1)
    
    # 1. Standard Brownian Motion
    # W contains N_paths of BM
    
    # 2. Geometric Brownian Motion
    # Solution: S_t = S0 * exp((mu - 0.5*sigma**2)*t + sigma*W_t)
    S = S0 * np.exp((mu - 0.5 * sigma**2) * t + sigma * W)
    
    return t, W, S

# Parameters
T = 1.0; dt = 0.001; N_paths = 5
t, W, S = simulate_paths(S0=100, mu=0.05, sigma=0.2, T=T, dt=dt, N_paths=N_paths)

plt.figure(figsize=(12, 5))
plt.subplot(1, 2, 1)
for i in range(N_paths):
    plt.plot(t, W[i, :])
plt.title("Standard Brownian Motion $W_t$")
plt.grid(True)

plt.subplot(1, 2, 2)
for i in range(N_paths):
    plt.plot(t, S[i, :])
plt.title("Geometric Brownian Motion $S_t$")
plt.grid(True)
plt.show()

Conceptual Check

According to Ito's Lemma, what is the differential d(W_t^2)?

Conceptual Check

Why is the Ito integral defined using the left-endpoint of the interval?

Conceptual Check

Which property of Brownian Motion justifies the heuristic (dW_t)^2 = dt?