Related simulators
Continue with similar topics in this category — or all 85 in Math Visualization.
Toy 2-Layer MLP + Backprop (XOR / spiral)
Click-labeled 2D data; **tanh** hidden layer + **logistic** output trained by **full-batch** gradient descent on **binary cross-entropy**. Heatmap shows **P(class 1)** evolving across epoch blocks — watch the **0.5 decision contour** wrap XOR or untangle spirals.
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².
Convex Hull (Graham & QuickHull)
Click to add points, drag to move; Graham scan with step playback or QuickHull divide-by-farthest; compare vertex sets.
Newton's Method (1D)
Graph f(x), click x₀, iterate x − f/f′ with numeric derivative; pan and presets. Complex basins: separate Newton fractal sim.
PCA in 2D (principal components & 1D projection)
Click-built cloud: covariance eigenvectors as PC1/PC2 arrows from the mean, optional orthogonal drops to the PC1 line, and a bottom strip of PC1 scores — the standard rank-one projection coordinate.
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.