Derive EM for a Gaussian mixture and show how k-means is a limit of it
HardConcept25 minRSREPro outline
The question
Write the log-likelihood of a Gaussian mixture model and derive the E-step and M-step updates.
Then show how k-means falls out as a special case, and explain what each method assumes.
What the interviewer is looking for
- Correct E-step responsibilities using Bayes' rule
- Correct M-step updates for weights, means and covariances
- Explains why EM increases a lower bound on the likelihood
- Shows k-means as shared spherical covariance with variance going to zero (hard assignments)
- Discusses local optima and initialization
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question type: compare optimizers such as SGD, Adam and AdamW, or derive EM for Gaussian mixtures versus k-means.
Reported in: trueinterview.io
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question.