Hidden Markov Regime — the VHSI's Four States
A four-state Gaussian-mixture Hidden Markov Model reads the HKEX Volatility Index (VHSI) and, without any supervision, separates it into four regimes — from panic to calm. It is the same model from the author's 2022 paper on the VIX, refitted daily for Hong Kong, and it is how we measure what kind of market we are in rather than only whether it is up or down.
The VHSI's four regimes, 2014–2026. The stacked bands are the model's posterior probability of each state on every trading day (they sum to one); the dark line is the VHSI level itself. Bear (red) spikes line up with the panics the reader already knows — the 2015 China sell-off, early-2018 volmageddon, March 2020, September 2021 Evergrande, and the 2024 stimulus surge.
What a Hidden Markov Model is
A Hidden Markov Model assumes the thing you care about — the market's regime — is a hidden state that you cannot observe directly, and that it emits an observable signal, in this case the VHSI's daily log-return. You fit a model that, given the observed returns, recovers both the most likely regime on each day and the probability of being in each of the four regimes. Because the states are learned, not pre-labelled, the model discovers "panic" and "calm" on its own from the data.
The four states
Four Gaussian states make up a mixture distribution over VHSI log-returns. After fitting, the states are sorted by μ·σ² (mean times variance) — the paper's Eq. (12) — which orders them from most to least stressed without any hand-labelling. From 2014 to 2026 the Hong Kong model spent its time as follows:
- bear — the largest μ·σ²: a positive VHSI mean with the widest variance, the panic state. 2% of days (61 of 2,883).
- trans_bear — still positive but calmer: stress building or fading at the margin. 8% of days (221).
- trans_bull — a slightly negative mean with low variance: the quiet, drifting state. 59% of days (1,711).
- bull — the most negative mean: sustained calm, the state where the VHSI grinds lower. 31% of days (890).
How we fit it
The model is fitted with the Baum–Welch expectation-maximisation algorithm, ten random restarts per fit keeping the highest log-likelihood, exactly as the paper specifies. We run an anchored expanding walk-forward: a seed window of 2006–2013, then one model refit every 20 out-of-sample days, each fit using all data up to that day. From the day's posterior and the transition matrix we also compute a one-step-ahead forecast — the expected VHSI log-return E[μ] and its standard deviation E[σ] for the next day (the paper's Eqs. 13–15).
Reading the chart
- The bands — the stacked areas are the four posterior probabilities; a wide red band is a high-confidence bear, a wide blue band a high-confidence bull.
- The line — the dark line is the VHSI; the bear band thickening as the line spikes is the model recognising panic, not just volatility.
- The mix — a band split evenly between two adjacent states is a transition; the model is genuinely uncertain, which is itself information.
What the data shows
The model validates against the obvious: the probability of the bear state tracks the VHSI level with a correlation of +0.31 over the full 2014–2026 sample — when volatility is high, the model is in bear, and vice versa. The regime is not the same thing as the index: the VHSI can rise into a melt-up rally (2024) and fall into a grinding sell-off, and the four states separate those cases because they are learned from the VHSI's own distribution, not from the HSI's direction. As of the most recent close (2026-11-27) the model reads bull — posterior 0.43 bull, 0.54 trans-bull — the calm end of the spectrum.
How it is used
- Regime-gated allocation — shift the portfolio defensive when the model reads bear, aggressive when it reads bull, instead of reacting to the index level.
- Volatility targeting — scale position size by the forecast E[σ]: bigger in calm states, smaller in panic states.
- Risk overlay — when the state is bear and E[μ] is positive (panic expected to persist), cut aggregate risk before the move is obvious in price.
Query it via the MCP
The daily regime, posteriors and step-ahead forecast are exposed as one tool: hmm_regime__state. It returns the latest day by default, or a date range with start/end. One call:
hmm_regime__state → { hk_vhsi_regime, hk_vhsi_prob_bear…bull, hk_vhsi_exp_mean_logret, hk_vhsi_exp_std_logret }
FAQ
What is a Hidden Markov Model?
A statistical model where the market's true regime is a hidden state inferred from an observable signal — here the VHSI's daily log-return. It recovers the most likely regime each day and the probability of each regime, without the states being labelled in advance.
Why the VHSI and not the HSI?
Volatility regimes are cleaner to separate than price regimes — the VHSI's distribution has a fat, clearly multi-modal shape that a Gaussian mixture can parse. The four states distinguish panic from melt-up from calm in a way an index level cannot.
Are the four states fixed labels?
The count is fixed at four (chosen by BIC, per the paper), but the states themselves are re-learned on every refit and sorted by μ·σ². The labels bear/trans_bear/trans_bull/bull are applied after the sort so they keep a consistent meaning across refits.
How fresh is the data?
The model is rebuilt every weekday after the VHSI closes, in an anchored expanding walk-forward, so the latest day's posterior and step-ahead forecast are always current through the prior close.
Is this a buy or sell signal?
No. It is a regime reading — a description of what kind of market we are in, plus a probabilistic one-step-ahead view. It is an input to position sizing and risk, not a recommendation to trade.
Who it is for
Portfolio managers sizing risk, volatility traders, and anyone who wants a disciplined read on the HK market's regime rather than a reactive one — for allocation, vol-targeting and risk overlays.
References
- Aigner, A. — A Gaussian Mixture Hidden Markov Model for the VIX. Submitted to Quantitative Finance, revised 3 Dec 2022.
- Rabiner, L. R. — A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition. Proceedings of the IEEE 77(2), 257–286 (1989).
- Baum, L. E., Petrie, T. — Statistical Inference for Probabilistic Functions of Finite State Markov Chains. Annals of Mathematical Statistics 37(6), 1554–1563 (1966).