|
In a gaussian mixture model, I don't really understand how to update the covariance matrix s_j associated to each cluster. Is the following code correct (to see if I've understood how it works): If I understand, we should repeat the following code algorithm until convergence:
|
|
The update is analogous to the way you update the mean but you need those new means first so it cannot happen in the same loop. It would be something like |
You don't say, but it sounds like you are trying to use EM to fit the mixture model. My suggestion is to see if you can figure out the details in the one dimensional case with just a single feature.