You are on page 1of 30

Yield Curve Modeling

Yield Curve Building with Bonds

Copyright © 1996-2006 Investment Analytics


Yield Curve Building with Bonds

¾ Bootstrap Method
¾ Regression Techniques
¾ Building Emerging Market Yield Curves
¾ Iterative Methods

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 2
Bootstrap Method for Bonds
Today Year 1 Year 2 Year 3

C1 C2 C3

¾ Take treasuries with a succession of maturities


and common payment dates
¾ Bond Price = D1C1 + D2C2 + D3C3 + 100D3

9Cash flows are known PV of Cash Flows


from the bond coupon
9The curve has already been built out to 2 years using
zeros
9D1 and D2 are known, calculate D3 by bootstrapping
Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 3
Problems with Bootstrapping

¾ Two bonds with same maturity, may have


different yields
¾ More payment dates than bonds
¾ A good solution is to use regression techniques

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 4
The Regression Method

¾ Regression: Y = α + βX +ε
9Y is variable you want to predict - e.g. Bond Price
9X is “explanatory” variable - e.g. cash flows
9 β is the multiple to be estimated - discount factor
9 α is typically insignificant and presumed = 0
9 ε is error term: ~ iid No(0, σ2)
• Normally distributed
• Zero mean, constant variance σ2

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 5
Multiple Regression
¾ Expresses linear relationship between a single
dependent variable (y) and a series of independent
variables (x1 . . . xn)
¾ yi = α +β1x1i + β2x2i + . . . + βnxni + εi
¾ Determine the coefficients which are “optimal”:
9Least Squares Estimates
• Coefficients which minimize the sum of squares of the error terms ei
• The ei are the differences between the observed values of y and the
values of y estimated using the regression equation

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 6
Multiple Regression with Bond Data
¾ y is the bond price, and (x1 . . . xn) are the
cash flows on dates 1 to n.
¾ If α is set to zero, and β1 . . . βn can be
estimated and will be the discount factors.
¾ If we make certain statistical assumptions,
we can measure how good the estimates are.
¾ yi = α +β1x1i + β2x2i + . . . + βnxni + εi
¾ Price = C1D1 + C2D2 + . . . + CnDn + ei

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 7
Example: Bond Data
1994 1995 1996 1997 1998 1999 2000 2001 2002
P ric e C a s h flo w
1 0 0 .9 1 1 0 7 .5 0 0 0 0 0 0 0
1 0 3 .5 4 1 1 0 .2 5 0 0 0 0 0 0 0
1 0 1 .4 9 8 .5 1 0 8 .5 0 0 0 0 0 0
1 0 2 .3 7 9 109 0 0 0 0 0 0
1 0 0 .3 7 8 .2 5 8 .2 5 1 0 8 .2 5 0 0 0 0 0
9 9 .7 4 8 8 108 0 0 0 0 0
9 9 .6 8 8 .2 5 8 .2 5 8 .2 5 1 0 8 .2 5 0 0 0 0
9 9 .7 0 8 .2 5 8 .2 5 8 .2 5 1 0 8 .2 5 0 0 0 0
9 4 .0 2 7 7 7 7 107 0 0 0
9 3 .0 2 6 .7 5 6 .7 5 6 .7 5 6 .7 5 1 0 6 .7 5 0 0 0
8 6 .8 8 5 .7 5 5 .7 5 5 .7 5 5 .7 5 5 .7 5 1 0 5 .7 5 0 0
8 6 .9 3 5 .7 5 5 .7 5 5 .7 5 5 .7 5 5 .7 5 1 0 5 .7 5 0 0
8 3 .8 5 5 .5 5 .5 5 .5 5 .5 5 .5 5 .5 1 0 5 .5 0
8 7 .0 9 6 .1 3 6 .1 3 6 .1 3 6 .1 3 6 .1 3 6 .1 3 1 0 6 .1 3 0
8 7 .5 8 6 .5 6 .5 6 .5 6 .5 6 .5 6 .5 6 .5 1 0 6 .5
8 4 .7 8 6 6 6 6 6 6 6 106

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 8
Lab: Yield Curve Regression Model
¾ Worksheet: Data-Regression
¾ Use Excel Regression Analysis Tool
9Menu Item: Tools
• Data Analysis
• Select Regression
¾ Estimate the discount factors
¾ Estimate & plot yield curve
9Use annual compounding:
• R = -1 + (1 / D)T

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 9
Regression Analysis in Excel
¾ Select: <Tools>
9<Data Analysis> <Regression>
¾ Fill in the parameters:

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 10
Solution: Regression Analysis
Standard Upper
Year Coefficients Error t Stat Lower 95% 95% Spot Rate Lower 95% Upper 95%
Intercept 0 N/A N/A N/A N/A
1995 D1 0.9389 0.00013 7165.6 0.9386 0.9392 6.50% 6.47% 6.54%
1996 D2 0.8617 0.00013 6547.4 0.8614 0.8620 7.72% 7.70% 7.74%
1997 D3 0.7901 0.00013 5956.9 0.7897 0.7904 8.17% 8.16% 8.19%
1998 D4 0.7235 0.00013 5448.8 0.7232 0.7238 8.43% 8.42% 8.44%
1999 D5 0.6618 0.00013 4926.3 0.6615 0.6622 8.60% 8.59% 8.61%
2000 D6 0.6056 0.00014 4464.8 0.6053 0.6059 8.72% 8.71% 8.73%
2001 D7 0.5559 0.00014 4097.0 0.5556 0.5563 8.75% 8.74% 8.76%
2002 D8 0.5089 0.00014 3758.4 0.5086 0.5092 8.81% 8.80% 8.82%

