Why does an iteration of the EM algorithm never decrease the observed-data log-likelihood?

Probabilistic models, EM algorithm
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can write EM as coordinate ascent on a lower bound and see why the bound is tight after the E-step.

Key idea

Here x is the observed data, z the hidden variables and θ the parameters. For any distribution q(z), log⁡p(x∣θ)=L(q,θ)+DKL(q(z) ∥ p(z∣x,θ)) with L(q,θ)=Eq[log⁡p(x,z∣θ)−log⁡q(z)], and the KL divergence is never negative. The E-step sets q=p(z∣x,θt), making the bound tight; the M-step increases L in θ. Hence log⁡p(x∣θt+1)≥L(qt,θt+1)≥L(qt,θt)=log⁡p(x∣θt).

Steps

  1. Lower bound by Jensen, since log⁡ is concave: log⁡p(x∣θ)=log⁡∑zq(z)p(x,z∣θ)q(z)≥∑zq(z)log⁡p(x,z∣θ)q(z)=L(q,θ).
  2. Identify the gap: writing p(x,z∣θ)=p(z∣x,θ) p(x∣θ) gives log⁡p(x∣θ)−L(q,θ)=DKL(q ∥ p(z∣x,θ))≥0, which is zero exactly when q(z)=p(z∣x,θ).
  3. E-step: choose qt(z)=p(z∣x,θt), so L(qt,θt)=log⁡p(x∣θt).
  4. M-step: θt+1=arg⁡max⁡θL(qt,θ)=arg⁡max⁡θEqt[log⁡p(x,z∣θ)], because the entropy of qt does not depend on θ. So L(qt,θt+1)≥L(qt,θt).
  5. Chain the inequalities as in the key idea. Note that any θt+1 that merely increases L is enough (generalised EM).

Common mistakes

How long your answer should be

Half a page; 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: How do you derive the E-step and M-step of the EM algorithm for a Gaussian mixture model with K components?
Next in Probabilistic models: What are the posterior predictive mean and variance of Gaussian process regression, and how are they derived? With one training point x1=0, y1=1, noise variance σn2=0.1 and kernel k(x,x′)=exp⁡ ⁣(−(x−x′)2/2), what are they at x∗=1?