For a bond priced as P(k) = Σ cᵢ/(1 + kᵢ)^{tᵢ}, each cashflow i discounted at its own rate kᵢ (one node per cashflow, not a tenor-indexed curve), on a flat curve k ≡ y with 1 + y ≠ 0: the partial derivatives ∂P/∂kⱼ (the derivative along the curve that moves kⱼ alone) sum to dP/dy, the derivative of the flat-yield price Σ cᵢ/(1 + y)^{tᵢ}. Key-rate durations −(1/P)·∂P/∂kⱼ are not defined.
{ι : Type u_1} → Finset ι → (ι → ℕ) → (ι → ℝ) → (ι → ℝ) → ℝBond price with cashflow i discounted at its own rate k i (one node per cashflow), annual compounding. On a flat curve it is bondPriceDisc.