• No results found

Interpolation of the yield curve

N/A
N/A
Protected

Academic year: 2022

Share "Interpolation of the yield curve"

Copied!
43
0
0

Loading.... (view fulltext now)

Full text

(1)

U.U.D.M. Project Report 2020:49

Examensarbete i matematik, 15 hp Handledare: Maciej Klimek

Examinator: Veronica Crispin Quinonez September 2020

Department of Mathematics

Interpolation of the yield curve

Gustaf Dehlbom

(2)
(3)

Abstract

In this thesis we study the yield curve and the properties of it. The thesis gives an introduction to what the yield curve is, the properties of it and the important financial concepts related to it.

Furthermore, the monotone convex method is presented, a method specifically developed for finance. In particular how it works, what mathematical properties it focuses on and how it is used to construct the yield curve.

(4)

Contents

1 Introduction 5

2 Background 6

2.1 Bonds . . . 6

2.2 Yield to maturity . . . 7

2.3 Yield curve . . . 7

2.3.1 Normal . . . 9

2.3.2 Inverted . . . 10

2.3.3 Flat . . . 11

2.4 Spot rate . . . 11

2.4.1 Zero-coupon rate . . . 12

2.5 Discount factors . . . 12

2.6 Forward rates . . . 13

2.6.1 Useful properties of forward rates . . . 14

2.7 Bootstrapping . . . 14

3 The Monotone Convex Method 17 3.1 Interpolation of forward rates . . . 17

3.1.1 Calculating f0 . . . 18

3.1.2 Calculating fi . . . 19

3.1.3 Calculating fn . . . 20

3.2 Ensuring monotonicity . . . 22

3.2.1 Sector (i) . . . 25

3.2.2 Sector (ii) . . . 26

3.2.3 Sector (iii) . . . 27

3.2.4 Sector (iv) . . . 28

3.3 Modifying g . . . 28

3.3.1 Modifications of (ii) . . . 28

3.3.2 Modification of (iii) . . . 30

3.3.3 Modification of (iv) . . . 31

3.4 Ensuring positivity . . . 32

3.4.1 Collaring f . . . 34

3.5 Summary . . . 35

(5)

4 Example 35

4.1 Bootstrapping our yield curve . . . 36

4.2 Enforcing monotonicity . . . 37

4.3 Defining the interpolation function . . . 39

4.4 Recovering the risk free rate function . . . 39

5 Conclusions 40

(6)

1 Introduction

The yield curve is the term structure of interest rates and is defined as the relationship between the maturity of a zero-coupon bond and the yield to ma- turity. This plot has a wide range of uses within the financial market where the main purpose consists of valuating various bonds, something that will de- scribe later in this thesis. When constructing the yield curve we begin with a set of discrete data points or financial instruments which we are looking to interpolate. This can however be done in many different ways, especially in regard to what financial instrument we use [10]. It is therefore interesting to look at one of the popular methods and see what makes it beneficial and how.

Most of the popular interpolation algorithms are not developed for finance and this can cause problems. If we for example plot a yield curve using a linear interpolation to compare different bonds it can be problematic. It does not necessarily mean that it is a bad method, it would however be a poor representation of the financial market because of how dynamic and stochastic it is [8]. In addition it could create an arbitrage opportunity.

An arbitrage opportunity is a type of risk-free investment that can occur if e.g. there is a temporary price difference between similar financial instru- ments. It means that an arbitrageur can make profits without having to risk his or her own money. An illustrative example of this would be if the govern- ment is purchasing gold at the price x whilst a mining company is selling at the price y where y < x. An arbitrageur can then simultaneously purchase at a price y and sell at the price x for an immediate profit of x−y. Arbitrage can happen in various ways, especially when constructing new data points, which is why a good method for constructing a yield curve should prevent this.

Since the yield curve can be constructed with different algorithms, with many of them being intended for engineering or physics [4], it is interesting to look at a popular method developed for the financial market. This article will study the monotone convex method for constructing the yield curve.

(7)

2 Background

2.1 Bonds

A bond is a type of obligation usually issued by the government or large corporations. The basic principle of a bond is that an investor lends money to e.g. one of the above mentioned. The bond has a face value F which is the amount of money the bond pays at the date of maturity. A bond usually has coupon payments C which is annual payments to the investor consisting of a percentage of the face value. The coupon payments can also be divided up in coupon periods m during the year which then would pay out Cm at each m in time. If we for example look at a 10% coupon bond with a face value of 500$. The coupon bond will yield the value of 50$ per year [8].

A bond without coupons is called a zero-coupon bond. The difference com- pared to a regular coupon bond is that the zero-coupon bond has no periodic coupon payments which means that the investor solely buys the face value of the bond.

Bonds are categorized into different ratings which shows the risk of the investment. In USA there are primarily two companies that post these ratings, Moody’s and Standard & Poor’s. The ratings is classified as:

Grade Standard & Poor’s Moody’s

High grade AAA Aaa

AA Aa

Medium grade A A

BBB Baa

Speculative grade BB Ba

B B

Default danger CCC Caa

CC Ca

C C

D

Table 1: Bond rating classification [8, p. 52]

As seen in the table above the bonds rates are quite similar in their notations

(8)

