Library · Geometric Probability · Chapter 61
Expected chord length on a sphere
Problem 61.1
Two points are chosen independently and uniformly on the unit sphere . What is the expected Euclidean distance (chord length) between them?
Solution. By rotational symmetry of the sphere, condition on the first point at the north pole . The second point is uniform on , and by Archimedes’s hat-box theorem (see Chapter 28), its -coordinate is uniform on . Here is the angle between and .
The chord length is Hence With uniform on , substitute , . The density of on is therefore . Then Use and substitute : Therefore
Compare:
Unit circle (, Chapter 13): .
Unit sphere (, here): .
Unit disc (interior, Chapter 35): .
Unit ball (interior, Chapter 59): .
The surface versions are consistently larger than the interior versions, because points pushed to the boundary are farther from one another on average.
import numpy as np
u = np.random.randn(3, 2, 10**7); u /= np.linalg.norm(u, axis=0)
d = np.linalg.norm(u[:,0] - u[:,1], axis=0)
print(f"sim: {d.mean():.5f} exact: {4/3:.5f}")
# sim: 1.33313 exact: 1.33333