Core Path · L5.4.01

The affine framework

14 minAffine modelRiccati equationDuffie-KanFactor loadingsRunge-Kutta

Know these first

By the end you will be able to

  1. 1Say what makes a term structure model affine, and write Vasicek, CIR and G2++ in the one form.
  2. 2Derive the Riccati ODEs for A(τ) and B(τ) from the pricing PDE.
  3. 3Explain why affine dynamics give affine yields, and read a model's yield loadings.
  4. 4Solve the Riccati equations by RK4 and check the result against a closed form.

Why it matters

Module 5.3 priced zero-coupon bonds in three models, each with its own formula: Vasicek (L5.3.02: The Vasicek model), Cox-Ingersoll-Ross (L5.3.03: The CIR model) and G2++ (L5.3.10: Two-factor models). Put the three side by side and they have one shape: the exponential of a number minus a weighted sum of the model's random factors. That is not luck. It is one rule, set out by Duffie and Kan in 1996, and it turns bond pricing in a whole family of models into two ordinary differential equations. This module uses the family on seventeen years of the Bank of England's curve; this lesson builds the machine.