Skip to content
LeetQuant
E01 Advanced Probability and Stochastic Calculus

E01 · Advanced Probability and Stochastic Calculus · Lesson 4 of 4

Change of Measure and Girsanov's Theorem

Radon–Nikodym derivatives as scenario reweighting, starting from a one-period tree; Girsanov's theorem for shifting the drift of Brownian motion; the risk-neutral measure and market price of risk; and pricing digital and asset-or-nothing options by changing measure.

20 min

Intuition: same scenarios, different weights

A probability measure assigns weights to scenarios. Changing measure keeps the scenarios (the paths) and changes their weights. If Q\mathbb{Q} and P\mathbb{P} agree on which events are impossible (they are equivalent), there is a positive random variable Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P}, the Radon–Nikodym derivative, with

EQ[X]=EP[ZX],Z>0,EP[Z]=1.\mathbb{E}^{\mathbb{Q}}[X] = \mathbb{E}^{\mathbb{P}}[Z X], \qquad Z > 0, \qquad \mathbb{E}^{\mathbb{P}}[Z] = 1 .

On a finite space, Z(ω)=Q(ω)/P(ω)Z(\omega) = \mathbb{Q}(\omega)/\mathbb{P}(\omega): the likelihood ratio, scenario by scenario. The Black–Scholes lesson asserted that prices are discounted expectations under a risk-neutral Q\mathbb{Q}. This lesson constructs Q\mathbb{Q} explicitly and uses the construction to price.

Worked example

a one-period tree

A stock at 100 moves to 120 or 90 in one period. The real-world probability of an up-move is p=0.6p = 0.6 and the interest rate is 00. Find the risk-neutral measure, the Radon–Nikodym derivative, and the price of a call struck at 100 computed both ways.

Show solution

Risk-neutral probability. Under Q\mathbb{Q} the stock must be a martingale (rates are zero): 120q+90(1−q)=100120q + 90(1 - q) = 100, so q=13q = \tfrac13.

Radon–Nikodym derivative. Scenario by scenario,

Z(up)=qp=1/30.6=59,Z(down)=1−q1−p=2/30.4=53.Z(\text{up}) = \frac{q}{p} = \frac{1/3}{0.6} = \frac59, \qquad Z(\text{down}) = \frac{1 - q}{1 - p} = \frac{2/3}{0.4} = \frac53 .

Check EP[Z]=0.6⋅59+0.4⋅53=13+23=1\mathbb{E}^{\mathbb{P}}[Z] = 0.6 \cdot \tfrac59 + 0.4 \cdot \tfrac53 = \tfrac13 + \tfrac23 = 1.

Price under Q\mathbb{Q}. The call pays 20 up and 0 down: 13×20=6.67\tfrac13 \times 20 = 6.67.

Price under P\mathbb{P} with ZZ. EP[Z⋅payoff]=0.6×59×20=6.67\mathbb{E}^{\mathbb{P}}[Z \cdot \text{payoff}] = 0.6 \times \tfrac59 \times 20 = 6.67. Same number, as it must be.

Reading ZZ. Z<1Z < 1 in the up state: the risk-neutral measure underweights good outcomes and overweights bad ones, because investors demand compensation for bearing the down state. Over several periods with independent steps, ZnZ_n is the product of the per-step ratios q/pq/p or (1−q)/(1−p)(1 - q)/(1 - p) along the path, and Zn=EP[Z∣Fn]Z_n = \mathbb{E}^{\mathbb{P}}[Z \mid \mathcal F_n] is a P\mathbb{P}-martingale (the density process).

Shifting a normal

The continuous version starts with one Gaussian. Let X∼N(0,1)X \sim N(0, 1) under P\mathbb{P} and define

Z=eθX−θ2/2.Z = e^{\theta X - \theta^2/2} .

Then Z>0Z > 0, EP[Z]=1\mathbb{E}^{\mathbb{P}}[Z] = 1, and the moment generating function under Q\mathbb{Q} is

EQ[euX]=EP[e(u+θ)X]e−θ2/2=e(u+θ)2/2−θ2/2=euθ+u2/2,\mathbb{E}^{\mathbb{Q}}[e^{uX}] = \mathbb{E}^{\mathbb{P}}\big[e^{(u + \theta)X}\big]e^{-\theta^2/2} = e^{(u + \theta)^2/2 - \theta^2/2} = e^{u\theta + u^2/2},

