Re: [QuantLib-svn] SF.net SVN: quantlib:[16065] trunk/QuantLib/ql/termstructures/yield/ forwardcurve.hpp

Posted by Ferdinando Ametrano-4 on
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-16065-trunk-QuantLib-ql-termstructures-yield-forwardcurve-hpp-tp12700p12701.html

On Wed, Mar 25, 2009 at 11:38 AM, Luigi Ballabio
<[hidden email]> wrote:

> On Wed, 2009-03-25 at 10:31 +0000, [hidden email] wrote:
>> Revision: 16065
>>
>> Log Message:
>> -----------
>> added flat extrapolation
>>
>>  Modified Paths:
>> --------------
>>    trunk/QuantLib/ql/termstructures/yield/forwardcurve.hpp
>
> Care to discuss?

glad to oblige.

The InterpolatedForwardCurve used the interpolant to extrapolate,
which easily leads to implausible rates, unless one used
piecewise-constant interpolation. Even "basic" linear interpolation
could lead to negative rates or implausible high rates depending on
its slope in the final segment

Flat forward rate extrapolation keeps forward rate continuous, at the
cost of an angular point for non piecewise-constant interpolations.
This is a non-issue for linear interpolation since in this case the
curve already has an angular point at every knot. When it comes to
higher order interpolation it is still a bearable cost compared to
implausible extrapolation values.

In any case this cost is negligible in the overall smoothness
evaluation of the curve, as the forward rate curve is integrated in
order to obtain zero rate (and then discount factor)

Of course extrapolation is always a dangerous exercise, but if one
needs it then flat extrapolation of instantaneous forward rates is
usually the preferred approach, with no real feasible alternatives I
know of.

This is also the approach adopted in the InterpolatedHazardRateCurve.

Any contrarian out there?

ciao -- Nando

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev