Research

volarixs - applied AI & ML to finance

Explore our latest posts on machine learning, market dynamics, strategy architecture and design

Feature Engineering
Feb 10, 2026

Shrinking the Feature Space: PCA & Autoencoders

Many features are redundant or noisy. High dimensionality = harder to generalize.

PCA
Autoencoders
Features
9 min read
Strategy
Feb 1, 2026

How Asset Managers Can Implement AI & Machine Learning

Part 2: Infrastructure, Governance & Roadmap. What it takes to implement AI in asset management.

AI Implementation
Governance
Roadmap
18 min read
Deep Learning
Jan 28, 2026

Neural Networks for Market Data: MLPs, CNNs & LSTMs

We are selective with deep learning. Expensive to train, easy to overfit, harder to debug.

Neural Networks
MLP
LSTM
12 min read
Research
Jan 22, 2026

Signal Half-Life and Decay: How Long Do ML Edges Really Last?

If you discover a signal today, how long will it work?

Signal Decay
Half-Life
Edge Persistence
13 min read
Strategy
Jan 15, 2026

How Asset Managers Can Use AI & Machine Learning in Investment Decisions

Part 1: Use Cases & Value. Real-world use cases: idea generation, regime analysis, risk management.

Asset Management
AI & ML
Use Cases
15 min read
Volatility
Jan 5, 2026

Modeling Market Turbulence: GARCH, EGARCH & HAR

Volatility ≠ returns: heavy tails, clustering, mean reversion. Dedicated volatility models are essential.

GARCH
EGARCH
HAR
10 min read
Time Series
Dec 18, 2025

ARIMA, SARIMAX & VAR: When Classical Time-Series Still Win

Explicitly model temporal dependence with transparent structure.

ARIMA
SARIMAX
VAR
9 min read
Benchmarks
Dec 9, 2025

Volatility Forecasting Benchmarks: GARCH, HAR, and ML

Compare GARCH, HAR, and ML models for volatility forecasting.

Volatility
GARCH
HAR
11 min read
Machine Learning
Dec 2, 2025

How Market Regimes Break ML Models

Financial machine learning rarely fails because the model is 'bad'. It fails because the market regime changed.

Regimes
ML
Backtesting
8 min read
Models
Nov 25, 2025

Boosted Trees for Alpha: XGBoost & LightGBM

Gradient boosting dominates tabular ML. Learn how XGBoost and LightGBM deliver strong performance.

XGBoost
LightGBM
Boosting
11 min read
Features
Nov 18, 2025

The 19 Most Important Features for Equity Return Forecasting

Most ML performance in finance doesn't come from the model — it comes from the features.

Features
Alpha
Equities
12 min read
Methodology
Nov 7, 2025

Rolling Windows for Financial ML: A Complete Guide

If you use financial data and your model does not use a rolling window, the backtest is wrong.

Rolling Windows
Time Series
Backtesting
10 min read
Evaluation
Oct 27, 2025

Beyond Sharpe: A Research Framework for Evaluating ML Trading Strategies

Sharpe ratio is dangerously incomplete for ML strategies.

Evaluation
Metrics
Sharpe
15 min read
Models
Oct 8, 2025

Random Forests in Finance: Nonlinear Signals Without the Drama

Tree-based ensembles capture nonlinearities and interactions in market data.

Random Forest
Extra Trees
Trees
10 min read
Models
Sep 15, 2025

From Linear Regression to Lasso: Fast, Interpretable Baselines

Linear and regularized regressions still do serious work in finance.

Linear Regression
Ridge
Lasso
12 min read
Regimes
Aug 22, 2025

Market Regimes, Clusters & HMMs: Teaching Models to Respect the Environment

Episodes where statistical properties are stable enough: high vol vs low vol, risk-on vs risk-off.

K-Means
GMM
HMM
11 min read
Architecture
Aug 3, 2025

Building a Universe-Wide Prediction Grid

An alpha factory needs predictions for every asset at multiple horizons from multiple models.

Prediction Grid
Scaling
Alpha Factory
14 min read
Evaluation
Jun 18, 2025

Regime-Conditioned Performance: Measuring ML Robustness

Most backtests report a single Sharpe. But ML models fail by regime.

Regimes
Robustness
Performance
12 min read
Machine Learning
December 2, 2025
8 min read

How Market Regimes Break ML Models (And How to Fix It)

Financial machine learning rarely fails because the model is "bad". It fails because the market regime changed.

Most ML pipelines assume temporal stability. Markets do not.

In this article, we'll cover:

  • What market regimes are
  • Why regime transitions break ML models
  • How to detect regimes (HMM, clustering, volatility states)
  • Which models are most robust under regime shifts
  • How volarixs integrates regime diagnostics directly into backtests and performance evaluation

1. What Is a Market Regime?

A market regime is a persistent structural environment characterised by:

  • Volatility level (low-vol, high-vol, crisis regimes)
  • Trend structure (trend vs mean-reversion)
  • Liquidity (tight spreads vs illiquid conditions)
  • Macro backdrop (inflation, monetary tightening, geopolitical stress)
  • Cross-asset correlations

