Learning Objectives
- Measure tail risk with VaR and CVaR, including regime-conditional estimates and liquidity-aware interpretation
- Evaluate path risk using drawdown depth, drawdown duration, recovery time, and related path-dependent metrics
- Decompose portfolio risk into market, factor, sector, geographic, and macro exposures to distinguish intended from unintended bets
- Design and interpret historical, hypothetical, and reverse stress tests that challenge return, cost, volatility, and correlation assumptions together
- Build adaptive risk controls, including volatility targeting, exposure caps, and position-level exits, using only information available at decision time
- Specify kill switches, drift monitoring, and governance artifacts that turn a backtested strategy into a deployable trading system
Risk in the ML4T Workflow: From Backtest Winner to Tradable System
This section establishes three governing principles for risk management: all controls must be implementable without lookahead, all controls must be auditable with traceable signal-to-action chains, and governance artifacts must exist before deployment. It contrasts a backtested model (implicit position limits, undefined failure modes, research notebook documentation) with a risk-managed system (explicit caps, predefined de-risking triggers, kill switches with escalation rules, risk term sheets). Risk management sits at the interface between research and execution, asking the question that remains after validation, portfolio construction, and cost modeling: given all of this, what can still kill us?
2 notebooks
A Practical Risk Taxonomy for Quant Strategies
Starting from four empirical regularities of asset returns (low serial correlation, strong volatility clustering, heavy tails, and frequency-dependent normality), this section builds a seven-category risk taxonomy mapping each type to observable proxies and enforceable controls. Market risk, factor risk, leverage risk, concentration risk, liquidity/capacity risk, model risk, and operational risk each receive specific metrics and monitoring frequencies. The synthesis is a risk control matrix that connects each category to its proxy, control mechanism, and review cadence -- transforming abstract risk categories into an actionable monitoring framework.
1 notebook
Measuring the Tail: VaR and CVaR
VaR answers what the maximum expected loss is at a given confidence level, while CVaR (Expected Shortfall) captures the average severity of losses beyond that threshold. This section compares historical simulation, parametric, and Cornish-Fisher estimation approaches, then shows why both metrics understate real risk: during stress, correlations spike in the downside tail, liquidity evaporates, and cost parameters estimated from calm periods can increase by multiples. It introduces regime-conditional tail risk metrics, the Cantelli inequality as a distribution-free loss bound, and robust volatility model evaluation using QLIKE and MSE loss functions that preserve model rankings regardless of which volatility proxy is used.
Drawdowns, Path Risk, and Time-to-Recovery
Point-in-time tail metrics miss the cumulative damage of prolonged losses -- a strategy losing 2% daily for 30 days never breaches a 5% daily VaR but delivers a 45% drawdown. This section covers maximum drawdown, drawdown duration, recovery time, and the Ulcer Index (which integrates both depth and duration), and explains why institutional allocators care about path risk: hard drawdown limits trigger mandated redemption, career risk makes drawdowns personal, and the asymmetry of compounding means a 50% loss requires a 100% gain to recover. Conditional drawdown analysis by regime reveals whether losses cluster in specific market states, connecting to the graduated kill-switch framework developed later in the chapter.
3 notebooks
Decomposing Risk: Factor, Sector, and Macro Exposure
A portfolio's total risk obscures its sources, and this section uses factor models to decompose risk into intended versus unintended exposures across style factors, sectors, geographies, and macro sensitivities. It shows that factor exposures are not static -- market beta often increases in volatile regimes precisely when that beta is most costly -- and introduces attribution uncertainty, arguing that standard tear sheets should report confidence intervals on factor PnL contributions rather than point estimates. Advanced diagnostics include residual correlation thresholding to detect latent sub-factors, the MALV diagnostic for precision matrix quality, factor rotation to resolve attribution ambiguity, and trade-level SHAP analysis to identify recurring error patterns in failed positions.
1 notebook
Stress Testing and Scenario Analysis
Historical replay of crises (2008, 2020 COVID, 2022 rate shock) reveals vulnerabilities that unconditional risk metrics miss, but this section goes further with scenario matrix construction that jointly stresses volatility, spreads, impact, and correlations at multiple severity levels. Factor-specific stress tests map historical factor shocks to current portfolio loadings, while reverse stress testing works backward from a defined failure point to identify what combination of moves would cause it. The section insists that stress testing must be diagnostic rather than cosmetic: each identified vulnerability must map to an accepted risk, a hedge, reduced exposure, or a kill switch trigger, with quarterly memos documenting scenarios run, vulnerabilities found, and changes made.
Adaptive Risk Controls Without Leakage
Static risk limits assume constant risk, but markets shift faster than fixed parameters can track. This section presents adaptive controls -- GARCH/EWMA volatility targeting, regime-triggered exposure caps, concentration and turnover limits that tighten with market stress, and position-level exits calibrated from MAE/MFE analysis -- all governed by a strict temporal discipline: controls at time t may use only information available at t-1 or earlier. It covers Short-Term Volatility Updating (STVU) for crisis-speed adaptation without full covariance re-estimation, deep hedging via CVaR-trained policies, and a systematic risk-rule sweep showing that stop-loss and take-profit interact non-monotonically, requiring calibration rather than generic preference.
5 notebooks
Kill Switches and Risk Governance
Kill switches define the conditions under which a strategy must reduce risk, pause, or undergo formal review, and this section argues they must be specified before deployment as part of a graduated escalation framework (watch at 5% drawdown through termination at 30%). Drawing on Varma (2025), it documents the drawdown rule paradox: mechanical triggers often lock in losses that subsequent recovery would have erased, arguing for context-aware escalation with cross-asset confirmation rather than single binary cutoffs. The section also covers drift detection using Population Stability Index as early warning, re-research triggers for persistent underperformance or structural market changes, and the argument that documented risk governance is a competitive advantage for both allocator due diligence and internal operational scaling.
Related Case Studies
See where these chapter concepts get applied in end-to-end trading workflows.
ETF Cross-Asset Exposures
All six model families compared across 100 ETFs spanning 9 asset classes
Crypto Perpetuals Funding
Alternative data and non-standard frequencies in 24/7 crypto markets
NASDAQ-100 Microstructure
Intraday microstructure signals across 114 stocks at 15-minute frequency
S&P 500 Equity + Option Analytics
Combining options-derived features with equity data for multi-source prediction
US Firm Characteristics
Classic factor investing with ML on monthly fundamental data
FX Spot Pairs
Momentum and carry factors in the world's most liquid market
CME Futures
Carry signals across 30 products — data quality as the critical variable
S&P 500 Options (Straddles)
Direct options trading and why equity-style cost models fail for options
US Equities Panel
Large-scale cross-sectional prediction across 3,200 stocks with 16 walk-forward folds