Hi Luigi,
I know what you mean but for deposits , you can say that 100 - NPV(deposit) = 0.0, and it will be the same. I'm saying that because I implemented CDS curve and you can't use (impliedQuote() - theoriticalQuote()) because to get the implied CDS spread , you have to use a newton algo and it costs. I know that it's a little beat different, because I'm looking for default probabilities but it seems that It's easier to use NPV(deal) =0.0. So the generic condition for all instruments would be MktPrice - NPV =0.00. So for the swap MktPrice =0.00,it will be NPV=0.00. For a bond it would be BondPrice - NPV = 0.00. .... What I would like to do, it's to use that the value of any CDS =0.0, so to go around the problem I can put the handle Quote =0.00 and the impliedQuote by the NPV : Real RateHelper::quoteError() const { return quote_->value()-impliedQuote(); } But it would be better to have the quoteError() method proteceted ? Regards. Adjriou Abdelak, Tél : +33 (0)1 41 02 46 70 Analyste Quantitatif HSBC HALBIS Partners Pour : [hidden email] cc : [hidden email] Objet : Re: [Quantlib-users] curve bootstrapping Luigi Ballabio <[hidden email]> Envoyé par : [hidden email] et 10/03/2006 16:59 >> From: [hidden email] >> To: [hidden email] >> CC: [hidden email] >> Subject: [Quantlib-users] curve bootstrapping >> Date: Fri, 10 Mar 2006 10:40:06 +0100 >> >> In the curve bootstrapping method , for each instrument , quantlib >> solves the following equation using newton optimistaion : the >> implied quote - the theoritical quote =0.0 by adjusting the discount >> factor. >> This costs a lot, why don't we just solve price of each >> instrument =0.0 ? At the quoted rate, the price equals 0 only for swaps. Deposits, forwards and futures have positive prices. Therefore, price = 0 cannot be used as a generic condition for all instruments. Cheers, Luigi ---------------------------------------- The Feynman Problem Solving Algorithm: 1) Write down the problem. 2) Think very hard. 3) Write down the solution. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Quantlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users Les informations contenues dans ce message sont confidentielles et peuvent constituer des informations privilegiees. Si vous n etes pas le destinataire de ce message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d en utiliser tout ou partie. Si vous avez recu ce message par erreur, merci de le supprimer de votre systeme, ainsi que toutes ses copies, et d en avertir immediatement l expediteur par message de retour. Il est impossible de garantir que les communications par messagerie electronique arrivent en temps utile, sont securisees ou denuees de toute erreur ou virus. En consequence, l expediteur n accepte aucune responsabilite du fait des erreurs ou omissions qui pourraient en resulter. --- ----------------------------------------------------- --- The information contained in this e-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. E-mail communications cannot be guaranteed to be timely secure, error or virus-free. The sender does not accept liability for any errors or omissions which arise as a result. |
Free forum by Nabble | Edit this page |