All lessons in Machine Learning Engineering: Reliable Predictive Models
Gaussian Mixtures and Expectation Maximization
Compute soft assignments and diagnose local optima in mixture models.
35 minutes · Free with an account · preview
What you will learn
- Compute soft component responsibilities for a data point from Gaussian mixture parameters and interpret them as posterior probabilities.
- Carry out one maximization step by hand, updating a component weight, mean and variance from responsibilities.
- Diagnose local optima, collapsed components and component-count choices using log-likelihood, multiple initializations and BIC.
A parcel carrier rarely has one kind of dispatch day. Some mornings the dock clears in a smooth rhythm; others are a pile-up where trucks wait for pallets. If you plot the minutes between first scan and dispatch for a few thousand parcels, you often see two or more bumps rather than one bell. A Gaussian mixture model describes exactly that: the data are generated by first picking a hidden regime, then drawing a value from that regime's bell curve. Expectation maximization (EM) fits component parameters and soft assignments without observed component labels. It can reach a local solution and does not identify unique physical regimes. This lesson is optional and self-contained; it recaps the few probability facts it needs.