Open phil-zxx opened 4 years ago
Two small comments:
In https://github.com/lballabio/QuantLib/blob/master/Examples/BasketLosses/BasketLosses.cpp it says Expected 10-Yr Losses but in fact we have advance(..., Period(60, Months)). And 60 months are 5 years, not 10.
Expected 10-Yr Losses
advance(..., Period(60, Months))
In https://github.com/lballabio/QuantLib/blob/master/ql/experimental/credit/gaussianlhplossmodel.cpp the return value of function GaussianLHPLossModel::expectedTrancheLossImpl is not divided by (detachLimit - attachLimit) as should be done, see e.g.
GaussianLHPLossModel::expectedTrancheLossImpl
(detachLimit - attachLimit)
Screenshot taken from https://books.google.co.uk/books?id=tWZ3EgNAZHEC&printsec=frontcover (section 12.5.1)
Thanks!
Two small comments:
In https://github.com/lballabio/QuantLib/blob/master/Examples/BasketLosses/BasketLosses.cpp it says
Expected 10-Yr Losses
but in fact we haveadvance(..., Period(60, Months))
. And 60 months are 5 years, not 10.In https://github.com/lballabio/QuantLib/blob/master/ql/experimental/credit/gaussianlhplossmodel.cpp the return value of function
GaussianLHPLossModel::expectedTrancheLossImpl
is not divided by(detachLimit - attachLimit)
as should be done, see e.g.Screenshot taken from https://books.google.co.uk/books?id=tWZ3EgNAZHEC&printsec=frontcover (section 12.5.1)