Why is the log-likelihood of a Gaussian mixture unbounded above when each component has its own covariance matrix? How do you show it in one dimension with , and how do EM implementations avoid the problem?
Unsupervised learning, Mixture models
Level L4 Advanced. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you understand that maximum likelihood fails for mixtures with free variances, and can show the divergence with a short calculation.
Key idea
Let one component sit exactly on a data point and shrink its variance to zero. That point's density goes to infinity as , while every other point stays covered by the second component, so the product of terms still grows without bound.
Steps
- Write the model for points in 1-D: . The log-likelihood is .
- Set and let . The first data point's term becomes at least . For this density factor is about . For it is about .
- For every other point , the first component contributes at least , so . With fixed at sensible values this is a fixed positive number.
- Hence . The first term grows like while the second term is constant. So the likelihood has no maximum.
- A single Gaussian cannot do this. Its collapse onto one point also kills the density of all the other points, so the likelihood goes to 0. The mixture escapes because another component covers the rest.
- In practice EM can fall into one of these spikes. Fixes: add a small to each covariance (regularisation), set a floor on , restart if a component gets only one point, tie variances, or use MAP estimation with an inverse-Wishart prior. Use the good local maximum, not the spike.
Common mistakes
- Claiming that a single Gaussian also has this problem. It does not, because the other points would get density near zero.
- Saying the problem comes from the EM algorithm. It comes from the likelihood itself, so any optimiser can hit it.
- Forgetting that the problem needs per-component covariances. Shared spherical variance with a floor avoids the collapse.
- Treating the spike as a good fit. It has huge likelihood but no generalisation.
How long your answer should be
One solid paragraph plus a few lines of maths; 3–4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: UMAP builds a weighted neighbour graph with membership strengths , where is the distance from to its nearest neighbour. (a) For a point with neighbours at distances , and , find , solve for so the strengths sum to , and give the three strengths. (b) How are directed strengths combined into an undirected weight? (c) How do UMAP and t-SNE differ?
Next in Unsupervised learning: For symmetric t-SNE with high-dimensional affinities (symmetric, with ) and low-dimensional affinities , how do you derive for ? What do the two terms mean, and why does the Student-t kernel help with the crowding problem?