from triple-A (AAA) to C or D. The grades provide a reflection of the in- vestment security and cost of bonds. Higher rated bonds will be more secure to invest in but will also have lower yield. David Luenberger (1998) denotes the high and medium grades as investment grade and the speculative grades and lower as junk bonds. From now on this article will use the notations of Standard’s and Poor’s. [8]

2.2 Yield to maturity

When investing in bonds, yield to maturity (YTM) is used to calculate the rate of return of the bonds current price P [8, p. 52]. As previously mentioned a bond can either consist of coupons being paid annually over m periods or with the face value as the only cash flow (zero-coupon). Regardless of what bond it is, the interest on all of the cash flows should be equal to the bonds current price.

We can look at this as a compounded interest. If we purchase a 10–year coupon bond and hold it until maturity. The simple interest of this would be to add all the stream of payments and divide it with the current price.

This will however not account for the embedded interest rates from the cash flows, or perhaps more commonly known as interest on interest. Thus when calculating the YTM, it is assumed that each cash flow is reinvested at the current interest rate.

The following formula can be used to calculate the YTM from a bond with face value F , coupon payments C, m number of coupon payments and n remaining payments:

P = F

[1 + Y T Mm ]n + C Y T M

1 − 1 [1 + Y T Mm ]n

!

(1)

2.3 Yield curve

A yield curve is a plot depicting yield as a function of time to maturity.

When looking at the yield curve for the highest rated zero-coupon bonds it is denoted as the term structure of interest rates. The most important usage for the yield curve is to evaluate the bond market. If we revisit table 1 and consider an AAA-rated bond. There exists a yield curve associated

(9)

with this bonds quality which in turn can be used to evaluate and compare it to other AAA-rated bonds [8]. For instance if you find a 30 year bond on the secondary market that has F = 1000$ and C = 2%. Since the bond was issued the interest rates has increased and the market now offers similar 30-year bonds but with C = 3%. It would thus be valued at a lower price compared to the similar bonds at present date.

It is not only the present market investors want to evaluate. The yield curve also gives a good indication of what will happen in the future. As later will be explained the yield curve can have different shapes which indicates what the future market will look like [3]. An example of this is predicting future recessions. There is a clear correlation between the shape of the curve and recessions, which can be shown empirically. For instance if a government wants to slow down the economy because they anticipate a recession they will flatten the yield curve [1]. A good example of this would be to look at the yield curves issued by the US Treasury before, during and after the financial crisis 2008.

In the next three subsections, the three most common shapes of the yield curve will be outlined. There are three types of shapes generally discussed when analyzing a yield curve, normal, inverted or flat.

(10)

2.3.1 Normal

The normal shape is a gradually rising curve and the most common of the three. It can be summarized with the short term rates being lower and long term rates higher. It is typically a sign of a growing economy.

Figure 1: a normal yield curve

(11)

2.3.2 Inverted

The inverted yield curve occur when the short-term bonds have higher yields than long term. Luenberger explains this as an occurrence when the short- term yields increase rapidly and investors interpret this as a temporary raise which results in the long-term rates staying the same [8].

Figure 2: an inverted yield curve

(12)

2.3.3 Flat

A flat yield curve has a small or no difference between the short term and long term rates. It is most commonly looked at as a transition between a normal and inverted shaped yield curve. It could also be looked as an indication that the market for long term bonds is less desirable [2].

Figure 3: a flat yield curve

2.4 Spot rate

The spot rate st is defined as the rate of interest for e.g. assets or money, that are held from t = 0 to t. In simpler terms it can be explained as the rate of return from a single cash-flow invested at present time [3]. The spot rate is based of the current market value which is heavenly influenced by supply and demand. It can therefore vary on a daily basis. The spot rates can be calculated using the three following compounding conventions for yearly, m periods or continuously [8, p. 74].

• Spot rates compounded yearly

(1 + st)t (2)

(13)

• Spot rates compounded m periods per year (1 + st

m)mt where mt ∈ Z (3)

• Continuously compounded spot rates

estt (4)

2.4.1 Zero-coupon rate

A similar term called zero-coupon rate or zero rate is often used synony- mously with the spot rate [3]. The zero-coupon rate is instead used when we are looking at zero-coupon bonds. These rates can be extracted from a method called bootstrapping, which will be described later in this article.

When these rates have been extracted we can plot them as a function of maturity to get a type of yield curve called the zero curve [5]. Thus, it can be used to price arbitrary cash-flows from zero-coupon bonds. When looking at the zero-coupon bond of the highest quality where the investor does not risk any capital by investing, the rates is instead referred to as risk free rates.

2.5 Discount factors

When we are looking at the spot rates we are looking at future values of e.g.

assets. The discount factor dt converts future cash-flows to its correspond- ing value at present date. It is thus a way to determine the cash-flows that occurs in a certain point in the future and how it should be discounted back to present date. For the same compounding conventions as spot rates, the discount factor can be calculated with the three following formulas [8, p. 75]:

• Yearly compounding

dk = 1

(1 + sk)k (5)

• Compounding m periods

dk = 1

(1 + smk)mk (6)

• Continuous compounding

dt= e−stt (7)

(14)

2.6 Forward rates

Forward rates is the rate of interest that occurs at two future dates but being agreed upon at the present date. It is defined as:

Definition 1. The forward rate between times t1 and t2 with t1 < t2 is denoted by ft1t2. It is the rate of interest charged for borrowing money at time t1 which is to be repaid (with interest) at time t2. [8, p. 79]

