A 1D Gaussian mixture has two components with unit variance, means μ1=0 and μ2=4, and weights π1=0.7 and π2=0.3. For the data points x=3 and x=1, what are the responsibilities of component 1? What are the M-step updates of μ1 and π1 using only these two points (keeping the other parameters fixed)?

Probabilistic models, EM algorithm
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute E-step responsibilities with a Gaussian density and use them as soft counts in the M-step.

Key idea

The responsibility is rnk=πkN(xn∣μk,1)/∑jπjN(xn∣μj,1). The M-step gives μ1=∑nrn1xn/∑nrn1 and π1=1N∑nrn1.

Steps

  1. The density constant 1/2π is the same for both components and cancels. Use exp⁡(−(x−μ)2/2) only.
  2. For x=3: component 1 gives e−4.5=0.0111 and component 2 gives e−0.5=0.6065. So r11=0.7⋅0.01110.7⋅0.0111+0.3⋅0.6065=0.007780.18974=0.041.
  3. For x=1: component 1 gives e−0.5=0.6065 and component 2 gives e−4.5=0.0111. So r21=0.7⋅0.60650.7⋅0.6065+0.3⋅0.0111=0.42460.4279=0.992.
  4. The soft count of component 1 is N1=0.041+0.992=1.033.
  5. New mean: μ1=(0.041⋅3+0.992⋅1)/1.033=1.115/1.033=1.079. New weight: π1=1.033/2=0.517.
  6. Check: the point x=3 is nearer to component 2, so it contributes little to μ1, and μ1 moves from 0 towards the point x=1.

Common mistakes

How long your answer should be

Half a page with the table of exponentials.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: A scalar state follows xt=xt−1+wt with wt∼N(0,1), and we observe yt=xt+vt with vt∼N(0,4). After step t−1 the belief is xt−1∼N(2,3). The new observation is yt=5. What are the predicted and the updated beliefs?
Next in Probabilistic models: In the model y=wx+ε with prior w∼N(0,1) and noise ε∼N(0,0.25), you observe (x,y)=(1,2) and (2,3). Find the posterior mean and variance of w. How is the posterior mean related to ridge regression?