skoro v0.0.0

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.

Updated 2026-11-25 · 6 min read

The notes of this part read one computation in two vocabularies. An optimizer sees a function to be minimized by steps that each minimize a model of it. A state estimator sees a posterior to be approximated by Gaussians, combined by adding factors and reduced by integrating quantities out. The linearization and the improper Gaussian factor are where the two meet: one quadratic, read once as a model in a trust region and once as a Gaussian on the increment from the point of linearization. Most of what follows from either reading has a name in both, and this note is the table of those names.

Each row pairs an optimizer’s term with an estimator’s and names the note that defines them. The pairs are exact under the condition the row states, and where none is stated they are exact throughout this part: a model built forward, its objective ff the negative logarithm of its joint density at the observations, and its terms read in the charts at the current point x^\hat \point.

The problem#

optimizationestimationwhere
the objective ffthe negative log-density of the free quantities at the observations, the negative log-posterior up to the evidencemaximum a posteriori estimation
a minimizer of ffa mode of the posterior, the maximum a posteriori estimate; the maximum likelihood estimate when there is no priormaximum a posteriori estimation
a term of ffthe negative log-density of one kernel, likelihood factor or scoremaximum a posteriori estimation
a regularizer, a penalty on the variablesa prior, the term of a free quantity’s own kernelmaximum a posteriori estimation
a residual, weighted by the inverse root of its covariancea whitened residual, the standardized error of a measurement under its normalmodels of normals as least squares
the cost, half the sum of squared residualsthe negative log-likelihood of normals with fixed scales, up to a constant and the log-volumesmodels of normals as least squares
a change of variables, which leaves the minimizer where it wasa change of reference measure, which moves the modemaximum a posteriori estimation

The model and its curvature#

optimizationestimationwhere
the gradient ggthe negative of the score, the gradient of the log-densityNewton’s method and trust regions
the Hessian of ffthe observed information, of the posterior when the model has priorsNewton’s method and trust regions
the Gauss–Newton matrix ∑tJt⊤Jt\sum_t J_t\transpose J_tthe precision of the linearization’s Gaussian; for normals with fixed scales, the expected informationlinearization, Fisher scoring
the curvature of a quasi-Newton modela choice of information: observed, expected, or the rows’Newton’s method and trust regions
the quadratic model mm of ff at x^\hat \pointthe Gaussian factor e−me^{-m} on the increment x⊖x^\point \ominus \hat \pointthe improper Gaussian factor
the model’s minimizer, the Gauss–Newton stepthe mean of the increment’s Gaussianthe improper Gaussian factor
a direction in which the curvature is singular, along which the step is not uniquea direction the factor does not determine, along which it is flat and has no covariancethe improper Gaussian factor
a damping λD\lambda D, which shortens the trust region’s radius as it growsa normal prior on the increment, with mean zero and precision λD\lambda Dthe improper Gaussian factor
the damped step, the Levenberg–Marquardt stepthe mean of the increment under that priorthe Levenberg–Marquardt method
the gain ratiothe fit of the Gaussian factor to the log-density over the stepNewton’s method and trust regions

Solving#

optimizationestimationwhere
the normal equations A⊤A v=A⊤b−ηA\transpose A\, \tangent = A\transpose b - \etathe information form of a Gaussianthe normal equations
the matrix A⊤AA\transpose Athe precision, or information matrixthe normal equations
its inversethe covariancethe normal equations
the right-hand side A⊤b−ηA\transpose b - \eta, the negative gradient at zerothe information vector, the precision times the meanthe normal equations
the triangular root RR, with R⊤R=A⊤AR\transpose R = A\transpose Athe square-root information matrix, an upper-triangular square root of the precisionelimination in square-root form
log⁡∣det⁡R∣\log \lvert \det R \rverthalf the log-determinant of the precision, or minus half that of the covarianceelimination in square-root form

Eliminating and integrating#

optimizationestimationwhere
minimizing over a block, keeping the restmaximizing the joint density over a quantity: its conditional mode given its separatorelimination in square-root form
the same elimination, by its other partintegrating the quantity out: its marginal on the restelimination in square-root form
the Schur complementthe marginal precisionelimination in square-root form
the reduced problem on the blocks keptthe improper Gaussian factor on the Markov blanketwhat elimination leaves
back substitution through the elimination treethe conditional means, from the roots down, given the values aboveelimination in square-root form
eliminating a chain of blocks in orderfiltering: the prediction of each state from the measurements before itthe Kalman filter
the residual of a measurement at the current estimatethe innovation, at the predictionthe Kalman filter
the weight a step gives that residualthe Kalman gainthe Kalman filter
eliminating the chain, then back substitutingsmoothing: each state’s mean given every measurementthe Kalman filter

Approximations#

optimizationestimationwhere
the inverse of the model’s curvature at the minimizerthe covariance of the Laplace approximationthe Laplace approximation
the minimum of the model, with the log-determinant of its curvaturethe evidence, the log of the marginal density of the observations, approximatelythe Laplace approximation
the curvature the Gauss–Newton matrix omitswhat the Laplace approximation’s covariance leaves outthe Laplace approximation
the inverse of Fisher scoring’s curvature at its limitthe asymptotic covariance of a maximum-likelihood estimate of parametersFisher scoring

Where the vocabularies part#

Two rows look like pairs and are not.

  • A change of variables against a change of measure. An optimizer may reparametrize freely: the minimizer of ff moves with the variables and is the same point. A density is a density against a measure, and its mode is not: the log-normal’s mode against Lebesgue measure is em−s2e^{m - s^2}, and against dx/x\dd \point / \point it is eme^m. Every method of this part reads its derivatives in charts and still minimizes ff, the density against the spaces’ own measures; a Gaussian fitted in a chart is fitted to the chart objective (4), with the chart’s volume.
  • The Hessian against the expected information. An optimizer has one Hessian. An estimator has two informations, the observed, which is that Hessian, and the expected, which is its expectation over the data. For normals with fixed scales the expected information is the Gauss–Newton matrix, and not the Hessian; with a free scale it is neither.