The uniform distribution on a compact manifold
A manifold whose reference measure is finite has a uniform distribution, with the constant density one over its mass; in a full chart its tangent coordinate has the chart's volume as its density, a Student t for the usual charts of the rotations and the spheres, so it is a mixture of normals over their scales; and no single normal approaches it, since a normal's mass leaves every compact part of a global chart as its scale grows.
On the real line, nothing says that a point is unknown: Lebesgue measure has infinite mass, and a normal with a large variance is the usual stand-in. On a compact manifold the statement has an exact form, the uniform distribution, and the stand-in fails: a normal with a large scale is not nearly uniform, and becomes less so as its scale grows. This note defines the uniform distribution, reads it in a tangent chart, where it turns out to be a Student t, says how a uniform point is drawn, and shows what a normal with a large scale is instead.
The definition#
Let be a manifold with a reference measure of finite mass . A compact manifold always has one, since a measure with a continuous density in every chart is finite on compact sets. The uniform distribution on is the law with the constant density
with respect to : the law . It has no parameters. It is uniform with respect to and to nothing else, so its meaning is that of the reference measure. On a compact Lie group with Haar measure it is the one law that a translation on either side leaves unchanged, and on a sphere with surface measure the one law that every rotation of the sphere leaves unchanged. A measure of infinite mass has no uniform distribution: has none, nor has the group of rigid motions, whose translations are not compact.
The masses of the spaces of the chart volumes’ table, each with the measure its retraction normalizes, are these.
| space | measure | |
|---|---|---|
| surface measure | : for , for | |
| unit quaternions | Haar measure, times surface measure | |
| rotations | Haar measure | |
| a product | the product measure | |
| a quotient by a free action of elements | the image measure, divided by |
The mass of the rotations is half that of the unit quaternions, which cover them twice (Proposition 10), and it is also the integral of the Cayley chart’s volume, , as (2) with says it must be. A uniform point of a product is a tuple of independent uniform points of its factors, since a constant density is a product of constants. The image of a uniform point under a quotient map is uniform on the quotient, since the sum of a constant density over an orbit is constant. A finite set with counting measure fits the same definition, with the number of its elements as its mass.
In a chart#
A point drawn from a normal is a mean moved by Gaussian noise through its chart. A uniform point is any point moved through its chart by noise of another law, whose density is the chart’s volume.
Let be a manifold with a retraction and a finite reference measure , and let the chart at be full, with domain and volume . If is a random vector of with the density
on , and zero outside it, then is uniform on . Conversely, if is uniform on , then , defined almost surely, has the density .
By (2) with , , the chart being full, so is a probability density. By Proposition 4, has the density on and zero on its complement, which has measure zero: that is the uniform density. Conversely, if is uniform it lies in almost surely, and for a Borel set , , by the definition of the volume.
∎The centre is arbitrary: every chart describes the same law, and the tangent coordinate of a uniform point has the same density at every centre whenever the volume does not depend on it.
For the usual global charts that density is a familiar one. The Student t distribution on with degrees of freedom and scale has the density proportional to , and with it is the Cauchy distribution. The volumes of the Cayley and stereographic charts are powers of , and matching the exponent and the constant gives the law of the tangent coordinate of a uniform point.
| space, chart | law of for uniform | |
|---|---|---|
| , Cayley | Cauchy on with scale | |
| , stereographic | Student t on with degrees of freedom and scale | |
| , stereographic | Student t on with degrees of freedom and scale |
So a uniform rotation is a Cauchy vector pushed through the Cayley chart, at any centre.
A Student t vector is a normal vector with a random scale: with standard normal on and independent of it with the law of degrees of freedom. Given , is normal with the covariance , and so the uniform distribution is a mixture of the normals of the chart over their scale,
On the rotations with standard normal on the line: the scale has the median , is below with probability , and has no mean. The same formula has a second reading there. The vector is the Cayley coordinate (12) of the unit quaternion , a standard normal vector of scaled to length one, which is uniform on because the normal law of is invariant under its rotations.
Drawing a uniform point#
Proposition 2 is one sampler: draw the tangent vector and move any point by it. Another draws the point directly, from as many uniform variates as the manifold has dimensions.
Let be independent and uniform on .
With and , the point
is uniform on .
With and , the point
is uniform on , and the rotation it is a unit quaternion of is uniform on .
- The map of into has partial derivatives that are orthogonal, of lengths and , so it carries Lebesgue measure to surface measure, on the sphere less an arc of measure zero. The variates are mapped to by an affine map, so is uniform on the rectangle, and the point on the sphere.
- Identify with , the point being with and . In the polar coordinates of each factor, Lebesgue measure is , and with and it is . Lebesgue measure is also times surface measure, so surface measure is with . It has a constant density in , so the point is uniform on , and its image is uniform on the rotations, as the image of a uniform point under a quotient map is.
The first is Archimedes’ theorem, that the height of a uniform point of the sphere is uniform, and the second is Shoemake’s method for uniform rotations. On a sphere of any dimension a standard normal vector of scaled to length one is uniform, which is Muller’s method, by the invariance used above, at the cost of one variate more than the sphere has dimensions. A uniform point of a product is drawn factor by factor. On the finite set , the integer part of times one uniform variate is uniform, each value being the image of an interval of length .
A normal with a large scale#
The normal of a manifold with a global chart is the law of for normal on . On a large spreads it thinly over everything. On a compact manifold it does the opposite.
Let be a manifold with a retraction whose chart at is global, with image , and let , where is normal on with mean zero and covariance , and . Then
for every compact . If moreover is compact and the chart is full, the total variation distance between the law of and the uniform distribution tends to , and every weak limit of the laws of is supported on , a set of measure zero.
The density of is at most , its value at , so for a bounded Borel set , . If is compact, so is , the inverse of the chart being continuous on , and .
Let be compact and the chart full, and let . The open set is a countable union of compact sets and is finite, so there is a compact with . The uniform distribution gives at least and the law of gives it a probability tending to , so the total variation distance is eventually at least . Finally, if a subsequence of the laws converges weakly to , then for every open whose closure is a compact subset of , , and is a countable union of such sets, so .
∎The proof uses nothing of the manifold but the chart: the mass of a broad normal goes to infinity in the tangent space, as it does on , and a global chart of a compact manifold sends infinity to the few points it does not reach. Those are the half-turns from for the Cayley chart of the rotations, and the antipode for the stereographic chart of a sphere. With an isotropic scale the limit is explicit. The direction of is uniform and independent of its length, which tends to infinity, so on the rotations converges to the law of turned by a half-turn about a uniformly distributed axis, and on the sphere to the point mass at .
On the rotations with the Cayley chart, the angle between a draw and its mean is , with the length of a standard normal vector of , while the angle of a uniform rotation from any fixed one has the density on , with the median rad.
| uniform | |||||||
|---|---|---|---|---|---|---|---|
| median angle, rad | |||||||
| total variation from uniform |
No isotropic normal on the rotations is closer to uniform than in total variation, which the scale attains, and the scale whose median angle is that of the uniform distribution, near , puts that angle on a shell around the mean and not, as the uniform distribution does, in a law with no centre.
Where the modes are. Read in the chart at , the log-density (1) is up to a constant, with the Hessian at . For the Cayley chart of the rotations and the stereographic chart of , , so is a strict local maximum of the density when every eigenvalue of is below , and is not a local maximum when one of them is above it. With an isotropic scale the maxima are the points with , a shell of rotations by the angle with : rad at and rad at .
No chart mends this. A global chart is covered by Proposition 5, whichever it is. A chart that is not global, such as the exponential chart, wraps a broad normal around the manifold instead, and on the rotations that does not give the uniform distribution either: the length of taken modulo tends to a uniform law on the circle, so the angle of the rotation tends to a uniform law on , with the median , and not to the density . Wrapping gives the uniform distribution on a torus, where the exponential is a group homomorphism, and not in general.
Laws that do reach the uniform#
Two families of laws around a point contain the uniform distribution or tend to it, and neither is the normal.
Student t noise. By Proposition 2 the law of for a Student t vector is, for one number of degrees of freedom and one scale, the uniform distribution exactly, and with many degrees of freedom it is nearly a normal. Its density with respect to is the t density over the chart’s volume. On the rotations, with Cauchy noise of scale , that is proportional to in the chart’s radius , which rises from at the mean to at the half-turns when : a scale above the uniform’s still leans towards the half-turns, by a bounded factor.
A Gaussian against the reference measure. The function , normalized as a density with respect to and not to Lebesgue measure in the chart, is the law of the Gaussian part alone,
for a global and full chart. Its density is largest at , at every scale. As every eigenvalue of grows, the integrand of increases to , so and the density tends to at every point of : the law tends to the uniform distribution, in total variation. For a concentrated scale it is nearly the normal, from which it differs by the factor , close to near the mean. It has two costs. Its normalizer depends on the scale through an integral that has a closed form only in special cases; on the rotations with the Cayley chart and an isotropic scale,
which is to leading order as and as . And its draw is not a point moved by noise of a known law: it is made by rejection, either from a normal accepted with probability , which succeeds with probability , or from a uniform point accepted with probability , which succeeds with probability . On the rotations these are and at , and at , and and at . Either spends a random number of variates on a draw.
Built on by
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- The uniform distribution skoro's uniform distribution is the law of a space whose reference measure has finite mass, the rotations and the categorical spaces among them, with a constant term, an exact sampler on the host, and a residual of no components, so that a linearization reads it as a factor with no rows; it is how a model says that nothing is known of a quantity.
- The uniform distribution on compact types, and broad scales of a normal on a curved type: Mathematics The uniform distribution on a type of finite mass, curved or finite and discrete, its constant term and its sampler; and what a normal with a large scale is on a curved type, with the ways of refusing it, bounding its scale, replacing its law and documenting it weighed against each other.
- The uniform distribution on compact types, and broad scales of a normal on a curved type: Implementation A type of finite mass declares its log-mass and its uniform draw in the core, `Rotation` declares both, and a new crate `skoro-uniform` holds the distribution `Uniform`, a constant term with an exact sampler and an empty residual, on curved and categorical types alike; the normal gains only documentation and a test of what a large scale does.