<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JMF</journal-id><journal-title-group><journal-title>Journal of Mathematical Finance</journal-title></journal-title-group><issn pub-type="epub">2162-2434</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jmf.2015.54031</article-id><article-id pub-id-type="publisher-id">JMF-61264</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Business&amp;Economics</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  In Search of the Best Zero Coupon Yield Curve for Nairobi Securities Exchange: Interpolation Methods vs. Parametric Models
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ucy</surname><given-names>Muthoni</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Institute of Mathematical Sciences (IMS), Strathmore University, Nairobi, Kenya</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>lmuthoni@strathmore.edu</email></corresp></author-notes><pub-date pub-type="epub"><day>05</day><month>11</month><year>2015</year></pub-date><volume>05</volume><issue>04</issue><fpage>360</fpage><lpage>376</lpage><history><date date-type="received"><day>18</day>	<month>September</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>16</month>	<year>November</year>	</date><date date-type="accepted"><day>19</day>	<month>November</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   We seek to determine which yield curve construction method produces the best zero coupon yield curve (ZCYC) for Nairobi Securities Exchange (NSE). The ZCYC should be differentiable at all points and at the same time, should produce a continuous and positive forward curve at all knot points. A decreasing discount curve is also expected from the resulting ZCYC, as an indication of monotonicity. For the interpolation method, we will use an improvement of monotone preserving interpolation method on &lt;i&gt;r&lt;/i&gt;(&lt;i&gt;t&lt;/i&gt;)&lt;i&gt;t&lt;/i&gt;, while the Nelson and Siegel [1] model is the parametric model of choice. This is because compared to other interpolation methods, the improvement of monotone preserving interpolation method on  &lt;i&gt;r&lt;/i&gt;(&lt;i&gt;t&lt;/i&gt;)&lt;i&gt;t&lt;/i&gt; produces curves with the desirable trait of differentiability, while the Nelson-Siegel [1] model is shown to produce the best-fit results for Kenyan bond data. We compare the models’ performance in terms of accuracy in pricing back the fixed-income securities. For this study, we use bond data from Central Bank of Kenya (CBK). The better of the two methods will be used for the Kenyan securities market and, consequently, the East African Securities markets. 
 
