Chapter 6

Stochastic Calculus

Brownian motion, Ito's lemma, and stochastic differential equations.

Stochastic Calculus for Finance

Stochastic calculus provides the mathematical framework for modeling random phenomena evolving over time. It is the foundation of modern derivatives pricing and risk management, enabling us to work with processes that have continuous but non-differentiable sample paths.

Brownian Motion (Wiener Process)

Definition

A Brownian motion (or Wiener process) WtW_t is a continuous-time stochastic process with the following properties:

  1. W0=0W_0 = 0
  2. WtW_t has independent increments: For 0<s<t0 < s < t, WtWsW_t - W_s is independent of WsW_s
  3. WtWsN(0,ts)W_t - W_s \sim N(0, t-s) (normally distributed increments)
  4. Sample paths are continuous but nowhere differentiable

Key Properties

  • E[Wt]=0E[W_t] = 0
  • Var(Wt)=tVar(W_t) = t
  • Cov(Ws,Wt)=min(s,t)Cov(W_s, W_t) = \min(s, t)
  • Quadratic variation: [W]t=t[W]_t = t (the sum of squared increments converges to tt)

Simulation

For discrete time step Δt\Delta t: Wt+Δt=Wt+ΔtZW_{t+\Delta t} = W_t + \sqrt{\Delta t} \cdot Z where ZN(0,1)Z \sim N(0, 1).

Geometric Brownian Motion (GBM)

Stock prices cannot be negative and exhibit proportional rather than absolute changes. The geometric Brownian motion model addresses this: dSt=μStdt+σStdWtdS_t = \mu S_t dt + \sigma S_t dW_t

This is the standard model for stock price dynamics in the Black-Scholes framework.

