TermStructure - bootstrap error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TermStructure - bootstrap error

kwerle


I've been working some more with the term structure objects and created a
simple test program to create a curve using par coupon bonds.  The problem
I see is when I ask for the zeroRate back for the dates I put in I don't
recover the 30 year rate properly.  Am I doing something wrong setting up
and using the curve?  I've attached my simple test program.

(See attached file: YieldcurveTester.cpp)

Here is the output it produces

[zero] 02/01/2007 :: 4.939919 % 30/360 (Bond Basis) semiannual compounding
[zero] 02/01/2009 :: 4.939919 % 30/360 (Bond Basis) semiannual compounding
[zero] 02/01/2012 :: 4.792989 % 30/360 (Bond Basis) semiannual compounding
[zero] 08/01/2014 :: 4.802878 % 30/360 (Bond Basis) semiannual compounding
[zero] 02/01/2017 :: 4.807822 % 30/360 (Bond Basis) semiannual compounding
[zero] 02/01/2037 :: 4.943125 % 30/360 (Bond Basis) semiannual compounding

All of the rates are what I expect except the last one.  The 30 year bond I
used to create the curve has a 4.91 yield so I expected to get 4.91 back
for the 30 year.


-----------------------------------------
All e-mail sent to or from this address will be received by the
General Re-New England Asset Management, Inc. (GR-NEAM) e-mail
system.  As a result, this e-mail may be archived by GR-NEAM and
may be reviewed by someone other than the sender or recipient.
Subject to that exception, this e-mail, including attachments may
contain confidential and/or legally privileged information and is
intended for the named person/company.  Unauthorized disclosure,
copying or use of this information may be unlawful and is
prohibited.  If you are not the intended recipient, please delete
this message and notify the sender.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YieldcurveTester.cpp
Type: application/octet-stream
Size: 5993 bytes
Desc: not available
Url : http://sourceforge.net/mailarchive/forum.php?forum=quantlib-users/attachments/20070205/80db63b3/attachment.obj 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users