</p></abstract><kwd-group><kwd>Interpolation Methods</kwd><kwd> Zero Coupon Yield Curves</kwd><kwd> Parametric Models</kwd><kwd> Nairobi Securities Exchange</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The objective of this paper is to establish the best yield curve model to be used in pricing of financial products at the Nairobi Securities Exchange. We compare two models so far established to be the best in their respective categories, as shown by Muthoni Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref2">2</xref>] and Muthoni Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref3">3</xref>] . Among the Parametric Models used in construction of yield curves, Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model was found to be superior by Muthoni, Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref3">3</xref>] , while the improvement of monotone preserving interpolation on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x8.png" xlink:type="simple"/></inline-formula> was found to be superior of the splines method studied by Muthoni, Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref2">2</xref>] . This paper compares these two methods in terms of:</p><p>1) The accuracy of the yield curve using the set test statistics;</p><p>2) The smoothness of the curve;</p><p>3) The continuity and differentiability of the spot and forward curves;</p><p>4) Pricing back the fixed income securities;</p><p>5) The monotonicity of the yield curve, measured by the behavior of the discount curve.</p></sec><sec id="s2"><title>2. Literature Survey</title><p>Many estimation methods for yield curves have appeared in literature over the years. Generally speaking, there are two distinct approaches to estimate the term structure of interest rates: the equilibrium model and the statistical techniques.</p><p>The first approach is formalized by defining state variables characterizing the state of the economy (relevant to the determination of the term structure) which are driven random processes and are related in some way to the prices of the bonds. It then uses no-arbitrage arguments to infer the dynamics of the term structure. Examples of this approach include: Vasicek [<xref ref-type="bibr" rid="scirp.61264-ref4">4</xref>] , Dothan [<xref ref-type="bibr" rid="scirp.61264-ref5">5</xref>] , Brennan and Schwartz [<xref ref-type="bibr" rid="scirp.61264-ref6">6</xref>] Cox, Ingersoll and Ross [<xref ref-type="bibr" rid="scirp.61264-ref7">7</xref>] , and Duffie and Kan [<xref ref-type="bibr" rid="scirp.61264-ref8">8</xref>] .</p><p>Unfortunately, in terms of the expedient assumptions about the nature of the random process driving the interest rates, the yield derived by those models have a specific functional form dependent only on a few parameters, and usually the observed yield curves exhibit more varied shapes than those justified by the equilibrium models.</p><p>In contrast to the equilibrium models, statistical techniques focusing on obtaining a continuing yield curve from cross-sectional coupon bond data based on curve fitting techniques are able to describe a richer variety of yield patterns in reality. The resulting term structure estimated from the statistical techniques can be directly put into the interest rate models such as the Hull [<xref ref-type="bibr" rid="scirp.61264-ref9">9</xref>] , and Heath [<xref ref-type="bibr" rid="scirp.61264-ref10">10</xref>] models, for pricing interest rate contingent claims. Since a coupon bond can be considered as a portfolio of discount bonds with maturities dates consistent with the coupon dates, the discount bond prices can thus be extracted from the actual coupon bond prices by statistical techniques.<sup>1</sup> These techniques can be broadly divided into two categories: the splines (interpolation methods) and the parsimonious function forms (see Alper [<xref ref-type="bibr" rid="scirp.61264-ref11">11</xref>] ).</p><sec id="s2_1"><title>2.1. Splines/Interpolation Models</title><p>Interpolation is a method of constructing new data points within the range of a discrete set of known data points (called knot points). The simplest method for interpolating between two points is by connecting them through a straight line. Some variations of linear interpolation are capable of ensuring a strictly decreasing curve of discount factors. However, all the variations of linear interpolation imply discontinuities in the forward rate curve.</p><p>In order to produce continuous forward rates curves, researchers introduced cubic methods of interpolation. An example of cubic interpolation algorithm is the cubic Hermite spline. Under cubic Hermite splines, the derivative of the data of each knot point is assumed to be known, and the interpolation function is required to be differentiable. Often, these derivatives will not be known, and will have to be estimated. One method for estimating these derivatives, described by de Boor [<xref ref-type="bibr" rid="scirp.61264-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.61264-ref13">13</xref>] as the Bessel method involves estimating the derivative though the use of a three point difference formula.</p><p>Unfortunately, all the traditional cubic methods are incapable of ensuring strictly positive forward rates, which are synonymous with non-decreasing discount factors, as shown by Hagan and West [<xref ref-type="bibr" rid="scirp.61264-ref14">14</xref>] . Furthermore, some cubic methods have an inherent lack of locality in the sense that a local perturbation of curve input data will cause ringing and cause changes in the data far away from the perturbed data point as shown by Anderson [<xref ref-type="bibr" rid="scirp.61264-ref15">15</xref>] .</p><p>All variations of linear interpolations were seen to produce discontinuities in the forward rate curve, whilst all variations of cubic interpolations were seen to be incapable of ensuring strictly decreasing discount factors. Non-decreasing discount factors imply arbitrage opportunities, whilst discontinuous forward rates unacceptable from an economic perspective (unless the discontinuities occur on or around meetings of monetary authorities).</p><p>To counter this, a monotone convex interpolation method was developed, which it is claimed to be capable of ensuring a positive and (mostly) continuous forward rate curve Hagan and West [<xref ref-type="bibr" rid="scirp.61264-ref14">14</xref>] . This method proposed by Hagan and West [<xref ref-type="bibr" rid="scirp.61264-ref14">14</xref>] , was specifically designed to interpolate yield curve data, and involves fitting a set of quadratic polynomials to a discrete set of estimated instantaneous forward rates. The method is designed such that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x12.png" xlink:type="simple"/></inline-formula> preserves the shape of the set of discrete forward rates. The monotone convex method was also seen to be capable of ensuring a strictly decreasing curve of discount factors. Unfortunately, the model depends heavily on an appropriate interpolation algorithm. In addition, it was discovered by du Preez [<xref ref-type="bibr" rid="scirp.61264-ref16">16</xref>] that there were specific conditions under which the interpolation function of the monotone convex interpolation would produce discontinuity of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x13.png" xlink:type="simple"/></inline-formula>.</p><p>This led to the monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x14.png" xlink:type="simple"/></inline-formula> method of interpolation, introduced by Preez [<xref ref-type="bibr" rid="scirp.61264-ref16">16</xref>] . Essentially, this method involves applying cubic Hermite interpolation to the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x15.png" xlink:type="simple"/></inline-formula> at the knot points i.e the values of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x16.png" xlink:type="simple"/></inline-formula> at the knot points, are estimated in manner which ensures positivity in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x17.png" xlink:type="simple"/></inline-formula>. Constructing an interpolating algorithm capable of preserving the monotonicity of the discount factors, was thus sufficient for ensuring positive forward rates.</p><p>Monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x18.png" xlink:type="simple"/></inline-formula> method is capable of ensuring a positive and continuous forward rate curve, and was designed to preserve the geometry of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x19.png" xlink:type="simple"/></inline-formula>. Monotonicity in the discount factors implies monotonicity in the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x20.png" xlink:type="simple"/></inline-formula> which is achieved by applying the work done in the field of shape preserving cubic interpolation, by authors such as de Boor [<xref ref-type="bibr" rid="scirp.61264-ref17">17</xref>] , Carlson and Fritsch [<xref ref-type="bibr" rid="scirp.61264-ref18">18</xref>] , Hyman [<xref ref-type="bibr" rid="scirp.61264-ref19">19</xref>] and Akima [<xref ref-type="bibr" rid="scirp.61264-ref20">20</xref>] . Apart from being an improvement of monotone convex method where it ensured positive forward rates, the monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x21.png" xlink:type="simple"/></inline-formula> method was also capable of ensuring continuity of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x22.png" xlink:type="simple"/></inline-formula>.</p><p>In the study by du Preez [<xref ref-type="bibr" rid="scirp.61264-ref16">16</xref>] , they found that the monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x23.png" xlink:type="simple"/></inline-formula> method to perfrom slightly better in terms of stability, and continuity of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x24.png" xlink:type="simple"/></inline-formula>, compared to monotone convex method. This suggests that when bootstrapping, the monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x25.png" xlink:type="simple"/></inline-formula> method could be the ideal method of interpolation. Unfortunately, monotone preserving method had the undesirable characteristic of not being differentiable at the knot-points.</p><p>Muthoni, Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref2">2</xref>] introduced a new method of interpolation, which will be an improvement of monotone preserving <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x26.png" xlink:type="simple"/></inline-formula> interpolation method suggested by du Preez [<xref ref-type="bibr" rid="scirp.61264-ref16">16</xref>] . They was done by removing the non-differentiability at the knot points in the aforementioned method, which is created by use of Hyman monotonicity constraint, which enforces monotonicity.</p></sec><sec id="s2_2"><title>2.2. Parsimonious Models</title><p>Parsimonious models specify parsimonious parameterizations of the discount function, spot rate or the implied forward rate. Moving from the cubic splines, Chambers [<xref ref-type="bibr" rid="scirp.61264-ref21">21</xref>] introduced the parsimonious function forms by considering an exponential polynomial to model the discount function. Nelson &amp; Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] followed shortly thereafter by choosing an exponential function with four unknown parameters to model the forward rate of U.S Treasury bills. By considering the three components that make up this function, Nelson &amp; Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] illustrated that it can be used to generate a variety of shapes for the forward rate curves and analytically solve for the spot rate. Moreover, the advantage of the classical Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model is that the three parameters may be interpreted as latent level, slope and curvatures factors. Diebold [<xref ref-type="bibr" rid="scirp.61264-ref22">22</xref>] , Modena [<xref ref-type="bibr" rid="scirp.61264-ref23">23</xref>] and Tam &amp; Yu [<xref ref-type="bibr" rid="scirp.61264-ref24">24</xref>] employed the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] interpolant to examine bond pricing with a dynamic latent factor approach and concluded that it was satisfactory.</p><p>Svensson [<xref ref-type="bibr" rid="scirp.61264-ref25">25</xref>] increased the flexibility of the original Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model by adding two extra parameters (Svensson [<xref ref-type="bibr" rid="scirp.61264-ref25">25</xref>] model) which allowed for a second “hump” in the forward rate curve. Later, Bliss [<xref ref-type="bibr" rid="scirp.61264-ref26">26</xref>] introduced the Extended Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] method, which introduced a new appropriating function with five parameters by extending the model developed by Nelson &amp; Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] . Bliss suggested that a six-parameter model can produce better results for fitting the term structure with longer maturities.</p><p>The Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model class has linear and non-linear parameters depending on the values assumed fixed. Due to this, these models have multiple local minima making model estimation difficult. Previous studies have widely discussed the estimation of Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model class and they are: Bolder [<xref ref-type="bibr" rid="scirp.61264-ref27">27</xref>] , Maria et al. [<xref ref-type="bibr" rid="scirp.61264-ref28">28</xref>] , Gilli [<xref ref-type="bibr" rid="scirp.61264-ref29">29</xref>] , Rezende [<xref ref-type="bibr" rid="scirp.61264-ref30">30</xref>] , Rosadi [<xref ref-type="bibr" rid="scirp.61264-ref31">31</xref>] , among others.</p><p>Muthoni et al. [<xref ref-type="bibr" rid="scirp.61264-ref3">3</xref>] estimated the Kenyan government bonds (KGBs) term structure of interest rates based on the parsimonious functions specifications , i.e. the four parameters Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model, the five parameters Svensson [<xref ref-type="bibr" rid="scirp.61264-ref25">25</xref>] model and the six parameters Rezende [<xref ref-type="bibr" rid="scirp.61264-ref30">30</xref>] model, known as Nelson-Siegel-Svensson model. The reason they chose the Nelson-Siegel family is that these models have substantial flexibility required to match the changing shape of the yield curve, yet they only use a few parameters. As noted by Diebold [<xref ref-type="bibr" rid="scirp.61264-ref22">22</xref>] , they can be used to predict the future level, slope, and curvature factors for bond portfolio investments purposes. After comparing the Nelson-Siegel classes of models, Muthoni, Onyango and Ongati [<xref ref-type="bibr" rid="scirp.61264-ref3">3</xref>] found Nelson Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] to be the superior model.</p></sec></sec><sec id="s3"><title>3. Empirical Methodology</title><sec id="s3_1"><title>3.1. Model Selection</title><sec id="s3_1_1"><title>3.1.1. The Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] Model</title><p>The Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model sets the instantaneous forward rate at maturity m given by the solution to a second order differential equation with unequal roots as follows:</p><disp-formula id="scirp.61264-formula1282"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x27.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula>. The model consists of four parameters: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula> m is the time to maturity of a given bond. Equation (1) consists of three parts: A constant, an exponential decay functional and Laguerre function. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula>is independent of m and as much, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x32.png" xlink:type="simple"/></inline-formula>is often interpreted as the level of long term interest rates. The exponential decay function approaches zero as m tends to infinity and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x33.png" xlink:type="simple"/></inline-formula> as m tends to zero. The effect of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x34.png" xlink:type="simple"/></inline-formula> is thus only felt at the short end of the curve. The Laguerre function on the other hand approaches zero as m tends to infinity, and as m tends to zero. The effect of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x35.png" xlink:type="simple"/></inline-formula> is thus only felt in the middle section of the curve, which implies that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x36.png" xlink:type="simple"/></inline-formula> adds a hump to the yield curve.</p><p>The spot rate functions under the model of Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] is as follows:</p><disp-formula id="scirp.61264-formula1283"><label>. (2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x37.png"  xlink:type="simple"/></disp-formula><p>From Equation (2) it follows that both the spot and forward rate function reduce to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x38.png" xlink:type="simple"/></inline-formula> as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x39.png" xlink:type="simple"/></inline-formula>. Furthermore, we have<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x40.png" xlink:type="simple"/></inline-formula>. Thus, in the absence of arbitrage, we must have that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x41.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x42.png" xlink:type="simple"/></inline-formula>.</p><p>Suppose we observe n zero coupon bonds, expiring at times<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula>. Let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula> denote the prices of these bonds. Note that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x45.png" xlink:type="simple"/></inline-formula> will imply the spot rate of interest corresponding to time <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x46.png" xlink:type="simple"/></inline-formula> for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x47.png" xlink:type="simple"/></inline-formula>. Let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x48.png" xlink:type="simple"/></inline-formula> denote these spot rates. If we assume that the values of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x49.png" xlink:type="simple"/></inline-formula> are known, then the Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model reduces to a linear model, which can be solved using linear regression.</p><p>Define:</p><disp-formula id="scirp.61264-formula1284"><label>. (3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x50.png"  xlink:type="simple"/></disp-formula><p>We would like to obtain a vector <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x51.png" xlink:type="simple"/></inline-formula> satisfying<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x52.png" xlink:type="simple"/></inline-formula>. By using ordinary least squares (OLS) estimation, we can solve <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x53.png" xlink:type="simple"/></inline-formula> as follows:</p><disp-formula id="scirp.61264-formula1285"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x54.png"  xlink:type="simple"/></disp-formula><p>Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] suggested the following procedure for calibrating their model:</p><p>1) Identify a set of possible values for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x55.png" xlink:type="simple"/></inline-formula></p><p>2) For each of these <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x56.png" xlink:type="simple"/></inline-formula> estimate B</p><p>3) For each of these <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x57.png" xlink:type="simple"/></inline-formula> and their corresponding B’s, estimate</p><disp-formula id="scirp.61264-formula1286"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x58.png"  xlink:type="simple"/></disp-formula><p>4) The optimal <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x59.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x60.png" xlink:type="simple"/></inline-formula> are those associated with the highest value of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x61.png" xlink:type="simple"/></inline-formula>.</p><p>The above method of calibration is known as the grid-search method. Alternatively, non-linear optimization techniques can be used to solve all four parameters simultaneously. However, such networks are very sensitive to starting values, implying a high probability of obtaining local optima. The estimated parameters obtained by using the grid search method behave erratically over time, and have large variances. The problems resulting from multi-colinearity depend on the time to maturity of the securities used to calibrate the model. Diebold [<xref ref-type="bibr" rid="scirp.61264-ref22">22</xref>] , attempted to address the multi-colinearity problem by fixing the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x62.png" xlink:type="simple"/></inline-formula> over time, which in some instances might not produce accurate results.</p><p>Due to the local-minima problem which makes model estimation difficult in the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model and the inadequacy of the calibration methods used so far, we propose NLS estimation with L-BFGS-B method optimization approach. This optimization method is an extension of the limited memory BFGS method (LM-BFGS or L-BFGS) which uses simple boundaries model, according to Zhu et al. [<xref ref-type="bibr" rid="scirp.61264-ref32">32</xref>] .</p><p>Using L-BGFS-B algorithm, we can estimate the above five parameters:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x63.png" xlink:type="simple"/></inline-formula>, embedded in the Nelson?Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model, and hence calculate the price of the bond using the following nonlinear constrained optimization estimation procedure based the Gauss-Newton numerical method:</p><disp-formula id="scirp.61264-formula1287"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x64.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x65.png" xlink:type="simple"/></inline-formula> is the price of bond i.</p></sec><sec id="s3_1_2"><title>3.1.2. Improvement of Monotone Convex Interpolation on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x66.png" xlink:type="simple"/></inline-formula></title><p>We start with a mesh of data points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x67.png" xlink:type="simple"/></inline-formula> (we will think of the x-values as time points on the x axis) and the corresponding y values are define as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x68.png" xlink:type="simple"/></inline-formula> for a generic but unknown function<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x69.png" xlink:type="simple"/></inline-formula>. Cubic splines are generally defined by piece-wise cubic polynomial that passes through consecutive points:</p><disp-formula id="scirp.61264-formula1288"><label>. (7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x70.png"  xlink:type="simple"/></disp-formula><p>With <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x71.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x72.png" xlink:type="simple"/></inline-formula> . We will use the following definitions:</p><disp-formula id="scirp.61264-formula1289"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x73.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1290"><label>. (9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x74.png"  xlink:type="simple"/></disp-formula><p>With <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x75.png" xlink:type="simple"/></inline-formula> The coefficients <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x76.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x77.png" xlink:type="simple"/></inline-formula> depends on the details of the method, and are related to the values of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x78.png" xlink:type="simple"/></inline-formula> and its derivatives at the node points. In general</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x79.png" xlink:type="simple"/></inline-formula>and so on (10)</p><p>where in the above equation, the prime denotes the derivative of the interpolating function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x80.png" xlink:type="simple"/></inline-formula> w.r.t. its argument t. Moreover given <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x81.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x82.png" xlink:type="simple"/></inline-formula>, we can express <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x83.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x84.png" xlink:type="simple"/></inline-formula> as follows:</p><disp-formula id="scirp.61264-formula1291"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x85.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1292"><label>. (12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x86.png"  xlink:type="simple"/></disp-formula><p>We can use Equation (4) to compute the following derivative:</p><disp-formula id="scirp.61264-formula1293"><label>. (13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x87.png"  xlink:type="simple"/></disp-formula><p>We have:</p><disp-formula id="scirp.61264-formula1294"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x88.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1295"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x89.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1296"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x90.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1297"><label>. (17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x91.png"  xlink:type="simple"/></disp-formula><p>Which depends on the matrix element<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula>. Here <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula> is the Kronecker delta, which is equal to one if <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x94.png" xlink:type="simple"/></inline-formula> and zero otherwise. Once the derivatives at the points, or equivalently the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x95.png" xlink:type="simple"/></inline-formula> coefficients, are specified, everything else is fixed. In particular we are interested in computing<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x96.png" xlink:type="simple"/></inline-formula>, then all the work will be in the calculation of the derivatives <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x97.png" xlink:type="simple"/></inline-formula> w.r.t.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x98.png" xlink:type="simple"/></inline-formula>.</p><p>This calculation is tricky if we use monotone preserving splines (or any other method which enforces monotonicity where the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x99.png" xlink:type="simple"/></inline-formula>s are non-differentiable functions of the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x100.png" xlink:type="simple"/></inline-formula>s (which involve the min and max functions). And this is where the novelty of this paper comes in.</p><p>Let us start by recalling the formulas for the<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x101.png" xlink:type="simple"/></inline-formula>’s in the monotone preserving cubic spline method as defined in the Hagan-West [<xref ref-type="bibr" rid="scirp.61264-ref14">14</xref>] . First of all, at the boundaries, we have:</p><disp-formula id="scirp.61264-formula1298"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x102.png"  xlink:type="simple"/></disp-formula><p>For the internal data, if the curve is not a monotone at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x103.png" xlink:type="simple"/></inline-formula>, i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x104.png" xlink:type="simple"/></inline-formula>, then the boundaries become:</p><disp-formula id="scirp.61264-formula1299"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x105.png"  xlink:type="simple"/></disp-formula><p>So that it will have a turning point there. Instead if the trend is a monotone at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x106.png" xlink:type="simple"/></inline-formula>, i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x107.png" xlink:type="simple"/></inline-formula>, then one defines:</p><disp-formula id="scirp.61264-formula1300"><label>. (20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x108.png"  xlink:type="simple"/></disp-formula><p>And:</p><disp-formula id="scirp.61264-formula1301"><label>. (21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x109.png"  xlink:type="simple"/></disp-formula><p>The former choice is made when the curve is increasing (positive slopes), the latter when decreasing (negative slopes). Equation (21) represents the monotonicity constraint introduced by Hyman and based on the Fritsch- Butland algorithm.</p><p>We can now move to the monotonicity constrain. What we need first is:</p><disp-formula id="scirp.61264-formula1302"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x110.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1303"><label>. (23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x111.png"  xlink:type="simple"/></disp-formula><p>The final step consists of putting all the information together to compute<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x112.png" xlink:type="simple"/></inline-formula>. Suppose first that the trend is increasing, i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x112.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x113.png" xlink:type="simple"/></inline-formula>. Using Equation (23) we find:</p><disp-formula id="scirp.61264-formula1304"><label>(24)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x114.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1305"><label>. (25)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x115.png"  xlink:type="simple"/></disp-formula><p>Let us now suppose that the trend is decreasing instead, i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x116.png" xlink:type="simple"/></inline-formula>. By Equation (23) we have:</p><disp-formula id="scirp.61264-formula1306"><label>(26)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x117.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1307"><label>. (27)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x118.png"  xlink:type="simple"/></disp-formula><p>It can be shown that for any i and j</p><disp-formula id="scirp.61264-formula1308"><label>(28)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x119.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1309"><label>. (29)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x120.png"  xlink:type="simple"/></disp-formula><p>This formula solves our problem of non-differentiability found in the monotone preserving convex on<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x121.png" xlink:type="simple"/></inline-formula>.</p></sec></sec><sec id="s3_2"><title>3.2. Liquidity-Weighted Function</title><p>In yield curve construction, errors are caused by two reasons: (a) curve fitting mistakes and (b) presence of liquidity premium. The errors due to curve fitting arise from the calculations and can be avoided. But the error due to the presence of liquidity premium is reflective of market conditions and one cannot ignore them. Since the reliability of the term structure estimation heavily depends on the precision of the market prices according to Subramanian [<xref ref-type="bibr" rid="scirp.61264-ref33">33</xref>] , liquid and illiquid securities are a heterogeneous class and including them both in the term structure estimation process poses problems. Illiquid bonds are traded at a premium to compensate for their undesirable attribute in terms of a low price. Assigning equal weights to both types of errors will give undue weight to the kind of error that creeps in due to curve fitting.</p><p>Subramanian [<xref ref-type="bibr" rid="scirp.61264-ref33">33</xref>] suggests a liquidity weighted objective function, which hypothesizes that a weighted error function (with weights based on liquidity) would lead to better estimation that equal weights to the squared errors of all securities. We therefore model the liquidity using a function with two factors: the volume of trade in a security and the number of trades in that security.</p><p>The weight of the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x122.png" xlink:type="simple"/></inline-formula> security <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x123.png" xlink:type="simple"/></inline-formula> is given by:</p><disp-formula id="scirp.61264-formula1310"><label>(30)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x124.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61264-formula1311"><label>(31)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x125.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x126.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x127.png" xlink:type="simple"/></inline-formula> are the volume of trade and the number of trades in the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x128.png" xlink:type="simple"/></inline-formula> security respectively, while <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x129.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x126.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x129.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x130.png" xlink:type="simple"/></inline-formula> are the maximum number of trades among all the securities traded for the day respectively.</p><p>As given in the Equation (30) and Equation (31) above, it ensures that the weights of the relative liquid securities would not be significantly different from each other. For the illiquid securities, however the weights would fall quickly as liquidity decreased.</p><p>The final error-minimizing function, which should equal to zero, is given by:</p><disp-formula id="scirp.61264-formula1312"><label>. (32)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x131.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_3"><title>3.3. Test Statistics</title><p>In academic literature, there are two distinct approaches used to indicate the term structure fitting performance. One is the flexibility of the curve (accuracy), and the other focuses on smoothness of the yield curve. Although there are numerical methods proposed to estimate the term structure, any method developed has to grapple with deciding the extent of the above trade-off. Hence it becomes a crucial issue to investigate how to reach a compromise between the flexibility and smoothness.</p><p>Three simple summary statistics which can be calculated for the flexibility of the estimated yield curve are the coefficient of determination, root mean squared percentage error, and root mean squared error . These are calculated as shown in the next four subsections.</p><sec id="s3_3_1"><title>3.3.1. The Coefficient of Determination (R<sup>2</sup>)</title><disp-formula id="scirp.61264-formula1313"><label>(33)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x132.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x133.png" xlink:type="simple"/></inline-formula> is the mean average price of all observed bonds, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x133.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x134.png" xlink:type="simple"/></inline-formula>is the model price of a bond i, n the number of bonds traded and k is the number of parameters needed to be estimated.</p><p>Roughly speaking, with the same analysis in regression, we associate a high value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x135.png" xlink:type="simple"/></inline-formula> with a good fit of the term structure and associate a low <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x135.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x136.png" xlink:type="simple"/></inline-formula> with a poor fit.</p></sec><sec id="s3_3_2"><title>3.3.2. Root Mean Squared Error (RMSE)</title><p>Denoted as the RMSE, a low value for this measure is assumed to indicate that the model is flexible, on average, and is able to fit the yield curve.</p><disp-formula id="scirp.61264-formula1314"><label>. (34)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x137.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_3_3"><title>3.3.3. Root Mean Squared Percentage Error (RMSPE)</title><p>Denoted as the RMSPE, a low value for this measure is also assumed to indicate that the model is flexible, on average, and is able to fit the yield curve.</p><disp-formula id="scirp.61264-formula1315"><label>. (35)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x138.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_3_4"><title>3.3.4. Testing for Smoothness</title><p>To test the smoothness of the estimated yield curve, we use a modified statistic suggested by Adams and Deventer [<xref ref-type="bibr" rid="scirp.61264-ref34">34</xref>] to reach the maximum smoothness for forward rate curve, and denote the smoothness (Z) for the estimated yield curve as:</p><disp-formula id="scirp.61264-formula1316"><label>. (36)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x139.png"  xlink:type="simple"/></disp-formula><p>Ideally, the value should equal to zero. The model with the least Z value is deemed to be the best.</p></sec></sec></sec><sec id="s4"><title>4. Empirical Results</title><sec id="s4_1"><title>4.1. Data</title><p>In Kenya, nearly all bond transactions take place on the OTC market. The data used in this study was supplied by the Central Bank of Kenya. The sample period contains 417 weekly data from January 2005 to December 2012. Weekly prices (every Friday) for 108 Kenyan Government Bonds (KGBs) with original maturity dates ranged from 2 to 30 years are obtained.</p></sec><sec id="s4_2"><title>4.2. Parameter Estimation</title><sec id="s4_2_1"><title>4.2.1. Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] Model</title><p><xref ref-type="table" rid="table1">Table 1</xref> lists the summary statistics of estimated parameters for the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model. It is seen that all estimated values for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x140.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x141.png" xlink:type="simple"/></inline-formula> are negative, which indicates that the yield curves generated by this model are all positively and upward sloping without a visible hump.</p></sec><sec id="s4_2_2"><title>4.2.2. The Spline Model</title><p><xref ref-type="table" rid="table2">Table 2</xref> lists the summary statistics of estimated parameters for the improved monotone preserving interpolation method on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x142.png" xlink:type="simple"/></inline-formula> Model.</p></sec></sec><sec id="s4_3"><title>4.3. Comparison of the Models</title><sec id="s4_3_1"><title>4.3.1. In terms of Accuracy</title><p>A direct comparison of the two models in <xref ref-type="table" rid="table3">Table 3</xref> appears to favor the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] .</p></sec><sec id="s4_3_2"><title>4.3.2. In Terms of Smoothness</title><p>In the academic literature, it has been observed that when comparing alternative methods of term structure fitting models, there is usually a trade-off between flexibility and smoothness. In <xref ref-type="table" rid="table4">Table 4</xref>, the spline seems to have the best fit in flexibility for fitting the term structure of KGB market. However, as shown in <xref ref-type="table" rid="table4">Table 4</xref>, the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] Model is superior to the spline, which shows that the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] results to a relatively smoother yield curve, compared to the other model.</p></sec><sec id="s4_3_3"><title>4.3.3. In Terms of the Spot Curves</title><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>, we see the spot curve generated by the Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model, which shows character-</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Results for estimated parameters for Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Year</th><th align="center" valign="middle"  colspan="4"  >Parameters</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x143.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x144.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x145.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x146.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >2005</td><td align="center" valign="middle" >0.0587</td><td align="center" valign="middle" >−0.0115</td><td align="center" valign="middle" >−0.0040</td><td align="center" valign="middle" >4.6089</td></tr><tr><td align="center" valign="middle" >2006</td><td align="center" valign="middle" >0.0463</td><td align="center" valign="middle" >−0.0090</td><td align="center" valign="middle" >−0.0127</td><td align="center" valign="middle" >3.2148</td></tr><tr><td align="center" valign="middle" >2007</td><td align="center" valign="middle" >0.0454</td><td align="center" valign="middle" >−0.0133</td><td align="center" valign="middle" >−0.0388</td><td align="center" valign="middle" >1.8327</td></tr><tr><td align="center" valign="middle" >2008</td><td align="center" valign="middle" >0.0356</td><td align="center" valign="middle" >−0.0183</td><td align="center" valign="middle" >−0.0425</td><td align="center" valign="middle" >2.1674</td></tr><tr><td align="center" valign="middle" >2009</td><td align="center" valign="middle" >0.0358</td><td align="center" valign="middle" >−0.0164</td><td align="center" valign="middle" >−0.0493</td><td align="center" valign="middle" >1.0232</td></tr><tr><td align="center" valign="middle" >2010</td><td align="center" valign="middle" >0.0225</td><td align="center" valign="middle" >−0.0085</td><td align="center" valign="middle" >−0.0819</td><td align="center" valign="middle" >0.6237</td></tr><tr><td align="center" valign="middle" >2011</td><td align="center" valign="middle" >0.0225</td><td align="center" valign="middle" >−0.0085</td><td align="center" valign="middle" >−0.0819</td><td align="center" valign="middle" >0.6237</td></tr><tr><td align="center" valign="middle" >2012</td><td align="center" valign="middle" >0.0241</td><td align="center" valign="middle" >−0.091</td><td align="center" valign="middle" >−0.0213</td><td align="center" valign="middle" >1.0595</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Results for estimated parameters for improved monotone preserving interpolation method on<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x147.png" xlink:type="simple"/></inline-formula></title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Year</th><th align="center" valign="middle"  colspan="4"  >parameters</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x148.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x149.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x150.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x151.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >2005</td><td align="center" valign="middle" >0.0588</td><td align="center" valign="middle" >−0.0125</td><td align="center" valign="middle" >0.0316</td><td align="center" valign="middle" >−0.0365</td></tr><tr><td align="center" valign="middle" >2006</td><td align="center" valign="middle" >0.0477</td><td align="center" valign="middle" >−0.0152</td><td align="center" valign="middle" >−0.0034</td><td align="center" valign="middle" >0.0010</td></tr><tr><td align="center" valign="middle" >2007</td><td align="center" valign="middle" >0.0400</td><td align="center" valign="middle" >−0.0284</td><td align="center" valign="middle" >0.0701</td><td align="center" valign="middle" >−0.0410</td></tr><tr><td align="center" valign="middle" >2008</td><td align="center" valign="middle" >0.0355</td><td align="center" valign="middle" >−0.0293</td><td align="center" valign="middle" >0.0070</td><td align="center" valign="middle" >−0.0189</td></tr><tr><td align="center" valign="middle" >2009</td><td align="center" valign="middle" >0.0359</td><td align="center" valign="middle" >−0.0308</td><td align="center" valign="middle" >−0.0068</td><td align="center" valign="middle" >0.0115</td></tr><tr><td align="center" valign="middle" >2010</td><td align="center" valign="middle" >0.0232</td><td align="center" valign="middle" >−0.0022</td><td align="center" valign="middle" >−0.0074</td><td align="center" valign="middle" >−0.0110</td></tr><tr><td align="center" valign="middle" >2011</td><td align="center" valign="middle" >0.0232</td><td align="center" valign="middle" >−0.0022</td><td align="center" valign="middle" >−0.0074</td><td align="center" valign="middle" >−0.0110</td></tr><tr><td align="center" valign="middle" >2012</td><td align="center" valign="middle" >0.0279</td><td align="center" valign="middle" >−0.0061</td><td align="center" valign="middle" >−0.0074</td><td align="center" valign="middle" >−0.0055</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Summary statistics for fitting performance in terms of accuracy</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  ></th><th align="center" valign="middle"  colspan="2"  >RMSPE</th><th align="center" valign="middle"  colspan="2"  >RMSE</th><th align="center" valign="middle"  colspan="2"  ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x152.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Nelson-Siegel</td><td align="center" valign="middle" >Spline Method</td><td align="center" valign="middle" >Nelson-Siegel</td><td align="center" valign="middle" >Spline Method</td><td align="center" valign="middle" >Nelson-Siegel</td><td align="center" valign="middle" >Spline Method</td></tr><tr><td align="center" valign="middle" >mean</td><td align="center" valign="middle" >0.0144</td><td align="center" valign="middle" >0.0122</td><td align="center" valign="middle" >1.6318</td><td align="center" valign="middle" >1.4043</td><td align="center" valign="middle" >0.9654</td><td align="center" valign="middle" >0.9738</td></tr><tr><td align="center" valign="middle" >Std.dev</td><td align="center" valign="middle" >0.0066</td><td align="center" valign="middle" >0.0051</td><td align="center" valign="middle" >0.7752</td><td align="center" valign="middle" >0.6033</td><td align="center" valign="middle" >0.0357</td><td align="center" valign="middle" >0.0299</td></tr><tr><td align="center" valign="middle" >Max</td><td align="center" valign="middle" >0.0413</td><td align="center" valign="middle" >0.0281</td><td align="center" valign="middle" >4.6311</td><td align="center" valign="middle" >3.3047</td><td align="center" valign="middle" >0.9973</td><td align="center" valign="middle" >0.9979</td></tr><tr><td align="center" valign="middle" >Min</td><td align="center" valign="middle" >0.0050</td><td align="center" valign="middle" >0.0041</td><td align="center" valign="middle" >0.5311</td><td align="center" valign="middle" >0.4363</td><td align="center" valign="middle" >0.8015</td><td align="center" valign="middle" >0.8219</td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Summary Statistics for fitting performance in terms of smoothness</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Model</th><th align="center" valign="middle"  colspan="2"  >With liquidity constraint</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x153.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Smoothness: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x154.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>]</td><td align="center" valign="middle" >0.9654</td><td align="center" valign="middle" >4.9822</td></tr><tr><td align="center" valign="middle" >Spline (interpolation)</td><td align="center" valign="middle" >0.9738</td><td align="center" valign="middle" >10.7467</td></tr></tbody></table></table-wrap><p>ristics of normal curve.</p><p>In <xref ref-type="fig" rid="fig2">Figure 2</xref>, we see that the splines produce a curve which initially is increasing and then suddenly becomes flat after time 10, at a constant yield rate of 1.40%. This does not depict normal behavior of yield curves.</p></sec><sec id="s4_3_4"><title>4.3.4. In Terms of Pricing Back the Securities</title><p>In <xref ref-type="fig" rid="fig3">Figure 3</xref>, we see the Nelson and Siegel model [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] prices back the securities but not with as much accuracy as the spline curve does, as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Nelson and siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] curve</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x155.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Splines curve</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x156.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] </title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x157.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Splines</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x158.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> The Nelson-Siegel model [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] </title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x159.png"/></fig></sec><sec id="s4_3_5"><title>4.3.5. In terms of the Discount Curve</title><p>In <xref ref-type="fig" rid="fig5">Figure 5</xref>, we see that the Nelson and Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model is able to produce a decreasing discount curve, which is a very important characteristic of a yield curve because it shows not only monotonicity, but is also sensible from an economic perspective. When we compare with <xref ref-type="fig" rid="fig6">Figure 6</xref>, we see that the discount curve is decreasing in the short to middle terms, with a little hitch at times 10 - 12, 16 - 28 and 29 - 31, after which it starts increasing. This curve lacks monotonicity and therefore does not make much economic sense.</p></sec></sec></sec><sec id="s5"><title>5. Conclusion and Discussion of Results</title><p>The objective of this paper was to compare the performance of the improved monotone preserving interpolation method on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x160.png" xlink:type="simple"/></inline-formula> against the Nelson &amp; Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] in terms of several performance yard sticks. These yard sticks were: 1) accuracy, 2) smoothness, 3) the non-negativity and continuity of forward and spot curves, 4) pricing back of securities and 5) the monotonicity of the discount curve.</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Splines discount curve</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1490360x161.png"/></fig><p>In terms of accuracy, we see that the spline method does better than the parametric method in that it gives an accuracy of 97.37% compared to an accuracy of 96.54% by the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model. We come to the same conclusion when we compare the two models using the test statistics of accuracy in that the spline does better than the parametric model.</p><p>However, when it comes to the test of smoothness, we see that Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model performs much better with a lower Z value of 4.9822 compared to the spline’s value of 10.7467. Smoothness of the curve is extremely important in that it points towards differentiability and continuity of the curve.</p><p>When we compare the spot and the forward curves, we see that Nelson-Siegel gives us better curves (normal curves) which reflect reality, compared to the resulting splines’ curve which increases with time initially, then abruptly becomes static at a given yield rate. This behavior is not realistic. We come to the same conclusion (that the parametric is better than the spline) when we compare the two in terms of pricing back the fixed income securities in that we see an almost perfect pricing back of the securities when we use the parametric model.</p><p>When we compare the two in terms of monotonicity, a very important concept in both Mathematical Finance and Economics, we see again that Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] performs better than the spline. It results to a strictly decreasing discount curve, compared to the decreasing spline curve which starts increasing in the long term (after 25 years).</p><p>After considering all the factors at hand, we come to a conclusion that the parametric model (Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] ) is the proper model to be used in NSE, and consequently, in the East African securities Markets.</p></sec><sec id="s6"><title>Acknowledgements</title><p>I would like to acknowledge the academic guidance given to me by my supervisors, Prof. Silas Onyango, Prof. Omolo Ongati and an academic friend, Prof. Michael Ingleby. I would like to also thank the Institute of Mathematical Sciences, in particular its Dean, Prof. Vitalis P. Onyango-Otieno for making this possible. On the same breath, I would like to thank Strathmore University, and in particular, the Vice Chancellor, Prof. John Odhiambo for all the support accorded to me. Finally, I would like to make a special mention of my husband, Cosmas Kamuyu for being my best friend and making this publication possible through encouragement, emotional support and also financial support. Thank you.</p></sec><sec id="s7"><title>Cite this paper</title><p>Lucy Muthoni, (2015) In Search of the Best Zero Coupon Yield Curve for Nairobi Securities Exchange: Interpolation Methods vs. Parametric Models. Journal of Mathematical Finance,05,360-376. doi: 10.4236/jmf.2015.54031</p></sec><sec id="s8"><title>Appendix 1: The L-BFGS-B Algorithm</title>A.1. Introduction<p>The problem addressed is to find a local minimizer of the non-smooth minimization problem.</p><disp-formula id="scirp.61264-formula1317"><label>(A1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x162.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x163.png" xlink:type="simple"/></inline-formula> is continuous but not differentiable anywhere and n is large. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x163.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x164.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x163.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x165.png" xlink:type="simple"/></inline-formula> are respectively an upper limit and; lower limit parameters. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x163.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x166.png" xlink:type="simple"/></inline-formula>is NLS (Non Linear Schr&#246;dinger) function of residual functions of Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model class and x is a parameter of the Nelson-Siegel [<xref ref-type="bibr" rid="scirp.61264-ref1">1</xref>] model class.</p><p>The L-BFGS-B algorithm by Zhu et al. [<xref ref-type="bibr" rid="scirp.61264-ref32">32</xref>] is a standard method for solving large instances of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x167.png" xlink:type="simple"/></inline-formula> when f is a</p><p>smooth function, typically twice differentiable. The name BFGS stands for Broyden, Fletcher, and Goldfarb and Shanno, the originators of the BFGS quasi-Newton algorithm for unconstrained optimization discovered and published independently by them in 1970 [Broyden [<xref ref-type="bibr" rid="scirp.61264-ref35">35</xref>] , Fletcher [<xref ref-type="bibr" rid="scirp.61264-ref36">36</xref>] , Goldfarb [<xref ref-type="bibr" rid="scirp.61264-ref37">37</xref>] and Shanno [<xref ref-type="bibr" rid="scirp.61264-ref38">38</xref>] . This method requires storing and updating a matrix which approximates the inverse of the Hessian <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x168.png" xlink:type="simple"/></inline-formula> and hence requires <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x168.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x169.png" xlink:type="simple"/></inline-formula> operations per iteration.</p><p>According to Nocedal [<xref ref-type="bibr" rid="scirp.61264-ref39">39</xref>] , the L-BFGS variant where the L stands for “Limited-Memory” and also for “Large” problems, is based on BFGS but requires only <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x170.png" xlink:type="simple"/></inline-formula> operations per iteration, and less memory. Instead of storing the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x171.png" xlink:type="simple"/></inline-formula> Hessian approximations, L-BFGS stores only m vectors of dimesion n, where m is a number much smaller than n. Finally, the last letter B in L-BFGS stands for bounds, meaning the lower and upper bounds <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x171.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x172.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x171.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x172.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x173.png" xlink:type="simple"/></inline-formula>. The L-BFGS-B algorithm is implemented in a FORTRAN software package, according to by Zhu et al. [<xref ref-type="bibr" rid="scirp.61264-ref32">32</xref>] . We discuss how to modify the algorithm for non-smooth functions.</p>A.1.1. BFGS<p>BFGS is standard tool for optimization of smooth functions. It is a line search method. The search direction is of type <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x175.png" xlink:type="simple"/></inline-formula> where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x175.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x176.png" xlink:type="simple"/></inline-formula> approximation to the inverse Hessian of f.<sup>2</sup> This <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x175.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x176.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x177.png" xlink:type="simple"/></inline-formula> step approximation is calculated via the BFGS formula.</p><disp-formula id="scirp.61264-formula1318"><label>(A2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x178.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x179.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x179.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x180.png" xlink:type="simple"/></inline-formula>. BFGS exhibits super-linear convergence on generic problems but it requires <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x179.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x180.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x181.png" xlink:type="simple"/></inline-formula> operations per iteration, according to Wright et al. [<xref ref-type="bibr" rid="scirp.61264-ref40">40</xref>] .</p><p>In the case of non-smooth functions, BFGS typically succeeds in finding a local minimizer, as indicated by Overton et al. [<xref ref-type="bibr" rid="scirp.61264-ref41">41</xref>] . However, this requires some attention to the line search conditions. This conditions are known as the Armijo and weak Wolfe line search conditions and they are a set of inequalities used for computation of an appropriate step length that reduces the objective function” sufficiently”</p>A.1.2. L-BFGS<p>L-BFGS stands for Limited-memory BFGS. This algorithm approximates BFGS using only a limited amount of computer memory to update an approximation to the inverse of the Hessian of f. Instead of storing a dense <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x182.png" xlink:type="simple"/></inline-formula> matrix, L-BFGS keeps a record of the last m is a small number that is chosen in advance. For this reason the first m iterations of BFGS and L-BFGS produce exactly the same search directions if the initial approximation of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x182.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x183.png" xlink:type="simple"/></inline-formula> is set to the identity matrix.</p><p>Due to this construction, the L-BFGS algorithm is less computationally intensive and requires only <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x184.png" xlink:type="simple"/></inline-formula> operations per iteration. So it is much better suited for problems where the number of dimensions n is large.</p>A.1.3. L-BFGS-B<p>Finally L-BFGS-B is an extension of L-BFGS. The B stands for the inclusion of Boundaries. L-BFGS-B requires two extra steps on top of L-BFGS. First, there is a step called gradient projection that reduces the dimensionality of the problem. Depending on the problem, the gradient projection could potentially save a lot of iterations by eliminating those variables that are on their bounds at the optimum reducing the initial dimensionality of the problem and the number of iterations and running time. After this, gradient projection comes to second step of subspace minimization. During the subspace minimization phase, an approximate quadratic model of (A1) is solved iteratively in a similar way that the original L-BFGS algorithm is solved. The only difference is that the step length is restricted as much as necessary in order to remain within the lu-box defined by Equation (A1).</p>A.1.4. Gradient Projection<p>The L-BFGS-B algorithm was designed for the case when n is large and f is smooth. Its first step is the gradient projection similar to the one outlined in Conn, Gould, and Toint [<xref ref-type="bibr" rid="scirp.61264-ref42">42</xref>] and Toraldo, Jorge and Gerardo [<xref ref-type="bibr" rid="scirp.61264-ref43">43</xref>] , which is used to determine an active set corresponding to those variables that are on either their lower or upper bounds. The active set is defined at point is:</p><disp-formula id="scirp.61264-formula1319"><label>(A3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x185.png"  xlink:type="simple"/></disp-formula><p>Working with this active set is more efficient in large scale problems. A pure line search algorithm would have to choose to step length short enough to remain within the box defined by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x186.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x186.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x187.png" xlink:type="simple"/></inline-formula>. So if at the optimum, a large number <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x186.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x187.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x188.png" xlink:type="simple"/></inline-formula> of variables are either on the lower or upper bound, as many as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x186.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x187.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x188.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x189.png" xlink:type="simple"/></inline-formula> of iterations might be needed. Gradient projection tries to reduce this number of iterations. In the best case, only one iteration is needed instead of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x186.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x187.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x188.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x189.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x190.png" xlink:type="simple"/></inline-formula>.</p><p>Gradient projections works on the linear part of the approximation model:</p><disp-formula id="scirp.61264-formula1320"><label>(A4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1490360x191.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x192.png" xlink:type="simple"/></inline-formula> is a L-BFGS-B approximation to the Hessian <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x192.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x193.png" xlink:type="simple"/></inline-formula> stored in the implicit way defined by L-BFGS.</p><p>In this first stage of the algorithm a piece-wise linear path starts at the current point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x194.png" xlink:type="simple"/></inline-formula> in the direction<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x194.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x195.png" xlink:type="simple"/></inline-formula>. Whenever this direction encounters one of the constraints the path runs corners in order to remain feasible. The path is nothing but feasible piece-wise projection of the negative gradient direction on the constraint box determined by the values l and u. At the end of this stage, the value of x that minimizes <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x194.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x195.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x196.png" xlink:type="simple"/></inline-formula> restricted to this piece-wise gradient path is known as the “Cauchy point”<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x194.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x195.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x196.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x197.png" xlink:type="simple"/></inline-formula>.</p><p>From this description of the estimation and optimization, following steps can be summarized:</p><p>・ Find the residual function (r) of each model.</p><p>・ Find NLS estimation, i.e. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x198.png" xlink:type="simple"/></inline-formula>of each model.</p><p>・ Find the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x199.png" xlink:type="simple"/></inline-formula> matrix value for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x199.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x200.png" xlink:type="simple"/></inline-formula>, p is the number of parameters estimated in each model.</p><p>・ Find the initial value of parameter vector with rank<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x201.png" xlink:type="simple"/></inline-formula>, p is the number of parameters estimated in each model.</p><p>・ Find gradient from step 2 with every parameter in models. e.g.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x202.png" xlink:type="simple"/></inline-formula>.</p><p>・ Substitute the initial value of the parameter (step 3) to gradient of step 5 with result. e.g.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x203.png" xlink:type="simple"/></inline-formula>.</p><p>・ Find the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x204.png" xlink:type="simple"/></inline-formula></p><p>Then we find the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x205.png" xlink:type="simple"/></inline-formula> so it will obtain of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x206.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x206.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1490360x207.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s9"><title>NOTES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.61264-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Nelson, C.R. and Siegel, A.F. (1987) Parsimonious Modelling of Yield Curves. Journal of Business, 60, 473-489. &lt;/br&gt;http://dx.doi.org/10.1086/296409</mixed-citation></ref><ref id="scirp.61264-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Muthoni, L., Onyango, S. and Ongati, O. (2015) Construction of Nominal Yield Curve for Nairobi Securities Exchange: An Improvement on Monotone Preserving Interpolation Method on r(t)t. Journal of Mathematical Finance.</mixed-citation></ref><ref id="scirp.61264-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Muthoni, L., Onyango, S. and Ongati, O. (2015) Extraction of Zero Coupon Yield Curve for Nairobi Securities Exchange: Finding the Best Parametric Model for East African Securities Markets. SIAM Journal on Financial Mathematics.</mixed-citation></ref><ref id="scirp.61264-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Vasiceck, O. (1977) An Equilibrium Characterization of the Term Structure. Journal of Financial Economies, 5, 177-188. &lt;/br&gt;http://dx.doi.org/10.1016/0304-405X(77)90016-2</mixed-citation></ref><ref id="scirp.61264-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Dothan, L. (1978) On the Term Structure of Interest Rates. Journal of Financial Economies, 6, 59-69. &lt;/br&gt;http://dx.doi.org/10.1016/0304-405X(78)90020-X</mixed-citation></ref><ref id="scirp.61264-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Brennan, M.J. and Schwartz, E.S. (1979) A Continuous Time Approach to the Pricing of Bonds. Journal of Banking and Finance, 3, 133-156.&lt;/br&gt; http://dx.doi.org/10.1016/0378-4266(79)90011-6</mixed-citation></ref><ref id="scirp.61264-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Cox, J.C., Ingersoll Jr., J.E. and Ross, S.A. (1985) A Theory of the Term Structure of Interest Rates. Econometrica, 53, 385-408.</mixed-citation></ref><ref id="scirp.61264-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Duffie, D. and Kan, R. (1996) A Yield Factor Model of Interest Rates. Mathematical Finance, 6, 379-406. &lt;/br&gt;http://dx.doi.org/10.1111/j.1467-9965.1996.tb00123.x</mixed-citation></ref><ref id="scirp.61264-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Hull, J. and White, A. (1990) Pricing Interest Rate Derivatives Securities. Review of Financial Studies, 3, 573-592. &lt;/br&gt;http://dx.doi.org/10.1093/rfs/3.4.573</mixed-citation></ref><ref id="scirp.61264-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Heath, D., Jarrow, R. and Morton, A. (1992) Bond Pricing and the Term Structure of Interest Rates: A New Methodology for Contigent Claim Valuation. Econometrica, 60, 77-105. &lt;/br&gt;http://dx.doi.org/10.2307/2951677</mixed-citation></ref><ref id="scirp.61264-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Alper, C.E., Akdemir, A. and Kazimov, K. (2004) Estimating the Term Structure of Government Securities in Turkey. Bogazaci University Research Papers: ISS/EC-2004-03. &lt;/br&gt;http://dx.doi.org/10.2139/ssrn.578921</mixed-citation></ref><ref id="scirp.61264-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">de Boor, C. (1977) Package for Calculating with B-Splines. SIAM Journal on Numerical Analysis, 14, 441-472.&lt;/br&gt;http://dx.doi.org/10.1137/0714026</mixed-citation></ref><ref id="scirp.61264-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">de Boor, C. (1978) A Practical Guide to Splines. Springer-Verlag, New York. &lt;/br&gt;http://dx.doi.org/10.1007/978-1-4612-6333-3</mixed-citation></ref></ref-list></back></article>