A 1-D Gaussian mixture has two components with equal weights , means and , and both variances equal to 1. For the data , what are the E-step responsibilities and the updated weights and means after one EM iteration?
Unsupervised learning, Gaussian mixtures
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can carry out an E-step with Bayes' rule and an M-step with responsibility-weighted averages, with correct numbers.
Key idea
The responsibility is . The M-step sets , and .
Steps
- With equal weights and variances, the ratio is .
- For : ratio , so , . For : ratio , so , . For : ratio , so , .
- Effective counts: and .
- New weights: and .
- New means: , and .
- If the variances were also updated, with the new means, and . The component 1 mean moves from 0 to about 0.5 because it now owns the two points at 0 and 1.
Common mistakes
- Forgetting to divide by the sum over components (normalising the responsibilities across for each point).
- Using hard assignments as in k-means. EM uses soft weights, so the point at 1 contributes slightly to component 2 as well.
- Using the old means to update the variances. The M-step variance uses the new means.
How long your answer should be
One page; 6–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: How do you show that Ward's linkage, which merges the pair of clusters that least increases the total within-cluster sum of squares, has merge cost ? How do you check it on and ?
Next in Unsupervised learning: In EM for a Gaussian mixture with weights , means and covariances , how do you derive the M-step updates for , and from the expected complete-data log-likelihood?