apaNelsonSiegel.Estimate(ObservedYields, ObservedMaturities, IsRandomInitGuess)
Excel
=apaNelsonSiegel.Estimate(ObservedYields, ObservedMaturities, IsRandomInitGuess)Result
Estimates the Nelson-Siegel parameters beta0, beta1, beta2 and tau1 by fitting observed yields.
Syntax
ObservedYields: 1 x n vector of observed yields
ObservedMaturities: 1 x n vector of observed maturities in years, in ascending order
IsRandomInitGuess: TRUE for a random initial guess of the parameters, FALSE for a deterministic one
Algorithm
Numerical minimization of the sum of squared differences between the empirical and the fitted yield curve.
