What does the E-step compute when fitting a Gaussian mixture model?

Quick Overview

Asks what the expectation step computes when a Gaussian mixture model is fitted with EM. Tests applying Bayes' rule to unobserved component labels, how the M-step uses the result, and how to keep the computation numerically stable in high dimensions.

What does the E-step compute when fitting a Gaussian mixture model?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What does the E-step compute when fitting a Gaussian mixture model? The model has $K$ Gaussian components, each with a mixing weight, a mean and a covariance, and it is fitted with expectation-maximization (EM). ```hint Think about the missing labels EM treats each point's component label as unobserved. Once the parameters are fixed, what can you say about that label for a given point? ``` ### What a Strong Answer Covers - The quantity the E-step produces and what it means as a probability - The formula, with each term named - How the M-step uses the result - How to compute it without numerical underflow in high dimensions - How it differs from the assignment step of k-means ### Follow-up Questions - Write the M-step updates for the means, covariances and mixing weights in terms of the E-step output. - Why does EM never decrease the log-likelihood from one iteration to the next? - What happens when one component collapses onto a single point, and how do you prevent it? - How would the E-step change if you added a uniform background component to absorb outliers?

Overview: Asks what the expectation step computes when a Gaussian mixture model is fitted with EM. Tests applying Bayes' rule to unobserved component labels, how the M-step uses the result, and how to keep the computation numerically stable in high dimensions.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What does the E-step compute when fitting a Gaussian mixture model?

The model has KK Gaussian components, each with a mixing weight, a mean and a covariance, and it is fitted with expectation-maximization (EM).

What a Strong Answer Covers Guidance

  • The quantity the E-step produces and what it means as a probability
  • The formula, with each term named
  • How the M-step uses the result
  • How to compute it without numerical underflow in high dimensions
  • How it differs from the assignment step of k-means

Follow-up Questions Guidance

  • Write the M-step updates for the means, covariances and mixing weights in terms of the E-step output.
  • Why does EM never decrease the log-likelihood from one iteration to the next?
  • What happens when one component collapses onto a single point, and how do you prevent it?
  • How would the E-step change if you added a uniform background component to absorb outliers?