skoro v0.0.0

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.

Updated 2026-11-25 · 11 min read

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 X\manifold be a manifold with a reference measure ν\nu of finite mass ν(X)\nu(\manifold). 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 X\manifold is the law with the constant density

p(x)=1ν(X),ℓ(x)=−log⁡ν(X),(1) \density(\point) = \frac{1}{\nu(\manifold)}, \qquad \logterm(\point) = -\log \nu(\manifold) , \tag{1}
(1)

with respect to ν\nu: the law ν/ν(X)\nu / \nu(\manifold). It has no parameters. It is uniform with respect to ν\nu 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: Rd\R^\dimension 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.

spacemeasureν(X)\nu(\manifold)
Sn⊂Rn+1S^n \subset \R^{n+1}surface measure2π(n+1)/2/Γ(n+12)2 \pi^{(n+1)/2} / \Gamma\bigl(\tfrac{n+1}{2}\bigr): 4π4\pi for S2S^2, 2π22\pi^2 for S3S^3
unit quaternions S3S^3Haar measure, 88 times surface measure16π216 \pi^2
rotations SO(3)SO(3)Haar measure8π28 \pi^2
a product X1×⋯×Xk\manifold_1 \times \cdots \times \manifold_kthe product measure∏iνi(Xi)\prod_i \nu_i(\manifold_i)
a quotient by a free action of mm elementsthe image measure, divided by mmν(X)/m\nu(\manifold) / m

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, ∫R3(1+∣v∣2/4)−2 dv=8π2\int_{\R^3} (1 + \lvert \tangent \rvert^2 / 4)^{-2}\, \dd \tangent = 8 \pi^2, as (2) with g=1g = 1 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.

Proposition 2(The uniform distribution in a chart).

Let X\manifold be a manifold with a retraction and a finite reference measure ν\nu, and let the chart at μ\mu be full, with domain UμU_\mu and volume vμv_\mu. If ε\varepsilon is a random vector of Rd\R^\dimension with the density

f(v)=vμ(v)ν(X) f(\tangent) = \frac{v_\mu(\tangent)}{\nu(\manifold)}

on UμU_\mu, and zero outside it, then μ⊕ε\mu \oplus \varepsilon is uniform on X\manifold. Conversely, if x\randomPoint is uniform on X\manifold, then x⊖μ\randomPoint \ominus \mu, defined almost surely, has the density ff.

Proof.

By (2) with g=1g = 1, ∫Uμvμ=ν(Vμ)=ν(X)\int_{U_\mu} v_\mu = \nu(V_\mu) = \nu(\manifold), the chart being full, so ff is a probability density. By Proposition 4, μ⊕ε\mu \oplus \varepsilon has the density f/vμ=1/ν(X)f / v_\mu = 1 / \nu(\manifold) on VμV_\mu and zero on its complement, which has measure zero: that is the uniform density. Conversely, if x\randomPoint is uniform it lies in VμV_\mu almost surely, and for a Borel set A⊆UμA \subseteq U_\mu, Pr⁡(x⊖μ∈A)=ν(Rμ(A))/ν(X)=∫Avμ/ν(X)\Pr(\randomPoint \ominus \mu \in A) = \nu(R_\mu(A)) / \nu(\manifold) = \int_A v_\mu / \nu(\manifold), by the definition of the volume.

∎

The centre μ\mu 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 Rd\R^\dimension with nn degrees of freedom and scale ss has the density proportional to (1+∣v∣2/ns2)−(n+d)/2(1 + \lvert \tangent \rvert^2 / n s^2)^{-(n + \dimension)/2}, and with n=1n = 1 it is the Cauchy distribution. The volumes of the Cayley and stereographic charts are powers of 1+∣v∣2/c1 + \lvert \tangent \rvert^2 / c, and matching the exponent and the constant gives the law of the tangent coordinate of a uniform point.

space, chartvμ(v)v_\mu(\tangent)law of x⊖μ\randomPoint \ominus \mu for uniform x\randomPoint
SO(3)SO(3), Cayley(1+14∣v∣2)−2(1 + \tfrac14 \lvert \tangent \rvert^2)^{-2}Cauchy on R3\R^3 with scale 22
S2S^2, stereographic(1+14∣v∣2)−2(1 + \tfrac14 \lvert \tangent \rvert^2)^{-2}Student t on R2\R^2 with 22 degrees of freedom and scale 2\sqrt 2
S3S^3, stereographic(1+116∣v∣2)−3(1 + \tfrac1{16} \lvert \tangent \rvert^2)^{-3}Student t on R3\R^3 with 33 degrees of freedom and scale 4/34 / \sqrt 3

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: ε=sζ/w/n\varepsilon = s \zeta / \sqrt{w / n} with ζ\zeta standard normal on Rd\R^\dimension and ww independent of it with the χ2\chi^2 law of nn degrees of freedom. Given ww, ε\varepsilon is normal with the covariance σ2I\sigma^2 I, and so the uniform distribution is a mixture of the normals N(μ,σ2I)\mathcal N(\mu, \sigma^2 I) of the chart over their scale,

