Hi, I've read this stackoverflow post (https://stackoverflow.com/questions/42195781/using-quantlib-to-compute-cash-flows-for-floatingratebond-with-floor) with interest. I've quoted the salient bit of the reply below. My question is does QuantLib have a pricer that just takes the expected LIBOR rate from the forecast curve and takes the minimum between that and the floor. I do understand this is not the valid/right way of doing things but I'm just checking whether QuantLib can do as so at this point. "The theory first: when pricing the coupon with a floor, you can't just take the expected LIBOR rate from your forecast curve and take the minimum between that and the floor. Instead, you need to take the expected value of the minimum between the rate and the floor, and unfortunately Thanks
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Anthony,
this is an edge case with zero input volatility (which you can set up using the constant optionlet volatility class). If you look into blackformula.cpp, this is even explicitly handled as you describe if (stdDev==0.0) return std::max((forward-strike)*optionType, Real(0.0))*discount; Best Regards Peter
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |