Discussion:
[Quantlib-users] BondFunctions::basisPointValue
Francois Botha
2017-06-02 13:27:05 UTC
Permalink
Hi,

I'm looking at BondFunction::basisPointValue and comparing it to the crude
approach of manually calculating the dirty price of a bond, shocking the
YTM by a basis point and recalculating the value and taking the difference.
Two 2 values seem to differ a lot, and for some of my bonds (especially the
longest bonds) the values are quite different, e.g. -0.1143606982 vs
-0.1531900216 per 100 nominal.

I can see that the basisPointValue() uses 2nd order Taylor expansion as
estimation, so do you think the reason for the difference is that the
Taylor expansion method isn't accurate enough?

thanks
Francois Botha
Luigi Ballabio
2017-06-06 09:41:33 UTC
Permalink
Hello,
yes, it's possible. May you try using a smaller dy and see if the two
values converge? (Also, I'm not sure why we're using the Taylor expansion
instead of calculating the value by difference directly, but that might be
a question for later...)

Luigi
Post by Francois Botha
Hi,
I'm looking at BondFunction::basisPointValue and comparing it to the crude
approach of manually calculating the dirty price of a bond, shocking the
YTM by a basis point and recalculating the value and taking the difference.
Two 2 values seem to differ a lot, and for some of my bonds (especially the
longest bonds) the values are quite different, e.g. -0.1143606982 vs
-0.1531900216 per 100 nominal.
I can see that the basisPointValue() uses 2nd order Taylor expansion as
estimation, so do you think the reason for the difference is that the
Taylor expansion method isn't accurate enough?
thanks
Francois Botha
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Loading...