νν(X)=E[N(μ,σ2I)],σ=sw/n,w∼χn2.(3) \frac{\nu}{\nu(\manifold)} = \E\bigl[\mathcal N(\mu, \sigma^2 I)\bigr], \qquad \sigma = \frac{s}{\sqrt{w / n}}, \quad w \sim \chi^2_n . \tag{3}
(3)

On the rotations σ=2/∣g∣\sigma = 2 / \lvert g \rvert with gg standard normal on the line: the scale has the median 2.972.97, is below 11 with probability 0.0460.046, and has no mean. The same formula has a second reading there. The vector ε=2ζ/g\varepsilon = 2 \zeta / g is the Cayley coordinate (12) of the unit quaternion (g,ζ)/∣(g,ζ)∣(g, \zeta) / \lvert (g, \zeta) \rvert, a standard normal vector of R4\R^4 scaled to length one, which is uniform on S3S^3 because the normal law of R4\R^4 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.

Proposition 4(Uniform points from uniform variates).

Let u1,u2,u3u_1, u_2, u_3 be independent and uniform on (0,1)(0, 1).

  1. With c=1−2u1c = 1 - 2 u_1 and φ=2πu2\varphi = 2 \pi u_2, the point

    (1−c2cos⁡φ, 1−c2sin⁡φ, c) \bigl(\sqrt{1 - c^2} \cos \varphi,\ \sqrt{1 - c^2} \sin \varphi,\ c\bigr)

    is uniform on S2S^2.

  2. With φ=2πu2\varphi = 2 \pi u_2 and ψ=2πu3\psi = 2 \pi u_3, the point

    (1−u1cos⁡φ, 1−u1sin⁡φ, u1cos⁡ψ, u1sin⁡ψ) \bigl(\sqrt{1 - u_1} \cos \varphi,\ \sqrt{1 - u_1} \sin \varphi,\ \sqrt{u_1} \cos \psi,\ \sqrt{u_1} \sin \psi\bigr)

    is uniform on S3S^3, and the rotation it is a unit quaternion of is uniform on SO(3)SO(3).

Proof.
  1. The map (c,φ)↦(1−c2cos⁡φ,1−c2sin⁡φ,c)(c, \varphi) \mapsto (\sqrt{1 - c^2} \cos \varphi, \sqrt{1 - c^2} \sin \varphi, c) of (−1,1)×(0,2π)(-1, 1) \times (0, 2\pi) into S2S^2 has partial derivatives that are orthogonal, of lengths 1/1−c21 / \sqrt{1 - c^2} and 1−c2\sqrt{1 - c^2}, so it carries Lebesgue measure to surface measure, on the sphere less an arc of measure zero. The variates (u1,u2)(u_1, u_2) are mapped to (c,φ)(c, \varphi) by an affine map, so (c,φ)(c, \varphi) is uniform on the rectangle, and the point on the sphere.
  2. Identify R4\R^4 with C2\mathbb C^2, the point being (a,b)(a, b) with a=1−u1 eiφa = \sqrt{1 - u_1}\, e^{i \varphi} and b=u1 eiψb = \sqrt{u_1}\, e^{i \psi}. In the polar coordinates of each factor, Lebesgue measure is ra dra dφ  rb drb dψr_a\, \dd r_a\, \dd \varphi\; r_b\, \dd r_b\, \dd \psi, and with ra=rcos⁡ηr_a = r \cos \eta and rb=rsin⁡ηr_b = r \sin \eta it is r3 dr⋅cos⁡ηsin⁡η dη dφ dψr^3\, \dd r \cdot \cos \eta \sin \eta\, \dd \eta\, \dd \varphi\, \dd \psi. Lebesgue measure is also r3 drr^3\, \dd r times surface measure, so surface measure is cos⁡ηsin⁡η dη dφ dψ=12 dρ dφ dψ\cos \eta \sin \eta\, \dd \eta\, \dd \varphi\, \dd \psi = \tfrac12\, \dd \rho\, \dd \varphi\, \dd \psi with ρ=sin⁡2η=∣b∣2\rho = \sin^2 \eta = \lvert b \rvert^2. It has a constant density in (ρ,φ,ψ)=(u1,2πu2,2πu3)(\rho, \varphi, \psi) = (u_1, 2 \pi u_2, 2 \pi u_3), so the point is uniform on S3S^3, 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 Rn+1\R^{n+1} 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 {0,…,n−1}\{0, \dots, n - 1\}, the integer part ⌊nu⌋\lfloor n u \rfloor of nn times one uniform variate uu is uniform, each value being the image of an interval of length 1/n1/n.

