Skip to content
Linear Algebra, Optimisation and Numerical Methods / Numerical methods and calibration

Numerical Differentiation

A Greek is a derivative of a price with respect to a market input. When the pricing function is a black box (Monte Carlo, PDE grid, legacy library), the desk bumps the input and forms a finite difference. Truncation error falls as the bump shrinks; roundoff error rises as the bump shrinks — the same tension as conditioning meeting floating-point noise. This note derives forward and central differences from Taylor, states the complex-step idea, and explains why bump size matters for a Greek.
Learning objectives. By the end of this note you should be able to:
  • write forward and central difference formulae with leading truncation terms;
  • explain the truncation-vs-roundoff trade-off for bump size hh;
  • state the complex-step derivative formula and when it helps;
  • choose and critique an hh for a one-sided price bump.

In this lesson

  1. Taylor and finite differences
  2. Truncation versus roundoff
  3. Complex-step derivative
  4. Finance: bumping for a Greek

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Linear Algebra, Optimisation and Numerical Methods syllabus.