skoro v0.0.0

Mathematics

The mathematics skoro rests on, told from the beginning. Each note takes up one idea and rests only on the notes before it, so that read in order they are the whole of it.

Spaces and their charts

Manifolds with a retraction, derivatives read in their charts and computed by automatic differentiation, and the spaces built from them: products, quotients, the rotations and the rigid motions.

  1. 01 Smooth manifolds, smooth maps, and retractions Smooth manifolds, tangent vectors and the tangent bundle as Lee defines them; a basis of each tangent space, which makes every differential a matrix; and a retraction, which moves a point along a tangent vector, makes each tangent space a chart, and gives the notation ⊕\oplus, ⊖\ominus and D\D that every later note uses.
  2. 02 Automatic differentiation over frames How a straight-line program is differentiated by composing each step's derivative maps over its computation graph, forward with frames of tangents, backwards over its backpropagation graph with frames of cotangents, and forward-over-reverse for Hessian products.
  3. 03 Gradients and Hessians in tangent charts The gradient of a scalar function and its Hessian product, read in the tangent charts a retraction provides, and why the passes of automatic differentiation compute them unchanged.
  4. 04 Product manifolds A product of manifolds is a manifold whose tangent space stacks its factors', and whose retraction acts factor by factor; derivatives in its charts are block matrices of the factors'.
  5. 05 Quotients by a finite group A manifold divided by a finite group that acts freely is a manifold again, and a retraction that commutes with the group descends to it, so that a point of the quotient is computed with through any of the points over it.
  6. 06 Rotations and unit quaternions The rotations of space are the unit quaternions taken up to sign, a cover with no continuous section; the exponential and its Jacobians turn rates into rotations; and of the two global charts, the stereographic chart tells the two quaternions of a rotation apart, while the Cayley chart cannot and so is a chart of the rotations themselves.
  7. 07 Rigid motions The rigid motions and the extended poses are semidirect products of the rotations with translations; their chart translates the identity's on the left, so that its translation coordinates are in the frame of the point, and their exponential couples translation to rotation through the left Jacobian.
  8. 08 Removable singularities in floating point The coefficients of the rotations' and the rigid motions' maps are smooth at the identity, but their closed forms divide by a power of the angle there; each is computed by a series below a cutoff and its closed form above, and the cutoff is set by how the error of a sine and a cosine, relative or absolute, is amplified by that division.

Probability on those spaces

Models built forward from conditional densities, densities carried through charts, the normal distribution on a manifold, and the weight of a draw.

  1. 09 Models built forward, for the measure theorist Why an abstract probability space serves modelling as an abstract vector space serves linear algebra, why the way back to coordinates is harder in probability, and how building a model forward from densities restores it, so that every random variable factors through the quantities and every expectation is an explicit integral.
  2. 10 Densities in tangent charts A retraction's chart at a point carries the manifold's reference measure to a density on the tangent space, the chart's volume; with it, a random tangent vector pushed through the chart has a density on the manifold, given here for the charts of the rotations, the poses and the sphere.
  3. 11 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.
  4. 12 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.
  5. 13 Importance weights Drawing the free quantities of a model in an ancestral order, each from a proposal, and weighing the draw by the ratio of the model's density to the proposals', gives an unbiased estimate of every integral against the unnormalized conditional law, provided each ratio is of densities against one reference measure.

Least squares and Gaussian approximations

