Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide/Stochastic models

Change of measure and Girsanov's theorem

Lesson 11 of 15 · 1 min read

Option pricing works with two sets of probabilities for the same outcomes: the real-world measure P\mathbb{P}P and the risk-neutral measure Q\mathbb{Q}Q. The lesson "Risk-neutral probabilities" introduced them on a one-step tree. This lesson shows how one measure is turned into the other by reweighting outcomes, first on the tree and then for Brownian motion, using the tools from "Random walks and Brownian motion" and "Itô's lemma". The continuous-time result is Girsanov's theorem.

Two measures on the same outcomes

A probability measure assigns a probability to every event. Two measures can share the same set of possible outcomes and disagree only about how likely each one is. In the one-step binomial model the stock goes up or down; under P\mathbb{P}P the up move has probability ppp, under Q\mathbb{Q}Q it has probability qqq. The outcomes, and hence every payoff, are identical. Only the weights differ.

A fair picture is a die that is reloaded: the six faces stay the same, but the chance of each face changes. Changing the measure means reloading the die, not repainting it.

The density between two measures

Define a random variable ZZZ that, in each outcome, is the ratio of the two probabilities. On the tree it takes two values:

Zu=qp,Zd=1−q1−p.Z_u = \frac{q}{p}, \qquad Z_d = \frac{1-q}{1-p}.Zu​=pq​,Zd​=1−p1−q​.

Multiplying by ZZZ converts a P\mathbb{P}P-expectation into a Q\mathbb{Q}Q-expectation. For any payoff XXX with values XuX_uXu​ and XdX_dXd​:

EP[ZX]=p qp Xu+(1−p) 1−q1−p Xd=qXu+(1−q)Xd=EQ[X].\mathbb{E}^{\mathbb{P}}[Z X] = p\,\frac{q}{p}\,X_u + (1-p)\,\frac{1-q}{1-p}\,X_d = q X_u + (1-q) X_d = \mathbb{E}^{\mathbb{Q}}[X].EP[ZX]=ppq​Xu​+(1−p)1−p1−q​Xd​=qXu​+(1−q)Xd​=EQ[X].

Taking X=1X = 1X=1 shows that EP[Z]=1\mathbb{E}^{\mathbb{P}}[Z] = 1EP[Z]=1, and ZZZ is positive in every outcome. In general such a ZZZ is called the Radon–Nikodym derivative and is written Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P}Z=dQ/dP.

Example: with S0=100S_0 = 100S0​=100, u=1.2u = 1.2u=1.2, d=0.9d = 0.9d=0.9 and r=2%r = 2\%r=2%, the risk-neutral probability is q=0.4q = 0.4q=0.4. Suppose the real probability is p=0.6p = 0.6p=0.6. Then Zu=0.4/0.6≈0.667Z_u = 0.4/0.6 \approx 0.667Zu​=0.4/0.6≈0.667 and Zd=0.6/0.4=1.5Z_d = 0.6/0.4 = 1.5Zd​=0.6/0.4=1.5. The check 0.6⋅0.667+0.4⋅1.5=10.6 \cdot 0.667 + 0.4 \cdot 1.5 = 10.6⋅0.667+0.4⋅1.5=1 holds. For a call with strike 100, Xu=20X_u = 20Xu​=20 and Xd=0X_d = 0Xd​=0, so EP[ZX]=0.6⋅0.667⋅20=8\mathbb{E}^{\mathbb{P}}[ZX] = 0.6 \cdot 0.667 \cdot 20 = 8EP[ZX]=0.6⋅0.667⋅20=8, which equals EQ[X]=0.4⋅20=8\mathbb{E}^{\mathbb{Q}}[X] = 0.4 \cdot 20 = 8EQ[X]=0.4⋅20=8. Discounting gives the call price 8/1.02≈7.848/1.02 \approx 7.848/1.02≈7.84. The density shrinks the weight of the good outcome and raises the weight of the bad one.

Equivalent measures

The density only makes sense if ppp and 1−p1 - p1−p are both positive, so that nothing is divided by zero. Two measures are equivalent when they agree on which events are impossible: an event has probability zero under P\mathbb{P}P exactly when it has probability zero under Q\mathbb{Q}Q. Then ZZZ is strictly positive and the change of measure can be undone with 1/Z1/Z1/Z.

This is the condition that matters for pricing. An arbitrage is a strategy that cannot lose and may win. Whether something is possible or impossible is the same under equivalent measures, so a market free of arbitrage under P\mathbb{P}P is free of arbitrage under Q\mathbb{Q}Q as well.

Two measures are equivalent if they have the same impossible events. Between equivalent measures, EQ[X]=EP[ZX]\mathbb{E}^{\mathbb{Q}}[X] = \mathbb{E}^{\mathbb{P}}[ZX]EQ[X]=EP[ZX] with a strictly positive density Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P}Z=dQ/dP that has EP[Z]=1\mathbb{E}^{\mathbb{P}}[Z] = 1EP[Z]=1.

