The methods discussed so far allow considerable freedom in choosing the loss function. In practical cases where the cost function is quadratic, some simplifications can be made relative to Newton's method, avoiding the explicit computation of the Hessian.
In this case, the cost function takes the form
where the factor is introduced solely to simplify the
derivative expressions.
The gradient and Hessian of the cost function are
| (4.55) |
When the residuals are small, or when the model is locally nearly linear, the second term in the Hessian becomes negligible, giving the approximation
| (4.56) |
Under these conditions, the gradient of the cost function is
while the Hessian can be approximated by
Substituting this approximation into Newton's equation (4.43) gives the linear system
The solution to this system can be obtained using the normal equations:
Geometrically, the normal equations mean that the linearized residual
must be orthogonal to the column space of
.
In the special case where the residual is defined as
| (4.59) |
that is, as in Equation (4.7), we have
so the residual Jacobian
can be replaced by the model Jacobian
, giving
Paolo medici