TQBTHEQUANTBATEMAN
TQB/ learn/ risk/ model risk governanceEN · DARK
Greeks, hedging & risk · front-office

Model risk & governance

Turn assumptions, limitations and residuals into controls.

BY THE END, YOU CAN

01Separate model, parameter and implementation risk

02Design challenger and benchmark tests

03Define monitoring and escalation thresholds

01
INTUITION

Define the exposure before compressing it into a metric.

A model is a controlled approximation: governance begins where mathematical validity ends.

01

Documentation is an executable contract.

02

Independent validation targets failure modes.

03

Monitoring connects residuals to action.

02
WHY MARKETS CARE

Fix portfolio, scenarios, horizon, and legal terms.

Prices, limits and capital are only defensible when model ownership, evidence and fallback actions are explicit.

INSTRUMENTS

pricing libraries

risk engines

calibration services

QUOTE CONVENTION

Every metric states owner, threshold, observation window and escalation path.

03
MATHEMATICS

Aggregate with an explicit measure and convention.

Formula · Definition

Validation residual

εi=Vimodel−Vibenchmark\varepsilon_i=V_i^{model}-V_i^{benchmark}

Residuals must be segmented by product and regime, not hidden in a global average.

Formula · Short derivation

Traffic-light control

Ii=1{∣εi∣>Ti}I_i=\mathbf1_{\{|\varepsilon_i|>T_i\}}

A breach is useful only when it triggers a documented response.

Short derivation
Short derivation

From information set to computable quantity

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

  1. 01

    Define intended use

    State products, markets, users and prohibited extrapolations.

  2. 02

    Map assumptions to tests

    Each material approximation receives an invariant, benchmark or stress.

  3. 03

    Set thresholds

    Use economic materiality and numerical evidence, not arbitrary round numbers.

  4. 04

    Close the control loop

    Assign owner, cadence, escalation and fallback for every breach.

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

Inputs
  • εmodel: benchmark residual
  • T: escalation threshold
Assumptions and limits
  • Governance cannot eliminate judgement or unknown unknowns.
  • Overly broad metrics can hide localized failure.
05
MODEL / PRICING

Reconcile valuation, risk, and model limitations.

METHOD

Maintain an assumption-to-test matrix with versioned evidence, challengers, thresholds, owners and fallback procedures.

CALIBRATION

Monitor parameter stability and calibration residuals by regime; do not treat refits as automatic remediation.

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

Model risk & governance

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

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

Move the state. Challenge the equation.

PORTFOLIO RISK LAB

Model risk & governance

Change scale, volatility, collateral and confidence. Exposure, tail and adjustment metrics respond from one synthetic portfolio.

SYNTHETIC · EDUCATIONAL
VaR0.970m95.00%
Expected Shortfall1.240maverage tail loss
Control statusESCALATEthreshold-linked action
loss (mm) by scenario index

Synthetic scenario losses with the selected historical VaR threshold.

  • scenario loss
  • VaR
scenario index: 0. scenario loss: 1.790m. VaR: 0.970m.

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

RISK AGGREGATION

Scenario → distribution → decision

Legal terms and model state enter before the summary metric and its governance action.

01State18.00% vol

Synthetic market scenarios

02Netting / CSA0.35m

Unsecured exposure boundary

03PFE2.55m

Decision metric with explicit convention

MODEL BOUNDARY

Synthetic pedagogical profile. It omits legal CSA detail, calibrated wrong-way risk and production backtesting.

08
FRONT OFFICE

Turn exposure into a controlled decision.

ON THE DESK
“Green status means evidence met a threshold, not that the model became true.”
VISIBLE INPUTS

model inventory

validation evidence

production telemetry

CALIBRATION

Monitor parameter stability and calibration residuals by regime; do not treat refits as automatic remediation.

RISK

scope creep

stale calibration

implementation drift

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.

01Model usetransmits

creates decision dependence

02Evidencetransmits

tests known failure modes

03Governanceoutput

limits and escalates residual risk

10COMMON PITFALLSOpen the failure checklist.
01

Equating a successful calibration with validation

02

Monitoring averages that hide tail breaches

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 ↗