More from Math Visualization
Other simulators in this category — or see all 61.
Complex Phasor
exp(iωt) on the unit circle; Re, Im, and phase φ.
Chaos Game (Sierpiński)
Random vertex + midpoint walk; the attractor is the Sierpiński gasket — try RGB by vertex.
Lagrange vs Cubic Spline
Click knots: Lagrange polynomial vs natural cubic spline; Runge preset shows edge oscillations.
Least Squares Fit
Noisy linear data; fitted slope and intercept with residuals.
Linear Regression: OLS, Ridge, Lasso & R²
Click/drag scatter points; fit y = β₀ + β₁x with OLS, Ridge (L2 on slope), or Lasso (L1 on slope). Spike Δy on the largest |x| point to see outlier sensitivity; compare SSE and R².
K-Means Clustering (Lloyd)
Click to add points, choose k, randomize centroids, then step Lloyd iterations (assign to nearest centroid, update means). Optional Gaussian-mixture demo; watch within-cluster SSE decrease.