For a ZCB portfolio P(r) = ∑ w_i exp(-r(T_i - t)) with duration-times-value D_P·P = ∑ w_i (T_i - t) exp(-r(T_i - t)), the rate derivative is ∂P/∂r = -D_P·P.
{ι : Type u_1} → Finset ι → (ι → ℝ) → (ι → ℝ) → ℝ → ℝ → ℝBond portfolio value at rate r.
A portfolio of zero-coupon bonds with face values w i and maturities T i, indexed by a finite set s:
P(r) = ∑_{i ∈ s} w_i · exp(−r · (T_i − t)), t fixed (today).
The Macaulay-duration-times-value of the portfolio is
D_P · P(r) = ∑_{i ∈ s} w_i · (T_i − t) · exp(−r · (T_i − t)).
First-order rate sensitivity: ∂P/∂r = −D_P · P.
A portfolio is first-order immunized against a liability L(r) with duration D_L if the duration-weighted asset value matches that of the liability, in which case ∂(P − L)/∂r = 0 at the current rate.
bondPortfolioValue: the value of a zero-coupon bond portfolio at rate r.bondPortfolioDur: the duration-times-value D_P · P of the bond portfolio.hasDerivAt_bondPortfolioValue_r: ∂P/∂r = −D_P · P.bondPortfolio_single_bond_dur: a single-bond portfolio's duration-value equals w · (T − t) · exp(−r·(T − t)), recovering the ZCB result in ZCB.lean.bondPortfolio_immunization_first_order: when the duration-weighted asset and liability values match, the net portfolio's first-order rate sensitivity is zero.bond immunization, duration matching, asset–liability management, zero-coupon bond portfolio, interest rate risk, Redington, MSC 91G30, JEL G11, JEL G12
Above: what it imports. Below: what imports it.
For a ZCB portfolio P(r) = ∑ w_i exp(-r(T_i - t)) with duration-times-value D_P·P = ∑ w_i (T_i - t) exp(-r(T_i - t)), the rate derivative is ∂P/∂r = -D_P·P.
A single-bond portfolio's duration-times-value reduces to w·(T - t)·exp(-r(T - t)), matching the ZCB duration in FixedIncome.lean.
A single-bond portfolio's value reduces to w·exp(-r(T - t)), matching the ZCB price.
If the duration-times-value of the asset portfolio matches that of the liability, the net portfolio's first-order rate sensitivity is zero: ∂(A - L)/∂r = 0.
{ι : Type u_1} → Finset ι → (ι → ℝ) → (ι → ℝ) → ℝ → ℝ → ℝBond portfolio value at rate r.
{ι : Type u_1} → Finset ι → (ι → ℝ) → (ι → ℝ) → ℝ → ℝ → ℝDuration-times-value D_P · P of the bond portfolio.
∀ {ι : Type u_1} (s : Finset ι) (w T : ι → ℝ) (t r : ℝ), HasDerivAt (fun r' => bondPortfolioValue s w T t r') (-bondPortfolioDur s w T t r) rFirst-order rate sensitivity: ∂P/∂r = −D_P · P (here equivalently −bondPortfolioDur).
∀ {ι : Type u_1} (i : ι) (w T : ι → ℝ) (t r : ℝ), bondPortfolioDur {i} w T t r = w i * (T i - t) * Real.exp (-(r * (T i - t)))Single-bond portfolio duration: matches the ZCB duration (T − t).
∀ {ι : Type u_1} (i : ι) (w T : ι → ℝ) (t r : ℝ), bondPortfolioValue {i} w T t r = w i * Real.exp (-(r * (T i - t)))Single-bond portfolio value matches the ZCB price w · exp(−r(T − t)).
∀ {ι : Type u_1} {κ : Type u_2} (sA : Finset ι) (wA TA : ι → ℝ) (sL : Finset κ) (wL TL : κ → ℝ) (t r : ℝ), bondPortfolioDur sA wA TA t r = bondPortfolioDur sL wL TL t r → HasDerivAt (fun r' => bondPortfolioValue sA wA TA t r' - bondPortfolioValue sL wL TL t r') 0 rFirst-order immunization: if the duration-weighted asset value equals the duration-weighted liability value, then the net portfolio's first-order rate sensitivity is zero.