|
From: N_Lassesen <nic...@ca...> - 2008-07-07 19:52:59
|
The function Real probabilityOfNEvents(Size n, const std::vector<Real>& prob) is numerically unstable. This document: http://www.cs.toronto.edu/pub/reports/na/ma-07-phd.pdf describes a recursive procedure (formula 2.1) which is numerically stable, and which gives rise to an identical loss distribution. I have been able to replicate the results in Hull and White (2004) using this procedure with an error of only a few basis points. Rgds Nicolai Lassesen -- View this message in context: http://www.nabble.com/Regarding-ql-experimental-credit-lossdistribution.hpp-tp18325181p18325181.html Sent from the quantlib-dev mailing list archive at Nabble.com. |