The mode of a posterior and how it is found: Newton steps and trust regions, a model of normals as least squares, its linearization read as a model and as a Gaussian, the normal equations and their elimination, the Kalman filter, damping, the Laplace approximation, Fisher scoring, and a table of the two vocabularies.

  1. 14 Maximum a posteriori estimation The estimate this part of the mathematics computes is the mode of the posterior, the point at which the negative log-density of the free quantities at the observations is least; it needs no normalizer, it depends on the reference measure the density is taken against, and its objective is a sum of terms that each read a few quantities.
  2. 15 Newton's method and trust regions A smooth function on a manifold is minimized by steps that each minimize a quadratic model of it in the chart at the current point; Newton's model has the function's own curvature and converges quadratically, any other curvature with the exact gradient converges to the same points at a linear rate, and a trust region keeps the step where the model can be believed, judging it by the ratio of the decrease obtained to the decrease promised.
  3. 16 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.
  4. 17 Linearization and the Gauss–Newton step Linearizing the residuals of a sum of squares and log-volumes at a point gives a quadratic model that agrees with the function in value and gradient and whose curvature is the Gauss–Newton matrix; its minimizer is the Gauss–Newton step, its minimizer in a trust region the damped step, its iteration converges where the gradient vanishes at a rate set by the curvature it omits, and it is exact when the model is linear-Gaussian.
  5. 18 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.
  6. 19 The normal equations The Gauss–Newton step, the damped step and the mean of a Gaussian factor all solve one linear system, the normal equations, whose matrix is the precision and whose determinant normalizes the integral; forming that matrix squares the condition number, a linear term costs the square whatever is done, and a linear term in the row space is therefore folded into the right-hand side.
  7. 20 Elimination in square-root form A sum of squared linear residuals and linear terms is minimized, integrated or marginalized one block of variables at a time by orthogonal factorizations of its rows, without ever forming its normal equations; each elimination leaves a conditional and a smaller problem of the same form.
  8. 21 What elimination leaves Integrating a block of variables out of an improper Gaussian factor, by the elimination of its rows, leaves an improper Gaussian factor on the blocks it was tied to, of any rank and exactly; it is a normal when it determines them, and the factor is the exact answer when it does not.
  9. 22 The Kalman filter The Kalman filter integrates the states of a linear-Gaussian chain out one at a time, so that what is left on each state is its prediction and, with its measurement, its update; its gain weighs the innovation, its evidence is the product of the innovations' densities, and in information or square-root form it is elimination along the chain, which carries a state its measurements do not yet determine.
  10. 23 The Levenberg–Marquardt method A Gauss–Newton step is trusted only as far as the linearization is; damping shortens it, the ratio of the decrease obtained to the decrease promised says whether to trust it more or less, and a stopping rule on the promise alone tells convergence from rounding.
  11. 24 The Laplace approximation A Laplace approximation replaces a density near a point by a Gaussian in the chart there; taken in a chart it approximates the density times the chart's volume, its mean, marginals, draws and evidence are computations on the linearization's rows, and its covariance omits curvature of the order of the noise's variance on a curved space.
  12. 25 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.
  13. 26 Calibration of credible sets Data drawn from a model come with the truth that generated them, and that truth is a draw from the posterior; so a set holding posterior probability α contains the truth with probability α over such data, and an approximate posterior is checked by how often its sets do, against a tolerance that keeps sampling error apart from the approximation's own.
  14. 27 Optimization and estimation, term by term The notes on least squares and Gaussian approximations name most things twice, once as an optimizer would and once as a state estimator would; this table sets the two names side by side, row by row, with the note that defines each.

What rests on what

The order above is one way through. The map shows why it is the order it is: an arrow runs from each note to the notes and the archive's documents that build on it.

