On 01 Aug 2017, at 11:39, Anthony Calleja <[hidden email]> wrote:------------------------------------------------------------------------------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
E[min(R,F)]
is not the same asmin(E[R],F)
. So no, the floor doesn't just provide a minimum; you need a different formula to estimate the expected payoff."Thanks
Anthony
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 | Disable Popup Ads | Edit this page |