.
the above mathematical intuition, we establish the EM algorithm for gaussian mixture models more formally as shown below. Note that the expressions for the parameters μₖ, Nₖ, Σₖ in the M-step are obtained by differentiating equation 8 in the above snippet with respect to each parameter and equating