While spot rate is the interest rate at the present date forward rates is in- stead used to predict the future interest rates. To visualize we can look at an example from Luenbergers investment science [8, p. 77].

If you store money at a 2–year period with known spot rates s1 and s2. Per (2) this be equal to (1 + s2)2 at maturity. Alternatively if we wanted to borrow money for a 2–year period with s1 for the first year and a forward rate f between year 1 and 2. This would be (1 + s1)(1 + f). If we invest the same amount of money with these models, we should have an equality i.e.

(1 + s2)2 = (1 + s1)(1 + f). If we had an inequality, we would instead have an arbitrage opportunity were we could borrow from e.g. the second method and reinvest it in the first method for a profit of (1 + s1)(1 + f) − (1 + s2)2. If we use the equality and derive it we get:

(1 + s2)2 = (1 + s1)(1 + f) ⇐⇒ (1 + f) = (1 + s2)2

(1 + s1) ⇐⇒ f = (1 + s2)2 (1 + s1) −1 We can thus conclude that the forward rates derives from the two spot rates.

This can in turn be used to determine spot rates for example zero-coupon bonds.

Forward rates can also be seen as a hedging tool (a way to secure invest- ments)[3]. For example if a company wants to buy a product and the trans- action is going to happen at the future date t1. The company could then agree on a forward rate close to the current spot rate s1 at t = 0 (present date). This is a way to secure a purchase or investment. As previously men- tioned the market can change due to supply and demand which could make it advantageous or disadvantageous for both parties involved.

Compounded forward rates for time i < j is defined as [8, p. 70–80 ]:

(15)

• Yearly compounding

fi,j = (1 + sj)j (1 + si)i

! 1

(j−i)

−1 (8)

• Compounding m periods

fi,j = m · (1 + smj)j (1 + msi)i

!(j−i)1

− m (9)

• Continuous compounding

fi,j = st2t2− st1t1

t2− t1 (10)

2.6.1 Useful properties of forward rates

Forward rates has useful properties that is advantageous to use when you do not have enough data to make a good estimation. From the forward rates we can extract the risk free rates. This is an important feature that will be used in the chosen method for this article. Two of the important properties is as follows.

The average of the instantaneous forward rate over any interval [ti−1, ti] is equal to the discrete forward rate fid, for that interval. So

fid = riti− ri−1ti−1

ti− ti−1 = 1 ti− ti−1

Z ti

ti−1

f(t)dt (11)

Given the forward function f(s) we can obtain the risk free rate function r(t) by

r(t)t = ri−1ti−1+Z t

ti−1

f(s)ds where t ∈ [ti−1, ti] (12)

2.7 Bootstrapping

When constructing yield curves for zero-coupon bonds there are generally not enough data points to make a good estimation for the plot. Bootstrapping is the process of extracting zero rates by calculating the discount factors of

(16)

several bonds of equal rating [5]. This is done for all the different cash-flow streams.

To concretize this we can look at an example with five different bonds of different maturities. The coupon payments are done semi-annually i.e. every 6 months, and are being continuously compounded using (7).

Face value Time to matu- rity (Years)

Coupon Price)

$100 0.5 0% $97.5

$100 1 5% $98.0

$100 1.5 5% $101.2

$100 2 7% $108.1

$100 2.5 10% $115.3

Table 2: Bootstrapping example [5, p. 82]

The first bond which is a zero-coupon bond is the easiest to derive. We have one cash-flow happening at t = 0.5 and we denote this d(0, 0.5) = er0,0.5

97.5 = d(0, 0.5) · 100 ⇔ e−0.5r(0,0.5) = 97.5 100

In this step we replace our d(0, 0.5) to (7) for the continuously compounded discount factor and proceed by logarithmyzing the equation.

ln e−0.5r0,0.5 = ln 0.975 ⇔ −0.5r0,0.5 = ln 0.975

⇔ r0,0.5 = ln 0.975

0.5 = 0.05 (13)

Thus giving us the zero rate of the first bond which is 5%. We can use this rate r(0,0.5) to calculate r(0,1) which is our second bond. The bond has two payments at 6 months and at maturity which gives us the equation.

98 = 5e−0.5+ e−r·100 ⇔ e−r = 98 − 5e−0.0071 100 Logarithmyzing as in (13) gives us the final answer.

r(0,1) = 0.072

(17)

Using the same formula, we can calculate for the remaining bonds (3, 4 and 5).

We ultimately end up with the following table of our discrete set of data points:

Maturity Zero rate

0.5 5%

1 7.2%

1.5 8.9%

2 9.4%

2.5 13.6%

Table 3: Bootstrapping example [5, p. 82]

(18)

3 The Monotone Convex Method

The monotone convex method is a method developed by Patrick S. Hagan and Graeme West [4]. The method is based of the work of James M. Hyman’s Accurate Monotonicity Preserving Cubic Interpolation method [6] with the distinction that their method was developed for interpolation of the yield curve. Hagan and discuss Hymans method among others which typically are used as interpolation algorithms within engineering or physics. Hagan and West believe that this can be problematic since there is no way of ensuring positive and continuous forward rates which are two important properties.

Negative forward rates would imply that there exists arbitrage opportunities and as J McCulloch and Levis Kochin describe it:

