Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Avhz RustQuant Curve Interpolation

From Leeroopedia


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:

r(t)=r1+r2r1t2t1(tt1)

Exponential interpolation:

D(t)=D(t1)(D(t2)D(t1))tt1t2t1

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).

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment