How can you use AIC or BIC to select the number of components in a Gaussian mixture model?
Last updated
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_initfor stable fits and look for an elbow. Non-Gaussian clusters inflate K, andBayesianGaussianMixtureis an alternative.