Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Simplicity versus Complexity: HMM and HSMM for Regime-Based Asset Allocation

Source

Citation. Eduard Baitinger (FERI, the corresponding author) and Leonard Hoch. "Simplicity versus Complexity: A Comparative Analysis of HMM and HSMM for Regime-Based Asset Allocation". SSRN working paper 4796238, version of 16 April 2024, 30 pages. DOI 10.2139/ssrn.4796238. Preprint, no venue given, and a search found no later journal version. The studies use R, mainly the mhsmm package. No code or data are released. The corresponding author is FERI's head of asset allocation, and the paper says its contents are not investment advice.

Status. Planned. Its finding is the repo's own lesson: a richer model wins in sample and gives no gain out of sample. econometrics.regimes (#315) already gives Markov switching with filtered probabilities only. The paper's out-of-sample design is the standard against which the blog post of #233 should be judged.

Read. Read on 2026-11-28 from the SSRN PDF that the maintainer supplied, with pdftotext. I read all of it myself, in the paper's own text: sections 1–5, Tables 1–4 and the footnotes. The figures came out as axis labels only, so no number here comes from a figure. I didn't read the appendix's figure of the five-state model, or the references in detail.

Summary

Claim. A hidden semi-Markov model (HSMM) fits S&P 500 returns better than a hidden Markov model (HMM) in sample. But "this advantage largely disappears in out-of-sample applications". Strategies driven by daily data beat those driven by monthly data. More states don't improve performance.

Method.

Findings, as the paper reports them.

Setting Result Where
In sample, monthly, by AIC four states preferred by all three models. Each HSMM beats the HMM at every number of states Table 1
Out of sample, monthly, Sharpe after costs buy-and-hold 0.41, 12-month benchmark 0.42. HMM 0.25 to 0.43, HSMM (Poisson) 0.28 to 0.40, HSMM (Gamma) 0.21 to 0.42 Table 3
Out of sample, daily, Sharpe after costs buy-and-hold 0.41, 252-day benchmark 0.47. HMM 0.44 to 0.60, HSMM (Poisson) 0.54 to 0.63, HSMM (Gamma) 0.45 to 0.64 Table 4
Turnover per month monthly models 0.00% to 2.99%. Daily models 0.00% to 27.40%. The 12-month benchmark 13.80% Tables 3, 4

Where the claims go beyond the evidence

No difference is tested. The paper compares Sharpe ratios that differ by a few hundredths, over 24 years, with no standard error and no test. At that length, a Sharpe ratio's error is about 0.2 a year, much larger than most of the gaps in Tables 3 and 4.

36 variants, and the best are read as the finding. Three models, six numbers of states and two frequencies give 36 strategies on one test period. The finding that daily data beat monthly rests on the best of these, with no correction for the number tried.

The Sharpe ratio is computed with a risk-free rate of zero. The active strategies hold Treasury bills when they are out of the market, so their mean includes the bill rate. With a zero rate, a strategy with lower exposure gets credit for the bills, and buy-and-hold doesn't. The daily strategies' average exposure is mostly 60–80%.

One market and one period. Every result is the S&P 500, 2000–2023. The paper itself calls applying the models to other assets future research.

Choices made with the results in view. The benchmark's 12-month window was chosen so that it wasn't "too static", which would give "a benchmark strategy that is not competitive". Figures 4 and 5 are "a handpicked example".

Credit. The out-of-sample design is sound. It keeps a strict split, refits on an expanding window, and trades in t + 1 on what was known at t. At the last time of each fit, the probability of each state is the filtered one, so it doesn't look ahead. The authors show that the starting values alone move AIC and the decoded share. They note that a researcher "could potentially manipulate the outcomes" by the choice of starting values. So they choose them by a stated rule instead. They count costs, and report turnover.

Use in this repo

The repo's regimes are already the paper's out-of-sample kind. econometrics.regimes fits Markov switching and returns its filtered probabilities only (#315). The docstring says a backtest must call it through expanding and read the last row of each fit. That is the paper's design: refit on the data up to t, and use the state probability at t. The paper is evidence that the repo shouldn't add an HSMM: it adds parameters, and gives no gain out of sample.

Every model choice here is a trial. The number of states, the duration distribution, the frequency and the starting values are each a choice. A strategy built on regimes must record each one tried in the ledger (trials.py, #7). DSR then deflates for them. The paper's own grid of starting values is a search inside each fit, the kind that #435 would count. Its grid is set by a rule, so it is at least stated.

The verdict would test what the paper doesn't. The harness tests a strategy's alpha with StepM, and its DSR over the trials (verdict.py). It also charges costs by venue (costs.py), and judges excess returns over buy-and-hold and 1/N, not a Sharpe ratio with a zero rate. A regime strategy whose Sharpe ratio is 0.2 above buy-and-hold over 24 years wouldn't clear those tests alone.

A simple benchmark nearly matches the models. The 12-month mean–variance benchmark beats every monthly regime model before costs. On daily data most regime models beat the 252-day one, by about 0.1 in Sharpe ratio, a gap that the paper doesn't test. A regime strategy here should be tested against that kind of simple trailing rule, as well as against buy-and-hold. The verdict's inverse-volatility benchmark is one such rule (#332).

#233 should be judged against this design. The blog post of #233 uses an HMM for regimes. This paper sets the standard for that review. It needs an expanding refit, filtered probabilities and trading in t + 1. It also needs costs, a simple benchmark and a count of the variants tried.