Shifting the mean of a normal variable

Now let the outcome be continuous. Under P\mathbb{P}P let WT∼N(0,T)W_T \sim N(0, T)WT​∼N(0,T), the value of a Brownian motion at time TTT. Fix a number θ\thetaθ and define

Z=exp⁡ ⁣(−θWT−12θ2T).Z = \exp\!\left(-\theta W_T - \tfrac{1}{2}\theta^2 T\right).Z=exp(−θWT​−21​θ2T).

It is positive, and its P\mathbb{P}P-mean is 1, because E[e−θWT]=e12θ2T\mathbb{E}[e^{-\theta W_T}] = e^{\frac12\theta^2 T}E[e−θWT​]=e21​θ2T for a normal variable with variance TTT. Multiply the normal density of WTW_TWT​ by ZZZ and complete the square in the exponent:

12πT e−w22T⋅e−θw−12θ2T=12πT e−(w+θT)22T.\frac{1}{\sqrt{2\pi T}}\,e^{-\frac{w^2}{2T}} \cdot e^{-\theta w - \frac12\theta^2 T} = \frac{1}{\sqrt{2\pi T}}\,e^{-\frac{(w + \theta T)^2}{2T}}.2πT​1​e−2Tw2​⋅e−θw−21​θ2T=2πT​1​e−2T(w+θT)2​.

The result is again a normal density with the same variance TTT, but with mean −θT-\theta T−θT. Reweighting by ZZZ has moved the distribution sideways without changing its shape. Outcomes on one side get weights above 1, outcomes on the other side weights below 1.

Worked example

Reweighting a normal variable with θ = 0.5

  1. Let W1∼N(0,1)W_1 \sim N(0, 1)W1​∼N(0,1) under P\mathbb{P}P and θ=0.5\theta = 0.5θ=0.5, T=1T = 1T=1. Weight of the outcome W1=1W_1 = 1W1​=1.

    Z=e−θ⋅1−12θ2\displaystyle Z = e^{-\theta \cdot 1 - \frac12\theta^2}Z=e−θ⋅1−21​θ2=0.5353
  2. Weight of the outcome W1=−1W_1 = -1W1​=−1.

    Z=eθ−12θ2\displaystyle Z = e^{\theta - \frac12\theta^2}Z=eθ−21​θ2=1.455
  3. Mean of W1W_1W1​ under the reweighted measure Q\mathbb{Q}Q.

    −θT\displaystyle -\theta T−θT=-0.5
  4. Variance of W1W_1W1​ under Q\mathbb{Q}Q: the shape is unchanged.

    T\displaystyle TT=1

Girsanov's theorem

The same reweighting works for the whole path, not just the endpoint. Girsanov's theorem states: if WWW is a Brownian motion under P\mathbb{P}P and Q\mathbb{Q}Q is defined by the density ZZZ above, then

W~t=Wt+θt\tilde W_t = W_t + \theta tW~t​=Wt​+θt

is a Brownian motion under Q\mathbb{Q}Q. The paths themselves are unchanged. Under the new weights, WWW acquires a drift of −θ-\theta−θ per unit time, and adding θt\theta tθt back removes it. In increments, dWt=dW~t−θ dtdW_t = d\tilde W_t - \theta\,dtdWt​=dW~t​−θdt: a change of measure changes the drift of a process and leaves its volatility alone.

Geometric Brownian motion under the risk-neutral measure

Take the stock model from "Geometric Brownian motion", dSt=μSt dt+σSt dWtdS_t = \mu S_t\,dt + \sigma S_t\,dW_tdSt​=μSt​dt+σSt​dWt​, and substitute dWt=dW~t−θ dtdW_t = d\tilde W_t - \theta\,dtdWt​=dW~t​−θdt:

dSt=(μ−σθ) St dt+σSt dW~t.dS_t = (\mu - \sigma\theta)\,S_t\,dt + \sigma S_t\,d\tilde W_t.dSt​=(μ−σθ)St​dt+σSt​dW~t​.

Choose θ\thetaθ so that the drift becomes the risk-free rate rrr:

θ=μ−rσ,dSt=rSt dt+σSt dW~t.\theta = \frac{\mu - r}{\sigma}, \qquad dS_t = r S_t\,dt + \sigma S_t\,d\tilde W_t.θ=σμ−r​,dSt​=rSt​dt+σSt​dW~t​.

The number θ\thetaθ is the market price of risk: the excess return of the stock per unit of volatility. Under Q\mathbb{Q}Q the stock earns rrr on average, the continuous-time version of EQ[S1]=(1+r)S0\mathbb{E}^{\mathbb{Q}}[S_1] = (1+r)S_0EQ[S1​]=(1+r)S0​ on the tree. By Itô's lemma, as in "Itô's lemma",

