Options
All
  • Public
  • Public/Protected
  • All
Menu

Nelson-Siegel fitting method

Fits a discount function to the form $ d(t) = \exp^{-r t}, $ where the zero rate $r$ is defined as $$ r \equiv c_0 + (c_1 + c_2)(1 - exp^{-\kappat})/(\kappa t) - c_2 exp^{ - \kappa t}. $$ See: Nelson, C. and A. Siegel (1985): "Parsimonious modeling of yield curves for US Treasury bills." NBER Working Paper Series, no 1594.

Hierarchy

Index

Properties

Protected _constrainAtZero

_constrainAtZero: boolean

Protected _costFunction

_costFunction: FittingCost

_curve

Protected _guessSolution

_guessSolution: Real[]

_l2

_l2: Real[]

_solution

_solution: Real[]

_weights

_weights: Real[]

Methods

calculate

  • calculate(): void
  • Returns void

clone

constrainAtZero

  • constrainAtZero(): boolean

discount

discountFunction

fmInit

  • Parameters

    • Default value constrainAtZero: boolean = true
    • Default value weights: Real[] = []
    • Default value optimizationMethod: OptimizationMethod = null
    • Default value l2: Real[] = []

    Returns FittingMethod

init

  • init(): void
  • Returns void

l2

  • Returns Real[]

minimumCostValue

  • minimumCostValue(): Real

nsfInit1

  • Parameters

    Returns NelsonSiegelFitting

nsfInit2

numberOfIterations

optimizationMethod

size

  • Returns Size

solution

  • solution(): Real[]

weights