How can you use AIC or BIC to select the number of components in a Gaussian mixture model?

Last updated 11 November 2026

  • Fit GMMs over a range of K, compute AIC = 2p − 2 ln L̂ or BIC = p ln n − 2 ln L̂ (p = free parameters), and pick the lowest value.

  • BIC penalizes more strictly and prefers fewer, interpretable clusters. AIC tends to pick more components, suiting density estimation.

  • Use n_init for stable fits and look for an elbow. Non-Gaussian clusters inflate K, and BayesianGaussianMixture is an alternative.

  • https://leetml.org/ml-models/gmm.html
  • https://medium.com/@VectorWorksAcademy/mastering-gaussian-mixture-models-concepts-applications-and-interview-preparation-a7c0aebfbcc3
All Clustering interview questions