Gaussian Mixture Model 高斯混合模型 GMM

Gaussian mixture model is a combine of multiple Gaussian models. These Gaussian models mixture according to ‘weight’ π. The picture is a mixture of two models.
GMM
⎩⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎧P(X∣c)=k=1∑KπkN(x(n)∣μk,Σk)N(x(n)∣μk,Σk)=(2π)2d∣Σk∣211exp[−21(x(n)−μk)TΣ−1(x(n)−μk)]k=1∑Kπk=1
πk – the probability of one example belongs to the kth Gaussian model/the weight of kth model in the mixture model
Attention! GMM is not a convex function and it has local optima(k local optima). What shall we do?
Strategies:
(i) gradient descent
(ii) heuristic algorithm including Simulated Annealing, Evolutionary Algorithms, etc (People hardly use these algorithms nowadays)
(iii)EM algorithm Today’s superstar
EM Algorithm for GMM
general EM Algorithm
Pros and cons
Cons:
- EM algorithm is not a general algorithm dealing with non-convex problem.
Pros:
- No hyper-parameters
- Simple coding work
- Theoretically graceful
EM for GMM
γnk – the probability of x(n) belongs to kth model
Nk – the expectation of #examples belong to kth model
randomize{πk,μk,Σk}k=1∼Kwhile(!converge){ E−step: γnk=k=1∑KN(xn∣μk,Σk)πkN(xn∣μk,Σk) M−step: Nk=k=1∑Kγnk for(k models) { πk(new)=NNk μk(new)=Nk1n=1∑Nγnkx(n) Σk(new)=Nk1n=1∑Nγnk[x(n)−μk(new)][x(n)−μk(new)]T {}
We use soft discrimination in this application of EM algorithm, which means we will compute the probability of each examples belongs to all models. In other applictions, take K-Means clustering algorithm for example, we use winner-takes-all strategy.