Skip to content

Expectation–Maximization Algorithm

An iterative likelihood-fitting method that alternates conditional expectation over hidden data with maximization of the resulting complete-data objective.

Version
v2 · 2026-10-03 · History
Domain-specific #
13211
Domain group
Formal Sciences
Origin domain
Experimental Design & Statistics
Subdomains
Maximum Likelihood, Incomplete Data → Experimental Design & Statistics
Aliases
EM algorithm

Core Idea

The expectation–maximization (EM) algorithm fits an observed-data likelihood by treating hidden or missing variables as complete data. Given observed \(y\), latent \(z\) and parameter \(\theta\), its E-step forms \(Q(\theta\mid\theta^{(t)})=\mathbb E_{z\mid y,\theta^{(t)}}[\log p(y,z\mid\theta)]\). Its M-step chooses a next parameter maximizing that expected objective. For exact steps in the original framework, the observed-data likelihood does not decrease.[1]

That ascent is not a guarantee of reaching a global optimum or even, without further conditions, of parameter-sequence convergence. Wu distinguishes stationary limit points and stronger convergence conclusions under additional assumptions. The standard identity is maximum-likelihood EM; adding a prior yields a related, explicitly modified objective.[1][2]

How would you explain it like I'm…

Guess, Fix, Repeat

Imagine a bag of mixed-up beads from two friends, but nobody wrote down whose bead is whose. You make a guess about what each friend's beads look like. Then you guess who each bead probably belongs to, and use that to fix your idea of each friend's beads. You keep going back and forth, and your guesses keep getting better or stay the same. But they might not end up at the very best answer.

The Hidden-Clue Guessing Loop

The Expectation–Maximization Algorithm is a way for statisticians to figure out the settings of a model when some of the information is hidden or missing. It takes turns between two steps. In the E-step, it uses its current guess of the settings to work out what the hidden information probably is. In the M-step, it picks new settings that fit best, treating those likely hidden values as if they were known. Each round, the fit to the real data gets better or stays the same. It can still get stuck on a good answer that is not the best one.

Alternating Expectation and Maximization

The Expectation–Maximization algorithm estimates the parameters of a model when some data are missing or hidden, called latent variables. Working directly with the likelihood of only the observed data is hard because you would have to add up over every possible value of the hidden data. EM instead alternates two steps. The E-step uses the current parameters to work out what the hidden data probably are, by averaging the complete-data log-likelihood over them. The M-step chooses new parameters that maximize that average. Each full round never decreases the likelihood of the observed data. That is an "always climbing" guarantee, not a promise of reaching the highest peak. The exact formulas depend on the model: a mixture of groups and a hidden Markov chain need different E-steps.

 

Let y be the observed data, z the latent or missing data, and θ the parameters, with a complete-data model p(y,z|θ) that marginalizes to p(y|θ). At iteration t, the E-step forms Q(θ|θ^(t)) = E over z given y and θ^(t) of log p(y,z|θ). The M-step sets θ^(t+1) to the maximizer of Q. The expectation uses the current parameters, while the maximization produces the next ones. This replaces a hard marginal-likelihood optimization with a series of conditional-inference problems and complete-data optimization problems. Dempster, Laird and Rubin showed that exact EM gives a nondecreasing observed-data likelihood, by relating gains in Q to the conditional distribution of the missing data. This is ascent, not global optimality. Wu's convergence analysis separates three questions: whether likelihood values ascend, whether limit points are stationary (which needs extra conditions), and whether the whole parameter sequence converges. The update equations depend on the model. For example, a mixture model with independent labels and a hidden Markov model need different E-step inference.

Scope of Application

In a finite mixture, the hidden data are component labels. The E-step computes each observation's posterior weights across components; the M-step uses weighted counts and statistics to update the mixture. In a hidden Markov model, the hidden data are linked states, so the E-step needs chain inference rather than independently weighted labels; parameter re-estimation completes the EM loop.[1]

The method transfers between these settings because both have an observed likelihood obtained by marginalizing valid complete data. A hard label assignment, a forward–backward pass without parameter updates, or generic alternating optimization does not satisfy the full identity merely by resembling two steps.[1]

Clarity

Keep the observed target \(\log p(y\mid\theta)\) distinct from the complete-data expression \(\log p(y,z\mid\theta)\). The current parameter determines the conditional distribution used in E; the proposed next parameter is optimized in M. EM averages over hidden possibilities rather than claiming that any one missing value has been recovered.[1]

Also distinguish likelihood-value ascent from the convergence of parameters. The former has an exact-step theorem; the latter needs more assumptions. Different starts can expose different outcomes under the same model, so “EM converged” should say to what and under which conditions.[1][2]

Manages Complexity

EM organizes a potentially difficult marginal likelihood into posterior conditional inference and a complete-data optimization, often passing expected sufficient statistics between them. This can make mixture fitting or latent-chain learning manageable while retaining uncertainty over hidden configurations.[1]

The reorganization has costs. A simple M-step can come with an expensive E-step; an approximate E or M step may not inherit the exact ascent theorem. Record the augmentation, step accuracy and observed-likelihood behavior instead of treating the acronym as a computational guarantee.[1]

Abstract Reasoning

Verify that the proposed complete-data model marginalizes to \(p(y\mid\theta)\). Derive \(p(z\mid y,\theta^{(t)})\), form the corresponding expected complete-data log likelihood, and maximize it over the permitted parameters. Check the observed likelihood after the update. A hard assignment or unrelated surrogate fails this derivation test.[1]

If a solution is called optimal, distinguish a local stationary result, a global maximum-likelihood estimate, and mere stabilization of likelihood values. Use Wu's convergence qualifications rather than deducing any of these from monotonicity alone.[2]

Knowledge Transfer

The literal transferable pattern is marginal observed target → valid latent augmentation → conditional expectation → parameter maximization → qualified likelihood ascent. The mixture and Markov examples instantiate it with unlike hidden-data structures. Their specific posterior calculations do not transfer unchanged.[1]

Live Maximum Likelihood Estimation is the proposed DAG prerequisite because it supplies the target objective, not the EM update. Forward–Backward Algorithm may supply hidden-chain expectations, while Imputation is related vocabulary but should not be read as hard filling of each latent value. A broader alternating-surrogate skeleton remains a future-prime question, not an admitted identity here.

Relationships to Other Abstractions

Local relationship map for Expectation–Maximization AlgorithmParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Expectation–Maximiza…DOMAINDomain-specific abstraction: Maximum likelihood estimation — presupposesMaximum likelih…DOMAIN

Current abstraction Expectation–Maximization Algorithm Domain-specific

Parents (1) — outgoing typed relations

  • Expectation–Maximization Algorithm presupposes Maximum likelihood estimation Domain-specific

    Standard EM is a method for the observed-data maximum-likelihood objective.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Expectation–Maximization Algorithm sits in a sparse region of the domain-specific corpus (69th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Statistical Learning & Model Failure Modes (44 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] A. P. Dempster, N. M. Laird and D. B. Rubin, “Maximum Likelihood from Incomplete Data via the EM Algorithm”, Journal of the Royal Statistical Society, Series B 39 (1977), §§1–4, especially §3 Theorem 1 and §4.3. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j

[2] C. F. Jeff Wu, “On the Convergence Properties of the EM Algorithm”, Annals of Statistics 11 (1983), 95–103, abstract and §§1–3. registry ↩a ↩b ↩c