You are fitting a latent variable model with observed data X, latent variables Z, and parameters θ. The EM algorithm alternates between:
E-step: Compute Q(θ,θold)=EZ∣X,θold[logp(X,Z∣θ)]
M-step: Set θnew=argmaxθQ(θ,θold)
Prove that the observed-data log-likelihood ℓ(θ)=logp(X∣θ) is non-decreasing at every EM step:
ℓ(θnew)≥ℓ(θold).
The key insight is not about optimization tricks — it is a direct consequence of a classical inequality. What is that inequality, and why does it apply here?
EM algorithmJensen's inequalityKL divergencelatent variableslikelihood
Answer: EM Algorithm's Hidden Monotonicity
Key Idea / Intuition
The observed-data likelihood p(X∣θ) is obtained by marginalizing out the latent variables Z. The EM algorithm never directly maximizes ℓ(θ) — instead it maximizes a lower bound on ℓ(θ) that is tight at θold. This lower bound is constructed using Jensen's inequality applied to the concave log function. Because the M-step raises (or maintains) the lower bound, and the bound was tight at θold, the actual likelihood must go up.
Formal Proof / Solution
Step 1: Decompose the observed log-likelihood
By Bayes' theorem, for any distribution q(Z) over the latent variables:
logp(X∣θ)=logp(Z∣X,θ)p(X,Z∣θ).
Take expectation under q(Z)=p(Z∣X,θold) on both sides. The left side doesn't depend on Z, so:
The deeper message: EM works by maximizing a variational lower bound (often called the ELBO). The KL non-negativity is precisely what keeps the bound valid, and Jensen is the engine behind KL non-negativity.
Source: The Elements of Statistical Learning, Hastie, Tibshirani et al., Chapter 8
Type:ML/StatsSource: The Elements of Statistical Learning, Hastie, Tibshirani et al., Chapter 8Edit on GitHub ↗