PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Math Visualization

Other simulators in this category — or see all 84.

View category →
NewUniversity / research

Support Vector Machine Margin

Hard/soft-margin SVM sketch with C penalty, hinge loss, support vectors, decision boundary, and margin bands.

Launch Simulator
NewUniversity / research

Bayesian Updating / Conjugate Priors

Beta-binomial Bayesian updating with prior/posterior curves, posterior predictive probability, and credible intervals.

Launch Simulator
NewUniversity / research

Markov Chain Mixing

Three-state Markov chain with transition matrix, stationary distribution, total variation distance, detailed-balance cue, and spectral-gap proxy.

Launch Simulator
NewUniversity / research

LMS / NLMS Adaptive Noise Cancellation

Primary p = s + v with v a fixed unknown FIR of Gaussian reference x[n]. Watch an L-tap FIR adapt by LMS or NLMS so error e = p − wᵀx → s; running MSE and ‖w − h‖.

Launch Simulator
NewUniversity / research

DCT & JPEG Quantization (8×8)

64×64 luma: 8×8 DCT with −128 shift, ISO luminance quant table scaled by JPEG quality, or zigzag AC truncation (keep K). Click a block for coefficient heatmaps and zigzag trace.

Launch Simulator
NewUniversity / research

PLL (Phase-Locked Loop)

Discrete-time analog-style PLL: multiplier PD e = K_d sin(φ_ref − φ_VCO), PI loop filter, VCO ω = ω_fr + K_v u; step ω_ref to explore lock, capture, and steady-state phase error.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Gaussian Mixture EM Algorithm

Gaussian Mixture EM Algorithm

The EM algorithm fits latent-variable models by alternating soft assignment and parameter re-estimation. For a Gaussian mixture, the E-step computes responsibilities for each component and the M-step updates weights, means, and covariance scale. The simulator shows responsibilities as point colors, component ellipses, and log-likelihood improvement.

Who it's for: Statistics, machine learning, pattern recognition, clustering, probabilistic modeling, and data science courses.

Key terms

  • EM algorithm
  • Gaussian mixture model
  • Responsibility
  • Likelihood
  • Latent variable
  • Covariance ellipse

EM alternates soft assignment and parameter refits; likelihood should not decrease in the exact algorithm.

Live graphs

EM settings

8
2.2

Measured values

Log likelihood-144.53
Weight 10.500
Weight 20.500

How it works

Gaussian mixture EM algorithm with responsibilities, covariance ellipses, and likelihood improvement.

Key equations

E-step: γ_ik ∝ π_k N(x_i | μ_k, Σ_k)
M-step: update π_k, μ_k, Σ_k from responsibility-weighted averages

Frequently asked questions

Is EM guaranteed to find the global optimum?
No. EM monotonically improves likelihood for exact steps, but the likelihood surface can have local optima, so initialization matters.
What are responsibilities?
A responsibility is the posterior probability that a component generated a point under the current mixture parameters.