A risk manager standing at today's portfolio weights wants to know: in which direction should weights shift to increase the Sharpe ratio fastest? In which direction does drawdown risk decrease fastest? The answer is the gradient — the vector that points in the direction of steepest ascent of any scalar field. More generally, the directional derivative measures how rapidly changes as we move a unit distance in direction , generalising partial derivatives from the coordinate directions to any direction. The gradient is perpendicular to every level curve of — which is why gradient descent always crosses contours at right angles, making it the most efficient first-order search direction.
Learning objectives. By the end of this note you should be able to:
- define the directional derivative and compute it using ;
- compute the gradient for functions of two variables and for three variables;
- find the direction of steepest ascent and steepest descent at a point;
- prove that is perpendicular to the level curve at any point;
- apply gradient descent logic to portfolio optimisation.
In this lesson
-
- The Directional Derivative
-
- The Gradient
-
- Direction of Greatest Increase and Decrease
-
- The Gradient is Perpendicular to Level Curves
-
- Gradient in Three Variables
-
- Gradient Descent in Finance
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or explore the curriculum.