What an optimizer looks for
An optimisation problem has a number to make small, the objective , and variables that you are free to change. The objective can be a least-squares loss, the variance of a portfolio, or the gap between model prices and market prices in a calibration. Making something large is the same problem with the sign flipped, because maximising is minimising .
The gradient points in the direction in which rises fastest, so is the direction of steepest descent. At a minimum the gradient is zero, which is the first-order condition. A zero gradient alone is not enough, because maxima and saddle points have it too. The Hessian tells them apart: if is positive definite (all eigenvalues positive) the point is a local minimum, if it is negative definite a maximum, and if it has eigenvalues of both signs the point is a saddle.
- Stationary point: . Necessary for a minimum, not sufficient.
- Classification: positive definite means a local minimum, indefinite a saddle.
- In one variable: with is a minimum.
Lab · what's graded
- A partial derivative15 pts
- The length of the gradient15 pts
- The minimum of a cubic15 pts
- Classifying a stationary point15 pts
- Match the vocabulary15 pts
- Finding a minimum by hand10 pts
- Why move against the gradient15 pts