QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Basket Loss & LHP Loss Model

Open phil-zxx opened this issue 5 years ago • 1 comments

Two small comments:

  1. 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.

  2. 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.

image

Screenshot taken from https://books.google.co.uk/books?id=tWZ3EgNAZHEC&printsec=frontcover (section 12.5.1)

phil-zxx avatar Jan 24 '20 18:01 phil-zxx

Thanks!

lballabio avatar Feb 04 '20 16:02 lballabio