Another question about InterpolatedDiscountCurve

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

Another question about InterpolatedDiscountCurve

dhoorens

Hi everyone

I’m working on an old release version of Quantlib (0.9.7)

I had recently a problem with the interpolatedDiscountCurve class.

I have an economic scenario generator which gives me as pricecurve for a (very) extreme scenario

 

1

0,995

6

0,4

12

0,04

24

0,02

36

0,001

60

0,00003

120

0,0000008

 

(Column 1 is the term (in months), column 2 is the price.

I know, it gives me (very (did-I-say-very?)) important rates …

 

When I try to associate these points with a cubicsplineDiscount Curve, it works, BUT when I try to interpolate between for example 12M and 24M, I obtain negative prices. Is it normal?

I know that this is due to the facts that

* the scenario is very extreme

* the loops created by the splines are very large => the loop passes under zero

But wouldn’t it be necessary to limit the prices to zero?

 

Tks for your answer

David

 

<script language="JavaScript" src="http://www.quotedb.com/quote/quote.php?action=random_quote&=&=&"> </script> 



-----Disclaimer-----

This message may contain confidential information intended solely for the use of the named addressee. If you are not 
the intended recipient, you should not read, use, disclose or reproduce the content of this message. If you have
received this message by mistake, please notify the sender immediately. Any views or opinions presented in this
message are solely those of the author and do not necessarily represent those of AXA Belgium, AXA Bank Europe,
AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless otherwise stated by the sender and duly
authorized by the said companies.

---------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Another question about InterpolatedDiscountCurve

Luigi Ballabio
On Thu, 2009-11-19 at 09:07 +0100, HOORENS David wrote:

> I had recently a problem with the interpolatedDiscountCurve class.
>
> I have an economic scenario generator which gives me as pricecurve for
> a (very) extreme scenario
> [...]
> When I try to associate these points with a cubicsplineDiscount Curve,
> it works, BUT when I try to interpolate between for example 12M and
> 24M, I obtain negative prices.
>
> wouldn’t it be necessary to limit the prices to zero?

Yes, but it's not straighforward to do so while building the splines.
You might try some other available spline interpolation, such as
monotonic splines. Let me know if that helps.

Luigi


--

Brady's First Law of Problem Solving:
When confronted by a difficult problem, you can solve it more
easily by reducing it to the question, "How would the Lone
Ranger have handled this?"



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users