# Parameters in Nelson-Siegel model and Nelson-Siegel-Svensson model

I am trying to determine the parameters for the Nelson Siegel and Nelson Siegel Svensson model and try to solve

SE=$$\sum_{i=1}^{n_{i}}(y_{t_{i}}-\hat{y}_{t_{i}}(X))^{2}$$

where $$y_{t_{i}}$$ denotes the actual yield for the period $$i$$ and $$\hat{y}_{t_{i}}$$ denotes approximated value for period $$i$$.

How am I supposed to set the parameters restriction of Nelson Siegel model and Nelson Siegel Svensson model? I read several articles, but restrictions were set differently. My yields are in percents.

I know that $$\lambda$$ shoud be positive, but what about others?

The Nelson-Siegel model has four parameters: $$\beta_0$$, $$\beta_1$$, $$\beta_2$$, and $$\lambda$$. These parameters have the following restrictions:

• $$\beta_0$$, $$\beta_1$$ and $$\beta_2$$ can be any real numbers. They don't have specific restrictions, as they determine the level, slope, and curvature of the term structure. However, $$\beta_0$$ is usually positive since it represents the long-term yield level. Additionally, $$\beta_1 + \beta_2 > 0$$ might be required in order to guarantee that short term rates are positive.
• $$\lambda$$ should be positive, as you mentioned, to ensure the model's stability and smoothness.

The Nelson-Siegel-Svensson model extends the Nelson-Siegel model by introducing two additional parameters ($$\beta_3$$ and $$\lambda_2$$) to improve the model's flexibility. The restrictions for this model are:

• $$\beta_0$$, $$\beta_1$$, $$\beta_2$$ and $$\beta_3$$ can be any real numbers. Similar to the Nelson-Siegel model, $$\beta_0$$ is usually positive. $$\beta_3$$ determines the additional curvature of the term structure. As above, $$\beta_0$$ is usually positive since it represents the long-term yield level. Additionally, $$\beta_1 + \beta_2 > 0$$ might be required in order to guarantee that short term rates are positive.
• $$\lambda_1$$ and $$\lambda_2$$ should both be positive. They ensure the stability and smoothness of the model.

In practice, you can use optimization techniques (e.g., nonlinear least squares) to estimate the model parameters by minimizing the sum of squared errors (SE) between the actual yields and the approximated yields. The restrictions on $$\lambda$$ (in Nelson-Siegel) and $$\lambda_1$$ and $$\lambda_2$$ (in Nelson-Siegel-Svensson) can be enforced during the optimization process. In some cases, you may find it useful to apply additional constraints on the parameters based on the specific characteristics of the yield curve or market.

Update

In the comments, you give an example of a particular term structure with an outlier on the first maturity. If I am not mistaken, your question is how to constrain Nelson-Siegel or Nelson-Siegel-Svensson in such a way that it is possible to calibrate it to problematic curves such as the given one.

However, constraining the model for such a custom situation will likely not succeed due to the difficulty of determining an initial starting point that does not lead to a local optimum and collinearity considerations. Rather the way forward lies in a different methodology.

For further reading on this, I would highly recommend Numerical Methods and Optimization in Finance, Chapter 14, specifically section 14.1.2 (1). An implementation is described in (2).

This implementation gives the following fit with the constraints mentioned above: (1) Manfred Gilli, Dietmar Maringer, and Enrico Schumann. (2019). Numerical Methods and Optimization in Finance (2nd ed.). Academic Press.

• Thanks, if I have yield curve consisting of ten points, $4.91$ , $4.58$, $4.62$, $4.73$, $4.84$, $4.90$, $4.92$, $4.90$, $4.87$, $4.82$, what should be the constraints for $\beta_0$, $\beta_1$, $\beta_2$, $\beta_3$ in your opinion? Apr 22 at 7:20
• What are the corresponding maturities? Apr 22 at 9:34
• From $1$ to $10$ years. Apr 22 at 9:43
• Added an update and also added additional constraints to the initial post. Apr 23 at 14:27
• Thank you so much Apr 23 at 20:32