the MGF of N(θ,1)N(\theta, 1). Reweighting by an exponential of XX shifts the mean and leaves the variance alone. (In densities: φ(x) eθx−θ2/2=φ(x−θ)\varphi(x)\,e^{\theta x - \theta^2/2} = \varphi(x - \theta).) This is exactly importance sampling: to estimate a rare-event probability like P(X>4)P(X > 4), sample from the shifted normal and multiply by the likelihood ratio.

Girsanov's theorem

Apply the same idea to every increment of a Brownian path. Let WW be a P\mathbb{P}-Brownian motion on [0,T][0, T] and θt\theta_t an adapted process (constant in most applications). Define

ZT=dQdP=exp⁡ ⁣(−∫0Tθt dWt−12∫0Tθt2 dt).Z_T = \frac{d\mathbb{Q}}{d\mathbb{P}} = \exp\!\left(-\int_0^T \theta_t\,dW_t - \frac12\int_0^T \theta_t^2\,dt\right).

If ZZ is a true martingale (sufficient: Novikov's condition EP[e12∫0Tθt2 dt]<∞\mathbb{E}^{\mathbb{P}}\big[e^{\frac12\int_0^T \theta_t^2\,dt}\big] < \infty, automatic for bounded θ\theta), then

W~t=Wt+∫0tθs dsis a Brownian motion under Q.\widetilde W_t = W_t + \int_0^t \theta_s\,ds \quad \text{is a Brownian motion under } \mathbb{Q}.

With constant θ\theta: ZT=e−θWT−θ2T/2Z_T = e^{-\theta W_T - \theta^2T/2} and Wt=W~t−θtW_t = \widetilde W_t - \theta t, so under Q\mathbb{Q} the original WW is a Brownian motion with drift −θ-\theta. Sign conventions differ between books; check one case (as in the normal shift above) rather than memorising.

What Girsanov cannot do. It changes drift only. Equivalent measures share the same null sets, and quadratic variation, ∑(ΔW)2→t\sum(\Delta W)^2 \to t path by path, is an almost-sure property. A measure under which the volatility differed would give positive probability to paths that have probability zero under P\mathbb{P}, so it could not be equivalent. Volatility is observable from one path; drift is not.

The risk-neutral measure

Under P\mathbb{P} the stock follows dSt=μSt dt+σSt dWtdS_t = \mu S_t\,dt + \sigma S_t\,dW_t and cash earns rr. Rewrite the drift:

dSt=rSt dt+σSt (dWt+λ dt),λ=μ−rσ.dS_t = rS_t\,dt + \sigma S_t\,\big(dW_t + \lambda\,dt\big), \qquad \lambda = \frac{\mu - r}{\sigma} .

λ\lambda is the market price of risk: excess return per unit of volatility, the instantaneous Sharpe ratio. Girsanov with θ=λ\theta = \lambda makes W~t=Wt+λt\widetilde W_t = W_t + \lambda t a Q\mathbb{Q}-Brownian motion, and then

dSt=rSt dt+σSt dW~t,d(e−rtSt)=σe−rtSt dW~t.dS_t = rS_t\,dt + \sigma S_t\,d\widetilde W_t, \qquad d\big(e^{-rt}S_t\big) = \sigma e^{-rt}S_t\,d\widetilde W_t .

The discounted stock is a Q\mathbb{Q}-martingale, so Q\mathbb{Q} is the risk-neutral measure, with density ZT=e−λWT−λ2T/2Z_T = e^{-\lambda W_T - \lambda^2T/2}. Two consequences:

  • μ\mu enters only through ZZ. Prices computed under Q\mathbb{Q} do not depend on μ\mu, which is the measure-theoretic version of the hedging argument in the Black–Scholes lesson.
  • e−rTZTe^{-rT}Z_T is the pricing kernel (stochastic discount factor): V0=EP[e−rTZT h(ST)]V_0 = \mathbb{E}^{\mathbb{P}}[e^{-rT}Z_T\,h(S_T)]. Since WTW_T is increasing in STS_T and λ>0\lambda > 0, the kernel is high in bad states, as in the tree.

Worked example

pricing a digital option

A cash-or-nothing digital pays $1 if ST>KS_T > K. Take S0=100S_0 = 100, K=105K = 105, r=5%r = 5\%, σ=20%\sigma = 20\%, T=1T = 1, and real-world drift μ=12%\mu = 12\%. Price it, and compare with the real-world probability of payout.

Show solution

Under Q\mathbb{Q}. ST=S0exp⁡((r−12σ2)T+σW~T)S_T = S_0\exp\big((r - \tfrac12\sigma^2)T + \sigma\widetilde W_T\big), so

Q(ST>K)=Q(W~TT>ln⁡(K/S0)−(r−12σ2)TσT)=N(d2),\mathbb{Q}(S_T > K) = \mathbb{Q}\left(\frac{\widetilde W_T}{\sqrt T} > \frac{\ln(K/S_0) - (r - \tfrac12\sigma^2)T}{\sigma\sqrt T}\right) = N(d_2),

with d2=ln⁡(100/105)+(0.05−0.02)0.2=−0.04879+0.030.2=−0.0940d_2 = \dfrac{\ln(100/105) + (0.05 - 0.02)}{0.2} = \dfrac{-0.04879 + 0.03}{0.2} = -0.0940. So N(d2)=0.4626N(d_2) = 0.4626 and the price is e−0.05×0.4626=0.4400e^{-0.05} \times 0.4626 = 0.4400.

Real-world probability. Replace rr by μ\mu: −0.04879+0.100.2=0.256\dfrac{-0.04879 + 0.10}{0.2} = 0.256, so P(ST>K)=N(0.256)=0.601\mathbb{P}(S_T > K) = N(0.256) = 0.601.

Why the price is not e−rT×0.601=0.572e^{-rT} \times 0.601 = 0.572. That would discount a real-world expectation at the risk-free rate, ignoring that the payout happens in good states, which investors value less. The measure change does the risk adjustment: λ=(0.12−0.05)/0.2=0.35\lambda = (0.12 - 0.05)/0.2 = 0.35, and weighting each P\mathbb{P}-scenario by ZT=e−0.35 WT−0.06125Z_T = e^{-0.35\,W_T - 0.06125} turns 0.6010.601 into 0.46260.4626.

Verification by simulation, both directly under Q\mathbb{Q} and under P\mathbb{P} with the Radon–Nikodym weights:

import math
import random

S0, K, r, sigma, T, mu = 100.0, 105.0, 0.05, 0.2, 1.0, 0.12
lam = (mu - r) / sigma  # market price of risk


def N(x):
    return 0.5 * (1 + math.erf(x / math.sqrt(2)))


d2 = (math.log(S0 / K) + (r - sigma**2 / 2) * T) / (sigma * math.sqrt(T))
print(f"closed form   {math.exp(-r * T) * N(d2):.4f}")

rng = random.Random(42)
n = 200_000
q_sum = p_sum = z_sum = naive = 0.0
for _ in range(n):
    w = rng.gauss(0.0, math.sqrt(T))  # W_T under P
    # 1) simulate directly under Q: drift r
    s_q = S0 * math.exp((r - sigma**2 / 2) * T + sigma * w)
    q_sum += s_q > K
    # 2) simulate under P (drift mu) and reweight by Z_T = dQ/dP
    s_p = S0 * math.exp((mu - sigma**2 / 2) * T + sigma * w)
    z = math.exp(-lam * w - lam**2 * T / 2)
    p_sum += z * (s_p > K)
    z_sum += z
    naive += s_p > K
disc = math.exp(-r * T)
print(f"MC under Q    {disc * q_sum / n:.4f}")
print(f"MC under P, Z {disc * p_sum / n:.4f}")
print(f"naive under P {disc * naive / n:.4f}")
print(f"mean of Z     {z_sum / n:.4f}")

Output:

closed form   0.4400
MC under Q    0.4412
MC under P, Z 0.4407
naive under P 0.5728
mean of Z     0.9999

Both correct estimators agree with 0.44000.4400 to within Monte Carlo error (standard error about 0.0010.001); the naive one is off by 30%.

Worked example

Black–Scholes from two measure changes

With the same parameters, price an asset-or-nothing call (pays STS_T if ST>KS_T > K), and assemble the vanilla call from the two digitals.

Show solution

Change numeraire to the stock. Define QS\mathbb{Q}^S by

dQSdQ=e−rTSTS0=eσW~T−σ2T/2.\frac{d\mathbb{Q}^S}{d\mathbb{Q}} = \frac{e^{-rT}S_T}{S_0} = e^{\sigma\widetilde W_T - \sigma^2T/2} .

This is positive with Q\mathbb{Q}-mean 11 because the discounted stock is a Q\mathbb{Q}-martingale. It is a Girsanov density with θ=−σ\theta = -\sigma, so W^t=W~t−σt\widehat W_t = \widetilde W_t - \sigma t is a QS\mathbb{Q}^S-Brownian motion and

ST=S0exp⁡((r+12σ2)T+σW^T)under QS.S_T = S_0\exp\big((r + \tfrac12\sigma^2)T + \sigma\widehat W_T\big) \quad \text{under } \mathbb{Q}^S .

Price. e−rTEQ[ST 1ST>K]=S0 EQ[dQSdQ1ST>K]=S0 QS(ST>K)=S0N(d1)e^{-rT}\mathbb{E}^{\mathbb{Q}}[S_T\,\mathbf 1_{S_T > K}] = S_0\,\mathbb{E}^{\mathbb{Q}}\left[\frac{d\mathbb{Q}^S}{d\mathbb{Q}}\mathbf 1_{S_T > K}\right] = S_0\,\mathbb{Q}^S(S_T > K) = S_0 N(d_1), with d1=d2+σT=0.1060d_1 = d_2 + \sigma\sqrt T = 0.1060, so the price is 100×0.5422=54.22100 \times 0.5422 = 54.22.

The call. (ST−K)+=ST1ST>K−K 1ST>K(S_T - K)^+ = S_T\mathbf 1_{S_T > K} - K\,\mathbf 1_{S_T > K}, so

C=S0N(d1)−Ke−rTN(d2)=54.22−105×0.4400=8.02.C = S_0N(d_1) - Ke^{-rT}N(d_2) = 54.22 - 105 \times 0.4400 = 8.02 .

This explains the reading of the formula given in the Black–Scholes lesson: N(d2)N(d_2) is the exercise probability under Q\mathbb{Q}, and N(d1)N(d_1) is the exercise probability under the stock measure.

Knowledge check

A stock at 100 moves to 110 or 95 in one period, with real-world up-probability 0.75 and zero rates. What is the Radon–Nikodym derivative dQ/dP in the up state?

Knowledge check

WW is a P\mathbb{P}-Brownian motion and dQdP=e−θWT−θ2T/2\frac{d\mathbb{Q}}{d\mathbb{P}} = e^{-\theta W_T - \theta^2T/2} for a constant θ\theta. What is the law of WTW_T under Q\mathbb{Q}?

Knowledge check

A colleague proposes using Girsanov's theorem to move from a 30% volatility model under P to a 20% volatility model under an equivalent Q. What is wrong?

Knowledge check

A stock has expected return 10%, volatility 25%, and the risk-free rate is 2%. Its expected return rises to 14% with everything else fixed. What happens to the market price of risk and to the price of a digital call?

In interviews

  • "What is the risk-neutral measure?" The equivalent measure under which discounted traded prices are martingales. Construct it: λ=(μ−r)/σ\lambda = (\mu - r)/\sigma and ZT=e−λWT−λ2T/2Z_T = e^{-\lambda W_T - \lambda^2T/2}.
  • "Price a digital." e−rTN(d2)e^{-rT}N(d_2); then explain why the real-world probability is the wrong input.
  • "What does Girsanov let you change?" Drift only. Volatility is fixed by the paths.
  • "Why N(d1)N(d_1)?" Change numeraire to the stock; under that measure the stock drifts at r+σ2r + \sigma^2, giving N(d1)N(d_1) as the exercise probability.

Key takeaways

  • Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P} reweights scenarios: EQ[X]=EP[ZX]\mathbb{E}^{\mathbb{Q}}[X] = \mathbb{E}^{\mathbb{P}}[ZX], Z>0Z > 0, EPZ=1\mathbb{E}^{\mathbb{P}}Z = 1. On a tree it is q/pq/p per step.
  • Exponential tilting eθX−θ2/2e^{\theta X - \theta^2/2} shifts a normal's mean by θ\theta; Girsanov applies this to every Brownian increment: under ZT=e−∫θ dW−12∫θ2dtZ_T = e^{-\int\theta\,dW - \frac12\int\theta^2dt}, Wt+∫0tθ dsW_t + \int_0^t\theta\,ds is Brownian.
  • The market price of risk λ=(μ−r)/σ\lambda = (\mu - r)/\sigma is the Girsanov shift to the risk-neutral measure; μ\mu disappears from prices.
  • Digital call =e−rTN(d2)= e^{-rT}N(d_2); asset-or-nothing =S0N(d1)= S_0N(d_1) via the stock numeraire; their difference gives Black–Scholes.
  • Measure changes alter drift, never volatility.

Practice problems

Finished reading?

Answer the 4 knowledge checks to complete this lesson (0 done).