What skoro is: WriteupWhat skoro is: WriteupThe core: ImplementationThe core: ImplementationThe core: MathematicsThe core: MathematicsThe core: PlanThe core: PlanLeast squares, motivated from MAP estimation and trust regions: WriteupLeast squares, motivated from MAP esti…Examples that run: ImplementationExamples that run: ImplementationExamples that run: MathematicsExamples that run: MathematicsExamples that run: PlanExamples that run: PlanImproper Gaussian replacements: ImplementationImproper Gaussian replacements: Implem…Improper Gaussian replacements: MathematicsImproper Gaussian replacements: Mathem…Improper Gaussian replacements: PlanImproper Gaussian replacements: PlanLinearization and elimination: ImplementationLinearization and elimination: Impleme…Linearization and elimination: MathematicsLinearization and elimination: Mathema…Linearization and elimination: PlanLinearization and elimination: PlanThe Mathematics section, read start to finish: WriteupThe Mathematics section, read start to…Reference measures and chart volumes of spaces: ImplementationReference measures and chart volumes o…Reference measures and chart volumes of spaces: MathematicsReference measures and chart volumes o…Reference measures and chart volumes of spaces: PlanReference measures and chart volumes o…Normal distributions: ImplementationNormal distributions: ImplementationNormal distributions: MathematicsNormal distributions: MathematicsNormal distributions: PlanNormal distributions: PlanObserved quaternions of arbitrary sign on outside data: ImplementationObserved quaternions of arbitrary sign…Observed quaternions of arbitrary sign on outside data: MathematicsObserved quaternions of arbitrary sign…Observed quaternions of arbitrary sign on outside data: PlanObserved quaternions of arbitrary sign…Bindings on a retirement's replacement: PlanBindings on a retirement's replacement…Free the constants a retirement leaves with no consumer: ImplementationFree the constants a retirement leaves…Free the constants a retirement leaves with no consumer: MathematicsFree the constants a retirement leaves…Free the constants a retirement leaves with no consumer: PlanFree the constants a retirement leaves…Rotations and rigid motions: ImplementationRotations and rigid motions: Implement…Rotations and rigid motions: MathematicsRotations and rigid motions: MathematicsRotations and rigid motions: PlanRotations and rigid motions: PlanSampling a quantity from a distribution: PlanSampling a quantity from a distributio…Bindings of the stacked tangent's replacement: PlanBindings of the stacked tangent's repl…Smooth maps before retractions: WriteupSmooth maps before retractions: WriteupThe uniform distribution on compact types, and broad scales of a normal on a curved type: ImplementationThe uniform distribution on compact ty…The uniform distribution on compact types, and broad scales of a normal on a curved type: MathematicsThe uniform distribution on compact ty…The uniform distribution on compact types, and broad scales of a normal on a curved type: PlanThe uniform distribution on compact ty…Accuracy on the GPU: ImplementationAccuracy on the GPU: ImplementationAccuracy on the GPU: MathematicsAccuracy on the GPU: MathematicsAccuracy on the GPU: PlanAccuracy on the GPU: PlanAutomatic differentiation over framesAutomatic differentiation over framesCalibration of credible setsCalibration of credible setsDensities in tangent chartsDensities in tangent chartsGradients and Hessians in tangent chartsGradients and Hessians in tangent chartsFisher scoringFisher scoringModels built forward, for the measure theoristModels built forward, for the measure…Importance weightsImportance weightsThe improper Gaussian factorThe improper Gaussian factorWhat elimination leavesWhat elimination leavesThe Kalman filterThe Kalman filterThe Laplace approximationThe Laplace approximationThe Levenberg–Marquardt methodThe Levenberg–Marquardt methodLinearization and the Gauss–Newton stepLinearization and the Gauss–Newton stepMaximum a posteriori estimationMaximum a posteriori estimationModels of normals as least squaresModels of normals as least squaresThe normal equationsThe normal equationsThe normal distribution in a chartThe normal distribution in a chartOptimization and estimation, term by termOptimization and estimation, term by t…Product manifoldsProduct manifoldsQuotients by a finite groupQuotients by a finite groupRemovable singularities in floating pointRemovable singularities in floating po…Smooth manifolds, smooth maps, and retractionsSmooth manifolds, smooth maps, and ret…Rigid motionsRigid motionsRotations and unit quaternionsRotations and unit quaternionsElimination in square-root formElimination in square-root formNewton's method and trust regionsNewton's method and trust regionsThe uniform distribution on a compact manifoldThe uniform distribution on a compact…

Click a node for a preview · drag to rearrange · Ctrl/⌘ + scroll to zoom