Root Finding - Bond Duration

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Root Finding - Bond Duration

Breig, Dr. Christoph (IDS GmbH)

Hi all,
 
I want to understand the way how bond durations are calculated. Thus, I debugged QuantLib and found the underlying root finding iteration to compute bond yields. The code calls the root finding method "NewtonSafe" (ql/math/solvers1d/newtonsafe.hpp). Does anybody know which Root finding method (name of the method) is the exact underlying method?
 
Cheers and thanks,
Chris

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Root Finding - Bond Duration

Luigi Ballabio
On Wed, 2010-11-10 at 16:17 +0100, Breig, Christoph (IDS GmbH) wrote:
> 
> I want to understand the way how bond durations are calculated. Thus,
> I debugged QuantLib and found the underlying root finding iteration to
> compute bond yields. The code calls the root
> finding method "NewtonSafe" (ql/math/solvers1d/newtonsafe.hpp). Does
> anybody know which Root finding method (name of the method) is the
> exact underlying method?

It's a combination of Newton-Raphson and bisection.  You'll find the
details in Numerical Recipes in C <http://www.nrbook.com/c/>, chapter 9.

Luigi



--

Academic: a term of opprobrium applied to those that do their job well
by those who cannot.
-- Sir Ernest Gowers



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users