Home▸Data Science▸Kernel Density Estimate: Bandwidth and Exact MISE Curves (2D)

Kernel Density Estimate: Bandwidth and Exact MISE Curves (2D)

A density estimate built from a seeded random sample with the true mixture density, plus the exact bias-variance-MISE curves against bandwidth. The same shared statistics model as the 3D scene, with numerical checks.

Data Science2DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Kernel Density Estimate: Bandwidth and Exact MISE Curves (2D) ↗ Open standalone

UMAP reduces high-dimensional data to a handful of dimensions by optimizing a low-dimensional layout so that its k-nearest-neighbor graph structure is preserved — using an attractive force along graph edges and an inverse-square repulsive force between every pair of points, exactly the two-force tug-of-war visualized here in real time. Four synthetic clusters start as random noise in 3D and are pulled and pushed into shape epoch by epoch; tune n_neighbors, min_dist, repulsion strength and optimizer speed while live readouts track layout stress and how much of the original neighbor structure survives the embedding.

⚙ Under the hood

A density estimate built from a seeded random sample with the true mixture density, plus the exact bias-variance-MISE curves against bandwidth. The same shared statistics model as the 3D scene, with numerical checks.

Kernel Density EstimationBandwidth SelectionBias-VarianceMISECross-Validation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)