If you’ve flipped through a textbook on high-dimensional probability or geometry, you’ve seen the obligatory drawing of an -dimensional cube. It is usually rendered as a strange spiky object: a sea urchin, a thorny diamond, a star with way too many points. Why does the high-dimensional cube get drawn like that?
Some of it is concentration of measure (the phenomenon where, in high dimensions, almost all of a set’s mass sits in a thin shell rather than being spread out), but there is a much simpler counting argument behind a particular family of these drawings. It is just the binomial coefficient in disguise.
Counting corners
The unit cube in dimensions is the set . Its corners are the points where every coordinate is either or . There are exactly of them.
- : corners, namely and .
- : corners, namely . The unit square.
- : corners. The familiar 3D cube.
- : corners.
- : just over a billion.
Now group the corners by Hamming weight, the number of coordinates equal to . Define
How many such corners are there? You’re picking which of the slots get the , so
That is the point: the level distribution of cube corners is exactly the binomial coefficient.
What does look like?
A bell. Peaked at , symmetric around it, with at the extremes and in the middle.
For large , the de Moivre–Laplace theorem (a classical, pre-CLT special case of the central limit theorem) gives
In other words, the count of corners at level , viewed as a function of , converges to a Gaussian with mean and variance , exactly the mean and variance of independent fair coin flips.
Drawing the cube
Now suppose we draw the cube on a 2D page. One natural convention: stack the levels vertically and draw each level as a horizontal band whose width is proportional to .
For small this is a chunky diamond. For large it is a vertical bell curve, narrow at the top and bottom (only one corner each, at and ) and bulging in the middle. The ratio between the middle width and the tip width is , which is roughly , exponentially huge.
Slide and watch the chunky diamond at sharpen into a needle-tipped spindle:
That’s the spike. The drawing has sharp points at the top and bottom because there is exactly one corner at each end, and a dramatic bulge in the middle because the binomial is dramatic about its peak. As grows, the tips become invisibly thin while the middle balloons out.
The small- end of the slider gives something more familiar. At the levels have widths , so the silhouette is a diamond. At the widths are , giving a hexagonal outline that looks like the way we usually sketch a 3D cube on paper. The spiky cross-section is built the same way; it only starts to look spiky once the binomial peak pulls far away from the tips.
A few observations follow immediately:
- Almost all corners have roughly ones. Since the standard deviation is , a deviation of is standard deviations, so the fraction of corners with falls off Gaussian-fast in .
- The tips are vanishingly rare. Out of corners, only two (the all-zero and the all-one) sit at the extreme levels. They are the spike points that give the drawing its name.
- Two random corners are typically at Hamming distance : they disagree in each coordinate independently with probability , so the number of disagreements is again binomial.
References
Versions of the spiky-cube drawing appear all over high-dimensional probability and data-science texts. One good place to look:
- Roman Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018. The first few chapters set up exactly this geometric picture before deploying it for concentration inequalities.
The drawings vary author to author, but the underlying combinatorics is always the same: corners count as a binomial, and a binomial peaks sharply.