”a discountinuous forward curve implies either implausible ex- pectations about future short-term interest rates, or implausible expectations about holding period returns”. [7]

3.1 Interpolation of forward rates

To begin the interpolation of the yield curve we need a set of instantaneous forward rates fi for i = 1, 2, . . . , n. These rates are rarely available from the bond market. We can, on the other hand, estimate these values in a similar manner to the bootstrapping method.

Recall (10), our set of discrete forward rates with interest rates r1, r2, . . . , rn for periods τ1, τ2, . . . , τn is defined as

fid= riτi− ri−1τi−1

τi− τi−1 for 1 ≤ i ≤ n where r0 = 0 (14) Instead of modeling fid to be the instantaneous forward rate at t1 we assign it to the midpoint of a generic interval [τi−1, τi]. We then model our instan- taneous forward rate f(τ) = fi at τi, as the slope of a quadratic function that passes through the midpoints of the interval. We choose the end points, namely f(0) = f0 and f(τn) = fn, such that f0(0) = 0 = f0n). We end up with three different formulas for f0, fi and fn as follows.

(19)

3.1.1 Calculating f0

In any interval [τi, τi−1] we look for a quadratic f. So for some constants K, L, M

f(τ) = K + Lx(τ) + Mx2(τ) where x(τ) = τ − τi−1

τi− τi−1 and τ ∈ [τ, τi−1] In this case we have i = 1 so τ0 = 0. We then have

f(τ) = K + Lτ

τ1 + M(τ

τ1)2 where τ ∈ [0, τ1]

f0(τ) = L

τ1 + 2Mτ τ12

We can see that since f(0) = f0 it follows that K = f0. We also have f0(0) = 0, it follows that L = 0 since f0(0) = τL1. Therefore

f(τ) = f0+ Mτ2 τi2 Since f(τ1) = f1 we get

f(τ) = f0+ Mτ12 τ12 so f0 + M = f1 ⇔ M = f1 − f0. We conclude that

f(τ) = f0+ (f1− f0)τ2 τ12 The integral average condition, as in (11), says that

fid= 1 τ1 ·

Z τ1

0

f0+ Mτ12 τ12

!

= f0+ f1− f0

3 so we have

f1d = f0+f1− f0

3 ⇔ 2

3f0 = f1d+f1 3 f0 = 3

2f1d+ 1

2f1 ⇔ f0 = f1d− 1

2(f1− f1d)

(20)

Finally

f0 = f1d−1

2(f1− f1d) as required.

3.1.2 Calculating fi

fi can be viewed geometrically

Figure 4: fi

We can see the proportion

fi+1d − fi

fi− fid = τi+1− τi τi− τi−1

(21)

This equality can be derived as follows

(fi+1d − fi)(τi− τi−1) = (fi− fid)(τi+1− τi) ⇔

⇔ fi+1d i− τi−1) − fii− τi−1) = (fii+1− τi) − fidi+1− τi) ⇔

⇔ fii+1− τi+ τi− τi−1) = fi+1d i− τi−1) + fi+1d i+1− τi) ⇔

⇔ fi = ti− ti−1

ti+1− ti−1fi+1d + ti+1− ti ti+1− ti−1fid 3.1.3 Calculating fn

In any interval [τi−1, τi] we look for a quadratic f. For some constants K, L, M we get f(τ) = K + L · x(τ) + M · x2(τ) for x(τ) = ττ −τn−τn−1n−1 over the interval i−1, τi]. In this case i = n so we get

f(τ) = K + L · τ − τn−1

τn− τn−1 + M · (τ − τn−1)2 n− τn−1)2 f0(τ) = L

τ − τn−1 +2M(τ − τn−1) n− τn−1)2 Since f(τn−1) = fn−1 it follows that

f(τn−1) = K =⇒ K = fn−1

Since f0n) = 0 it follows that

f0n) = L

τn− τn−1 +2M(τn− τn−1)

n− τn−1)2 = 2M + L τn− τn−1 this is true for when

2M + L = 0 ⇔ L = −2M

Lastly we have the condition that f(τn) = fn. So f(τn) = fn−12M + M = fn. Thus we can conclude that M = fn−1− fn. This gives us

f(τ) = fn−12(fn−1− fn)(τ − τn−1)

τn− τn−1 + (fn−1− fn)(τ − τn−1)2 n− τn−1)2

(22)

The integral average condition as in (11), says that fnd= 1

τn− τn−1 ·

Z τn

τn−1

