Regime Detection HMM

Track four market regimes in real time using Bayesian belief tracking.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/trudumb/hyper_make --skill regime-detection-hmm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Regime Detection HMM
Source: https://github.com/trudumb/hyper_make/tree/main/.claude/skills/models/regime-detection-hmm
Command: npx skills add https://github.com/trudumb/hyper_make --skill regime-detection-hmm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bayesian belief tracking over market regimes using Hidden Markov Models replaces crude proxies with principled state estimation, enabling smoother parameter blending and uncertainty-aware decisions.

Core Features & Use Cases

  • Online forward-filtering to infer regime probabilities in real time.
  • Regime-specific parameter blending to adapt trading logic and risk controls.
  • Baum-Welch style offline learning to retune emissions and transitions from historical data.
  • Seamless integration with a quote engine for regime-aware quoting and deployment.

Quick Start

Initialize the HMM, feed market observations to start tracking regimes, and blend parameters for regime-aware decisions.

Frequently Asked Questions about Regime Detection HMM

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is Bayesian market regime detection and how does it improve trading?

Bayesian market regime detection uses Hidden Markov Models to estimate hidden market states from observations, replacing crude proxies with principled state tracking. This enables smoother parameter blending and uncertainty-aware trading decisions across varying conditions.

How do I track market regimes in real time for online decision making?

To track market regimes in real time, you use an online forward-filtering Hidden Markov Model. By continuously feeding live market observations into the HMM, you infer current regime probabilities to adapt trading logic and risk controls on the fly.

How do I retune HMM parameters for regime detection using historical data?

You retune regime detection parameters by applying Baum-Welch style offline learning to your historical market data. This process recalibrates the emission and transition probabilities of the Hidden Markov Model to accurately reflect past market regimes.

Do I need labeled historical data to use a market regime HMM?

Yes, implementing market regime detection with an HMM requires historical data with regime labels alongside a measurement infrastructure. This labeled data is necessary to train the model and validate the online filter's adaptation.

What's the best way to adapt trading parameters across different market regimes?

The best way to adapt trading parameters is regime-specific parameter blending using Bayesian belief tracking. By identifying the active market regime via an online HMM filter, you can dynamically adjust trading logic and risk controls to match current conditions.

When should I not use an online HMM filter for market regime tracking?

You should not use an online HMM filter for market regime tracking if you lack a measurement infrastructure or sufficient historical data with regime labels. Without these prerequisites, the Baum-Welch learning and online filtering cannot function accurately.