Estimated
Discount DF / Std.
Factors Error
Estimated 95% Confidence Intervals:
S.D. of True DF’s and Rates will lie
Discount between these limits 95%of
Factors the time.
Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 11
Testing Regression Fit
¾ R2 indicates the amount of variance in the
dependent variable (price) that is explained by
the independent variables (cash flows)
¾ Partial R2 indicates the explanatory power of
each variable alone
¾ Standard errors are the square roots of the
estimated variances of independent variables
¾ Confidence intervals are provided by the t and
F statistics

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 12
Residuals
¾ You need to check residuals: Ei = (Yi - Yi*)
• Residual = Actual Price - Predicted Price
¾ Residual Plot: Residual vs. Bond Price
• Residual plot should be random scatter around zero
• If not, it implies poor fit, confidence intervals invalid
• However, estimates of DF’s are still the best we can achieve, but we
can’t say how good they are likely to be.
¾ Test for:
9Non-Normality of residuals
9Bias: non-zero mean
9Heteroscedasticity (non-constant variance)

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 13
Residual Residual Plot

Bond Price

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 14
Residual Residual Plot - Bias

Bond Price

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 15
Residual Plot - Heteroscedasticity
Residual

Bond Price

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 16
Confidence Intervals

¾ Sample discount factor DF is an unbiased


estimate of the ‘true’ discount factor DFTRUE
¾ Confidence interval: 95% certain that:
9 DFLOWER < DFTRUE < DFUPPER
9We can estimate this range from regression model,
provided assumptions hold
¾ Confidence interval for Spot Rate:
9-1+(1/DFUPPER)(1/t) < St < -1+(1/DFLOWER)(1/t)

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 17
Modeling Credit Risk Factors
¾ Simple regression model:
9y is the bond price, and (x1 . . . xn) are the cash flows on dates
1 to n.
¾ yi = β1x1i + β2x2i + . . . + βnxni + εi
¾ Now additional risk factors r1, r2, etc.
9E.g. r1 = country, r2 = credit rating, etc.
¾ Model:
9yi = β1x1i + β2x2i + . . . + βnxni + α1r1i + α2r2i +. . . + αmrni + εi

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 18
Stepwise Regression
¾ Forward
9Start with basic model
9Add in extra variables one at a time
9Check goodness of fit, significance of new variable
9If useful retain, otherwise discard
9Repeat for other variables
¾ Backwards
9Start with full model
9Eliminate variables one at a time
9Test fit etc
9Repeat for other variables

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 19
Limitations of Regression Models
¾ Normal distribution: of error terms for confidence
intervals
¾ Nonlinearity: in relationships causes problems
¾ Heteroscedasticity: variance is not constant.
¾ Multicollinearity: Independent variables are
correlated
9As a group explain the dependent variable well, but the
effect of each one can’t be estimated properly.

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 20
Emerging Market Yield Curves

