1. Nelson-Siegel Fit on Standard Upward-Sloping Treasuries
Fixed Income AnalystBackground
An analyst needs to build a continuous benchmark spot curve from on-the-run Treasury quotes ranging from 6 months to 30 years.
Problem
Raw market quotes only provide discrete yields to maturity, requiring bootstrapping and smoothing to value off-the-run cash flows.
How to use
Paste five benchmark treasury quotes into the input field, choose Nelson-Siegel as the parametric model, and select semiannual compounding.
bonds = "0.5 98.39 0\n2 99.95 4.25\n5 99.55 4.35\n10 98.10 4.45\n30 96.60 4.60", model = "nelson-siegel", compounding = "semiannual", showForward = trueOutcome
Generates discount factors, bootstrapped spots rising from 3.27% to 4.90%, estimated beta parameters, and an instantaneous forward curve with sub-basis-point RMSE residuals.