(f(τ)dτ Inserting f(τ) we get

1 τn− τn−1 ·

Z τn

τn−1

fn−12M(fn−1− fn)(τ − τn−1

τn− τn−1 +(fn−1− fn)(τ − τn−1)2 n− τn−1)2

!

=

= 1

3(fn−1− fn) + 2 3fn Thus we have

fnd= 1

3fn−1+ 2

3fn⇔ 2

3fn = fnd− 1

3fn−1 ⇔ fn = 3

2fnd−1 2fn−1 Which finally results in

fn= fnd− 1

2(fn−1− fnd) as required.

In summary, we end up with the following three formulas for calculating the instantaneous forward rates:

f0 = f1d− 1

2(f1− f1d) (15)

fi = τi− τi−1

τi+1− τi−1fi+1d + τi+1− τi

τi+1− τi−1fid, for i = 1, 2, . . . , n − 1 (16) fn = fnd− 1

2(fn−1− fnd) (17)

The next step for the method is to define our interpolation function f on [0, τn] that need to satisfy the following five conditions:

(i) The integral average condition as in (11) holds (ii) f(τ) is positive

(iii) f(τ) is continuous

(23)

(iv) If fi−1d < fid< fi+1d then f(τ) is increasing on [τi−1, τi].

(v) If fi−1d > fid> fi+1d then f(τ) is decreasing on [τi−1, τi]. [4, p. 75]

The goal will be to construct (15), (16) and (17). We will then modify our fi so that the five conditions is satisfied. Then we will insert a piecewise quadratic g and modify it, which will be covered in the following section.

This gives us the resulting interpolation function

f(τ) = g τ − τi−1 τi− τi−1

!

+ fid= g(x) + fid (18) Our choice for fi is at this stage preliminary. Later in the algorithm we can modify fi to ensure positivity.

3.2 Ensuring monotonicity

To analyse the monotonicity of our interpolation function f(τ) we seek a function gi defined on [0, 1] corresponding to the interval [τi−1, τi]. Since this process is repeated for each gi on the interval [τi−1, τi] we simply denote it g.

This is defined as:

g(x) = fτi−1+ (τi− τi−1)x− fid (19) for x ∈ [0, 1] corresponding to the interval [τi−1, τi]. From g(x) we can see that we have three conditions:

1. g(0) = fi−1− fid 2. g(1) = fi− fid 3. R01g(x)dx = 0

We then look for a quadratic g in the interval [0, 1]. So for some constants K, L, M we have:

g(x) = K + Lx + Mx2 Using the integral average formula we get

0 = Z 1

0

g(x)dx =Z 1

0 (K+Lx+Mx2)dx =

"

Kx+x2 2 L+x3

3M

#1

0

= K+1 2L+1

3M

(24)

We know g(0) = K and g(1) = K + L + M, which we can use to put it in matrix form as follows

1 0 0 1 1 1 1 12 13

·

K L M

=

g(0) g(1) 0

Therefore

1 0 0 g(0) 1 1 1 g(1) 1 12 13 0

←−

(−1)

+

←−−−−−

(−1)

+

1 0 0 g(0) 0 1 1 g(1) − g(0) 0 12 13 −g(0)

←−

(−2)

+

1 0 0 g(0) 0 0 13 g(1) + g(0) 0 12 13 −g(0)

←−

(−1)

+

1 0 0 g(0) 0 0 13 g(1) + g(0) 0 12 0 −g(0)

←−

←−

1 0 0 g(0) 0 12 0 −g(0) 0 0 13 g(1) + g(0)

| ·(2)

| ·(3)

1 0 0 g(0)

0 1 0 −2g(0) 0 0 1 3(g(1) + g(0))

Thus, we have K = g(0), L = −4g(0) − 2g(1) and M = 3g(0) + 3g(1) which gives us

g(x) = g(0) − 4g(0)x − 2g(1)x + 3g(0)x2+ 3g(1)x2 which finally derives to

g(x) = g(0) · (1 − 4x + 3x2) + g(1) · (−2x + 3x2) (20) g0(x) = g(0) · (−4x + 6x) + g(1) · (−2 + 6x) (21) If we revisit the conditions from the previous section and look at condition (iv) and (v). This is equivalent to g(0) and g(1) being of opposite signs.

Since the proofs for the two conditions is done in a similar manner, I will only provide one. For

1. fi−1d < fid < fi+1d 2. fi−1< fid < fi

(25)

3. g(0) < 0 and g(1) > 0 it follows that

fi−1d < fid< fi+1d ⇔ fi−1< fid< fi ⇔ g(0) < 0 and g(1) > 0 To show that this is true we begin by looking at 1 and 2

• fi is a convex combination of fid and fi+1d =⇒ fi is between fid and fi+1.

• fi−1 is a convex combination of fi−1d and fid =⇒ fi−1 is between fi−1d and fid

2 must then be true under the assumption that 1 is true i.e 1 =⇒ 2. We can then solve for 2 =⇒ 1.

• Since fiis between fidand fi+1d , and we assumed that fi > fid, it follows that fid< fi+1d

• Since fi−1 is between fi−1d and fid, and we assumed that fi−1 < fid, it follows that fi−1d < fid

1 must then be true under the assumption that 2 is true i.e. 2 =⇒ 1. So we have 1 ⇔ 2. Since g(0) = fi−1− fid and g(1) = fi − fid we can conclude that 2 ⇔ 3.

Since g is a quadratic function we can look at the cases where g0(0) = 0 and, respectively g0(1) = 0, to analyze the monotonicity of g(x) at x ∈ [0, 1].

These equalities correspond to g(1) = −2g(0) and respectively g(1) = −12g(0) and divide the g(0)/g(1) plane into 8 sectors demonstrated in figure 4.

(26)

(i)

(i) (ii)

(ii)

(iii) (iii)

(iv)

(iv)

A

B C

D

g(0)

g(1) g(1) = −2g(0)

g(1) = −12g(0)

Figure 5: Possible outcomes for g

We divide the graph into four different sectors that will be checked for mono- tonicity and adjusted if not. To ease the reader the first case will be located in the first and second quadrant and the second case in the third and fourth.

3.2.1 Sector (i) Case I

For the first case we can see g(0) < 0 and g(1) > 0. We also have g(1) > −1

2g(0) ⇔ 2g(1) + g(0) > 0 g(1) < −2g(0) ⇔ g(1) + 2g(0) < 0

If we look at (21) for g0(0) and g0(1) with regards to the boundaries above we get

g0(0) = −4g(0) − 2g(1) = −2(g(1) + 2g(0)) > 0 g0(1) = 2g(0) + 4g(1) = 2(2g(1) + g(0)) > 0

(27)

Thus, g(x) is monotone in the first case of sector of (i). We move on to the next case.

Case II

For the second case we can see g(0) > 0 and g(1) < 0. We also have g(1) < −1

2g(0) ⇔ 2g(1) + g(0) < 0 g(1) > −2g(0) ⇔ g(1) + 2g(0) > 0

If we look at (21) for g0(0) and g0(1) with regards to the boundaries above we get

g0(0) = −4g(0) − 2g(1) = −2(g(1) + 2g(0)) < 0 g0(1) = 2g(0) + 4g(1) = 2(2g(1) + g(0)) < 0

We can now conclude that g is monotone in the sectors (i) since g(0) and g(1) are of opposite signs and g0(0) and g0(1) are of the same sign. Furthermore when inserting the boundaries the function g will reduce to

g(x) = g(0)(1 − 3x2) on the boundary A (22) g(x) = g(0)(1 − 3x +3

2x2) on the boundary B (23) 3.2.2 Sector (ii)

Case I

For the first case we can see g(0) < 0 and g(1) > 0. We also have g(1) > −1

2g(0) ⇔ 2g(1) + g(0) > 0 g(1) > −2g(0) ⇔ g(1) + 2g(0) > 0

We know from case I in (i) that g0(1) > 0 and proceed by looking at g0(0) g0(0) = −4g(0) − 2g(1) = −2(g(1) + 2g(0)) < 0

(28)

Case II

For the second case we can see g(0) > 0 and g(1) < 0. We also have g(1) < −1

2g(0) ⇔ 2g(1) + g(0) < 0 g(1) < −2g(0) ⇔ g(1) + 2g(0) < 0

We know from case II in (i) that g0(1) < 0 and proceed by looking at g0(0) g0(0) = −4g(0) − 2g(1) = −2(g(1) + 2g(0)) > 0

In the second sectors g(0) and g(1) are of opposite signs, but so are g0(0) and g0(1). Meaning that g is both increasing and decreasing. g is thus not monotone but can be modified to. It also has to agree on boundary A i.e.

reducing to the same g(x) as in (i), for our interpolation function to be continuous.

3.2.3 Sector (iii) Case I

For the first case we can see g(0) < 0 and g(1) > 0. We also have g(1) < −1

2g(0) ⇔ 2g(1) + g(0) < 0 g(1) < −2g(0) ⇔ g(1) + 2g(0) < 0

We know from case I in (i) that g0(0) > 0 and proceed by looking at g0(1) g0(1) = 2g(0) + 4g(1) = 2(2g(1) + g(0)) < 0

Case II

For the second case we can see g(0) > 0 and g(1) < 0. We also have

g(1) > −1

2g(0) ⇔ 2g(1) + g(0) > 0 g(1) > −2g(0) ⇔ g(1) + 2g(0) > 0

(29)

We know from Case II in (i) that g0(0) < 0 and proceed by looking at g0(1) g0(1) = 2g(0) + 4g(1) = 2(2g(1) + g(0)) > 0

This is the same situation as in sector (ii) meaning g is currently not mono- tone but can be modified to be. Here g instead has to reduce to the same g(x) as (i) for boundary B.

3.2.4 Sector (iv)

We can instantly see that g(0) and g(1) are of the same sign in both of the sectors which by the requirement means that g is not monotone in (iv).

Looking at the derivatives in sectors (4) Case I

Since the boundaries is the same as Case I in (i) we have g0(0) < 0

g0(1) > 0

Case II

Since the boundaries is the same as Case II in (i) we have g0(0) > 0

g0(1) < 0

Modifications is also needed in sectors (4) for g to be monotone. We want g(x) to reduce to the same form as in (ii) as we approach C and to the same form as (iii) as we approach D.

3.3 Modifying g

3.3.1 Modifications of (ii)

We seek to modify g(x) in sectors (ii) for it to be monotone. To achieve this we insert a flat segment. We choose a parameter η such that R01g(x) = 0 is satisfied. And as η → 0 g(x) reduces to g(x) = g(0)(1 − 3x2).

(30)

A proposal for this function is

g(x) =

g(0) for 0 ≤ x ≤ η

g(0) + (g(1) − g(0))(x−η1−η)2 for η < x ≤ 1 (24) Note that the proposed solution consists of a fragment of a constant function joined together by a fragment of a parabola to ensure monotonicity.

To solve for η we start by solving for each of the functions

1. Z η

0

g(0)dx = g(0) · η 2.

Z 1 η

g(0) + (g(1) − g(0))(x − η

1 − η)2dx=

=hg(0)xi1η+ (g(0) + g(1)) ·h(η − x)3 3(n − 1)2

i1 η =

= g(0)(1 − η) + (g(1) − g(0))(1 − η 3 )

It follows 0 = Z 1

0

g(x)dx = g(0) + g(0)(1 − η) + (g(1) − g(0))(1 − η 3 ) =

= g(0) + g(1) − ηg(1)

3 +ηg(0) − g(0)

3 =

= η(g(0) − g(1)) + g(1) + 2g(0) 3

This will be equal to zero when

η(g(0) − g(1)) = −g(1) − 2g(0) ⇔ η = −g(0) + 2g(0) g(0) − g(1) which we can rewrite as

η = 1 − 3g(0)

g(0) − g(1) = 1 + 3g(0)

g(1) − g(0) = g(1) − g(0) + 3g(0) g(1) − g(0)

(31)

Thus, we have

η= g(1) + 2g(0)

g(1) − g(0) (25)

which satisfies our first requirement. When η → 0 we get g(1)+2g(0) = 0 ⇔ g(1) = −2g(0) as required.

3.3.2 Modification of (iii)

We do the same process for sectors (iii) but instead with the requirement that g reduces to g(x) = g(0)(1 − 4x + 32x2) at boundary B as η → 1.

A proposal for this function is

g(x) =

g(0) + (g(1) − g(0))(η−xη )2 for 0 < x < η

g(1) for η ≤ x < 1 (26)

We can now solve for η from the different cases 1.

Z η

o (g(0) + (g(1) − g(0))(η − x

η )2)dx = g(1)η + (g(0) − g(1))

"

x3 2x2

n − x

#η

0

=

= g(1)η + (g(1) − g(0))(η 3)

2. Z 1

η

g(1)dx = (1 − η)g(1) It follows

Z 1 0

g(x)dx = (1 − η)g(1) + g(1)η +g(0)η − g(1)η

3 =

= 3g(1) + η(g(0) − g(1)) 3

This is equal to zero when

η(g(0) − g(1)) = −3g(1) ⇔ η = − 3g(1)

g(0) − g(1) = 3g(1) g(1) − g(0)

(32)

We then have

η= 3g(1)

g(1) − g(0) (27)

so our first requirement is fine. As η → 1 we get 3g(1)

g(1) − g(0) = 1 ⇔ 3g(1) = g(1) − g(0) ⇔ g(1) = −1 2g(0) Thus g(x) will reduce to (23) as we approach B as required.

3.3.3 Modification of (iv)

For the last sectors we want to modify g(x) so it reduces to (22) as we approach C and (23) as we approach D.

A proposal for this function is

g(x) =

α+ (g(0) − α)(η−xη )2 for 0 < x < η

α+ (g(1) − α)(x−η1−η)2 for η ≤ x < 1 (28) for some constants α, η. We again solve for the two different cases

1. Z η

0 (α + (g(0) − α)(η − x

η )2)dx = αη + (g(0) − α)(η 3) 2.

Z 1

η (α + (g(1) − α)(x − η

1 − η)2)dx = α(1 − η) + (g(1) − g(0))(1 − η 3 ) It follows

Z 1 0

g(x) = αη + (g(0) − α)(η

3 + α(1 − η) + (g(1) − g(0))(1 − η 3 ) =

= α +g(0)η − αη

3 + g(1) − g(1)η

3 +αη − α

3 =

= 2α + g(0)η − αη + g(1) − g(1)η + αη

3 =

= 2 3α+ η

3g(0) + 1 − η 3 g(1)

(33)

We can then solve for α 2

3α = −η

3g(0) − 1 − η

3 g(1) ⇔ α = −1 2

ηg(0) + (1 − η)g(1)

Now whats left is to choose an η such that our requirements are fulfilled. We choose

η= g(1)

g(0) + g(1) (29)

Then we have

1 − η = g(0)

g(0) + g(1) (30)

This choice will be useful when proving positivity for f in the next section.

We now solve for α

α= −1 2

 g(1)g(0)

g(1) + g(0)+ g(1) − g(1)g(1) g(1) + g(0)

=

= −1 2

 g(1)g(0)

g(1) + g(0)+(g(1) + g(0))g(1)

g(1) + g(0)g(1)g(1) g(1) + g(0)

=

= − 2g(1)g(0) 2(g(1) + g(0)) Which gives us

α= − g(1)g(0)

g(1) + g(0) (31)

Looking at α we can see that our g(x) for sectors (ii) and (iv) will converge at D when g(0) = 0. g(x) for sectors (iii) and (iv) will converge at C for g(1) = 0 thus satisfying the remaining requirements.

3.4 Ensuring positivity

The last step for this method is guarantee that our interpolation function f is everywhere positive over [τi, τi−1]

(34)

Theorem 3.1. If the instantaneous forward rates fi) = fi satisfy the in- equalities

fi−1<2fid and fi <2fid for i = 1, 2, . . . , n Then the following inequality must be true

f(t) > 0 for all t Proof. Recall function (18)

f(τ) = g τ − τi−1 τi− τi−1

!

+ fid= g(x) + fid

It suffices to show that g(x) > −fid for x ∈ [0, 1], for g corresponding to the interval [τi−1, τi]. Since we know fi, fi−1>0 we have

1. g(0) = fi−1− fid> −fid 2. g(1) = fi− fid> −fid

Our interpolation function is constructed such that g is monotone in sectors (i), (ii) and (iii) which means g(x) > fid for x ∈ [0, 1] will be met in those sectors. The only sector we need look at is (iv) in which we have two cases.

Case I - g(0), g(1) < 0

In the first case we have g0(0) > 0 and g0(1) < 0 which indicates that g is concave up. We also have

α= − g(1)g(0) g(1) + g(0) >0

it follows that g has an absolute maximum at η = x since our coefficients to the quadratic ((g(0) − α), (g(1) − α)) are negative values. It follows that

g(x) ≥ min(g(0), g(1)) > −fid, x ∈ [0, 1]

Case II - g(0), g(1) > 0

In the second case we have g0(0) < 0 and g0(1) > 0 which indicates that g is concave down. We have

α= − g(1)g(0) g(1) + g(0) <0

(35)

It follows that g has an absolute minimum at η = x since our coefficients to the quadratic ((g(0) − α), (g(1) − α)) are positive values. It is enough to show that

g(1) + g(0) g(1)g(0) < fid since g(x) ≥ g(1)+g(0)g(1)g(0) > −fid. Now

0 < max((g(0), g(1)) = max(fi−1, fi) − fid < fid<2fid

so we have

g(0) + g(1) g(1)g(0) = 1

g(0) + 1

g(1) > 1 2fid

+ 1 2fid

= 1 fid This implies that

g(0) + g(1)

g(0)g(1) < fid =⇒ g(0) + g(1)

g(0)g(1) > −fid as long as g(0), g(1) < 0 and g(0), g(1) < 2fid.

3.4.1 Collaring f

In our final algorithm there may be some fi that we need to adjust for f to be positive. It is defined as

Definition 2. If α, β ∈ R and α < β, then

colarα,β(x) = minβ, max(x, α)= maxα, min(x, β)=

α if x < α x if x ∈[α, β]

β if x > β When used in the final algorithm our new f values will be

1. f0 = colar0,2fid(old f0)

2. fi = colar0,2min(fid,fi+1d )(old fi) 3. fn = colar0,2fid(old fn)

(36)

3.5 Summary

To summarize the monotone convex method, the final algorithm compose of the following five steps as explained by Hagan and West:

1. Determine fid from the input data

2. Define fi where i = 0, 1, . . . , n as shown in (15), (16), (17)

3. Optional: Collar f with the three steps from the previous subsection, if f is required to be positive for all values.

4. Construct g(x) with regard to which of the four sectors we are in 5. Define f(τ) as in (18)

6. Recover r(t) as in (12) [4, p. 77]

4 Example

We want plot the yield curve for the five following zero-coupon bonds of different maturities using the monotone convex method. The bonds are being continuously compounded using (7). It is worth noting that this example does not provide a reasonable representation of the bond market. The purpose of the example is instead to show how the method works in practice.

Face value Years Price

$1000 1 $980

$1000 2 $955

$1000 3 $920

$1000 4 $880

$1000 5 $830

Table 4: Monotone convex method example

(37)

4.1 Bootstrapping our yield curve

We begin by determining the spot rate for each bond using (7): dk = e−rit. We can see from the table above that there is five different cash-flows at par for each bond. In other terms we have t = 1, 2, 3, 4, 5. To determine r1 we calculate

e−r1 ·1000 = 980 ⇔ e−r1 = 980

1000 ⇔ln(e−r1) = ln

980 1000

!

⇔ r1 = 0.0202

The same process is repeated for the rest and results in.

r1 = 0.0202 r2 = 0.0230 r3 = 0.0278 r4 = 0.0320 r5 = 0.0373

We proceed with calculating our set of discrete forward rates using For the first case we get

f1d= r1τ1− r0τ0

τ1− τ0 = 0.0202 This process is then repeated and finally results in

f1d = 0.0202 f2d = 0.0258 f3d = 0.0373 f4d = 0.0445 f5d = 0.0585

We can see that since fid > 0 where i ∈ [1, 5] we don’t have any arbitrage opportunities.

The next step is to calculate the instantaneous forward rates using (15), (16)

References

Related documents

Proof. Let κ be the successor cardinal of |α|. But as it turns out we can get by using only structures where the binary relation is ∈. We therefore define what it means for a formula

För det tredje har det påståtts, att den syftar till att göra kritik till »vetenskap», ett angrepp som förefaller helt motsägas av den fjärde invändningen,

There are actually a number of hypotheses to be tested: does lift result in a higher AUC than using ac- curacy as an exclusion criterion for ordered rule sets, is the

While not dealing specifically with the topic of childhood, in the dissertation Joyce’s Doctrine of Denial: Families and Forgetting in Dubliners, A Portrait of the Artist

James Joyce’s fiction is considered important for understanding Irish childhoods, and Joyce’s portrayal of childhood is often deemed unchanging within the major themes until

Byggstarten i maj 2020 av Lalandia och 440 nya fritidshus i Søndervig är således resultatet av 14 års ansträngningar från en lång rad lokala och nationella aktörer och ett

högre olycksrisk än kvinnorna, när jämförelsen gäller män och kvinnor med ungefär samma körsträckor.. Också modellens tredje förutsägelse kan

– Visst kan man se det som lyx, en musiklektion med guldkant, säger Göran Berg, verksamhetsledare på Musik i Väst och ansvarig för projektet.. – Men vi hoppas att det snarare