TQBTHEQUANTBATEMAN
TQB/ learn/ foundations/ distributions moments characteristic functionsEN · DARK
Probability & measures · foundation

Distributions, moments & characteristic functions

Describe a payoff law before estimating, transforming, or pricing it.

BY THE END, YOU CAN

01Separate a random variable from its probability law.

02Compute expectations, variance, and standardized moments with units intact.

03Use a characteristic function to recover moments and support transform pricing.

04Diagnose when sample estimates do not identify a pricing distribution.

01
INTUITION

Observe the object before formalizing it.

A random variable maps scenarios to numbers; its law assigns probability to those numbers. Pricing, simulation and risk fail when those two objects—or their measures—are silently conflated.

01

Expectation is measure-dependent and carries the units of the variable.

02

Variance measures squared dispersion; volatility restores the original unit.

03

The characteristic function always exists and turns convolution into multiplication.

02
WHY MARKETS CARE

Connect the mathematical object to a pricing question.

Terminal payoff laws drive option values, exposure profiles, Monte Carlo estimators, Fourier pricing and tail-risk metrics.

INSTRUMENTS

European options

digital options

structured payoffs

portfolio loss distributions

QUOTE CONVENTION

State the probability measure, horizon, currency and whether the object is a return, price, payoff or loss before reporting a moment.

03
MATHEMATICS

Construct the definition and its invariants.

Formula · Short derivation

Expectation

E[X]=∫ΩX(ω)dP(ω)=∫Rx dFX(x)\mathbb E[X]=\int_{\Omega}X(\omega)d\mathbb P(\omega)=\int_{\mathbb R}x\,dF_X(x)

The two integrals describe the same average in scenario space and value space.

Formula · Short derivation

Variance

Var⁡(X)=E[(X−μ)2]=E[X2]−μ2\operatorname{Var}(X)=\mathbb E[(X-\mu)^2]=\mathbb E[X^2]-\mu^2

Variance is a second central moment and has squared units.

Formula · Full derivation

Characteristic function and moments

ϕX(u)=E[eiuX],E[Xn]=1inϕX(n)(0)\phi_X(u)=\mathbb E[e^{iuX}],\qquad \mathbb E[X^n]=\frac{1}{i^n}\phi_X^{(n)}(0)

Derivatives at the origin recover moments when they exist; transform pricers work directly with φ.

Full derivation
Full derivation

From the law to its Fourier representation

Start from an integrable law, expand only when the relevant moments exist, and keep the probability measure explicit.

  1. 01

    Encode the law

    Average the complex exponential over the distribution of X.

    ϕX(u)=∫ReiuxdFX(x)\phi_X(u)=\int_{\mathbb R}e^{iux}dF_X(x)
  2. 02

    Check normalization

    At zero frequency the integrand is one, so total probability fixes the transform.

    ϕX(0)=∫dFX(x)=1\phi_X(0)=\int dF_X(x)=1
  3. 03

    Differentiate under the integral

    If the corresponding absolute moment is finite, differentiation can pass through the expectation.

    ϕX(n)(u)=E[(iX)neiuX]\phi_X^{(n)}(u)=\mathbb E[(iX)^ne^{iuX}]
  4. 04

    Evaluate at the origin

    The exponential disappears and the nth raw moment remains.

    ϕX(n)(0)=inE[Xn]\phi_X^{(n)}(0)=i^n\mathbb E[X^n]

The characteristic function is a lossless representation of the law and a computational bridge to convolution and Fourier valuation.

Inputs
  • X: integrable random variable
  • F_X(x)=P(X≤x): cumulative distribution
  • μ=E[X], σ²=Var(X): first two central summaries
  • φ_X(u)=E[e^{iuX}]: characteristic function
Assumptions and limits
  • Finite variance and higher moments are assumptions, not universal properties.
  • Sample skew and kurtosis are unstable in small or heavy-tailed samples.
  • Risk-neutral and historical laws answer different questions.
05
MODEL / PRICING

Fit, compute, then challenge the assumptions.

METHOD

Define the law and measure first; use analytical moments when available and deterministic seeded estimators only as approximations with sampling error.

