Default loss distribution convolution for finite homogeneous pool. More...
#include <qle/models/homogeneouspooldef.hpp>
Public Member Functions | |
HomogeneousPoolLossModel (const QuantLib::ext::shared_ptr< ConstantLossLatentmodel< copulaPolicy > > &copula, Size nBuckets, Real max=5., Real min=-5., Real nSteps=50) | |
Real | expectedTrancheLoss (const Date &d, bool zeroRecovery=false) const |
Real | percentile (const Date &d, Real percentile) const |
Value at Risk given a default loss percentile. More... | |
Real | expectedShortfall (const Date &d, Probability percentile) const |
Protected Member Functions | |
Distribution | lossDistrib (const Date &d, bool zeroRecovery=false) const |
Protected Member Functions inherited from DefaultLossModel | |
DefaultLossModel () | |
virtual Real | expectedTrancheLoss (const Date &d, Real recoveryRate=Null< Real >()) const |
virtual Probability | probOverLoss (const Date &d, Real lossFraction) const |
virtual Real | expectedShortfall (const Date &d, Real percentile) const |
Expected shortfall given a default loss percentile. More... | |
virtual std::vector< Real > | splitVaRLevel (const Date &d, Real loss) const |
Associated VaR fraction to each counterparty. More... | |
virtual std::vector< Real > | splitESFLevel (const Date &d, Real loss) const |
Associated ESF fraction to each counterparty. More... | |
virtual std::map< Real, Probability > | lossDistribution (const Date &) const |
Full loss distribution. More... | |
virtual Real | densityTrancheLoss (const Date &d, Real lossFraction) const |
Probability density of a given loss fraction of the basket notional. More... | |
virtual std::vector< Probability > | probsBeingNthEvent (Size n, const Date &d) const |
virtual Real | defaultCorrelation (const Date &d, Size iName, Size jName) const |
Pearsons' default probability correlation. More... | |
virtual Probability | probAtLeastNEvents (Size n, const Date &d) const |
virtual Real | expectedRecovery (const Date &, Size iName, const DefaultProbKey &) const |
virtual QuantLib::Real | correlation () const |
Protected Attributes | |
const QuantLib::ext::shared_ptr< ConstantLossLatentmodel< copulaPolicy > > | copula_ |
Size | nBuckets_ |
Real | attach_ |
Real | detach_ |
Real | notional_ |
Real | attachAmount_ |
Real | detachAmount_ |
std::vector< Real > | notionals_ |
Protected Attributes inherited from DefaultLossModel | |
RelinkableHandle< QuantExt::Basket > | basket_ |
Private Member Functions | |
void | resetModel () |
Concrete models do now any updates/inits they need on basket reset. More... | |
Private Attributes | |
const Real | max_ |
const Real | min_ |
const Real | nSteps_ |
const Real | delta_ |
Default loss distribution convolution for finite homogeneous pool.
Definition at line 44 of file homogeneouspooldef.hpp.
HomogeneousPoolLossModel | ( | const QuantLib::ext::shared_ptr< ConstantLossLatentmodel< copulaPolicy > > & | copula, |
Size | nBuckets, | ||
Real | max = 5. , |
||
Real | min = -5. , |
||
Real | nSteps = 50 |
||
) |
Definition at line 49 of file homogeneouspooldef.hpp.
|
privatevirtual |
Concrete models do now any updates/inits they need on basket reset.
Implements DefaultLossModel.
Definition at line 118 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 132 of file homogeneouspooldef.hpp.
Real expectedTrancheLoss | ( | const Date & | d, |
bool | zeroRecovery = false |
||
) | const |
Definition at line 61 of file homogeneouspooldef.hpp.
|
virtual |
Value at Risk given a default loss percentile.
Reimplemented from DefaultLossModel.
Definition at line 87 of file homogeneouspooldef.hpp.
Real expectedShortfall | ( | const Date & | d, |
Probability | percentile | ||
) | const |
Definition at line 91 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 98 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 99 of file homogeneouspooldef.hpp.
|
mutableprotected |
Definition at line 100 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 100 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 100 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 100 of file homogeneouspooldef.hpp.
|
protected |
Definition at line 100 of file homogeneouspooldef.hpp.
|
mutableprotected |
Definition at line 101 of file homogeneouspooldef.hpp.
|
private |
Definition at line 107 of file homogeneouspooldef.hpp.
|
private |
Definition at line 108 of file homogeneouspooldef.hpp.
|
private |
Definition at line 109 of file homogeneouspooldef.hpp.
|
private |
Definition at line 110 of file homogeneouspooldef.hpp.