Regimes can last weeks to years, and regime transitions are non-linear, often violent, and typically where ML models fail.

2. Why Regimes Break ML Models

A. Feature–target relationships shift

An ML model essentially learns:

rt+h = f(Xt)

where f() is assumed stationary.

In reality:

  • The coefficient signs flip
  • Predictors vanish or invert
  • Volatility regimes compress or expand
  • Correlations shift from +0.2 → +0.9 in days (crisis clustering)

ML models that worked in 2017 fail catastrophically in 2020 without adaptation.

B. Hyperparameters become wrong overnight

Examples:

  • Optimal lookback windows shorten in crises
  • Slow models like LSTM overfit the past regime
  • Neural nets trained pre-Volmageddon fail under March 2020 vol regimes

The issue isn't overfitting — it's temporal fragility.

C. Backtests hide regime risk

Traditional backtests return a single Sharpe and drawdown.

The real question is: How does the strategy behave in each regime?

A strategy with Sharpe 1.5 overall might be:

  • Sharpe 3.0 in "calm trend"
  • Sharpe –1.8 in "crisis high-vol"

Yet this instability is invisible in most conventional backtests.

3. How to Detect Market Regimes

volarixs uses a combination of the following techniques (available in the Regimes module).

A. Hidden Markov Models (HMM)

Best for two or three-state volatility/trend estimation.

Identifies regimes like:

  • Low-vol / upward trending
  • High-vol / downward trending
  • Turbulent / noisy

3-State Hidden Markov Model

Low-Vol / Upward

Calm trending markets

High-Vol / Downward

Crisis or correction periods

Turbulent / Noisy

Uncertain transition periods


    ┌─────────────────────────────────────────┐
    │  Hidden Markov Model (3-State)         │
    │                                         │
    │     ┌─────────┐      ┌─────────┐       │
    │     │ Low-Vol │◄─────┤High-Vol │       │
    │     │  Upward │      │Downward │       │
    │     └────┬────┘      └────┬────┘       │
    │          │                │             │
    │          │      ┌─────────▼────┐        │
    │          └─────►│  Turbulent   │◄──────┘
    │                 │    Noisy     │        │
    │                 └──────────────┘        │
    │                                         │
    │  Transitions occur at regime changes   │
    └─────────────────────────────────────────┘
  

HMM identifies persistent structural environments in markets. Transitions between states often coincide with model performance degradation.

B. Clustering (k-Means, Gaussian Mixtures)

Best for multi-dimensional regimes using:

  • Volatility
  • Skew
  • Correlation
  • Market breadth
  • Realised beta

Clusters typically align well with macro cycles.

C. Volatility state machines

Simplest but surprisingly powerful.

Define regimes via realised vol percentile buckets:

  • 0–20th percentile: Calm
  • 20–60th percentile: Normal
  • 60–85th percentile: Elevated
  • 85–100th percentile: Crisis

These correspond intuitively to model performance.

D. Macro overlays (inflation, rates)

Optional, but improves interpretability and helps with multi-asset models (FX, commodities, crypto, indices).

4. Which Models Are Most Fragile?

Least robust under regime shifts

  • LSTM / GRU
  • Transformers
  • Deep CNNs
  • Large tree ensembles (XGB, RF)

Why? They assume stable feature relationships and implicitly expect autocorrelation structures to persist.

More robust under regime shifts

  • Ridge Regression
  • ElasticNet
  • Simple linear factor models
  • Heteroscedastic volatility models (HAR, GARCH)
  • Regime-switching models explicitly

Simple ≠ weak. Many top-performing industry strategies are linear + regime-aware filters.

5. How to Fix Regime Fragility

This is where volarixs excels:

A. Retrain per regime

Train:

  • Model A → low-vol regime
  • Model B → high-vol regime
  • Model C → turbulent regime

Then apply a regime classifier at inference time.

B. Use regime-conditioned features

Examples:

  • Vol-adjusted returns
  • Spread/liquidity indicators
  • Trend strength normalised by volatility
  • Regime dummy variables

C. Apply rolling cross-validation, not random splits

Time-based CV shows where models fail. Random splits hide the issue.

D. Stress-test models through regime shifts

volarixs automatically:

  • segments performance by regime
  • computes Sharpe/drawdown per regime
  • shows prediction degradation around transitions

This is industrial-grade diagnostics normally seen at top quant funds.

6. Conclusion

Market regimes are the primary reason ML models fail in finance.

Regime detection, regime-conditioned training, and robust diagnostics transform fragile models into reliable signals.

This is built directly into the volarixs workflow, from model training to performance decomposition.

Market Regime Simulator

Current Regime:
Normal
Day 1 of 0 | Price: $100.00

Adjust volatility and trend strength to see how different market regimes affect price movements. Notice how regime transitions impact model predictions.

Regimes
ML
Backtesting
Volatility

Ready to build regime-aware models?

Start experimenting with regime detection and robust ML models in volarixs.