The most beautiful formula not enough people understand

· Source: 3Blue1Brown · Field: Science & Research — Mathematics & Computational Sciences · Depth: Advanced, extended

Summary

This content explores the counterintuitive nature of high-dimensional geometry, particularly focusing on the volume of n-dimensional spheres. It begins with two puzzles: calculating the probability of random points falling within a unit circle or sphere in 2D and 3D, then generalizing to higher dimensions, highlighting their utility in fields like machine learning. The second puzzle demonstrates the counterintuitive behavior of spheres within cubes in higher dimensions, where an inner sphere can exceed the bounding box, suggesting cubes become "spiky." The core of the discussion derives a general formula for the volume of an n-dimensional unit ball, V_n(R) = (π^(n/2) / Γ(n/2 + 1)) * R^n, using a recursive "knight's move" method based on Archimedes' principle and calculus. This formula reveals that the volume of a unit ball initially increases with dimension, peaks around n=5, and then rapidly approaches zero, becoming infinitesimal in very high dimensions. This phenomenon implies that in high-dimensional spaces, most of a sphere's volume is concentrated near its boundary, and spheres occupy a negligible fraction of their enclosing cubes.

Key takeaway

For Machine Learning Engineers working with high-dimensional data representations, understanding the counterintuitive properties of n-dimensional spheres is crucial. Be aware that in high dimensions, unit balls occupy an infinitesimally small fraction of their enclosing cubes, and their volume is concentrated almost entirely near the boundary. This insight can inform data sampling strategies, distance metric choices, and the interpretation of model behavior in complex feature spaces, preventing misinterpretations based on low-dimensional intuition.

Key insights

High-dimensional geometry reveals counterintuitive properties, with n-dimensional sphere volumes peaking then becoming infinitesimal.

Principles

Method

Derive n-dimensional sphere volumes using a recurrence relation: V_n = V_(n-2) * (2π/n), based on Archimedes' area-preserving projection and calculus integration, then generalize with the Gamma function.

In practice

Topics

Best for: AI Student, Machine Learning Engineer, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by 3Blue1Brown.