¾ Problems:
9Very few bonds
9Many are not traded
9Market very volatile
¾ Require method which deals with these and
which:
9Fits the data well
9Produces a smooth curve

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 21
Bootstrapping Emerging Market
Yield Curves
¾ Standard method:
9Assumes can determine PV of all coupons
9Starts with one bond, progresses to next one in
maturity order
9Usually not enough data to do this.
¾ Iterative method
9Bootstraps all bonds simultaneously
9Iterates to a solution

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 22
Iterative Method
¾ Start with first guess of zero curve
¾ Simultaneously bootstrap all bonds
¾ Use least squares to get smooth curve
¾ Use this curve to discount cashflows in the
next iteration

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 23
Iterative Method Notation

¾ Notation:
9Pk is the price of bond k
9Ck is the periodic coupon of bond k
9yj(t) is the jth approximate fit for the zero-coupon curve,
starting at y1(t) as a first guess
9ti(k) is the time to a coupon date for bond Pk
9Z(ti) is the zero-coupon yield as a function of time to
maturity ti
9 The idea is to iterate from yj(t) to Z(t)

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 24
Iterative Method Formulation

P = ∑c e + (1 + c )e
nk −1
−ti( k ) y j ( ti( k ) ) −t n( k ) y *j ( t n( k ) )

k i =1 k k

¾ Coupons are bootstrapped simultaneously


9Using y (t) for each iteration j
j

9For all bonds k = 1, . . . , m


¾ We back the y*j(tn(k) ) out of the above
equation to serve as an input to the next
iteration

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 25
Example - S African Market
¾ Data
9Use money market securities out to one year
9Bonds for the remainder of the curve

Bond Maturity Coupon Price


1 3 7.50% 97.5110%
2 5 8.00% 98.4596%
3 8 7.00% 87.6629%
¾ Money Market securities
4 10 6.50% 80.8032%
9Maturities 1, 6 & 12 month
9Yields 13.95%, 14.48% and 14.88% respectively

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 26
Solution - Yield Curve Construction by
Iterative Bootstrap
S African Yield Curve

18%

17%

16%

15%

14% Initial Iteration 1 Iteration 2


Iteration 3 Iteration 4 Iteration 5
13%
0 2 4 6 8 10

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 27
Euro-Yield Curves
Euro Yield Curves
5

4.5
France
Germany
4

3.5

Source: Bloom berg 9/Apr/99

2.5
3 Months

6 Months

1 Years
2 Years

3 Years

4 Years

5 Years

6 Years

7 Years
8 Years

9 Years

10 Years
15 Years

20 Years

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds 30 Years Slide: 28
Euro-Yield
¾ No single, standard curve
Curves
9Anomolies and strange spread differentials
• 7 Year: Bund cheaper than OAT by 20 bp
• 20 Year: OAT 23 bp cheaper than Bund
¾ No natural spread France vs. Germany
9Short End: OATs and BTNs more liquid than Bunds
• French repo market more efficient
9Old OATs of 2008 bought up by insurance companies due to
tax benefits on 8-year contracts
¾ Several Gvts. competing for benchmark status
• Issuers sometimes price off Bunds, OATs or both!
• Most traders use swap curve to price bonds

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 29
Summary: Yield Curve Building
with Bonds
¾ Bootstrap Method
¾ Regression Techniques
¾ Building Emerging Market Yield Curves
¾ Iterative Methods

Copyright © 1996-2001 Investment Analytics Yield Curve Building with Bonds Slide: 30

You might also like