Nelson-Siegel Curve Fitting (from yields to maturity)

Last updated 9 November 2026

Function reference › Bonds › Curve Fitting

1 GIAnalyzer function for Excel. Optional arguments are shown in [brackets].

GIA_Bonds_NelsonSiegelFromYTM

Returns the best-fitted Nelson-Siegel parameters given an array of YTMs and maturities.

GIA_Bonds_NelsonSiegelFromYTM(YTMCurveDates, YTMCurveRates, SDate, Days, Interp, LastTerm, OutputType, InitialParams, Weights)

Returns: Best-fitted Nelson-Siegel parameters given an array of YTMs and maturities

ArgumentUseDescription
YTMCurveDatesRequiredThe array of maturity dates
YTMCurveRatesRequiredThe array of YTMs
SDateRequiredThe settlement date.
DaysRequiredThe time basis of the interest rates (act/360, act/365, act/act, 30E/360, 30I/360)
InterpRequiredThe interpolation method (Linear, LogLinear, CubicSpline, Exponential)
LastTermRequiredThe furthest maturity for the yield curve in years.
OutputTypeRequiredThe output type (Curve, Params)
InitialParamsRequiredThe array of initial guesses for the Nelson-Siegel parameters
WeightsRequiredThe array of weights for the data points