Concept

Gaussian Mixture Models

Gaussian Mixture Models are Machine Learning concepts. The Library holds 1 implementations, each one a working definition you can pull into Quant.

Top Gaussian Mixture Models indicators

1 total

What are Gaussian Mixture Models?

A Gaussian mixture model (GMM) assumes the observed data were drawn from a blend of several normal distributions, each with its own mean, variance (covariance in higher dimensions), and mixture weight. Fitting the model, usually with the expectation-maximization (EM) algorithm, recovers those component parameters and, for every observation, the probability that it came from each component. That soft assignment is the defining feature: rather than declaring a bar a member of cluster two outright, a GMM might report 70% odds it belongs to the quiet regime and 30% to the volatile one.

In trading, the fitted components double as market regimes. Fit a mixture to features such as returns and volatility and the low-variance component reads as the calm regime, the high-variance component as the stressed one, with the model reporting how confidently the current bar sits in each. It is the probabilistic cousin of K-means regime clustering: where K-means draws hard boundaries around implicitly spherical clusters, a GMM fits each component's shape and admits uncertainty. Unlike Hidden Markov / Markov-switching regimes, a plain GMM treats each observation independently, with no memory of which regime came last.

How traders use it

  • As a regime classifier: fit two or three components to volatility and return features, label each bar with its highest-probability component, and gate strategy logic by regime (trend rules in the calm component, mean-reversion or stand-aside in the stressed one), a probabilistic take on volatility regime classification.
  • As a distribution model: a mixture of normals reproduces the fat tails and skew that a single bell curve misses, so GMMs appear inside tools that estimate where returns actually concentrate instead of assuming normality.
  • As a soft filter: because the output is a probability per regime, signal weight or position size can scale continuously with regime confidence rather than flipping at a hard threshold.

Related concepts · Regimes & clustering

Concept family

Machine Learning

32 concepts mapped · 21 in the Library

Gaussian Mixture Models FAQ

How is a Gaussian mixture model different from K-means clustering?

K-means assigns every point to exactly one cluster by centroid distance, which implicitly assumes equally weighted, spherical clusters. A GMM fits each component's own spread and weight and returns membership probabilities instead of hard labels. K-means can be viewed as a limiting special case of a GMM, so the mixture is essentially the softer, shape-aware version, at the cost of more parameters to estimate.

How many components should a GMM use for market regimes?

There is no universal answer. Two or three components (calm, stressed, sometimes crisis) are common starting points, and practitioners compare candidate counts with information criteria such as AIC or BIC. Adding components never worsens the in-sample fit, but the extra flexibility often models noise, so whatever count is chosen should be sanity-checked on data the model was not fit on.

Build Gaussian Mixture Models your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.