Solution (using Ito's lemma): St=S0exp[(μσ22)t+σWt]S_t = S_0 \exp\left[(\mu - \frac{\sigma^2}{2})t + \sigma W_t\right]

Note that StS_t is log-normally distributed, ensuring positive prices.

Stochastic Differential Equations (SDEs)

General Form

An SDE describes a process XtX_t as: dXt=μ(Xt,t)dt+σ(Xt,t)dWtdX_t = \mu(X_t, t) dt + \sigma(X_t, t) dW_t

  • Drift term μ(Xt,t)\mu(X_t, t): Deterministic tendency
  • Diffusion term σ(Xt,t)\sigma(X_t, t): Random fluctuations

Important Processes in Finance

Ornstein-Uhlenbeck (mean-reverting): dXt=θ(μXt)dt+σdWtdX_t = \theta(\mu - X_t)dt + \sigma dW_t Used for interest rate models (Vasicek) and pairs trading.

Cox-Ingersoll-Ross (CIR): drt=κ(θrt)dt+σrtdWtdr_t = \kappa(\theta - r_t)dt + \sigma\sqrt{r_t}dW_t Ensures non-negative interest rates.

Heston (stochastic volatility): dSt=μStdt+vtStdWt1dS_t = \mu S_t dt + \sqrt{v_t} S_t dW_t^1 dvt=κ(θvt)dt+ξvtdWt2dv_t = \kappa(\theta - v_t)dt + \xi\sqrt{v_t}dW_t^2 where dWt1dW_t^1 and dWt2dW_t^2 are correlated.

Ito's Lemma

The Fundamental Result

For ordinary calculus, if ff is a function of xx, we have df=f(x)dxdf = f'(x)dx. For stochastic processes, the situation is more complex because (dWt)2=dt(dW_t)^2 = dt (not zero!).

Ito's Lemma (one-dimensional): If XtX_t follows dXt=μdt+σdWtdX_t = \mu dt + \sigma dW_t, and f(Xt,t)f(X_t, t) is twice differentiable, then: df=(ft+μfx+12σ22fx2)dt+σfxdWtdf = \left(\frac{\partial f}{\partial t} + \mu\frac{\partial f}{\partial x} + \frac{1}{2}\sigma^2\frac{\partial^2 f}{\partial x^2}\right)dt + \sigma\frac{\partial f}{\partial x}dW_t

The crucial extra term 12σ22fx2\frac{1}{2}\sigma^2\frac{\partial^2 f}{\partial x^2} arises from the quadratic variation of Brownian motion.

Application: Deriving GBM Solution

Let Yt=ln(St)Y_t = \ln(S_t) where dSt=μStdt+σStdWtdS_t = \mu S_t dt + \sigma S_t dW_t.

Applying Ito's lemma with f(S)=ln(S)f(S) = \ln(S):

  • fS=1S\frac{\partial f}{\partial S} = \frac{1}{S}
  • 2fS2=1S2\frac{\partial^2 f}{\partial S^2} = -\frac{1}{S^2}

dYt=1S(μSdt+σSdWt)12σ2S2S2dtdY_t = \frac{1}{S}(\mu S dt + \sigma S dW_t) - \frac{1}{2}\frac{\sigma^2 S^2}{S^2}dt dYt=(μσ22)dt+σdWtdY_t = (\mu - \frac{\sigma^2}{2})dt + \sigma dW_t

Integrating: YtY0=(μσ22)t+σWtY_t - Y_0 = (\mu - \frac{\sigma^2}{2})t + \sigma W_t

Therefore: St=S0e(μσ2/2)t+σWtS_t = S_0 e^{(\mu - \sigma^2/2)t + \sigma W_t}

Risk-Neutral Valuation

Change of Measure

Under the risk-neutral measure Q\mathbb{Q}, all assets earn the risk-free rate in expectation. This is achieved by Girsanov's theorem, which changes the drift of Brownian motion.

Under Q\mathbb{Q}: dSt=rStdt+σStdW~tdS_t = rS_t dt + \sigma S_t d\tilde{W}_t

where W~t\tilde{W}_t is a Brownian motion under Q\mathbb{Q}.

Derivative Pricing Formula

The price of a derivative with payoff Φ(ST)\Phi(S_T) is: V0=erTEQ[Φ(ST)]V_0 = e^{-rT}\mathbb{E}^{\mathbb{Q}}[\Phi(S_T)]

This expectation under the risk-neutral measure can be:

  • Computed analytically (Black-Scholes for European options)
  • Approximated via Monte Carlo simulation
  • Solved via PDE methods (Feynman-Kac)

Stochastic Integrals

Ito Integral

The stochastic integral 0Tf(t)dWt\int_0^T f(t) dW_t is defined as a limit of sums evaluated at the left endpoint: 0Tf(t)dWt=limni=0n1f(ti)(Wti+1Wti)\int_0^T f(t) dW_t = \lim_{n\to\infty} \sum_{i=0}^{n-1} f(t_i)(W_{t_{i+1}} - W_{t_i})

Key properties:

  • E[0Tf(t)dWt]=0E[\int_0^T f(t) dW_t] = 0
  • E[(0Tf(t)dWt)2]=0TE[f(t)2]dtE[(\int_0^T f(t) dW_t)^2] = \int_0^T E[f(t)^2] dt (Ito isometry)

Stratonovich vs. Ito

Stratonovich integrals evaluate at midpoints, giving standard calculus rules but losing the martingale property. Finance uses Ito calculus because:

  • Ito integrals are martingales
  • Compatible with no-arbitrage pricing
  • Naturally handles discrete trading approximations

Numerical Methods for SDEs

Euler-Maruyama Scheme

The simplest discretization: Xt+Δt=Xt+μ(Xt,t)Δt+σ(Xt,t)ΔtZX_{t+\Delta t} = X_t + \mu(X_t, t)\Delta t + \sigma(X_t, t)\sqrt{\Delta t}Z

Has strong convergence order 0.5.

Milstein Scheme

Adds a correction term for better accuracy: Xt+Δt=Xt+μΔt+σΔtZ+12σσ(ΔtZ2Δt)X_{t+\Delta t} = X_t + \mu\Delta t + \sigma\sqrt{\Delta t}Z + \frac{1}{2}\sigma\sigma'(\Delta t Z^2 - \Delta t)

Has strong convergence order 1.0.

Choosing the right scheme depends on the application: weak convergence (distribution accuracy) vs. strong convergence (path accuracy).

ELI10 Explanation

Simple analogy for better understanding

Imagine you're tracking a ladybug walking on a piece of paper. It moves randomly - sometimes left, sometimes right - and you can never predict exactly where it'll go next. Stochastic calculus is the special math we use to describe this kind of random movement. In finance, stock prices move a bit like that ladybug - they go up and down in ways we can't perfectly predict. Ito's lemma is like a special rule that tells us how to do math with these wiggly, unpredictable paths, which helps us figure out fair prices for things like stock options.

Self-Examination

Q1.

Explain why Brownian motion paths are continuous but nowhere differentiable. What implications does this have for financial modeling?

Q2.

Apply Ito's lemma to find the SDE satisfied by $f(S_t) = S_t^2$ when $S_t$ follows geometric Brownian motion.

Q3.

What is the economic interpretation of the drift adjustment from $\mu$ to $r$ when moving to the risk-neutral measure?

Q4.

Compare the Euler-Maruyama and Milstein schemes. When is the additional complexity of Milstein justified?

Q5.

Explain why the Ornstein-Uhlenbeck process is appropriate for modeling interest rates or mean-reverting spreads.