Exercise 11.7 - Manual calculation of the M step for a GMM

Answers

For question (a), we are to optimize:

n = 1 3 k = 1 2 r 𝑛𝑘 ( log π i + log 𝒩 ( x n | μ k , σ k 2 ) ) .

For question (b), the new optimal assignment for π 1 , π 2 is derived by differentiating the auxiliary function added with a regularizer to ensure π 1 + π 2 = 1 :

∂𝑄 + λ ( π 1 + π 2 1 ) π 1 = n = 1 3 r n , 1 π 1 + λ = 1.4 π 1 + λ ,

∂𝑄 + λ ( π 1 + π 2 1 ) π 2 = n = 1 3 r n , 2 π 2 + λ = 1.6 π 2 + λ .

Setting both gradients to zero ends up with:

π 1 = 7 15 , π 2 = 8 15 , λ = 3 .

For question (c), we use the results from exercise 11.2:

μ 1 = n = 1 3 r n 1 x n n = 1 3 r n 1 = 25 7 , μ 2 = n = 1 3 r n 2 x n n = 1 3 r n 2 = 65 4 .

User profile picture
2021-03-24 13:42
Comments