At a glance
Devansh Garg's preprint decomposes 12 US-listed ETFs into oscillating modes with Hilbert–ICEEMDAN, then uses PELT change-point detection to identify 57 market regimes and a regime-switched strategy with a 0.778 Sharpe ratio.
The 2008 crisis, the 2010 flash crash and the 2020 pandemic selloff all look obvious in hindsight. In the moment, each arrived as a slow accumulation of small anomalies that most risk models smoothed away. Devansh Garg's new preprint takes the opposite approach: it treats a market's return series as a set of overlapping oscillations, then hunts for the specific days when the pattern of those oscillations breaks.
Working with 5,150 daily observations across 12 US-listed exchange-traded funds from 2007 to 2024, Garg's pipeline identifies 57 separate market regimes. The median regime lasts 69 days, about a quarter. When those regimes are used to move a portfolio between risk-on and risk-off positioning, the resulting strategy reports a Sharpe ratio of 0.778, against 0.381 for an equal-weight portfolio of the same 12 assets and 0.505 for holding an S&P 500 tracker on its own.
The timing isn't incidental. Correlations that held through the 2010s came apart in 2022, when equities and long-dated Treasuries fell in the same year and the standard diversification story stopped working for a while. Risk models that assume a stable covariance structure mispriced both legs of that trade. Garg's contribution isn't a forecasting model. It's a way of drawing the boundaries of the periods over which any model can be trusted. The paper is a preprint on Research Square and has not been peer reviewed.
Splitting the signal before segmenting it
The idea is easier to grasp with a mixing desk. A live recording captures cellos, drums and a vocal on one track; an engineer who wants to know when the band changed key has to isolate the instruments first. Garg does that with returns. Rather than model the blended series directly, he separates each asset's daily log returns into oscillating components running at different speeds, then tracks how those components behave.
The separation step is the Improved Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (ICEEMDAN). It belongs to a family of methods that let the data decide which frequencies exist, pulling out intrinsic mode functions (IMFs) one by one, with each mode a wiggle carrying its own characteristic period. A wavelet transform, the more familiar alternative, imposes fixed frequency bands chosen in advance. ICEEMDAN doesn't. It adds small amounts of controlled noise across an ensemble of runs and averages, which reduces a known failure mode called mode mixing, where oscillations of different speeds get folded into the same component.
A Hilbert transform then converts each mode into instantaneous amplitude and frequency: a speedometer reading at every point in time, rather than a single average over 17 years. Garg keeps only the modes whose median period falls between 5 and 60 days, then combines the 12 assets by taking the median amplitude and frequency at each date. The median matters because it stops a single ETF, say a high-yield bond fund in a liquidity squeeze, from dragging the whole reading with it.
The final stage turns a smoothed signal into dated boundaries using Pruned Exact Linear Time (PELT), a change-point algorithm introduced by Rebecca Killick, Paul Fearnhead and Idris Eckley in 2012. PELT searches for the number and location of breaks that minimise a cost function plus a penalty for each additional break, and prunes candidate break points that provably cannot be optimal, which keeps the computation fast. Garg uses a least-squares cost, a penalty of 5.0 and a minimum segment length of 63 trading days.
- Log returns computed for all 12 funds, with extreme observations beyond 10 standard deviations filtered out
- ICEEMDAN run per asset, with a maximum of 8 modes, an ensemble size of 200 and noise strength of 0.2
- Hilbert spectral analysis on each retained mode, filtered to a 5-to-60-day period band
- Cross-asset aggregation by median amplitude and median frequency
- PELT segmentation with a 63-day floor, then a regime label assigned from the aggregated signal
The method and its parameter tables are set out in the preprint, titled Nonparametric Regime Segmentation in Financial Time Series via Hilbert–ICEEMDAN and Penalized Change-Point Inference. The underlying PELT algorithm is documented in the original Killick, Fearnhead and Eckley paper.
Photo by Anne Nygård on Unsplash
The penalty knob is where the argument lives
Anyone can draw lines on a chart. The reason a penalty term matters is that without it, a change-point algorithm will happily declare a new regime every few weeks, and a model with 400 regimes explains the past perfectly while telling you nothing. The 63-day floor is a floor as well as a judgement: it encodes the claim that a market regime shorter than a business quarter isn't worth acting on.
Garg doesn't leave that choice unexamined. The paper reports a sensitivity sweep across 125 parameter combinations, covering noise strength, ensemble size, penalty value, period band and minimum segment length, and reports that the segmentation held up across them. Asset-subset tests tell a similar story: dropping from 12 funds to 10 or 8 barely moved the average Sharpe ratio.
| Asset subset | Mean Sharpe ratio | Standard deviation |
|---|---|---|
| 8 assets | 0.453 | 0.100 |
| 10 assets | 0.467 | 0.089 |
| 12 assets (full universe) | 0.478 | 0.000 |
That stability is a modest but real result. A method that only works when every asset is included is usually fitting noise.
What the 57 segments caught
The segmentation lines up with events a human would name. Two risk-off windows in 2011 correspond to the European sovereign debt crisis, with the VIX touching 48.0. The February 2018 volatility spike appears as a risk-off regime, VIX at 37.32. The February-to-June 2020 period is flagged risk-off with the VIX at 82.69, the second-highest reading in the sample. The 2022 run-up to the Ukraine war shows an initial risk-on reading in January followed by a risk-off stretch from January to July.
The paper also regresses the VIX on its three signal components and reports a negative relationship, with an overall correlation of minus 0.235 between the composite signal and the volatility index. In plain terms: when the regime indicator says risk-off, implied volatility tends to be high, which is what you'd want from a stress detector.
| Strategy | Annual return | Volatility | Sharpe ratio |
|---|---|---|---|
| Equal weight | 4.73% | 11.71% | 0.381 |
| S&P 500 tracker (SPY) | 8.03% | 18.78% | 0.505 |
| Regime-switched | 11.75% | 15.91% | 0.778 |
All figures are reported net of transaction costs. The regime-switched strategy takes more risk than an equal-weight book, less than the equity index, and produces a higher return than either over the sample.
Garg's own framing is methodological rather than triumphant. "Traditional regime-switching models rely on parametric assumptions that may not hold in practice, while existing change-point detection methods often lack the frequency-domain insights necessary to characterize the underlying market dynamics," the paper states in its opening. That sentence is the whole pitch: existing tools pick one side, either the statistical model or the signal processing, and this pipeline tries to pick both.
Where the evidence gets thin
The honest part of the paper is its diagnostics, and they aren't all flattering. A silhouette score of minus 0.102, reported in the validation appendix, means the regime clusters overlap in feature space rather than sitting in tidy separate groups. The composite regime-quality score is 0.362 on a weighted scale. A negative silhouette isn't a rounding error; it's a signal that two labelled regimes can look similar once you plot them.
Walk-forward results are mixed in a way that matters. Training on five years and testing on one produces a median Sharpe ratio of 1.155, which is strong, but the spread across just three folds runs from minus 0.893 to 1.193. Training on three years and testing on six months produces a median of minus 0.060 across five folds, with a minimum of minus 1.359. Two-year windows give a median of 1.012. Refitting every threshold, z-score and penalty inside each training window, as the paper says it did, is the right discipline; it doesn't rescue a result that depends on how long your training window is.
Other boundaries: the universe is 12 US-listed ETFs, dominated by large-cap equity, Treasury and dollar exposure. Data completeness is reported at 88.5%, which means roughly one day in nine was handled by imputation or exclusion somewhere in the pipeline. The 57 regimes come from a full-sample segmentation, and the trading results are an illustration of what the labels could be used for, not a fund track record.
The caution an independent econometrician would raise is this: "A regime label is only as useful as the separation of the segments it produces. A negative silhouette score tells you the boundaries may be artefacts of smoothing rather than genuinely distinct states, and a penalty chosen from a grid is still a choice." That isn't a reason to dismiss the framework. It's a reason to read the 57 regimes as a disciplined segmentation of a smoothed signal, not as a discovery of 57 new objects in nature.
Why a risk desk would care anyway
Most institutional risk models assume that the covariance matrix estimated over the last year or three is a decent description of the next month. Regime detection is the acknowledgment that this assumption fails in clusters. Volatility targeting, risk parity and tail hedging all break in the same direction when correlations jump, and all of them could in principle be conditioned on a regime indicator that updates daily.
The paper's frequency separation offers something a plain Markov-switching model doesn't. A conventional regime-switching autoregression, in the tradition of Hamilton's 1989 model, infers hidden states from the return distribution itself and needs assumptions about that distribution. Garg's approach never assumes a shape; it describes each period by the amplitude and frequency content of its oscillations, then draws boundaries where that description stops fitting. For a market where fat tails and time-varying volatility are the norm rather than the exception, that's a meaningful difference in what you have to believe.
The same author has pushed the frequency idea in a second direction, with a companion preprint on multiscale portfolio optimization using ICEEMDAN and Hilbert spectral analysis. That paper splits returns into fast, medium and slow bands and optimises separately at each. Read together, the two manuscripts make a consistent argument: correlations and volatilities measured on a blended series are averages over things that shouldn't be averaged.
Photo by Adam Śmigielski on Unsplash
The next five years
The obvious next step is online detection. Garg's PELT stage runs on the full sample, and real desks need a version that flags a break within days rather than revising the boundaries after the fact. A streaming change-point method, or a rolling re-estimation with a short lookback, would change the practical value of the framework more than any improvement to the decomposition step.
Then comes replication. The method's assumptions are light enough that it should travel: European futures, credit spreads, emerging-market currencies, commodities. If the same 63-day floor and penalty of 5.0 produce equally stable regimes on a different universe, the case gets stronger. If they need retuning for every market, the framework is a toolkit rather than a finding.
And peer review will decide how much of the Sharpe gap survives. The 0.778 against 0.381 is the number that will get quoted, and it is also the number most exposed to the usual backtest hazards: a single historical path, a strategy whose thresholds were fitted with 200 Optuna trials, and a sample that includes exactly one pandemic. The 57 regime boundaries are the real contribution. Whether they turn out to be a better clock for financial risk is a question someone else's data will have to answer.
- quantitative-finance
- financial-econometrics
- change-point-detection
- iceemdan
- hilbert-transform

