Least squares, motivated from MAP estimation and trust regions
This entry reordered the mathematics' part on least squares and Gaussian approximations so that it begins with the estimate sought and ends with the linear algebra that computes it. Five notes are new: maximum a posteriori estimation, Newton's method and trust regions, models of normals as least squares, the normal equations, and a table that pairs the optimizer's names with the estimator's, optimization and estimation, term by term, which closes the part. Two more were split off the improper Gaussian factor: what elimination leaves and the Kalman filter. The linearization gained its reading as a model in a trust region, the improper Gaussian factor its reading of the linearization as a Gaussian on the increment, and elimination in square-root form moved from first to seventh, opened by the normal equations it solves without forming. Every equation, statement and section the archive cites stayed in its note, so no done entry was amended. Every other page listed, with the landing page and the math notes, was rewritten to one sentence to a line, as the authoring guide now asks; their text did not change.
This entry reordered the mathematics’ part on least squares and Gaussian approximations so that it begins with the estimate sought and ends with the linear algebra that computes it. Five notes are new: maximum a posteriori estimation, Newton’s method and trust regions, models of normals as least squares, the normal equations, and a table that pairs the optimizer’s names with the estimator’s, optimization and estimation, term by term, which closes the part. Two more were split off the improper Gaussian factor: what elimination leaves and the Kalman filter. The linearization gained its reading as a model in a trust region, the improper Gaussian factor its reading of the linearization as a Gaussian on the increment, and elimination in square-root form moved from first to seventh, opened by the normal equations it solves without forming. Every equation, statement and section the archive cites stayed in its note, so no done entry was amended. Every other page listed, with the landing page and the math notes, was rewritten to one sentence to a line, as the authoring guide now asks; their text did not change.
Where it stands
- Writeup
- Publish
Documents
What it changed
The pages that say what this entry made true:
- Building a model A model is built inside a scope a writer opens, by ordinary functions of handles, and published as an immutable snapshot that may be read from any thread or forked into a branch.
- Linearization and elimination A density query is linearized at a batch of points into factored least-squares problems over its free quantities, by its residuals or by its information roots, and each problem is eliminated in square-root form on the host into a step, marginals, an evidence, draws, or a retirement's replacement; the Levenberg–Marquardt method iterates the steps to the mode.
- Operations and their derivatives Maps between spaces described once and on no device, lowered to kernels that say how far they differentiate, and composed from a few primitives.
- Queries and programs A query names what to compute from a snapshot and what is observed; compiled for a device and a precision, it becomes a program whose passes give values, tangents, gradients and Hessian-vector products in tangent charts.
- Rotations and rigid motions The crate skoro-spatial declares the rotations, the rigid motions and the extended poses as embedded types stored as quaternions up to sign, with the Cayley chart, global on each group, and declared volumes, so that they carry the normal in whatever sign their quaternions are given, and writes their maps as composites whose derivatives are the core's.
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- Terms and the probabilistic graph A model's density is a sum of terms, each a log-density that scores one quantity or none; the terms and quantities together make the probabilistic graph inference reads, and a retirement removes some quantities, replaces their terms, and frees what it leaves needed by nothing.
- 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 skoro's uniform distribution is the law of a space whose reference measure has finite mass, the rotations and the categorical spaces among them, with a constant term, an exact sampler on the host, and a residual of no components, so that a linearization reads it as a factor with no rows; it is how a model says that nothing is known of a quantity.
- A first model Write a hierarchical normal with `sample`, generate from it and take its density and gradient given an observation, then see what the sugar is made of, from the tests of skoro itself.
- Steps and replacements Linearize a model's density at a point and iterate damped Gauss–Newton steps to its mode, and retire part of a model with a linearized replacement that keeps what it said, with the crate skoro-linearize, from its own tests.
- A pose graph The example pose_graph, read top-down: a robot's poses and landmarks on SE(3) built tick by tick, a hundred datasets drawn from the model, estimated together by Levenberg–Marquardt, and the Laplace marginals checked for calibration against the truth.
- Rotations and poses Score an attitude or a pose with the normal, give an unknown one the uniform distribution, draw it, observe one given from outside in whatever sign, and read Euler angles off it, with the crates skoro-spatial and skoro-uniform, from their own tests and examples.
- A sliding window The example sliding_window, read top-down: a model kept to its last few poses as a robot drives an open path, each tick appended, solved and the oldest retired with a linearized replacement, and its estimates set beside the truth and the batch.
- Crates The workspace's crates, what each holds, and what each depends on.
- How skoro is developed Every change is an entry that moves through fixed stages, mathematics first and the pages last, each approved by a person before the next begins.
- Reading these docs Three tracks to read, the guide top-down, the concepts bottom-up and the mathematics in order, beside a reference to look things up in and an archive of how skoro came to be.
- What is skoro? A library for writing a probabilistic model once and running any inference algorithm on it, built for models that live over time.
What it revises
- The Mathematics section, read start to finish Done The Mathematics section was a collection of notes, one idea to a note, linked by what each builds on, while most of the mathematics the pages relied on sat in the archive's frozen documents, argued in…
History
- Started at writeup
- Approved writeup
e003237 - Approved publish
e8fbe9c