Wavelet-Domain Regime Detection with the MODWT
Markets change character at different speeds. The MODWT splits a return series into scale components whose variances add up exactly — which turns a vague question about regimes into an estimable one.
By MorphIQ Labs · Quant research
"The market changed" is the kind of statement that is obviously true and almost useless. Changed how fast? Changed in the minute-scale chop, or in the multi-day trend? A single rolling volatility number cannot tell you, because it sums all of those timescales into one figure and throws the decomposition away.
The maximal-overlap discrete wavelet transform (MODWT) keeps the decomposition. This post is about why that decomposition is the right coordinate system for regime detection, and how MorphIQ Labs uses it.
Why not just the DWT
The ordinary discrete wavelet transform decimates: each scale has half the samples of the one below it. That is efficient, but for time-series analysis it has two costs we are not willing to pay — the transform is not shift-invariant (sliding the window by one bar reshuffles the coefficients), and the coefficients are not aligned in time with the events that produced them.
The MODWT drops the decimation. Every scale keeps the full sample count . You give up orthogonality and the flop count of the DWT for an transform that is shift-invariant and time-aligned. For research on a return series — where we constantly slide windows and want a coefficient at time to mean something at time — that is the right trade.
The decomposition
Let be a return series. The MODWT to level produces, at each scale , a vector of wavelet coefficients capturing variation at physical scale , plus one vector of scaling coefficients holding everything slower than .
The property that makes this worth doing is an exact additive decomposition of the sample variance. With no approximation,
where the wavelet variance at scale is
Total risk is partitioned, scale by scale, with the pieces summing back to the whole. That is the sentence that does the work: a regime is no longer a vague mood, it is a shape of the vector .
Regimes as energy ratios
Define the energy share at scale over a rolling window:
The vector lives on the simplex and is scale-of-volatility invariant — multiply every return by a constant and does not move. It describes the texture of the market, not its loudness. Two readings tend to matter:
- High-frequency-dominated — energy concentrated in . The fast scales are loud relative to the slow ones: choppy, mean-reverting, microstructure-heavy tape. Short-horizon signals are favored; trend-following bleeds.
- Low-frequency-dominated — energy concentrated in . A persistent, directional regime where slow scales carry the variance. Trend signals have room; fast mean-reversion is fighting the drift.
A scalar that compresses this is the high-to-low energy ratio
with the split scale chosen for the instrument's bar size. Crossings of through a hysteresis band give discrete regime labels without the flip-flopping a single threshold produces.
Putting an error bar on it
A regime label with no confidence interval is a guess wearing a lab coat. The wavelet variance has tractable sampling theory: for a Gaussian process the estimator is approximately
where is an integral of the squared spectral density over the scale's octave band. In practice we estimate the variance of the estimator directly, either from the autocovariance of the squared wavelet coefficients or by a block bootstrap over , and propagate it into a confidence band on .
Practical notes
A few things that matter once this leaves the notebook:
- Filter choice. The Daubechies least-asymmetric
LA(8)filter is the default — long enough for clean scale separation, short enough that boundary contamination stays contained. - Boundary coefficients. Some MODWT coefficients near each end depend on circular wrapping. They are excluded from the variance sums; counts only interior coefficients. Pretending otherwise quietly biases the most recent — and most decision-relevant — estimates.
- Determinism. The whole transform is a fixed sequence of FIR convolutions. Given the same returns it returns the same coefficients bit-for-bit, which is what lets the regime label sit inside the Anvil event log and replay exactly.
Where this goes
Energy shares are a descriptive statistic. The open work is the dynamics: model as a hidden-state process so the system anticipates a regime turn rather than confirming it after the fact. A Dirichlet state-space model on the simplex is the current candidate. That, and the link between wavelet scales and the volatility-surface term structure from the Ferro risk work, are the next two write-ups.
More from Quant Research
July 6, 2026 · 1 min
Options Spread Analytics Should Be a Workflow, Not a Table
Most options tools start with a table. Rows of contracts, columns of Greeks, filters, probabilities, and implied volatility fields. The table is useful, but it is not a decision process. A trader still has to assemble…