|
In many data-regression problems, it is necessary to have some metric for determining how far a is from the actual model. For this purpose, it would be useful to have an
estimate of the observation without the noise component, namely a datum that belongs exactly to the model. Neither of these quantities can normally be obtained directly without introducing unknown auxiliary variables.
It is nevertheless possible to estimate these values by linearizing the model function in the neighborhood of the observation.
Let be a noisy observation and let
be a multidimensional manifold representing a particular model to which the observation must belong, namely
.
The residual is an algebraic measure of the proximity between the point and the model and provides no useful information in absolute terms: if the function is replaced by a nonzero multiple of itself, it obviously represents the same locus of points, but the value of the function changes accordingly.
From the perspective of the maximum-likelihood estimator, the correct metric in the presence of additive white Gaussian noise in the observations is the geometric distance between the point
and the point
belonging to the model, that is, estimating
.
We therefore consider the problem of computing an approximate distance between the point
and a geometric variety
, where
is a differentiable function in a neighborhood of
.
The point
lying on the variety and closest to the point
is, by definition, the point that minimizes the geometric error
| (4.57) |
The difference between minimizing an algebraic quantity linearly and a geometric quantity nonlinearly has motivated the search for a possible compromise.
The Sampson method, initially developed for varieties such as conics, requires an assumption that can instead be applied to several problems: the derivatives of the cost function in the neighborhood of the minimum
must be approximately linear and therefore approximable through a series expansion.
The variety
can be approximated using Taylor expansion such that
| (4.58) |
This is the equation of a hyperplane in , and the distance between the point
and the plane
is the Sampson distance, or the approximate maximum likelihood (AML). The Sampson error represents the geometric distance between the point and the approximated version of the function (geometric distance to first order approximation function).
The problem now becomes that of finding the point closest to
, that is, minimizing
subject to the linear constraint
Since this is a constrained minimization problem, it is solved using Lagrange multipliers, yielding the notable result
| (4.60) |
The value
represents an estimate of the distance of the point
from the variety and can be used both to determine whether the point belongs to the variety (for example, within algorithms such as RANSAC to identify outliers) and potentially as an alternative cost function to the Euclidean norm.
is the Sampson error, and its norm, given by
| (4.61) |
In the notable case , the Sampson distance reduces to
| (4.62) |
Practical applications of the Sampson error include the distance between a point and a conic (see Section 4.6.7), the distance between a pair of points and a homography, and the distance between a pair of corresponding points with respect to the Fundamental matrix (Section 10.4.2).
The Sampson distance can be generalized to the case of multiple constraints using the Mahalanobis distance, that is, by minimizing
| (4.63) |
| (4.64) |
Paolo medici