Random Points on a Sphere (Part 2)
Persiflage 2018-08-02
This is the tale of a mathematical adventure. Last time our hardy band of explorers discovered that if you randomly choose two points on the unit sphere in 1-, 2- or 4-dimensional space and look at the probability distribution of their distances, then the even moments of this probability distribution are always integers. I gave a proof using some group representation theory.
On the other hand, with the help of Mathematica, Greg Egan showed that we can work out these moments for a sphere in any dimension by actually doing the bloody integrals.
He looked at the nth moment of the distance for two randomly chosen points in the unit sphere in and he got
This looks pretty scary, but you can simplify it using the relation between the gamma function and factorials. Remember, for integers we have
We also need to know at half-integers, which we can get knowing
and
Using these we can express moment(d,n) in terms of factorials, but the details depend on whether d and n are even or odd.
I’m going to focus on the case where both the dimension d and the moment number n are even, so let
In this case we get
Here ‘we’ means that Greg Egan did all the hard work:
From this formula
you can show directly that the even moments in 4 dimensions are Catalan numbers:
while in 2 dimensions they are binomial coefficients:
More precisely, they are ‘central’ binomial cofficients, forming the middle column of Pascal’s triangle:
So, it seems that with some real work one can get vastly more informative results than with my argument using group representation theory. The only thing you don’t get, so far, is an appealing explanation of why the even moments are integral in dimensions 1, 2 and 4.
The computational approach also opens up a huge new realm of questions! For example, are there any dimensions other than 1, 2 and 4 where the even moments are all integral?
I was especially curious about dimension 8, where the octonions live. Remember, 1, 2 and 4 are the dimensions of the associative normed division algebras, but there’s also a nonassociative normed division algebra in dimension 8: the octonions.
The d = 8 row seemed to have a fairly high fraction of integer entries:
I wondered if there were only finitely many entries in the 8th row that weren’t integers. Greg Egan did a calculation and replied:
The d=8 moments don’t seem to become all integers permanently at any point, but the non-integers become increasingly sparse.
He also got evidence suggesting that for any even dimension d, a large fraction of the even moments are integers. After some further conversation he found the nice way to think about this. Recall that
If we let
then this moment is just
so the question becomes: when is this an integer?
It’s good to think about this naively a bit. We can cancel out a bunch of stuff in that ratio of binomial coefficents and write it like this:
So when is this an integer? Let’s do the 8th moment in 4 dimensions:
This is an integer, namely the Catalan number 42: the Answer to the Ultimate Question of Life, the Universe, and Everything. But apparently we had to be a bit ‘lucky’ to get an integer. For example, we needed the 10 on top to deal with the 5 on the bottom.
It seems plausible that our chances of getting an integer increase as the moment gets big compared to the dimension. For example, try the 4th moment in dimension 10:
This not an integer, because we’re just not multiplying enough numbers to handle the prime 5 in the denominator. The 6th moment in dimension 10 is also not an integer. But if we try the 8th moment, we get lucky:
This is an integer! We’ve got enough in the numerator to handle everything in the denominator.
Greg posted a question about this on MathOverflow:
• Greg Egan, When does doubling the size of a set multiply the number of subsets by an integer?, 9 July 2018.
He got a very nice answer from a mysterious figure named Lucia, who pointed out relevant results from this interesting paper:
• Carl Pomerance, Divisors of the middle binomial coefficient, American Mathematical Monthly 122 (2015), 636–644.
Using these, Lucia proved a result that implies the following:
Theorem. If we fix a sphere of some even dimension, and look at the even moments of the probability distribution of distances between randomly chosen points on that sphere, from the 2nd moment to the (2m)th, the fraction of these that are integers approaches 1 as m → ∞.
On the other hand, Lucia also believes Pomerance’s techniques can be used to prove a result that would imply this:
Conjecture. If we fix a sphere of some even dimension > 4, and consider the even moments of the probability distribution of distances between randomly chosen points on that sphere, infinitely many of these are not integers.
In summary: we’re seeing a more or less typical rabbit-hole in mathematics. We started by trying to understand how noncommutative quaternions are on average. We figured that out, but we got sidetracked by thinking about how far points on a sphere are on average. We started calculating, we got interested in moments of the probability distribution of distances, we noticed that the Catalan numbers show up, and we got pulled into some representation theory and number theory!
I wouldn’t say our results are earth-shaking, but we definitely had fun and learned a thing or two. One thing at least is clear. In pure math, at least, it pays to follow the ideas wherever they lead. Math isn’t really divided into different branches—it’s all connected!
Afterword
Oh, and one more thing. Remember how this quest started with John D. Cook numerically computing the average of over unit quaternions? Well, he went on and numerically computed the average of
over unit octonions!
• John D. Cook, How close is octonion multiplication to being associative?, 9 July 2018.
He showed the average is about 1.095, and he created this histogram:
Later, Greg Egan computed the exact value! It’s
On Twitter, Christopher D. Long, whose handle is @octonion, pointed out the hidden beauty of this answer—it equals
Nice! Here’s how Greg did this calculation:
• Greg Egan, The average associator, 12 July 2018.
Details
If you want more details on the proof of this:
Theorem. If we fix a sphere of some even dimension, and look at the even moments of the probability distribution of distances between randomly chosen points on that sphere, from the 2nd moment to the (2m)th, the fraction of these that are integers approaches 1 as m → ∞.
you should read Greg Egan’s question on Mathoverflow, Lucia’s reply, and Pomerance’s paper. Here is Greg’s question:
For natural numbers
, consider the ratio of the number of subsets of size
taken from a set of size
to the number of subsets of the same size taken from a set of size
:
For
we have the central binomial coefficients, which of course are all integers:
For
we have the Catalan numbers, which again are integers:
![]()
However, for any fixed
, while
seems to be mostly integral, it is not exclusively so. For example, with
ranging from 0 to 20000, the number of times
is an integer for
2,3,4,5 are 19583, 19485, 18566, and 18312 respectively.
I am seeking general criteria for
to be an integer.
Edited to add:
We can write:
So the denominator is the product of
consecutive numbers
, while the numerator is the product of
consecutive numbers
. So there is a gap of
between the last of the numbers in the denominator and the first of the numbers in the numerator.
Lucia replied:
Put
, and then we can write
more conveniently as
So the question essentially becomes one about which numbers
for
divide the middle binomial coefficient
. Obviously when
,
always divides the middle binomial coefficient, but what about other values of
? This is treated in a lovely Monthly article of Pomerance:
• Carl Pomerance, Divisors of the middle binomial coefficient, American Mathematical Monthly 122 (2015), 636–644.
Pomerance shows that for any
there are infinitely many integers with
not dividing
, but the set of integers
for which
does divide
has density
. So for any fixed
, for a density
set of values of
one has that
all divide
, which means that their lcm must divide
. But one can check without too much difficulty that the lcm of
is a multiple of
, and so for fixed
one deduces that
is an integer for a set of values
with density 1. (Actually, Pomerance mentions explicitly in (5) of his paper that
divides
for a set of full density.)
I haven’t quite shown that
is not an integer infinitely often for
, but I think this can be deduced from Pomerance’s paper (by modifying his Theorem 1).
I highly recommend Pomerance’s paper—you don’t need to care much about which integers divide
to find it interesting, because it’s full of clever ideas and nice observations.