Curse of Dimensionality: Distance Concentration
Interactive 3D demo of the curse of dimensionality: watch pairwise distances between random points concentrate and the inscribed hypersphere's volume vanish as dimension count grows, with live statistics driving the point cloud.
Every distance-based technique in data science — k-nearest neighbors, clustering, PCA-style variance capture — quietly assumes that "near" and "far" mean something. This simulator generates a real N-point cloud with d independent coordinates and computes its actual full-dimensional statistics: what fraction of the points fall inside the hypersphere inscribed in their bounding cube, and how much the nearest and farthest pairwise distances still differ (the relative contrast). Drag the dimension slider from 2 up to 150 and watch both numbers collapse — almost every point ends up in a "corner" outside the sphere, and every pair of points ends up nearly the same distance apart. A random 3D projection (the same Johnson–Lindenstrauss idea dimensionality-reduction tools rely on) renders the cloud so you can see the shape of the collapse, while the numbers underneath are computed honestly in the full d-dimensional space.
Watch a random point cloud's pairwise distances concentrate and its inscribed hypersphere's volume vanish as the dimension count grows, with live statistics computed in the full high-dimensional space.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install