CALIBRATION

Distribution parameters may be estimated under P or calibrated under Q; the two objectives are not interchangeable.

06PYTHON IMPLEMENTATIONOpen the implementation and checks.
ARCHITECTURE
  • Pure distribution and moment functions
  • Deterministic seed at the experiment boundary
  • Analytical references beside sample diagnostics
PYTHON 3 · NUMPY / SCIPY

Normal-law moments and transform

Verify φ(0)=1 and recover the first two moments from an analytical characteristic function.

REUSABLE EXAMPLE
01from __future__ import annotations
02
03import cmath
04
05def normal_cf(u: float, mean: float, variance: float) -> complex:
06 if variance < 0:
07 raise ValueError("variance must be non-negative")
08 return cmath.exp(1j*u*mean - 0.5*variance*u*u)
09
10mean, variance = 0.03, 0.04
11assert abs(normal_cf(0.0, mean, variance) - 1.0) < 1e-14
12h = 1e-4
13first = (normal_cf(h, mean, variance)-normal_cf(-h, mean, variance))/(2*h)
14second = (normal_cf(h, mean, variance)-2*normal_cf(0, mean, variance)+normal_cf(-h, mean, variance))/(h*h)
15assert abs(first.imag-mean) < 1e-8
16assert abs(-second.real-(mean*mean+variance)) < 1e-6
17print(f"mean={first.imag:.6f} second_moment={-second.real:.6f}")
EXPECTED OUTPUTmean=0.030000 second_moment=0.040900
SANITY CHECKS

✓ φ(0)=1 to machine precision

✓ First and second moments match the analytical law

✓ Negative variance is rejected

07
INTERACTIVE LAB

Run the thought experiment.

INFORMATION EXPLORER

Distributions, moments & characteristic functions

Move the information clock. The admissible decision and conditional value update without revealing future states.

SYNTHETIC · EDUCATIONAL
t0Initial term sheetMEASURABLE NOW
t1Spot and first fixingMEASURABLE NOW
E[X | Fₜ]6.56node-weighted payoff
Tower checkPASSE[E[X|F₂]|F₁]=E[X|F₁]
MEASURABILITY FLOW

Information determines admissible action

A trading rule can use exactly the events revealed by the current σ-algebra.

01Fₜ4 atoms

Current information partition

02Statet1

Observable variables only

03Decisionblocked

No future observation enters the rule

MODEL BOUNDARY

Finite-state illustration only. Real filtrations encode continuous and asynchronous information.

08
FRONT OFFICE

Carry the abstraction into valuation.

ON THE DESK
“A moment without its measure, horizon and unit is not a risk number.”
VISIBLE INPUTS

return or payoff definition

measure and horizon

sample/filter policy

currency and unit

CALIBRATION

Choose estimation under P for forecasting or calibration under Q for pricing and document the objective.

RISK

tail estimation

sampling error

measure mismatch

DAILY WORKFLOW
  1. define the random quantity
  2. declare measure and horizon
  3. compute analytical or sampled summaries
  4. compare distributional diagnostics
Production failure modes
  • silent data filtering
  • unstable tail moments
  • mixing price and return units
09MACRO CONNECTIONOpen the transmission channel.
MACRO CONNECTION

From regime uncertainty to a priced law

Economic regimes alter physical outcomes; market prices add state-price weights before a risk-neutral distribution is inferred.

01Macro regimetransmits

changes physical frequencies

02Risk preferencestransmits

change state prices

03Option pricesoutput

identify a Q-law

10COMMON PITFALLSOpen the failure checklist.
01

Calling a random variable its distribution.

02

Comparing variance with volatility without changing units.

03

Assuming every distribution has finite moments.

04

Using historical moments as pricing parameters without a measure argument.

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

Ch. 1 §§1.1–1.1.3, printed pp. 1–8 (PDF pp. 20–27)

The formulation was checked against the cited sections; prose, examples and code are original to the Academy.

Source
Mathematical Modeling and Computation in Finance
Author
Cornelis W. Oosterlee and Lech A. Grzelak
Ref
First edition (2020)
OPEN ORIGINAL SOURCE ↗