🧊 Hypersphere Volume in n Dimensions: Monte Carlo vs Gamma Function and the Curse of Dimensionality
3D view of the unit ball inside a cube projected from n dimensions: volume pi^(n/2)/Gamma(n/2+1), the shrinking fraction of the cube it fills, thin-shell concentration and Monte Carlo sampling that fails above about 12 dimensions.
⚙ Under the hood
3D view of the unit ball inside a cube projected from n dimensions: volume pi^(n/2)/Gamma(n/2+1), the shrinking fraction of the cube it fills, thin-shell concentration and Monte Carlo sampling that fails above about 12 dimensions.
n-spherehyperspherehigher dimensionscurse of dimensionalityGamma functionMonte CarloBlender
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install