The normal distribution in a chart
The normal on a manifold with a global chart is the law of a point moved from its mean by Gaussian noise through the chart; its density is the Gaussian's less the chart's log-volume, its sampler is exact, and its expected information has a closed form, exact on flat and positive spaces and in the scale's block on curved ones.
On the normal distribution is the law of , a mean moved by Gaussian noise. A curved space has no addition, but it has a retraction, and the same sentence defines a normal on it: the law of . This note takes that definition seriously. It gives the density, which carries the volume of the chart, the forms a scale is given in, the sampler, what the mean and the scale mean once the space is curved, and the expected information that estimators ask of a distribution.
The definition#
Let be a manifold of dimension with a retraction and a reference measure , whose chart at every is global, defined and invertible on all of , with image and log-volume . Such spaces include and the positive orthant with Lebesgue measure, the rotations with the Cayley chart, the sphere with the stereographic chart, and products of these with the product measure.
The normal’s mean is a point . Its scale is a symmetric positive definite matrix , read through its whitening : the lower-triangular matrix with a positive diagonal such that the precision is . Then is lower triangular with a positive diagonal and : is the Cholesky factor of , and both are unique.
The normal on is the law of , where is normal on with mean zero and covariance . Its log-density is
and is its whitened residual, a standard normal vector when is drawn from the normal.
Let be a manifold of dimension with a retraction and a reference measure , let , let the chart at be global, with log-volume and image , and let be a lower-triangular matrix with a positive diagonal. If is a standard normal vector of , then has, with respect to , the density on and elsewhere, and its law is the normal distribution on with .
The vector is normal with mean zero and covariance , so its density at is , since and ; its logarithm at is the first three terms of (1). The chart is global, so lies in its domain always, and Proposition 4 gives the density.
∎So the log-density is the Gaussian log-density of the tangent coordinate, less the chart’s log-volume there, on every space alike.
- On a Euclidean space the log-volume is zero, and the normal is the familiar one, with mean and covariance .
- On a positive factor the log-volume is , and the normal is the log-normal: is normal with mean and covariance , so is the median of each coordinate and not its mean, which is . The noise acts multiplicatively, through the space’s chart.
- On a product the factors are correlated through in their tangent coordinates, which is what a state with a position and a positive scale, or a rotation and a position, needs.
- On a curved space the log-volume is the chart’s: for the Cayley chart of the rotations and the stereographic chart of the sphere, one scalar function of the residual that the Gaussian part already computes.
The log-volume is what makes (1) a density with respect to the space’s reference measure. It does not depend on the scale, but it is a function of and of . Without it the function would not integrate to one, it would not be the density of what the sampler draws, and it could not be compared with another distribution’s density on the same space, taken against the same measure.
A measurement of a curved quantity is a normal with a computed mean,
that is, , with the log-density (1) at . The direction to a landmark seen from a pose , for one, has .
Why the chart must be global#
On a space whose chart is full but not global, such as the rotations with their exponential chart, whose domain is the ball of radius , Gaussian noise has mass outside the domain, and no closed form makes both the density and the sampler exact. The draw wraps, and its law is within in total variation of the law that the single term of (1) describes (Proposition 5), but is not equal to it. A draw repeated until the domain accepts it is exact for the normalized law, but the density then integrates to , whose logarithm has no closed form for a scale that is not isotropic. And the exact density of the wrapped law is a sum over every preimage of a point, an infinite series in every evaluation.
The mass is small for concentrated noise: for an isotropic rotation’s noise of standard deviation , , the tail of a law with three degrees of freedom, which is at rad and at rad. It is not zero. With a global chart the density and the sampler are both exact at every scale, and that is the case this note treats. The last section says what the Gaussian part alone is on a space without one.
The scale#
The log-density reads the scale through alone: linearly in the residual, and through the logarithms of its diagonal in the normalizer. A scale is given in whichever form is at hand, and each form is a map to .
| form | given | ||
|---|---|---|---|
| isotropic | , with | ||
| diagonal | , with | ||
| covariance factor | , with | ||
| whitening | , with |
The first two need no linear algebra: their whitened residual is the elementwise product of with . The whitening is the form a precision arrives in, since elimination produces information and not covariance, and its residual is the product , with nothing inverted. The covariance factor is the form of a full covariance from a datasheet or a calibration, and its residual is the solution of , by forward substitution,
which never forms the inverse of a matrix the density does not need inverted.
When a scale is itself estimated, its factor is a point of a space, and the space should have exactly as many tangent directions as the factor has free entries, . The square matrices have more, along which the density does not change, and its Hessian and its expected information would be singular in them. The right space is the product of the diagonal and the entries strictly below it. Its positive factor keeps the diagonal positive, so that the factor is the unique Cholesky factor and its logarithms are defined, and its chart on the diagonal is logarithmic, so a tangent coordinate of the diagonal is a relative change. These are the log-Cholesky coordinates of a covariance. A scale in them may have a normal of its own, on that space, which is how a hierarchical model puts a prior on a noise.
The sampler#
The normal draws , with standard normal on . By Proposition 2 the draw has exactly the density (1), log-volume included, on every space the normal is defined on.
The coordinates of are made from uniform variates by the standard normal quantile, . Inversion of the distribution function spends exactly one uniform variate per coordinate, so that the draw of coordinate depends on alone and is monotone in it, which the Box–Muller transform does not offer. The draw is then a deterministic function of the variates, smooth in and in the scale. The whitening form needs without : it is the solution of , by the substitution (4) with in place of .
What the parameters mean#
The definition is short. What follows from it on a curved space is not, and none of it is a matter of choice: each property below holds of any normal pushed through a chart.
The chart is part of the distribution. The scale is read in the coordinates of the chart at , so two retractions of one space make two normals with the same and , which agree only to first order: the exponential and Cayley coordinates of a rotation by have the lengths and . A covariance stated in exponential coordinates is, in the Cayley chart, a slightly different distribution, indistinguishably so at the dispersions of most measurements. On a group, the side on which the retraction perturbs the point is part of it too, in a way that can be undone exactly: by (13), a normal with scale in the point’s own frame is the normal with in the outer frame, with the same log-volume, which depends on the rotation’s angle alone.
The basis on the sphere. On the sphere the scale depends also on the basis that identifies the tangent plane with . No basis is smooth on all of , so a field of bases turns as moves in a way that the field, not the geometry, decides. A scale that is not isotropic is read along the basis’s axes, and so means something different at every . An isotropic scale is free of the basis: with an orthonormal basis, the stereographic chart’s depends only on the angle between and .
What the mean is. The point is the centre of the chart in which the noise is normal. It is not the expectation, which on a curved space embedded in a vector space lies off the space; on the positive orthant it is the median; and on a curved space it need not even be a mode. With the Cayley chart of the rotations or the stereographic chart of the sphere and an isotropic scale , the density along a ray from is proportional to in the chart’s radius , whose logarithm has the second derivative at , so is a mode only when in the chart’s coordinates. With the stereographic chart of the unit quaternions, whose log-volume is , the condition is . A broad normal piles its mass where the chart compresses most, near the half-turns or the antipode, and is no way of saying that a rotation is unknown.
The estimate a measurement gives. When is observed and is to be estimated, the log-density (1) at depends on through the whitened residual and through . Near a zero residual, is to second order for the Cayley and stereographic charts, so the measurement weighs on as a Gaussian of the residual would with the precision replaced by on the rotation’s or the direction’s block. For a noise of rad that changes the measurement’s weight by . It is small, and it is the difference between the law (3) and the law that least squares of the whitened residual estimates exactly, which the last section describes.
The expected information#
An estimator that uses the expected information of a distribution in place of its Hessian, as Fisher scoring does, asks for a matrix that is positive semidefinite by construction. For the normal it has a closed form. It is exact on the spaces where the chart acts as a translation, and on a curved space it is exact in part and approximate in the rest, with its error known.
Call a product of Euclidean and positive factors flat in disguise. On such a space, for any , is a diffeomorphism onto , and both identities
hold exactly, for every and : on a Euclidean factor because is subtraction, and on a positive one because it is subtraction of logarithms. Its log-volume at the coordinate of a point is over the positive coordinates, a function of the point alone.
Let on a product of Euclidean and positive factors, with , and let the scale depend smoothly on coordinates . The expected negative chart Hessian of over is
and is the Fisher information of . Every block is exact, at every and .
By (5), along and the tangent moves to exactly, and moves linearly, so the chart Hessian of (1) in is that of in composed with : the upper-left blocks of , at every point, before any expectation. The mixed second derivative in is , whose expectation is zero since has mean zero. In , the negative log-density is plus what does not depend on , since . With and , and ,
Neither the mean nor depends on , so the score in is that of a centred normal, and the expected negative Hessian equals its covariance, the Fisher information.
∎A root. Information is assembled from roots, matrices with , composed with the Jacobians of the distribution’s arguments. With , symmetric, the trace is , so a root has rows,
and in each form of the scale, with the matrix unit and the diagonal entries differentiated in their logarithmic charts, is
| form | coordinate | ||
|---|---|---|---|
| isotropic | |||
| diagonal | |||
| covariance factor | , ; | , ; times on the diagonal | |
| whitening | , ; | , ; times on the diagonal |
The rows for the covariance factor follow from and , those for the whitening from , and the logarithmic chart multiplies a diagonal column by the entry. The root of a scale given as a triangular factor therefore needs both and , whichever of them is given.
On a curved space. The root (7) is then the same matrix, in the blocks of and , which are the derivatives of at a zero residual, and in the scale’s, and its accuracy is that of each block.
- The scale’s block is exact. The chart is global, so the residual of a draw is exactly its noise, for every , of covariance ; neither nor depends on the scale’s coordinates ; and the computation of in the proof above holds unchanged.
- The blocks of and are exact at a zero residual, and of second order otherwise. The derivatives of differ from by terms of first order in , whose expectation in a quadratic form is of second order since is symmetric; the second derivatives of meet the residual , whose expectation is zero; and the Hessian of , for the Cayley and stereographic charts, is of order against .
- The mixed blocks, which the root sets to zero, are of first order. On the rotations with the Cayley chart, the derivative of along a step of is , whose odd part is , so the expected mixed second derivative of along and is exactly . It is zero for every only when is symmetric, as for an isotropic or a diagonal scale, and otherwise it is a correlation between the mean and the scale of the order of the dispersion.
The Gaussian part alone#
Estimation on curved spaces is often done with the Gaussian part alone: the sum of squares of the whitened residual, with no log-volume. That is not the log-likelihood of the law (3), from which it lacks , a function of . It is, exactly, the log-likelihood of another law, and it is available where the normal is not, on a space whose chart is not global.
Let be a Lie group with a Haar measure and the retraction of Proposition 8, whose chart is full, and let be fixed. Then
does not depend on .
Substitute . The measure is invariant under left translation, , and , so . The second form is (2) at , with .
∎So on a group whose chart translates one of the identity, the exponential chart of the rotations among them, is a density of with respect to Haar measure for every , its log-likelihood in is the Gaussian part up to a constant, and least squares of the whitened residual is exact maximum likelihood for it. Its is not for a normal , so it has no sampler of that form, and has no closed form, so it is a likelihood only for a fixed scale. On the sphere the same holds for an isotropic scale with a chart whose residual’s length depends only on the angle to . A measurement under this law can be conditioned on and cannot be simulated: it is a likelihood factor over data, and not a quantity of the model.
Built on by
- The normal distribution skoro's normal is the law of a point moved by normal noise through its space's chart, on every space whose chart is global, with an exact density and sampler, a scale in four forms, roles that estimators read, its tangent among them, and the Gaussian and improper Gaussian replacements of a retirement.
- 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.
- Models of normals as least squares When every term of a model is a normal with a fixed scale and a mean computed from other quantities, its negative log-density is half a sum of squared whitened residuals plus the charts' log-volumes and a constant, so its mode is a nonlinear least-squares problem; a scale that is estimated breaks the form.
- The improper Gaussian factor A sum of squared affine rows of any number, a linear term and a constant, in the tangent coordinates of several points at fixed anchors, is Gaussian along its rows and flat or linear across them; the linearization of a sum of squares is one, a Gaussian factor on the increment from the point of linearization whose mean is the Gauss–Newton step, and such factors add and are a normal exactly when their rows have full rank.
- Fisher scoring Where a scale is itself estimated, the Gauss–Newton rows omit as much curvature as they keep; Fisher scoring puts the expected information in the Hessian's place, assembled from roots as a second set of rows whose gradient is exact, and it is the Gauss–Newton linearization again when every scale is fixed.
- 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.