5.0

5.0 | 1 rating Rate this file 21 Downloads (last 30 days) File Size: 40.16 KB File ID: #29630
image thumbnail

Bootstrapping Yield Curve

by Rodolphe Sitter

 

06 Dec 2010 (Updated 07 Dec 2010)

Bootstrap the yield curve, discount curve and forward curve from bond market prices. Plot results.

| Watch this File

File Information
Description

Bootstrap the yield curve, discount curve and the forward curve from market data

***************** BOOTSTRAPPING RESULTS **********************

Time (Years)| Yield Curve | Discount Curve| Forward Curve |
-----------------------------------------------------------------------
      0.51 | 1.2404% | 0.9938 | 1.2366% |
      1.01 | 1.1857% | 0.9881 | 1.1282% |
      1.52 | 1.4177% | 0.9788 | 1.8735% |
      2.03 | 1.8191% | 0.9641 | 3.0081% |
      2.54 | 2.2704% | 0.9447 | 4.0628% |
      3.04 | 2.6798% | 0.9226 | 4.6925% |
      3.55 | 3.0091% | 0.9001 | 4.9538% |
      4.06 | 3.2662% | 0.8777 | 5.0182% |
      4.56 | 3.4694% | 0.8559 | 5.0521% |
      5.07 | 3.6464% | 0.8339 | 5.1832% |
      5.58 | 3.8090% | 0.8117 | 5.3740% |
      6.09 | 3.9591% | 0.7895 | 5.5457% |
      6.59 | 4.0913% | 0.7676 | 5.6195% |
      7.10 | 4.1997% | 0.7466 | 5.5403% |
      7.61 | 4.2799% | 0.7270 | 5.3424% |
      8.12 | 4.3337% | 0.7087 | 5.0797% |
      8.62 | 4.3650% | 0.6919 | 4.8105% |
      9.13 | 4.3803% | 0.6761 | 4.5880% |
      9.64 | 4.3876% | 0.6611 | 4.4698% |
     10.15 | 4.3963% | 0.6462 | 4.5122% |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  [YieldCurve, DiscountCurve, ForwardCurve] = Bootstrap( Bond, Schedule, Solver )

======================================================
INPUTS:

   Bond

   Bond.CashFlows - Matrix of all cash-flows of all bonds
      one column represents one bond. one row represents one cash-flow date

   Bond.BondMarketPrices - Vector of bond market prices

   Schedule

   Schedule.CashFlowSchedule - Times where future cash flows are paid.
       This is common to all bonds. This needs inputing in years from today and accounting for the right day count convention.

   Solver

   Solver.InterpolationMethod - Interpolation method to bootstrap the forward curve (the curve that is solved for). The valid inputs are:
           'nearest' Nearest neighbor interpolation
           'linear' Linear interpolation (default)
           'spline' Cubic spline interpolation
           'pchip' Piecewise cubic Hermite interpolation

   Graph

   Graph - If graph = 'on', the bootstrapping automatically generates a graph that consists in four subplots: the yield curve (yield to maturity), the discount to par value curve, the discount curve and the forward curve.

======================================================
 OUTPUTS: 

   ForwardCurve - Vector of forward rates.
   There are as many forward rates output as cash flow dates input. For a given date t, the forward rate at this date represents the rate tarting from the previous date t-1 and maturing at the given date t.

DiscountCurve - Vector of discount factors. There are as many discount factors output as cash flow dates input.

 YieldCurve - Vector of bond yields to maturity.
  There are as many bond yields output as cash flow dates input.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
29 Jan 2011 Marc

nice work

Please login to add a comment or rating.
Updates
07 Dec 2010

new graph layout

Tag Activity for this File
Tag Applied By Date/Time
bootstrap Rodolphe Sitter 06 Dec 2010 08:53:08
bootstrapping Rodolphe Sitter 06 Dec 2010 08:53:08
bond Rodolphe Sitter 06 Dec 2010 08:53:08
bonds Rodolphe Sitter 06 Dec 2010 08:53:08
zero coupon Rodolphe Sitter 06 Dec 2010 08:53:08
spot rate Rodolphe Sitter 06 Dec 2010 08:53:09
yield to maturity Rodolphe Sitter 06 Dec 2010 08:53:09
yield curve Rodolphe Sitter 06 Dec 2010 08:53:09
yield Rodolphe Sitter 06 Dec 2010 08:53:09
discount Rodolphe Sitter 06 Dec 2010 08:53:09
discount factor Rodolphe Sitter 06 Dec 2010 08:53:09
interest rates Rodolphe Sitter 06 Dec 2010 08:53:09
zero curve Rodolphe Sitter 06 Dec 2010 08:53:09
forward rate Rodolphe Sitter 06 Dec 2010 08:53:09
forward curve Rodolphe Sitter 06 Dec 2010 08:53:09
finance Rodolphe Sitter 06 Dec 2010 08:53:09
fixed income Rodolphe Sitter 06 Dec 2010 08:53:09
discount curve Rodolphe Sitter 06 Dec 2010 08:53:09
bond Yerulan Mustafin 19 Sep 2011 04:48:42
bonds Yerulan Mustafin 19 Sep 2011 04:48:46
yield to maturity Yerulan Mustafin 19 Sep 2011 04:48:51
discount curve Ty 27 Oct 2011 12:24:35
bond Hamdi Alper Memis 13 Dec 2011 07:38:18

Contact us at files@mathworks.com