Hessian Matrix
Gist
Looking to understand the curvature of a function? Useful for optimization because it gives us the local behavior
Definition
For a scalar-valued function, the Hessian matrix calculates the second partial derivative. It is a matrix of functions that should be evaluated at some points:
Example
Let's say we have the equation below:
Let us calculate the first partial derivative with respect to
and
Then we can take the derivative of
as well as with
and
Therefore the Hessian matrix of
We then calculate the Determinant
How to interepret
- Positive definite Hessian → local minimum
- Negative definite Hessian → local maximum
- Indefinite Hessian → saddle point
- Zero determinant → test is inconclusive
Properties
- Symmetric
Usage
You can figure out if you’re at a maximum/minimum point by calculating the Hessian.
The Hessian is generally not used for some optimizationmethod because of the computational intensity it takes to fill it and invert it.
For Maximum-likelihood
As we're trying to maximum the log-likelihood when estimating parameters wtih Maximum likelihood, it makes sense we use the Hessian matrix.
Additionally, the asymptomatic covariance matrix of the parameters is given by the inverse of the negative of the Hessian matrix.
The negative Hessian evaluated at the MLE is the same as the observed Fisher information matrix evaluated at the MLE.
Association with the Taylor Series
The Hessian matrix arises naturally in the second-order Taylor Series of a scalar function.