Principle:Avhz RustQuant Curve Interpolation
| Knowledge Sources | |
|---|---|
| Domains | Numerical_Methods, Interpolation, Fixed_Income |
| Last Updated | 2026-02-07 20:00 GMT |
Overview
Mathematical methods for estimating values between known data points on a yield curve, including linear interpolation, exponential interpolation, and parametric model fitting.
Description
Curve interpolation is the process of estimating interest rates at maturities not directly observed in market data. Different interpolation methods have different properties:
- Linear interpolation: Simple, preserves data points, but produces discontinuous forward rates
- Exponential interpolation: Ensures positive rates, smoother discount factors
- Cubic spline: Smooth first and second derivatives, complex to implement
- Nelson-Siegel-Svensson fitting: Parametric model capturing level, slope, and curvature
The choice of interpolation method affects derivative pricing, hedging, and risk calculations.
Usage
Use curve interpolation when you need rates at dates not present in the original market data. The method is applied automatically by the Curve struct when get_rate() is called for an out-of-sample date.
Theoretical Basis
Linear interpolation:
Exponential interpolation:
where D(t) = exp(-r(t) * t) are discount factors.
Nelson-Siegel-Svensson (NSS) fitting: The curve is fit by minimizing a log-cosh loss function between observed rates and the NSS model rates using particle swarm optimization (via the argmin crate).