Definition
The EM (Expectation-Maximization) algorithm is an iterative method for maximum likelihood estimation when data are incomplete or can be treated as incomplete by augmenting the observed data with latent variables. Each iteration alternates between an E-step (compute expected sufficient statistics of the complete data given the observed data and current parameter estimates) and an M-step (maximize the completed-data log-likelihood given those expectations). Formalized in general by Dempster, Laird, and Rubin (1977), anticipated for latent class models by Goodman (1974) and for general exponential families by Sundberg (1974, 1976).
Key Ideas
- Incomplete data formulation: Define a complete data vector (x,z) where x is observed and z is latent (missing). The complete-data distribution is a tractable exponential family with sufficient statistic T=t(x,z). The observed data is y=φ(x).
- Sundberg likelihood equation (1974): For an exponential family with sufficient statistic T, if y=φ(x) is observed rather than x, the likelihood equation for parameter ω takes the form Eω[T∣y]=Eω[T].
- DLR iteration (Dempster-Laird-Rubin 1977): Given current estimate ω^(n):
- E-step: t(n)=Eω^(n)[T∣y]
- M-step: Solve Eω[T]=t(n) for ω to give ω^(n+1)
- Monotone convergence: Each iteration weakly increases the observed-data log-likelihood; the sequence converges to a stationary point (local maximum or saddle point), not necessarily the global maximum.
- Model flexibility (Goodman 1974): Imposing equality constraints on a latent class model merges the corresponding EM equations — constrained model algorithms are derived by addition, not re-derivation.
- EM vs. Newton-Raphson: EM converges more slowly (linear rate vs. quadratic) but does not require computing or inverting the Hessian. Particularly advantageous in high dimensions or when the Hessian is expensive to compute.
- Standard errors: Not a direct EM output. Options: Louis (1982) observed information formula using complete-data Fisher information and missing information; parametric bootstrap; or Markov Chain Monte Carlo (MCMC).
How It Works
Latent Class Model
Complete data: augment the observed I×J×K×L table with a latent class dimension, creating Xijklv for v=1,…,m. The multinomial of Xijklv is an exponential family with canonical parameters θivA=lnπivA−lnπIvA, etc.
E-step: Compute posterior class membership for each observed cell:
πijklv∗=∑v′πiv′Aπjv′Bπkv′Cπlv′Dφv′πivAπjvBπkvCπlvDφv
Expected marginals: pivA(n)=∑jklxijklπijklv∗, fv(n)=∑ijklxijklπijklv∗.
M-step: πivA←pivA(n)/∑ipivA(n), φv←fv(n)/n.
Item Response Theory (Pure Rasch Model)
Complete data: (yi,θi) for each person i, where θi is latent ability. Sufficient statistics t1=∑iθi, t2=∑iθi2.
E-step: t1(n)=∑iE[θi∣yi], t2(n)=∑iE[θi2∣yi] via one-dimensional numerical integration.
M-step: μ^θ=t1(n)/n, σ^θ2=t2(n)/n−μ^θ2.
Mixture of Normals
Complete data: (xi,zi) where zi∈{1,…,K} is component membership. E-step: rik=pkϕ(xi∣μk,σk2)/∑k′pk′ϕ(xi∣μk′,σk′2). M-step: update pk,μk,σk2 from weighted sample moments.
Why It Matters
The EM algorithm transformed inference for latent variable models: ML equations that Lazarsfeld (1950) deemed intractable were shown by Goodman (1974) to have a simple iterative solution. The framework unifies latent class, mixture model, item response, and hidden Markov model estimation under a single computational paradigm. Its monotone convergence property and avoidance of matrix inversion make it a default estimator for high-dimensional mixture problems in statistics and machine learning.
Open Questions
- Multiple local maxima: persistent issue for latent class models with many classes; different random initializations can yield different solutions; theoretical conditions for unimodality are restrictive.
- Slow convergence: linear convergence rate near flat likelihood surfaces; accelerated variants (Expectation Conditional Maximization [ECM], ECM-Either [ECME], SEM) and quasi-Newton combinations address this at the cost of implementation complexity.
- Standard errors: Louis (1982) formula is elegant but requires additional E-step computations; in practice, bootstrapping is common.
Related