A normal with a large scale#

The normal N(μ,Σ)\mathcal N(\mu, \Sigma) of a manifold with a global chart is the law of μ⊕ε\mu \oplus \varepsilon for ε\varepsilon normal on Rd\R^\dimension. On Rd\R^\dimension a large Σ\Sigma spreads it thinly over everything. On a compact manifold it does the opposite.

Proposition 5(A normal with a large scale).

Let X\manifold be a manifold with a retraction whose chart at μ\mu is global, with image VμV_\mu, and let xk=μ⊕εk\randomPoint_k = \mu \oplus \varepsilon_k, where εk\varepsilon_k is normal on Rd\R^\dimension with mean zero and covariance Σk\Sigma_k, and det⁡Σk→∞\det \Sigma_k \to \infty. Then

Pr⁡(xk∈K)→0 \Pr(\randomPoint_k \in K) \to 0

for every compact K⊆VμK \subseteq V_\mu. If moreover X\manifold is compact and the chart is full, the total variation distance between the law of xk\randomPoint_k and the uniform distribution tends to 11, and every weak limit of the laws of xk\randomPoint_k is supported on X∖Vμ\manifold \setminus V_\mu, a set of measure zero.

Proof.

The density of εk\varepsilon_k is at most (2π)−d/2(det⁡Σk)−1/2(2\pi)^{-\dimension/2} (\det \Sigma_k)^{-1/2}, its value at 00, so for a bounded Borel set BB, Pr⁡(εk∈B)≤vol⁡(B) (2π)−d/2(det⁡Σk)−1/2→0\Pr(\varepsilon_k \in B) \le \operatorname{vol}(B)\, (2\pi)^{-\dimension/2} (\det \Sigma_k)^{-1/2} \to 0. If K⊆VμK \subseteq V_\mu is compact, so is B=Rμ−1(K)B = R_\mu^{-1}(K), the inverse of the chart being continuous on VμV_\mu, and Pr⁡(xk∈K)=Pr⁡(εk∈B)\Pr(\randomPoint_k \in K) = \Pr(\varepsilon_k \in B).

Let X\manifold be compact and the chart full, and let η>0\eta > 0. The open set VμV_\mu is a countable union of compact sets and ν(Vμ)=ν(X)\nu(V_\mu) = \nu(\manifold) is finite, so there is a compact K⊆VμK \subseteq V_\mu with ν(K)≥(1−η) ν(X)\nu(K) \ge (1 - \eta)\, \nu(\manifold). The uniform distribution gives KK at least 1−η1 - \eta and the law of xk\randomPoint_k gives it a probability tending to 00, so the total variation distance is eventually at least 1−2η1 - 2\eta. Finally, if a subsequence of the laws converges weakly to PP, then for every open OO whose closure is a compact subset of VμV_\mu, P(O)≤lim inf⁡kPr⁡(xk∈O)=0P(O) \le \liminf_k \Pr(\randomPoint_k \in O) = 0, and VμV_\mu is a countable union of such sets, so P(Vμ)=0P(V_\mu) = 0.

∎

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 Rd\R^\dimension, and a global chart of a compact manifold sends infinity to the few points it does not reach. Those are the half-turns from μ\mu for the Cayley chart of the rotations, and the antipode −μ-\mu for the stereographic chart of a sphere. With an isotropic scale σ\sigma the limit is explicit. The direction of ε\varepsilon is uniform and independent of its length, which tends to infinity, so on the rotations N(μ,σ2I)\mathcal N(\mu, \sigma^2 I) converges to the law of μ\mu turned by a half-turn about a uniformly distributed axis, and on the sphere to the point mass at −μ-\mu.

On the rotations with the Cayley chart, the angle between a draw and its mean is θ=2arctan⁡(σχ/2)\theta = 2 \arctan(\sigma \chi / 2), with χ\chi the length of a standard normal vector of R3\R^3, while the angle of a uniform rotation from any fixed one has the density (1−cos⁡θ)/π(1 - \cos \theta) / \pi on [0,π][0, \pi], with the median 2.312.31 rad.

σ\sigma0.50.5112.42.4331010100100uniform
median angle, rad0.730.731.311.312.152.152.322.322.882.883.123.122.312.31
total variation from uniform0.870.870.650.650.370.370.380.380.650.650.930.9300

