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 K=2, 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 1/2πσ2, while every other point stays covered by the second component, so the product of terms still grows without bound.

Steps

  1. Write the model for N points in 1-D: p(x)=π1N(x∣μ1,σ12)+π2N(x∣μ2,σ22). The log-likelihood is ∑nln⁡p(xn).
  2. Set μ1=x1 and let σ1→0. The first data point's term becomes at least π1N(x1∣x1,σ12)=π1/2πσ12. For σ1=0.01 this density factor is about 39.9. For σ1=10−6 it is about 3.99×105.
  3. For every other point xn, the first component contributes at least 0, so p(xn)≥π2N(xn∣μ2,σ22). With μ2,σ2 fixed at sensible values this is a fixed positive number.
  4. Hence ln⁡L≥ln⁡ ⁣(π1/2πσ12)+∑n≥2ln⁡ ⁣(π2N(xn∣μ2,σ22)). The first term grows like −ln⁡σ1→∞ while the second term is constant. So the likelihood has no maximum.
  5. 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.
  6. In practice EM can fall into one of these spikes. Fixes: add a small ϵI to each covariance (regularisation), set a floor on σ2, 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

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 μj∣i=exp⁡ ⁣(−(dij−ρi)/σi), where ρi is the distance from i to its nearest neighbour. (a) For a point with k=3 neighbours at distances 1.0, 1.5 and 3.0, find ρ, solve for σ so the strengths sum to log⁡2k, 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 pij (symmetric, with ∑i≠jpij=1) and low-dimensional affinities qij=(1+∥yi−yj∥2)−1∑k≠l(1+∥yk−yl∥2)−1, how do you derive ∂C∂yi=4∑j(pij−qij)(yi−yj)(1+∥yi−yj∥2)−1 for C=KL(P∥Q)? What do the two terms mean, and why does the Student-t kernel help with the crowding problem?