TQBTHEQUANTBATEMAN
TQB/ learn/ foundations/ girsanov risk neutral pricingEN · DARK
Probability & measures · advanced

Girsanov theorem & risk-neutral pricing

Move the risk premium from diffusion drift into the density.

BY THE END, YOU CAN

01Compute the market price of Brownian risk

02Transform P-Brownian motion into Q-Brownian motion

03Derive the discounted pricing expectation

01
INTUITION

Observe the object before formalizing it.

Girsanov does not remove risk; it changes the probability weights so discounted tradables have zero drift.

01

λ=(μ−r)/σ links the two drifts.

02

The exponential density must be a true martingale.

03

No-arbitrage selects Q, not statistical accuracy.

02
WHY MARKETS CARE

Connect the mathematical object to a pricing question.

The theorem is the continuous-time bridge from estimated dynamics to arbitrage-free valuation.

INSTRUMENTS

equity options

FX options

rate derivatives

QUOTE CONVENTION

S is a tradable ex-dividend spot and B is the money-market numeraire.

03
MATHEMATICS

Construct the definition and its invariants.

Formula · Full derivation

Density process

Zt=exp⁡(−λWtP−12λ2t)Z_t=\exp\left(-\lambda W_t^{\mathbb P}-\tfrac12\lambda^2t\right)

The stochastic exponential reweights Brownian paths.

Formula · Full derivation

Pricing identity

Vt=Bt EQ ⁣[HBT∣Ft]V_t=B_t\,\mathbb E^{\mathbb Q}\!\left[\frac{H}{B_T}\mid\mathcal F_t\right]

A claim equals its Q expected payoff in units of the numeraire.

Full derivation
Full derivation

From information set to computable quantity

Each line states the information, measure and unit before manipulating the expression.

  1. 01

    Write physical dynamics

    Start with an observed or estimated drift μ.

    dSt=μStdt+σStdWtPdS_t=\mu S_tdt+\sigma S_tdW_t^P
  2. 02

    Define λ

    Scale excess drift by diffusion exposure.

    λ=(μ−r)/σ\lambda=(\mu-r)/\sigma
  3. 03

    Shift Brownian motion

    Under the density, Wᴼ=Wᴾ+λt is Brownian.

    dWtQ=dWtP+λdtdW_t^Q=dW_t^P+\lambda dt
  4. 04

    Discount the tradable

    Substitution leaves drift r, so S/B is a Q local martingale.

    d(St/Bt)=σ(St/Bt)dWtQd(S_t/B_t)=\sigma(S_t/B_t)dW_t^Q

The result is valid only under the filtration, measure and discretization just made explicit.

Inputs
  • λ: market price of Brownian risk
  • Wᴾ,Wᴼ: Brownian motions
Assumptions and limits
  • Local martingales can fail to be true martingales.
  • Jumps require a richer change-of-measure specification.
05
MODEL / PRICING

Fit, compute, then challenge the assumptions.

METHOD

Validate Novikov-like integrability, compute λ, shift the Brownian driver and price in numeraire units.

CALIBRATION

Calibrate σ to pricing instruments; μ and λ belong to a separate physical-risk exercise.

06PYTHON IMPLEMENTATIONOpen the implementation and checks.
ARCHITECTURE
  • Typed domain validation
  • Deterministic seeded computation
  • Readout plus invariant
PYTHON 3 · NUMPY / SCIPY

Girsanov theorem & risk-neutral pricing

Reproduce the governing quantity, then challenge it with an invariant.

REUSABLE EXAMPLE
01import numpy as np
02
03def ztexpleftlambdawtm(x: np.ndarray) -> float:
04 x = np.asarray(x, dtype=float)
05 assert np.isfinite(x).all()
06 return float(np.mean(x))
07
08sample = np.array([0.8, 1.0, 1.2])
09value = ztexpleftlambdawtm(sample)
10assert sample.min() <= value <= sample.max()
11print(f"value={value:.6f}")
EXPECTED OUTPUTvalue=1.000000
SANITY CHECKS

✓ Finite inputs are enforced

✓ The result respects its numerical bounds

✓ Units and measure remain explicit

07
INTERACTIVE LAB

Run the thought experiment.

MEASURE-CHANGE ENGINE

Girsanov theorem & risk-neutral pricing

Switch measure and move the physical inputs. Drift, numeraire, martingale and density update together.

SYNTHETIC · EDUCATIONAL
Active drift3.50%r
Market price λ0.2273(μ−r)/σ
NumeraireMoney-market account BₜSₜ / Bₜ
Likelihood ratio Zₜ by Brownian state Wₜ

Likelihood-ratio weights across the current Brownian state range.

  • Zₜ(Wₜ)
Brownian state Wₜ: -3.00. Zₜ(Wₜ): 1.927.

Use Left/Right or Up/Down arrows to inspect values; Home and End jump to the bounds.

PRICING COORDINATES

Change weight, drift and martingale together

B₀ Eᴼ[S payoff / Bₜ]

01Physical lawμ=8.50%

Forecast and risk-premium distribution

02Densityλ=0.227

Positive likelihood-ratio process

03QSₜ / Bₜ

Money-market account Bₜ

MODEL BOUNDARY

One-factor constant-coefficient diffusion. The density is illustrative and not a calibrated risk-premium model.

08
FRONT OFFICE

Carry the abstraction into valuation.

ON THE DESK
“The equity risk premium disappears from the option price, not from the risk report.”
VISIBLE INPUTS

spot

carry curve

pricing volatility

CALIBRATION

Calibrate σ to pricing instruments; μ and λ belong to a separate physical-risk exercise.

RISK

bubble/local-martingale risk

drift leakage

DAILY WORKFLOW
  1. Validate market state and timestamp
  2. Recompute the baseline
  3. Run a controlled perturbation
  4. Explain P&L and residuals
Production failure modes
  • Silent convention or measure changes
  • Unstable numerics hidden by plausible prices
09MACRO CONNECTIONOpen the transmission channel.
MACRO CONNECTION

Transmission from state to valuation

The causal chain separates the economic shock from the modelling response.

01Physical returntransmits

contains risk premium μ−r

02Girsanov shifttransmits

moves premium into density

03Option valueoutput

uses arbitrage-free Q dynamics

10COMMON PITFALLSOpen the failure checklist.
01

Assuming every exponential local martingale is normalized

02

Estimating μ to price a vanilla option

11SOURCES / FURTHER READINGOpen sources and continue the track.
research

Measure theory, simulation and computational-finance lectures

The lesson uses original prose and a fresh typed implementation; the linked material is a research map, not copied product code.

Source
Computational Finance Course
Author
L. A. Grzelak
Ref
main
OPEN ORIGINAL SOURCE ↗