Multiple interpolation methods for YieldTermStructure

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

Multiple interpolation methods for YieldTermStructure

jlee
Hi,
Is it possible to construct a yield curve with multiple interpolation methods? For the general curve we use LogParabolic but in the FRAs we put event/jump dates in which causes the forwards after these dates to be weird. So ideally we would like to use linear interp for after the event date until the next instrument.

Would this be possible. Or is there a way to "append" YieldTermStructures constructed with different interpolation methods.

Thanks,
Jon
Reply | Threaded
Open this post in threaded view
|

Re: Multiple interpolation methods for YieldTermStructure

Luigi Ballabio
Hello,
    it's not easy to do. You'd have to create an interpolation class for that and the corresponding traits class.

Luigi


On Fri, Mar 14, 2014 at 1:49 PM, jlee <[hidden email]> wrote:
Hi,
Is it possible to construct a yield curve with multiple interpolation
methods? For the general curve we use LogParabolic but in the FRAs we put
event/jump dates in which causes the forwards after these dates to be weird.
So ideally we would like to use linear interp for after the event date until
the next instrument.

Would this be possible. Or is there a way to "append" YieldTermStructures
constructed with different interpolation methods.

Thanks,
Jon



--
View this message in context: http://quantlib.10058.n7.nabble.com/Multiple-interpolation-methods-for-YieldTermStructure-tp15064.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Multiple interpolation methods for YieldTermStructure

Ferdinando M. Ametrano-2
In reply to this post by jlee
I had this need but never felt compelled enough to tackle the problem.. There are two different issues here.

The first one is how to deal with jumps. The framework is ready to deal with jumps as exogenously superimposed over a smooth function, as usually needed by turn-of-year effects and similar jumps. That is the way to go in my opinion for local jumps.

The second one is when you might prefer something like piece-wise-flat for the first two years then cubic. In this case some work has been done on mixed interpolation, which might be useful for instantiating just one curve with a mixed interpolation. In that case you have the complexity of defining the interpolation traits.
It might be probably better to define instead a new term-structure which does the blending of two different term structures. It is less efficient in some way, but probably more robust.




On Fri, Mar 14, 2014 at 1:49 PM, jlee <[hidden email]> wrote:
Hi,
Is it possible to construct a yield curve with multiple interpolation
methods? For the general curve we use LogParabolic but in the FRAs we put
event/jump dates in which causes the forwards after these dates to be weird.
So ideally we would like to use linear interp for after the event date until
the next instrument.

Would this be possible. Or is there a way to "append" YieldTermStructures
constructed with different interpolation methods.

Thanks,
Jon



--
View this message in context: http://quantlib.10058.n7.nabble.com/Multiple-interpolation-methods-for-YieldTermStructure-tp15064.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users