Quant Memo
Core

Regime Classification for Risk Scaling

Turning down risk before a crisis and turning it back up after sounds simple, but a regime classifier used for risk scaling is only useful if it identifies bad markets fast enough to act on — and the honest evaluation of 'fast enough' is much harder than backtesting the classifier's raw accuracy.

Prerequisites: Regime Detection, Drawdown Control at the Portfolio Level

The idea behind regime-based risk scaling is straightforward: identify when the market has shifted into a high-risk state — a crash, a liquidity crunch, an unusually correlated sell-off — and cut position sizes before the worst of the damage happens, then scale back up once conditions normalise. A classifier trained on history can look excellent at this task when evaluated the ordinary way: label every historical day as calm or stressed with the benefit of hindsight, and check how often the model's classification matches. That evaluation quietly assumes the model knows the regime as it happens, which is a much harder problem than knowing it in hindsight — most crises are only cleanly identifiable as crises a few days or weeks after they start.

The lag between "identifiable" and "identified in time"

A regime label built after the fact — say, using a centred rolling window of realised volatility, or a change-point algorithm that reports the change-point date only once enough post-change data has accumulated to be confident — has access to information a live system wouldn't have on the day itself. A classifier trained to reproduce those labels, then tested by feeding it only trailing information as it would see live, typically performs much worse, because it is now solving the genuinely hard problem: distinguishing "today is the start of a real regime shift" from "today is an ordinary volatile day that will revert by next week," using only data up to today.

This gap matters enormously for risk scaling specifically, because the entire value of the classification is in acting before the damage compounds. A classifier that correctly identifies a crash regime three weeks after it started, using only information a live system would have had, has correctly labelled history but delivered close to zero risk-management value — most of the drawdown it was meant to help avoid has already happened by the time it fires.

Evaluate a regime classifier meant for live risk scaling only using the same trailing, real-time information a live system would have — never using labels or features built with any centred window or later-arriving confirmation. The gap between hindsight accuracy and real-time accuracy is usually the whole story.

A worked example

A team builds a two-state hidden Markov model on daily returns, trained to distinguish "calm" and "stressed" regimes, and evaluates it by comparing its filtered state probabilities against a hindsight-labelled history of known stress periods (2008, 2020, 2022). Measured this way, classification accuracy looks strong — the model's stressed-state probability rises sharply during each known crisis.

The team then re-examines when exactly the model's stressed-state probability crossed a risk-scaling threshold (say, 70%) relative to when each crisis actually began, using only the filtered probability as it would have been computed live, day by day, with no future data. In the 2020 case, the model crosses the threshold several trading days after the sharpest part of the initial sell-off — a real, publishable improvement over doing nothing, but a much more modest one than the hindsight-accuracy number implied, because a large fraction of the drawdown occurred in those first few days before the model reacted.

Scaling down risk on this real-time signal rather than the hindsight one is the only honest way to estimate what risk-scaling actually would have saved — and that number is nearly always smaller, sometimes dramatically so, than a hindsight backtest suggests.

Distribution · normal
-2.000.002.00μvalue →
Within ±1σ 68.3%mean μ 0.00std σ 1.00

Picture two overlapping versions of this distribution — a calm regime with a small standard deviation and a stressed regime with a much larger one. A classifier's real job is separating draws from the two as early as possible using only a handful of recent observations, which is genuinely difficult when the tails of the calm distribution already overlap the body of the stressed one.

Report a regime classifier's usefulness as "average days of lag between real crisis onset and threshold crossing, tested with only trailing information," not as classification accuracy against hindsight labels. The lag number is what actually determines whether risk-scaling based on it helps.

Where it breaks in practice

A common shortcut is to use a feature that is itself subtly forward-looking — a "trailing" volatility computed with a window that, due to an implementation detail, includes today's return in a way that leaks same-day information the classifier wouldn't truly have at the moment scaling decisions are made. This produces a classifier that appears to react instantly to regime shifts in backtest and reacts with real, unavoidable lag once deployed live.

Any regime classifier whose backtested reaction to a known crisis looks nearly instantaneous is worth auditing for same-day feature leakage before it's trusted for live risk scaling — a genuinely real-time classifier reacting to a genuine surprise almost never looks that fast.

Related concepts

Practice in interviews

Further reading

  • Ang, Asset Management: A Systematic Approach to Factor Investing (ch. 12)
  • Bulla & Bulla, Stylized Facts of Financial Time Series and Hidden Semi-Markov Models
ShareTwitterLinkedIn