MathFin
Map / Valuation · Interest rates / MathFin.Models.Rates.ConvexityImmunization

Second-order bond portfolio immunization

MathFin.Models.Rates.ConvexityImmunizationMSC 91G30JEL G11JEL G12 source

The first-order immunization in Immunization.lean only neutralizes ∂(A - L)/∂r at the current rate. Larger parallel rate shifts are picked up by the second-order term (1/2) ∂²(A - L)/∂r² · (Δr)², governed by the convexity of the cash-flow stream.

For each ZCB: ∂² B/∂r² = (T - t)² · B. For a portfolio:

Conv_P · P = ∑_i w_i · (T_i - t)² · exp(-r(T_i - t)),

and the derivative ∂_r (-Dur_P · P) = Conv_P · P.

Second-order immunization: matching duration-times-value makes ∂(A − L)/∂r vanish (Immunization.lean), and matching convexity-times-value makes ∂²(A − L)/∂r² vanish, so together they leave the surplus flat to second order at the current rate.

Main definitions

  • bondPortfolioConv: the convexity-times-value Conv_P · P of the bond portfolio, ∑_i w_i · (T_i − t)² · exp(−r(T_i − t)).

Main results

  • hasDerivAt_bondPortfolioDur_r: ∂_r (Dur_P · P) = −Conv_P · P.
  • hasDerivAt_neg_bondPortfolioDur_r: ∂_r (−Dur_P · P) = Conv_P · P.
  • hasDerivAt_deriv_bondPortfolioValue_r: ∂²P/∂r² = Conv_P · P, for the value itself.
  • bondPortfolio_immunization_second_order: matching convexity-times-value gives ∂² (A − L)/∂r² = 0, for the surplus itself.

References

  • Fabozzi, Fixed Income Mathematics [FabozziFIM], Ch 5
  • J. C. Hull, Options, Futures, and Other Derivatives [Hull], Ch 4.11

Tags

second-order immunization, bond convexity, duration matching, asset–liability management, bond portfolio, rate sensitivity, MSC 91G30, JEL G11, JEL G12

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-bond-dur-rate-deriv · interest_rates.json · full statement
Bond Portfolio Duration Rate Sensitivity

Derivative of the duration-times-value w.r.t. rate: ∂_r (D_P·P) = −C_P·P, where C_P is the convexity-times-value.

mf-bond-2nd-deriv · interest_rates.json · full statement
Bond Portfolio Second-Order Rate Sensitivity

The second rate-derivative of a zero-coupon bond portfolio's value P(r) = Σᵢ wᵢ·e^{−r(Tᵢ − t)}: ∂²P/∂r² = Σᵢ wᵢ(Tᵢ − t)²·e^{−r(Tᵢ − t)}, the convexity-times-value C_P·P.

mf-bond-single-conv · interest_rates.json · full statement
Single-Bond Portfolio Convexity

A single-bond portfolio's convexity-times-value equals w·(T-t)²·exp(-r(T-t)), matching the ZCB second-order sensitivity in FixedIncome.lean.

mf-bond-2nd-immunization · interest_rates.json · full statement
Bond Portfolio Second-Order Immunization

Matching the convexity-times-value Σᵢ wᵢ(Tᵢ − t)²·e^{−r(Tᵢ − t)} of the asset and liability bond portfolios gives ∂²(A − L)/∂r² = 0 at the current rate r: the surplus has zero second rate-derivative. The statement assumes only the convexity-times-value match; matching duration-times-value is the separate first-order condition. Redington's second-order condition is the strict inequality ∂²A/∂r² > ∂²L/∂r², with values and first derivatives matched, which makes the surplus a local minimum. This entry is the equality boundary, where the second-order term vanishes, and claims no minimum.

Declarations 6

defMathFin.bondPortfolioConvsource
{ι : Type u_1} → Finset ι → (ι → ℝ) → (ι → ℝ) → ℝ → ℝ → ℝ

Convexity-times-value Conv_P · P of the bond portfolio: ∑_i w_i · (T_i − t)² · exp(−r(T_i − t)).

theoremMathFin.hasDerivAt_bondPortfolioDur_rsource
∀ {ι : Type u_1} (s : Finset ι) (w T : ι → ℝ) (t r : ℝ), HasDerivAt (fun r' => bondPortfolioDur s w T t r') (-bondPortfolioConv s w T t r) r

Derivative of duration-times-value w.r.t. rate: ∂_r (Dur_P · P) = −Conv_P · P.

theoremMathFin.hasDerivAt_neg_bondPortfolioDur_rsource
∀ {ι : Type u_1} (s : Finset ι) (w T : ι → ℝ) (t r : ℝ), HasDerivAt (fun r' => -bondPortfolioDur s w T t r') (bondPortfolioConv s w T t r) r

The second-derivative formula: the r-derivative of ∂P/∂r = −Dur_P · P is Conv_P · P. The second derivative of the value itself is hasDerivAt_deriv_bondPortfolioValue_r.

theoremMathFin.hasDerivAt_deriv_bondPortfolioValue_rsource
∀ {ι : Type u_1} (s : Finset ι) (w T : ι → ℝ) (t r : ℝ), HasDerivAt (deriv fun r' => bondPortfolioValue s w T t r') (bondPortfolioConv s w T t r) r

Second derivative of portfolio value: ∂²P/∂r² = Conv_P · P, for the value itself: ∂P/∂r = −Dur_P · P at every rate (hasDerivAt_bondPortfolioValue_r), and its derivative is the formula of hasDerivAt_neg_bondPortfolioDur_r.

theoremMathFin.bondPortfolio_single_bond_convsource
∀ {ι : Type u_1} (i : ι) (w T : ι → ℝ) (t r : ℝ), bondPortfolioConv {i} w T t r = w i * (T i - t) ^ 2 * Real.exp (-(r * (T i - t)))

Single-bond convexity: a single-bond portfolio's convexity-times-value equals w · (T − t)² · exp(−r(T − t)).

theoremMathFin.bondPortfolio_immunization_second_ordersource
∀ {ι : Type u_1} {κ : Type u_2} (sA : Finset ι) (wA TA : ι → ℝ) (sL : Finset κ) (wL TL : κ → ℝ) (t r : ℝ), bondPortfolioConv sA wA TA t r = bondPortfolioConv sL wL TL t r → HasDerivAt (deriv fun r' => bondPortfolioValue sA wA TA t r' - bondPortfolioValue sL wL TL t r') 0 r

Second-order immunization: matching convexity-times-value gives ∂²(P_A − P_L)/∂r² = 0 at the current rate, for the surplus itself. The second derivative of each side is its convexity-times-value (hasDerivAt_neg_bondPortfolioDur_r), so matching those cancels it. Matching duration-times-value is the separate first-order condition, bondPortfolio_immunization_first_order.