NEW
Also known as: EM Algorithm
An iterative method that alternates expectation and maximization steps to estimate parameters with latent variables.
DESCRIPTION
The EM algorithm computes expected sufficient statistics (E-step) and maximizes parameters (M-step) to monotonically increase likelihood. It is widely used for Gaussian mixture models, HMMs, and missing data problems. EM can converge to local optima and is sensitive to initialization, but is straightforward to implement with closed-form M-steps in many models. Variants include stochastic EM and generalized EM.
ALTERNATIVE DEFINITIONS
Wikipedia
In statistics, the expectationâmaximization (EM) algorithm is an iterative method to find maximum likelihood or maximum a posteriori (MAP) estimates of parameters in statistical models, where the model depends on unobserved latent variables.
Defines EM with latent variables and iterative MLE/MAP estimation.
Dempster, Laird, Rubin (1977)
We consider incomplete data problems and we propose an algorithm for maximum likelihood estimates from incomplete data.
Original formulation emphasizing incomplete data and maximum likelihood.
Stanford CS229
EM alternates between computing expectations of latent variables (E-step) and maximizing parameters (M-step).
Lecture note summarizing EMâs alternating procedure.
RELATED TERMS
Gaussian Mixture Model Latent Variables Maximum Likelihood Estimation Hidden Markov Model BaumâWelch Algorithm E-step M-step Log-Likelihood Soft Clustering
COMPETING TERMS
Variational Inference Gradient Descent
KNOWLEDGE AREAS
TARGET AUDIENCE
EXTERNAL SOURCES
- Wikipedia - Expectationâmaximization algorithm
- scikit-learn - EM for Gaussian mixtures documentation
- Stanford CS229 - EM algorithm lecture notes
- Wikipedia - EM specialization for HMMs
TOP QUESTIONS
What is the Expectation Maximization algorithm?
EM is an iterative method alternating E- and M-steps to estimate parameters for models with latent variables.
Category: Definition
What guarantees does EM provide?
It monotonically increases the data likelihood and converges to a stationary point, often a local optimum.
Category: Requirements
Where is EM commonly used?
Gaussian mixture models, hidden Markov models (BaumâWelch), and missing-data inference are classic applications.
Category: Example
What are common EM pitfalls?
Poor initialization can cause suboptimal convergence; degenerate solutions may occur without regularization.
Category: Mistakes
What is a competing method to EM?
Variational inference and gradient-based maximum likelihood are popular alternatives.
Category: Alternatives
How does EM relate to the ELBO?
EM can be seen as optimizing a lower bound on the likelihood, akin to variational formulations in some cases.
Category: Relation
How should I initialize EM?
Use k-means for GMMs, multiple random restarts, or domain-informed priors to improve convergence.
Category: HowTo
Who introduced EM?
Dempster, Laird, and Rubin formalized EM in 1977 for incomplete data problems.
Category: Origin
What is the difference between hard and soft assignments in EM?
EM uses soft responsibilities in the E-step, unlike k-means which uses hard cluster assignments.
Category: Difference
When should I avoid EM?
When closed-form M-steps are unavailable or models are highly non-convex, gradient-based methods may be preferable.
Category: Opinion