FRTB Internal Model Validation Kit: Cross-Product Edition
Executive Summary
This FRTB Internal Model Validation (IMV) Kit is designed for banks implementing the Fundamental Review of the Trading Book (FRTB) internal models market risk framework under Basel IV. It supports cross-product validation across major asset classes: Equities, FX, Rates, Credit, Commodities, and Equities/ETFs. The kit focuses on four core components mandated by FRTB (MAR.3.11–MAR.3.15 and MAR.22):
Risk-Theoretical P&L (RPnL) Diagnostics – Validates model sensitivity to risk factors.
P&L Attribution (PLA) Drill Scripts – Granular decomposition tests.
Remediation Logs – Structured issue tracking.
Independent Review Protocols – End-to-end validation governance.
Usage Instructions :
Customize templates for your firm's data (e.g., via Python/R/Excel/SQL).
Run quarterly or upon material model changes (per FRTB MAR.22.4).
Thresholds are indicative; calibrate to your 99% ES/FRTB sensitivities.
Tools Recommended : Python (pandas, scipy), R (FRTB packages), or vendor platforms (Murex, Calypso).
Key Metrics Overview :
Metric Threshold Purpose RPnL/HPnL Spearman Correlation >97% Risk capture PLA Desk/Level Variance Explained >99% Attribution fidelity Backtest Exceptions (BEE/PLBE) <4/year Model soundness
1. Risk-Theoretical P&L Diagnostics
RPnL diagnostics compare Hypothetical P&L (HPnL) – revaluing clean positions – against Risk-Theoretical P&L (RPnL) – linear sum of sensitivities × risk factor returns. Ensures model reflects risk theory (FRTB MAR.3.12).
Methodology
Data Inputs :
Daily HPnL (clean EOD reval).
Sensitivities (Δ, Γ, V@R) per risk factor (e.g., IRDeltaBucket).
Risk factor shocks (realized returns).
Core Tests (Daily/10d Rolling):
Test Formula Pass Threshold Cross-Product Notes Spearman Rank Corr. scipy.stats.spearmanr(HPnL, RPnL)ρ > 0.97 Aggregate by desk/product; flag FX/Comms volatility. Mean Diff. mean(HPnL - RPnL)|diff| < 0.5% HPnL std Normalize by product vol (e.g., equity IV). R² Fit 1 - SSE/SST (linear reg.)> 99% Quadratic for Γ-sensitive products (Rates/Equity). Tail QQ Plot Quantile match (99% ES) KS-test p>0.05 Stress tails for Credit/Comms. Horizon Decay Corr. over 1d/10d Decay <5% Multi-period for FRTB backtesting.
Diagnostic Template (Excel/Python Snippet):
python Copy code
import pandas as pd
import numpy as np
from scipy import stats
df = pd.read_csv('frtb_pnl_data.csv') # Columns: Date, Desk, Product, HPnL, RPnL
df['Spearman'] = df.groupby(['Desk', 'Product']).apply(
lambda x: stats.spearmanr(x['HPnL'], x['RPnL'])[0]
).reset_index(0, drop=True)
# Flag breaches
breaches = df[df['Spearman'] < 0.97]
breaches.to_csv('rpnl_breaches.csv', index=False)
print(breaches.groupby('Product').size()) # e.g., Commodities: 3 breaches
Reporting Dashboard :
Heatmap: Product × Desk correlation matrix.
Trend charts: 260d rolling metrics.
2. PLA Drill Scripts
P&L Attribution (PLA) drills validate full reval decomposition into desk-level (99%+ variance) and risk class buckets (FRTB MAR.3.13). Scripts "drill" from aggregate PnL to atomic factors.
Methodology
Levels : Trading Desk → Risk Class → Bucket → Factor.
Test : Reconstructed PnL = Σ(Sens × Shock) matches Hypo PnL within ε=0.1%.
Cross-product: Handle non-linearities (e.g., smile Vega for FX/Eq).
Drill Scripts (Python Pseudo-Code; Adapt for SQL/Procs)
Top-Level PLA Reconstruction :
python Copy code
def pla_drill(df_sens, df_shocks, df_hypo):
# df_sens: Sens, FactorID, Desk, Value
# df_shocks: Date, FactorID, Shock
# Merge & compute
df_attr = df_sens.merge(df_shocks, on='FactorID')
df_attr['Attributed_PnL'] = df_attr['Sens'] * df_attr['Shock']
desk_pla = df_attr.groupby(['Date', 'Desk'])['Attributed_PnL'].sum().reset_index()
# Compare to hypo
merged = desk_pla.merge(df_hypo[['Date', 'Desk', 'HypoPnL']], on=['Date','Desk'])
merged['Explained_Var'] = 1 - np.var(merged['HypoPnL'] - merged['Attributed_PnL']) / np.var(merged['HypoPnL'])
breaches = merged[merged['Explained_Var'] < 0.99]
return breaches, merged
Granular Drills (Per Product):
Product Drill Focus Script Params Equities CSM/Delta + Vega bucket='EquitySpot', Γ testFX Delta + Curvature risk_class='FXDelta'Rates IRDeltaBucket + Vega 10yr shock ladder Credit CSMBucket + Default Spread + Corr. risk Commodities Base/Spread + Vol Energy-specific shocks
Validation Checks :
Desk-level: >99.5% R².
Run on 1d/10d PnL; flag residuals >1bp.
3. Remediation Logs
Standardized log for breaches (e.g., RPnL corr <97%). Mandatory per FRTB MAR.22.5.
Log Template (Excel/Markdown Table)
Issue ID Date Detected Component (RPnL/PLA) Desk/Product Metric Breach Details Severity (H/M/L) Root Cause Remediation Plan Owner Target Date Status Close Date Evidence RPNL-001 2024-01-15 RPnL Spearman FX Desk/FXDelta 0.95 Tail mismatch High Smile non-linearity Recalibrate Vega Jane Doe 2024-02-15 In Progress Model doc v2 PLA-002 2024-02-01 PLA Desk Var Rates/IRC 98.2% Bucket mismatch Medium Shock misalignment SQL fix shocks John Smith 2024-03-01 Closed 2024-02-20 Test log
Process :
Log within 5bd of detection.
Escalate High severity to CRO.
Quarterly review: >90% closed within 30d.
4. Independent Review Protocols
Governs Model Validation Group (MVG) independence (FRTB MAR.22). Annual + event-driven.
Step-by-Step Protocol
Scoping (MVG Lead):
Review model change log.
Select 20% sample desks/products.
Execution Checklist :
Step Description Deliverable Sign-Off 1. Data QA Validate inputs (PnL, Sens). Data lineage report. Data Team 2. RPnL Run Execute diagnostics. Breach report + charts. Quant 3. PLA Drills Full decomposition. Variance table. Model Owner 4. Backtesting BEE/PLBE counts. Exception log. Risk Mgr 5. Stress FRTB prescribed + firm. Capital impact. MVG 6. Governance Peer review. Final report. CRO
Reporting Template :
Executive Summary (1-pager).
Findings (use Remediation Log).
Approvals: Model Owner → MVG → CRO → Regulators (if material).
Frequency & Escalation :
Full: Annual.
Targeted: Post-breach.
Reject model if >5 High issues.
Kit Maintenance : Review annually or post-FRTB updates. Contact Trailblazer Labs for enhancements.
Developed by Sherlock, Trailblazer Labs. For internal use only.