What does the E-step compute when fitting a Gaussian mixture model?

Last updated 11 November 2026

  • The E-step computes responsibilities: the posterior probability γᵢₖ that component k generated point xᵢ, holding parameters fixed.

  • By Bayes' rule, γᵢₖ = πₖ𝒩(xᵢ | μₖ, Σₖ) / Σⱼ πⱼ𝒩(xᵢ | μⱼ, Σⱼ). Each row sums to 1, unlike k-means' hard 0/1 assignment.

  • Compute in log space with logsumexp to avoid underflow. The summed log-normalizer is the log-likelihood used to check convergence.

  • https://leetml.org/ml-models/gmm.html
  • https://medium.com/@VectorWorksAcademy/mastering-gaussian-mixture-models-concepts-applications-and-interview-preparation-a7c0aebfbcc3
All Clustering interview questions