ln⁡STS0∼N ⁣((μ−12σ2)T, σ2T) under P,ln⁡STS0∼N ⁣((r−12σ2)T, σ2T) under Q.\ln\frac{S_T}{S_0} \sim N\!\left(\left(\mu - \tfrac12\sigma^2\right)T,\ \sigma^2 T\right) \text{ under } \mathbb{P}, \qquad \ln\frac{S_T}{S_0} \sim N\!\left(\left(r - \tfrac12\sigma^2\right)T,\ \sigma^2 T\right) \text{ under } \mathbb{Q}.lnS0​ST​​∼N((μ−21​σ2)T, σ2T) under P,lnS0​ST​​∼N((r−21​σ2)T, σ2T) under Q.

This explains why option prices depend on σ\sigmaσ but not on μ\muμ. A price is a discounted Q\mathbb{Q}Q-expectation, and under Q\mathbb{Q}Q the drift is rrr whatever μ\muμ was. The volatility survives the change of measure, because Girsanov only shifts the mean.

Example: μ=10%\mu = 10\%μ=10%, r=3%r = 3\%r=3%, σ=20%\sigma = 20\%σ=20%, T=1T = 1T=1. The market price of risk is θ=(0.10−0.03)/0.20=0.35\theta = (0.10 - 0.03)/0.20 = 0.35θ=(0.10−0.03)/0.20=0.35. The mean log return is 0.10−0.02=0.080.10 - 0.02 = 0.080.10−0.02=0.08 under P\mathbb{P}P and 0.03−0.02=0.010.03 - 0.02 = 0.010.03−0.02=0.01 under Q\mathbb{Q}Q; the standard deviation is 0.200.200.20 under both. A path with W1=1W_1 = 1W1​=1 (a good year) gets weight Z=e−0.35−0.06125≈0.663Z = e^{-0.35 - 0.06125} \approx 0.663Z=e−0.35−0.06125≈0.663, and a path with W1=−1W_1 = -1W1​=−1 gets e0.35−0.06125≈1.335e^{0.35 - 0.06125} \approx 1.335e0.35−0.06125≈1.335.

The figure plots the density of ln⁡(ST/S0)\ln(S_T/S_0)ln(ST​/S0​) for T=1T = 1T=1 under P\mathbb{P}P and under Q\mathbb{Q}Q, together with a histogram line of 200 000 draws simulated under P\mathbb{P}P and reweighted by Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P}Z=dQ/dP. The reweighted histogram lands close to the Q\mathbb{Q}Q density; the small gap is sampling noise. Move μ\muμ and note that only the P\mathbb{P}P curve moves, while the Q\mathbb{Q}Q curve stays put and the reweighted sample stays close to it. Move rrr to shift the Q\mathbb{Q}Q curve, and σ\sigmaσ to widen both. The readouts show θ\thetaθ, the means under P\mathbb{P}P and Q\mathbb{Q}Q, and the mean of the reweighted sample, which stays close to the Q\mathbb{Q}Q mean (at the defaults 0.94% against 1.00%).

Distribution of the log return under P and QOpen in Geometric Brownian Motion →
10.0%
00.2
3.00%
00.08
20%
0.10.4
Density under PDensity under QP-sample reweighted by dQ/dP
θ = (μ − r)/σ
0.350
Mean under P
8.00%
Mean under Q
1.00%
Mean of reweighted sample
0.94%

Summary

  • Two measures on the same outcomes differ only in their weights. The density Z=dQ/dPZ = d\mathbb{Q}/d\mathbb{P}Z=dQ/dP converts one into the other: EQ[X]=EP[ZX]\mathbb{E}^{\mathbb{Q}}[X] = \mathbb{E}^{\mathbb{P}}[ZX]EQ[X]=EP[ZX].
  • Equivalent measures share their impossible events, so they agree on what counts as an arbitrage.
  • Reweighting a normal variable by e−θWT−12θ2Te^{-\theta W_T - \frac12\theta^2 T}e−θWT​−21​θ2T shifts its mean by −θT-\theta T−θT and keeps its variance.
  • Girsanov: W~t=Wt+θt\tilde W_t = W_t + \theta tW~t​=Wt​+θt is a Q\mathbb{Q}Q-Brownian motion. With θ=(μ−r)/σ\theta = (\mu - r)/\sigmaθ=(μ−r)/σ the stock drifts at rrr under Q\mathbb{Q}Q.
  • Prices are Q\mathbb{Q}Q-expectations, so they depend on σ\sigmaσ but not on μ\muμ.

The next lesson, "Monte Carlo option pricing", simulates the stock directly under Q\mathbb{Q}Q, with drift rrr, as this lesson justifies.

Try itCompare drift and volatility of simulated stock paths in the GBM lab →
2 questions on this lesson at the end of the series →
← PreviousKolmogorov equations and the Feynman–Kac formulaNext →Monte Carlo option pricing
Connections
Change of measure and Girsanov's theorem
Open the full graph →
Labs for this lesson
Geometric Brownian Motion