Mathematics
skoro's one normal distribution, the law of a point moved by normal noise through its chart, defined on every space whose chart is global and whose volume is known, so that flat, positive and curved quantities alike, measurements among them, are drawn and scored exactly; with its scale, its sampler, its properties, its expected information, its roles, and its use as a likelihood factor.
The problem#
The core can build, query and differentiate a model, but it has no
distribution: a term’s log-density is whatever composite its author writes, and its tests keep a
private normal of a real quantity for want of a public one. The normal distribution is the one
nearly every model skoro is meant for reaches first. A prior on a state, a motion model, a
measurement with Gaussian noise, and the replacement a retirement leaves behind under a Laplace
approximation are all normal. It is therefore the first distribution to return from the archive branch.
The archive’s normal was written for any manifold, as the law of the mean moved by normal noise, , and that form is the one skoro needs. A measurement of a rotation, of a direction or of a pose is most cleanly modelled as what was measured, the predicted quantity moved by noise, , rather than as the residual of a normal; and a model that holds the measurement itself can observe it in one query and simulate it in another. The archive’s fault was its density, the Gaussian log-density of the tangent alone, which omitted the volume of the chart at the mean. On the core’s positive orthant that omission is the Jacobian of the logarithmic chart, without which the density is not with respect to the base measure the core fixes ((20)); on the rotations it is the volume factor of the retraction, without which the density is that of no law the sampler draws.
The charter fixes what the normal must therefore be. A model is generative and has a true density, and its generation carries an importance weight, so the normal’s term must be the exact density of the law its sampler draws, with respect to the reference measure of the scored quantity’s type. Models are built forward and conditioned in queries, and curved quantities are both estimated states and observables, so the scored quantity may be of any continuous type, and its mean a value computed from any other quantities. The core’s measures give every continuous type that declares one a reference measure and the volume of its retraction’s chart. This document defines the normal once, on every type whose chart is global and whose volume is known, shows its density and its sampler exact there, and works out what the rest of skoro will need of it: how its scale is given, its properties, its expected information, the roles it binds, and its use as a likelihood factor over values that are not quantities.
Setting#
The spaces. The normal lives on a continuous type with a volume, in the sense of the core’s measures: a space of dimension with a reference measure , and at every the chart of its retraction, with a domain , an image whose complement has measure zero, and the log-volume (4) (Definition 1). On , is the inverse of the chart. The chart is global when at every , and the normal is defined on the types whose chart is global (Why global charts). They are:
- the core’s own continuous types, the real line, vectors , matrices read as vectors column by column, and the positive orthant with its retraction (2), all with Lebesgue measure (Proposition 1);
- the embedded types that declare a volume with a global chart, such as the rotations with the Cayley chart and the sphere with the stereographic chart of the note’s table;
- products of these, with the stacked tangent (1), the product measure and the sum of the factors’ log-volumes, such as a pose held as a rotation and a position in a fixed frame of the world.
The flat-in-disguise spaces. Among them, the core’s own types and their products have a property no curved type has. For such a space and any , is a diffeomorphism of 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. This document calls these spaces flat-in-disguise. Their log-volume is, by Proposition 1,
with the storage coordinates that belong to positive factors, and zero on a space with none.
The mean and the scale. The normal’s mean is , and its scale is a symmetric positive definite matrix, given in one of the forms of The scale and read, in every one of them, 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 . Both are unique: is the Cholesky factor of .
The definition#
The normal on a space whose chart is global is the law of , where is normal on with mean zero and covariance . Where its construction needs naming, it is the tangent normal: a normal in the tangent chart at , pushed onto the space. Its term is
and is its whitened residual, a standard normal vector when is drawn from the normal.
Let be a space of dimension with 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 (3). The chart is global, so always, and Proposition 4 gives the density, which is (10) with that Gaussian as .
∎So the term 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 it is of (2), and the normal is the log-normal: is normal with mean and covariance , so is the median of each coordinate rather than its mean, which is . It is offered under the normal’s name all the same: a model that gives a positive quantity a normal has said how its noise acts, multiplicatively, through the space’s chart, and a second name would describe the same law twice. 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 type the log-volume is the type’s declared one: for the Cayley chart of the rotations and the stereographic chart of the sphere (5), one scalar function of the residual that the Gaussian part already computes.
The log-volume is what keeps the term’s density with respect to the type’s reference measure. It does not depend on the scale, so it changes no derivative with respect to it, but it is a function of and of , and it is not a constant of a query that leaves either free. Without it, three things the core relies on would fail: the sampler would not be exact for the term, so the importance weight (18) would be wrong at every draw; the term would not integrate to one; and a model mixing the normal with another distribution of the same quantity’s type would compare densities with respect to two different measures.
A measurement of a curved quantity is a normal with a computed mean:
that is, , scored by (3) at . The direction to a landmark seen from a pose , for one, has , a map into the sphere written in storage and projected as (9) allows.
Why global charts#
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, and the rule costs little. A type that means to carry normals takes a global chart: for the rotations the Cayley chart, the normalized first-order quaternion update , cheaper than the exponential and with an inverse (12) free of trigonometry; for the sphere the stereographic chart, which the core’s acceptance-test sphere already has. A type retracted by its exponential chart holds its measurements as likelihood factors over data (Without a volume or a global chart), as a type without a volume does. A rigid motion held as a group, or rather than a rotation and a position side by side, needs a global chart of its own, which is that type’s entry to work out.
The scale#
The term (3) reads the scale through alone, and enters linearly in the residual and through the logarithms of its diagonal in the normalizer. A model gives the scale in whichever form it has, and each form is a map to composed from the core’s primitives, so that its derivatives, of both orders, follow by composition:
| form | given | ||
|---|---|---|---|
| isotropic | , with | ||
| diagonal | , with | ||
| covariance factor | , with | ||
| whitening | , with |
The first two are the forms most models write, a measurement’s standard deviation or a motion model’s per-axis noise, and their whitened residual is the elementwise product of with , which the core composes as the reciprocal of a positive value read as a real. The whitening is the form a precision arrives in: elimination produces information rather than covariance, and a retirement’s replacement is written in it (see As a likelihood factor). The residual is then the product , and nothing is inverted. The covariance factor is the form a user with a full covariance writes, and its residual is the solution of , by forward substitution,
a composite of steps, each a sum of products and a multiplication by the reciprocal of a positive diagonal entry. When is fixed in a query, can instead be computed once, column by column by the same substitution against the columns of the identity, and folded, as the core folds every value reached only from fixed inputs; when is free, the residual is solved on every evaluation, and its derivatives with respect to come with it.
All four forms. The normal offers all four, because each is the form some model has, and none is reached from another without a computation the model did not ask for. The isotropic and diagonal forms need no linear algebra at all. The whitening is what elimination and a retirement’s replacement produce, and inverting it to a covariance would cost a solve and lose the sparsity elimination keeps. The covariance factor is what a user with a full covariance, from a datasheet or a calibration, writes; it costs the substitution (6), and a solve on every evaluation when it is free, which is the price of not inverting a matrix the user has and the term does not need inverted. Every form is a map to the same , so the rest of this document holds for each of them alike.
A triangular factor as a quantity. When a scale is to be estimated, its factor is a quantity, and its type must have exactly as many tangent directions as the factor has free entries, . A matrix would have more, along which the term does not change: the chart Hessian and the expected information would be singular in them, and an estimator would have to know to ignore them. The core already has the right type, a product of the diagonal and the entries strictly below it, in a fixed order. Its positive factor keeps the diagonal positive, so that the factor is the unique Cholesky factor, its logarithms are defined, and no absolute value is needed, which the core does not have. 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. For the strictly lower part is empty and the factor is a positive scalar, the isotropic form. The same type serves a covariance factor and a whitening, and a positive vector serves a diagonal scale. A scale that is a quantity may have a normal of its own, on that type, which is how a hierarchical model puts a prior on a noise.
The sampler#
The normal draws , with standard normal on . By Proposition 4, that draw has the density , log-volume included, on every space the normal is defined on, so the sampler is exact for the term (3) and contributes nothing to the importance weight. The coordinates of are drawn from the quantity’s key as the core draws every variate (charter, position 10): uniform variates , in double precision on the host, each turned into by the standard normal quantile. A draw is then a deterministic function of the key, smooth in and the scale, and the same key gives the same draw at either precision, up to the rounding of the final cast.
Two computations in a draw are approximate, and neither is a matter of the model. The quantile has no closed form; Wichura’s algorithm AS 241, which the core’s tests already use, is a rational approximation in three pieces accurate to about relative error, below the rounding of double precision. And needs , which the whitening form must invert: it is the solution of , found on the host, in double precision, by the substitution (6) with in place of , as the charter has every solve run (position 11). Inversion of the distribution function was chosen over the Box–Muller transform because it spends exactly one uniform variate per coordinate, so that the draw of coordinate depends on alone, and is monotone in it.
Properties#
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, and is stated here so that a model’s author knows what the parameters mean.
The chart is part of the model. 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 carried over from a library that works in exponential coordinates is therefore, in the Cayley chart, a slightly different model, indistinguishably so at the dispersions of most measurements. A type’s normals are part of what its retraction means, and changing the retraction of a type changes every model with a normal on it. 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: the Cayley map satisfies , so , and a normal with scale in the point’s own frame is the normal with in a fixed frame of the world, 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, and it spins near the point where it fails, the south pole of the core’s acceptance test. 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 an embedded type 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. A broad normal piles its mass near the half-turns or the antipode, where the chart compresses most.
The estimate a measurement gives. When is observed and the state is free, the term (3) 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 the state 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 . Small, but it is the difference between the law (5) and the law that least squares of the whitened residual estimates exactly, which Without a volume or a global chart describes.
Derivatives. Every step of (3) is an operation the core differentiates: the inverse retraction, through the boundary operations of Proposition 3 on an embedded type; the whitening, as in The scale; and the log-volume, as the type’s declared operation. The term’s order is the least of theirs. On the flat-in-disguise spaces every step, from the inverse retraction to the logarithms of the diagonal and the substitution (6), is a primitive of order two, so the term has order two; on a curved type it has order two when the type’s inverse retraction and log-volume admit Hessian passes.
The expected information#
An estimator that uses the expected information of the model in place of its Hessian, Fisher scoring or a Riemannian sampler, asks of each term a matrix that is positive semidefinite by construction. For the normal it has a closed form, which is exact on the flat-in-disguise spaces and, on a curved space, exact in part and approximate in the rest, with its error stated.
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 (1), along and the tangent moves to exactly, and moves linearly, so the chart Hessian of (3) 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 term 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.
∎The archive’s information was a matrix of the same blocks, but with in place of the derivatives of , which on a group hold only at ; it was therefore correct to second order in the dispersion there. On the flat-in-disguise spaces (1) makes those derivatives exactly , and nothing is approximated.
A root. An estimator assembles the information of a model from roots of its terms’, matrices with , composed with the Jacobians of the term’s inputs with respect to the free quantities. 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, by the derivative of the inclusion of a positive value, . The root of a scale given as a triangular factor therefore needs both and , whichever of them the model gives: the other is computed once and folded when the scale is fixed, and by a solve (6) on every evaluation when it is free. This root is what the normal binds as the root of its expected information, among the roles of The roles, on every space.
On a curved space. The root (8) 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 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.
As a likelihood factor#
A likelihood factor scores no quantity, and so needs no measure: it is a function of the quantities it is conditioned on. The normal’s Gaussian part serves as one in two places.
A retirement’s replacement. A retirement’s replacement is a likelihood factor over the quantities of its blanket , scoring none of them (the core’s retirement). Under a Laplace approximation, and exactly for linear-Gaussian terms, it is a Gaussian function of their tangent coordinates at an anchor: with constants for the blanket’s quantities, the stacked tangent
and
the normal’s term on , where the log-volume vanishes, at the mapped value , with mean , whitening and a constant . No new distribution is needed for it: it is the normal on a Euclidean space evaluated at a value that is not a quantity, which scores nothing and so has no sampler. The archive wrote its residual as , an offset form; that is (10) with , which the core folds when both are constants. The anchors must be constants, so that the factor does not move with the quantities it summarizes. On a positive or a curved blanket quantity reads its tangent coordinate at the anchor, and no log-volume is added: the factor is a function of the quantities, not a density over them, and whatever measure the approximated integral was taken in is already in its values. The log-volume enters where the replacement is computed: a Laplace approximation of the integral over a retired quantity in its chart at expands (11), so that the of a replacement over a curved blanket quantity carries the log-volume’s Hessian, with the Cayley chart, before the factor is written.
The core’s tests of retirement are of this form. The replacement (24) is (10) with , the anchor at that equation’s updated mean, , and , and (25) is (10) with , both anchors at , , , and the whitening of its covariance. With the normal in the library, both can be written with it rather than by hand.
The stacked tangent. This entry provides the replacement’s form as a convenience, so that neither a test nor the elimination entry that will compute replacements writes it by hand. It is given the blanket’s continuous quantities in an order, an anchor for each, a mean , a scale in any of the forms of The scale of dimension , and a constant , and it adds the likelihood factor (10) at the mapped value of (9), its blocks in the order given. Three conditions make that factor the one a replacement means.
- The anchors are constants, of the types of their quantities, since a replacement summarizes the retired terms at fixed points and must not move with the quantities it is a function of; an anchor reached from a quantity is refused.
- The quantities are continuous, since is made of tangent coordinates; a discrete quantity of a blanket is summarized, if at all, by a factor of another form.
- is defined where the factor is evaluated: on the chart’s image , which for a full chart is all of the type but a set of measure zero, so that a replacement over a curved quantity is read in the chart in which it was computed. The type need not have a volume, nor a global chart, since the factor scores nothing.
Its derivatives are those of its parts: the block of for the quantity has the derivative in the chart at , which is the identity at and everywhere on a flat-in-disguise type by (1), and on a curved type moves with as the core’s inverse retraction does. It binds the roles of a likelihood factor (The roles): its whitened residual , its mean and its scale.
Without a volume or a global chart#
A type that declares no volume has no densities, and the core refuses a term that scores one of its quantities (Types without a volume); a type whose chart is not global has densities, but no normal. Either can still carry a measurement, as a likelihood factor over data: with a constant, the measured value, the Gaussian part is a function of that scores nothing. It is not the log-likelihood of the law (5), from which it lacks , a function of . It is, exactly, the log-likelihood of another law.
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. This is the model that factor-graph libraries estimate. Its is not for a normal , so it has no sampler of that form, and has no closed form, so the factor 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 . Such a measurement is a constant, not a quantity: it can be conditioned on but not simulated, and a query cannot leave it free.
The roles#
The charter has a distribution declare, as its term is added, the nodes that readers other than the model’s density need, each under a role, and has each role arrive with the distribution or reader that gives it meaning (position 8). No reader of the normal’s roles exists yet: the least-squares readers and Fisher scoring are entries of their own. The normal binds them all the same, so that those readers find them waiting rather than revising this entry, and so that the mathematics of each binding, which is the distribution’s to settle, is settled here.
| role | multiplicity | the node it binds |
|---|---|---|
| whitened residual | exactly one | , computed as the form of the scale computes it |
| mean | exactly one | |
| scale | exactly one | the scale as the model gives it, , , or , together with its form |
| log-volume | at most one | , where it is not identically zero |
| information root | at most one | the root of (8) |
The charter’s example binds a covariance factor. With four forms of the scale, the role binds whichever the model gave, and its form, from which a reader computes or as The scale says; in the covariance factor’s form the residual is the solution of (6), which is without ever being formed.
What a reader of the residual estimates. The term is plus a normalizer in the scale, less the log-volume. A least-squares reader that minimizes over the free quantities, with the scale fixed, therefore maximizes the term itself only where the log-volume is constant in them. On a Euclidean space it is zero. On a positive factor it is , constant when is observed, and not when is free, where ignoring it finds the mode in the logarithmic chart rather than with respect to Lebesgue measure. On a curved space it is , which moves with the mean, so that a measurement’s estimate of the state differs by the precision change of Properties. The log-volume’s role is what lets a reader add its gradient and Hessian, and so estimate the normal’s own mode; a reader that ignores it estimates, on a group, the law of Proposition 11, the model of factor-graph libraries, and should say so.
Gauss–Newton with a log-volume. A model of normals with fixed scales, every free quantity taken together as a point of the product of their types, has the negative log-density
up to a constant, the sums over the terms, each with its residual . The log-volumes are not squares, and cannot be made into squares: near they are concave, for the Cayley and stereographic charts, since the chart compresses volume away from its centre. A reader that accepts only residuals has nothing to do with them. A Gauss–Newton reader that takes the log-volume’s role as well loses nothing by it.
Let be a manifold with a retraction, with and smooth, and and the Jacobian of and the gradient of in the chart at . Let the iteration be
with invertible near the iterates. Then if and only if is a stationary point of . If is a stationary point, the chart Hessian of there and at , and the spectral radius of is less than , then the iteration converges to from every start near enough to it, and in any norm for which the spectral radius is attained.
The matrix is invertible, so exactly when . Read the iteration in the chart at as the map . At , , so the derivative of there is , the derivative of the retraction in its tangent argument being the identity at . At a stationary point the derivative of the chart gradient is the chart Hessian, the correction term of Proposition 3 vanishing with the gradient, so . A fixed point of a smooth map whose derivative has spectral radius attracts every start near enough to it, at the linear rate (Ostrowski’s theorem).
∎Three consequences follow for a reader of the roles.
- The answer depends on the gradient alone. Whatever matrix stands on the left, the iteration stops where , so a reader that adds the log-volume’s gradient to converges to the mode of (12), the model’s own, and one that leaves it out converges to the mode of the factor-graph model. The sparsity of is unchanged, since each depends on the quantities its own residual already touches.
- Leaving its Hessian out costs little. In the log-volumes contribute , with , besides terms in that vanish at and are of the order of the residual-curvature terms below, while . If for every term, then , and the log-volumes add at most to , with . Near that is for the Cayley and stereographic charts, the largest variance of a rotation’s or a direction’s noise: per iteration at rad. The rest of is , which every Gauss–Newton method omits, and which on a curved space includes the second derivatives of , of the same relative order : the log-volume does not change the order of the approximation. A free positive quantity adds nothing at all to , its log-volume being linear in its chart.
- Adding its Hessian is safe where a Gaussian approximation is. When , is positive definite, so a reader may use it as the matrix, and converge faster. The condition is, term by term, the one under which Properties found a mode at all, in the chart’s coordinates. Where it fails, the posterior is not concentrated around one mode, and no method of this kind fits it. The covariance that a Laplace approximation reads off the Gauss–Newton matrix is then smaller than , by a relative at most, since for these charts: the volume makes the posterior a little broader than the squares alone say.
The information root. The role binds the matrix of (8), of rows, whose three block columns a reader composes with the Jacobians, with respect to the free quantities, of , of and of the scale’s coordinates . When the scale is a constant there is no , and the root is its first block row, . On the flat-in-disguise spaces the root is exact by Proposition 7; on a curved space its accuracy, block by block, is the one On a curved space states.
Likelihood factors. A likelihood factor in the forms of this document, a retirement’s replacement (10) or a measurement over data, binds the whitened residual, the mean and the scale, and binds no information root: the expected information is an expectation over the quantity a term scores, and a likelihood factor scores none. A reader that needs a positive semidefinite matrix from one has it in the Gauss–Newton product of its residual’s Jacobian, which the residual’s role gives, and which for the replacement (10), a Gaussian of , is its negative Hessian in .
What the tests check#
The mathematics above is checked on the spaces the library has. It has no curved type yet, but the core’s tests have two spheres with declared volumes, written against its public interface alone: the acceptance-test sphere, whose stereographic chart is global and full, of log-volume (5) against surface measure, and an exponential sphere whose chart is full but not global. The normal is tested on the flat-in-disguise spaces and on the stereographic sphere, where its density and sampler are exact, and the exponential sphere serves only to show that a type whose chart is not global is refused. A rotation group, and the Cayley chart’s figures of Properties and On a curved space, are left to the entry that brings it.
- The density integrates to one, against the reference measure: by quadrature in the tangent coordinate on and , and on the sphere through its chart, by (2), for an isotropic and an anisotropic scale, and at a near the basis’s failure as well as far from it.
- The sampler is exact for the term: the empirical law of over many keys agrees with expectations computed by quadrature against , on each of those spaces and in each form of the scale, and on the positive orthant has mean and covariance .
- The term is (3) on the flat-in-disguise spaces, with of (2) on a positive factor, and on the sphere its log-volume is the declared one.
- The forms of the scale agree: the four forms of one give one term, one residual, one sampler and one root, the covariance factor’s residual by (6).
- The information is as stated: on the flat-in-disguise spaces the root (8) satisfies against the expected negative chart Hessian, estimated over draws, of Proposition 7; on the sphere the scale’s block agrees with and the blocks of and agree with to second order in the scale.
- The roles are bound as The roles lists them, the log-volume only where it is not zero, and a Gauss–Newton iteration with the log-volume’s gradient converges to the mode of (12), and without it to the mode of the residuals alone, as Proposition 13 says.
- The stacked tangent reproduces the core’s replacements (24) and (25), refuses an anchor that is not a constant and a discrete quantity, and works on the sphere, which a likelihood factor needs no volume for.
- What the normal refuses: a quantity of the exponential sphere, whose chart is not global, and of a type without a volume; such a quantity’s measurement is accepted as a likelihood factor over data.
In skoro’s terms#
- The normal scores one quantity , of any continuous type with a volume whose chart is global: the core’s own types, embedded types that declare a global chart, and products of these. On the core’s types it is the familiar normal, and on a positive factor the log-normal, under the same name. A quantity of a type without a volume, or whose chart is not global, is never scored by it.
- Its term (3) is a composite of the core’s operations and the type’s log-volume, conditioned on the quantities its mean and scale are reached from, which may be constants, quantities or mapped values of any kind the core allows. Its mean is any value of the scored quantity’s type, a mapped value of the state among them. Its log-density is with respect to the type’s reference measure, exactly.
- A measurement (5) is such a quantity, held as what was measured rather than as a residual: observed in a query that has the measurement, and free, to be drawn, in one that simulates it. States, measurements and scales alike may be quantities with normals, which is how a hierarchical model is built forward.
- Its derivatives with respect to , to and to the scale, of first and second order, are those of the composite, of order two on the core’s types and on a curved type whose inverse retraction and log-volume admit Hessian passes.
- Its scale is given in any of the four forms of The scale, all of which it offers: positive values for the isotropic and diagonal forms, and the product for a triangular factor when it is a quantity. A fixed scale’s whitening and normalizer are folded, in the model when it is a constant and in a compiled query when it is observed.
- Its sampler is exact, drawing from the variates of the quantity’s key, on the host in double precision, smooth in and the scale.
- Its expected information over has the root (8): exact on the core’s types, and on a curved type exact in the scale’s block, of second order in the blocks of and , and of first order in the mixed block it omits.
- Its roles, bound as its term is added though no reader uses them yet, are its whitened residual, its mean, its scale with its form, its log-volume where it is not zero, and the root (8) of its expected information (The roles).
- As a likelihood factor, its Gaussian part on evaluated at the stacked tangent (9) of a blanket’s continuous quantities at constant anchors is the form of a retirement’s Gaussian replacement, which this entry provides as a convenience (The stacked tangent); and at a constant measured value it carries a measurement on a type without a volume or a global chart, which with a fixed scale is the exact log-likelihood of the law of Proposition 11.
Open questions#
None remain.
Built on by
- 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.
- Observed quaternions of arbitrary sign on outside data: Mathematics A unit quaternion names a rotation twice, and the stereographic chart of the unit quaternions tells the two names apart, so that a measurement given with the wrong sign is misread; the rotations, the rigid motions and the extended poses become the groups themselves, stored as quaternions up to sign under the Cayley chart, which cannot tell the signs apart, and the core learns to declare a type stored up to a finite group.
- Examples that run: Mathematics The model the examples share, a trajectory of poses on SE(3) with landmarks, odometry and sightings, generated from its own joint law and queried for the rest; a Levenberg–Marquardt method on its linearization, with its damping, schedule and stopping rule; the calibration of a Laplace approximation that data drawn from the model lets an example check; and a sliding window that retires a pose and the landmarks it alone sees at every tick.
- Linearization and elimination: Mathematics How a query of a model is linearized at a point into factors of whitened rows and linear terms over its free quantities' tangent coordinates, and how eliminating those factors gives the step of a Gauss–Newton or Levenberg–Marquardt method, a Laplace approximation's marginals, and a retirement's replacement, an improper Gaussian that is the update and prediction of a Kalman filter when it determines the blanket; and how the roots of the expected information give a second assembly, for Fisher scoring of free scales.
- Improper Gaussian replacements: Mathematics The improper Gaussian factor, a sum of squared affine rows of any number, a linear term and a constant in the stacked tangent of a retirement's blanket at constant anchors, which keeps what retired terms say about blanket quantities they do not determine, adds across retirements, and is the normal's Stacked replacement when it is of full rank.
- Improper Gaussian replacements: Implementation The improper Gaussian factor as `Stacked::improper` in skoro-normal, a builder of its rows, right-hand side, linear part and constant over a stacked tangent, which gives a retirement's replacement or a likelihood factor with its residual and its linear part bound, and the core's support, through every pass, for the values of no entries that a factor of no rows needs.
- Rotations and rigid motions: Mathematics The rotations as unit quaternions with the stereographic chart, global and full with a declared volume so that they carry the normal, the rigid motions SE(3) and SE₂(3) as their semidirect products with the left-translated chart, and the usual maps of all three, each a composite of the core's operations.
- Normal distributions: Implementation A crate `skoro-normal` whose `Normal` scores a quantity of any space with a global chart, with its term built from composites of the core's operations, an exact sampler that runs the space's retraction on the host, the four forms of the scale, the roles with the information root, a likelihood factor over data, and the stacked tangent of a retirement's replacement.