No isotropic normal on the rotations is closer to uniform than 0.370.37 in total variation, which the scale σ=2.4\sigma = 2.4 attains, and the scale whose median angle is that of the uniform distribution, near 33, 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 μ\mu, the log-density (1) is −12∣Wv∣2−λμ(v)-\tfrac12 \lvert W \tangent \rvert^2 - \lambda_\mu(\tangent) up to a constant, with the Hessian −Λ−∇2λμ(0)-\Lambda - \nabla^2 \lambda_\mu(0) at v=0\tangent = 0. For the Cayley chart of the rotations and the stereographic chart of S2S^2, ∇2λμ(0)=−I\nabla^2 \lambda_\mu(0) = -I, so μ\mu is a strict local maximum of the density when every eigenvalue of Σ\Sigma is below 11, and is not a local maximum when one of them is above it. With an isotropic scale σ>1\sigma > 1 the maxima are the points with 1+∣v∣2/4=σ21 + \lvert \tangent \rvert^2 / 4 = \sigma^2, a shell of rotations by the angle θ\theta with cos⁡(θ/2)=1/σ\cos(\theta / 2) = 1 / \sigma: 1.681.68 rad at σ=1.5\sigma = 1.5 and 2.462.46 rad at σ=3\sigma = 3.

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 ε\varepsilon taken modulo 2π2\pi tends to a uniform law on the circle, so the angle of the rotation tends to a uniform law on [0,π][0, \pi], with the median π/2\pi / 2, and not to the density (1−cos⁡θ)/π(1 - \cos \theta) / \pi. 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 μ\mu contain the uniform distribution or tend to it, and neither is the normal.

Student t noise. By Proposition 2 the law of μ⊕ε\mu \oplus \varepsilon for ε\varepsilon 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 ν\nu is the t density over the chart’s volume. On the rotations, with Cauchy noise of scale ss, that is proportional to (1+r2/4)2/(1+r2/s2)2(1 + r^2/4)^2 / (1 + r^2/s^2)^2 in the chart’s radius rr, which rises from 11 at the mean to (s/2)4(s/2)^4 at the half-turns when s>2s > 2: a scale above the uniform’s still leans towards the half-turns, by a bounded factor.

A Gaussian against the reference measure. The function exp⁡(−12∣W(x⊖μ)∣2)\exp(-\tfrac12 \lvert W (\point \ominus \mu) \rvert^2), normalized as a density with respect to ν\nu and not to Lebesgue measure in the chart, is the law of the Gaussian part alone,

p(x)=1Zexp⁡(−12∣W(x⊖μ)∣2),Z=∫Rdexp⁡(−12∣Wv∣2) vμ(v) dv,(6) \density(\point) = \frac{1}{Z} \exp\bigl(-\tfrac12 \lvert W (\point \ominus \mu) \rvert^2\bigr), \qquad Z = \int_{\R^\dimension} \exp\bigl(-\tfrac12 \lvert W \tangent \rvert^2\bigr)\, v_\mu(\tangent)\, \dd \tangent , \tag{6}
(6)

for a global and full chart. Its density is largest at μ\mu, at every scale. As every eigenvalue of Σ\Sigma grows, the integrand of ZZ increases to vμv_\mu, so Z→ν(X)Z \to \nu(\manifold) and the density tends to 1/ν(X)1 / \nu(\manifold) at every point of VμV_\mu: 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 vμv_\mu, close to 11 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,

Z(σ)=16π2((12+a) eaerfc⁡(a)−a/π),a=2σ2,(7) Z(\sigma) = 16 \pi^2 \Bigl( \bigl(\tfrac12 + a\bigr)\, e^{a} \operatorname{erfc}\bigl(\sqrt a\bigr) - \sqrt{a / \pi} \Bigr), \qquad a = \frac{2}{\sigma^2} , \tag{7}
(7)

which is (2π)3/2σ3(2\pi)^{3/2} \sigma^3 to leading order as σ→0\sigma \to 0 and 8π28\pi^2 as σ→∞\sigma \to \infty. And its draw is not a point moved by noise of a known law: it is made by rejection, either from a normal ε\varepsilon accepted with probability vμ(ε)v_\mu(\varepsilon), which succeeds with probability Z/(2π)d/2(det⁡Σ)1/2Z / (2\pi)^{\dimension/2} (\det \Sigma)^{1/2}, or from a uniform point accepted with probability exp⁡(−12∣W(x⊖μ)∣2)\exp(-\tfrac12 \lvert W (\point \ominus \mu) \rvert^2), which succeeds with probability Z/ν(X)Z / \nu(\manifold). On the rotations these are 0.430.43 and 0.0850.085 at σ=1\sigma = 1, 0.0700.070 and 0.380.38 at σ=3\sigma = 3, and 0.00370.0037 and 0.730.73 at σ=10\sigma = 10. Either spends a random number of variates on a draw.

Built on by