TQBTHEQUANTBATEMAN
TQB/ learn/ foundations/ conditional expectations martingalesEN · DARK
Probability & measures · intermediate

Conditional expectations & martingales

Project future cash flows onto today's information.

BY THE END, YOU CAN

01Interpret conditional expectation as an information projection

02Apply the tower property

03Test a discounted process for the martingale property

01
INTUITION

Observe the object before formalizing it.

Conditional expectation replaces an unknown payoff by the best integrable quantity measurable with what is known now.

01

It is a random variable, not usually a scalar.

02

It preserves averages on every known event.

03

The tower removes information in stages.

02
WHY MARKETS CARE

Connect the mathematical object to a pricing question.

Every risk-neutral price, exposure profile and continuation value is a conditional expectation.

INSTRUMENTS

American options

exposure simulation

structured notes

QUOTE CONVENTION

Values are numeraire-denominated and integrable under the stated measure.

03
MATHEMATICS

Construct the definition and its invariants.

Formula · Short derivation

Defining identity

∫AE[X∣Ft]dP=∫AXdP,A∈Ft\int_A \mathbb{E}[X\mid\mathcal{F}_t]d\mathbb{P}=\int_A Xd\mathbb{P},\quad A\in\mathcal{F}_t

Known events receive the same average mass before and after projection.

Short derivation
Short derivation

From information set to computable quantity

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

  1. 01

    Choose the information atoms

    Each atom contains states still indistinguishable at t.

  2. 02

    Average within each atom

    Weight terminal payoffs by their conditional probabilities.

    mA=∑ω∈AX(ω) P(ω∣A)m_A=\sum_{\omega\in A}X(\omega)\,P(\omega\mid A)
  3. 03

    Construct the projection

    Assign m_A to every scenario inside the same information atom.

    E[X∣Ft]=∑AmA1A\mathbb E[X|\mathcal F_t]=\sum_A m_A1_A
  4. 04

    Apply the tower

    Project once more onto a coarser σ-algebra and recover the direct projection.

    E[E[X∣Ft]∣Fs]=E[X∣Fs]E[E[X|\mathcal F_t]|\mathcal F_s]=E[X|\mathcal F_s]

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

Inputs
  • E[X|Fₜ]: Fₜ-measurable projection
  • Mₜ: integrable adapted process
Assumptions and limits
  • Nested regression can introduce projection bias.
  • Integrability is required; tail models matter.
Formula · Definition

Martingale condition

E[Mt∣Fs]=Ms,s≤t\mathbb{E}[M_t\mid\mathcal{F}_s]=M_s,\quad s\le t

Given current information, the future process has no predictable drift.

05
MODEL / PRICING

Fit, compute, then challenge the assumptions.

METHOD

Compute node-wise conditional averages and verify measurability, integrability and the tower property.

CALIBRATION

Estimate transition probabilities only when using an empirical tree; pricing trees impose the chosen measure.

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

Conditional expectations & martingales

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

REUSABLE EXAMPLE
01import numpy as np
02
03def intamathbbexmidmat(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 = intamathbbexmidmat(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.

INFORMATION EXPLORER

Conditional expectations & martingales

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 continuation value is a conditional expectation with an exercise decision attached.”
VISIBLE INPUTS

state variables

transition law

CALIBRATION

Estimate transition probabilities only when using an empirical tree; pricing trees impose the chosen measure.

RISK

regression bias

nested Monte Carlo error

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.

01New informationtransmits

state atom narrows

02Conditional lawtransmits

future scenarios are reweighted

03Valueoutput

continuation estimate moves

10COMMON PITFALLSOpen the failure checklist.
01

Replacing E[X|Fₜ] with unconditional E[X]

02

Ignoring the measure in the conditioning operator

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 ↗