One-factor Student t - Gaussian Copula. More...
#include <ql/experimental/credit/onefactorstudentcopula.hpp>
Public Member Functions | |
OneFactorStudentGaussianCopula (const Handle< Quote > &correlation, int nm, Real maximum=10, Size integrationSteps=200) | |
Real | density (Real m) const |
Density function of M. | |
Real | cumulativeZ (Real z) const |
Cumulative distribution of Z. | |
![]() | |
OneFactorCopula (const Handle< Quote > &correlation, Real maximum=5.0, Size integrationSteps=50, Real minimum=-5.0) | |
virtual Real | cumulativeY (Real y) const |
Cumulative distribution of Y. | |
virtual Real | inverseCumulativeY (Real p) const |
Inverse cumulative distribution of Y. | |
Real | correlation () const |
Single correlation parameter. | |
Real | conditionalProbability (Real prob, Real m) const |
Conditional probability. | |
std::vector< Real > | conditionalProbability (const std::vector< Real > &prob, Real m) const |
Vector of conditional probabilities. | |
Real | integral (Real p) const |
template<class F > | |
Real | integral (const F &f, std::vector< Real > &probabilities) const |
template<class F > | |
Distribution | integral (const F &f, const std::vector< Real > &nominals, const std::vector< Real > &probabilities) const |
int | checkMoments (Real tolerance) const |
![]() | |
void | update () |
void | recalculate () |
void | freeze () |
void | unfreeze () |
![]() | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
void | notifyObservers () |
![]() | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
std::pair< std::set < boost::shared_ptr < Observable > >::iterator, bool > | registerWith (const boost::shared_ptr< Observable > &) |
Size | unregisterWith (const boost::shared_ptr< Observable > &) |
void | unregisterWithAll () |
Additional Inherited Members | |
![]() | |
Size | steps () const |
Real | dm (Size i) const |
Real | m (Size i) const |
Real | densitydm (Size i) const |
![]() | |
Handle< Quote > | correlation_ |
Real | max_ |
Size | steps_ |
Real | min_ |
std::vector< Real > | y_ |
std::vector< Real > | cumulativeY_ |
One-factor Student t - Gaussian Copula.
The copula model
is specified here by setting the probability density functions for (
) to a Gaussian and for
(
) to a Student t-distribution with
degrees of freedom.
The variance of the Student t-distribution with degrees of freedom is
. Since the copula approach requires zero mean and unit variance distributions,
is scaled by
Density function of M.
Derived classes must override this method and ensure zero mean and unit variance.
Implements OneFactorCopula.
Cumulative distribution of Z.
Derived classes must override this method and ensure zero mean and unit variance.
Implements OneFactorCopula.