What does the E-step compute when fitting a Gaussian mixture model?
Last updated
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
logsumexpto avoid underflow. The summed log-normalizer is the log-likelihood used to check convergence.