Uses of Class
com.quantfinlib.credit.CreditCurve
Packages that use CreditCurve
-
Uses of CreditCurve in com.quantfinlib.credit
Methods in com.quantfinlib.credit that return CreditCurveModifier and TypeMethodDescriptionstatic CreditCurveCreditCurve.bootstrap(int[] tenorYears, double[] parSpreads, double recovery, YieldCurve discount) Bootstraps from CDS par spreads.Methods in com.quantfinlib.credit with parameters of type CreditCurveModifier and TypeMethodDescriptionstatic CvaApproximator.BilateralCvaApproximator.bilateral(ExposureProfile profile, CreditCurve counterparty, double lgd, CreditCurve own, double ownLgd) Bilateral CVA/DVA from a simulated profile with first-to-default (Brigo and Capponi, "Bilateral counterparty risk with application to CDSs", 2008; Gregory, The xVA Challenge, 3rd ed., 2015, ch. 14).static CvaApproximator.BilateralCvaApproximator.bilateralWrongWay(ExposureProfile profile, CreditCurve counterparty, double lgd, CreditCurve own, double ownLgd, double bCpty, double bOwn, ExposureProfile.Factor driver) Bilateral CVA/DVA with wrong-way risk on both names and one path-consistent first-to-default (added in 2.3).static doubleCvaApproximator.cva(double[] expectedExposure, double[] bucketEndYears, CreditCurve counterparty, YieldCurve discount, double lgd) Discrete unilateral CVA over the given exposure profile.static doubleCvaApproximator.cva(ExposureProfile profile, CreditCurve counterparty, double lgd) CVA from a simulated exposure profile, independent default:LGD * sum_i E[D(0,t_i) E(t_i)] * [Q(t_{i-1}) - Q(t_i)].static doubleCvaApproximator.cvaBucketAverage(double eeAtZero, double[] expectedExposure, double[] bucketEndYears, CreditCurve counterparty, YieldCurve discount, double lgd) Discrete unilateral CVA with the discounted exposure averaged over each bucket (trapezoid rule), added in 3.1.static doubleCvaApproximator.cvaWrongWay(ExposureProfile profile, CreditCurve counterparty, double lgd, double rho, ExposureProfile.Factor driver) CVA with wrong-way risk through a Gaussian copula between default and a market factor, applied bucket by bucket (Li 2000; Gregory, The xVA Challenge, 3rd ed., 2015, ch. 17; the per-bucket conditioning follows Hull and White, "CVA and wrong-way risk", Financial Analysts Journal 68(5), 2012, where default is tied to the market variable that drives the exposure at each date).static doubleCvaApproximator.dva(ExposureProfile profile, CreditCurve own, double ownLgd) DVA from a simulated exposure profile: the same sum over the negative exposure and the bank's own credit curve.static doubleCdsPricer.parSpread(CreditCurve credit, YieldCurve discount, double maturityYears) The zero-upfront (par) spread for this maturity.static doubleCdsPricer.premiumLegPv(CreditCurve credit, YieldCurve discount, double spread, double maturityYears) PV of the premium leg at the given running spread.static doubleCdsPricer.protectionLegPv(CreditCurve credit, YieldCurve discount, double maturityYears) PV of the protection leg: (1-R) paid at default.static doubleCdsPricer.riskyAnnuity(CreditCurve credit, YieldCurve discount, double maturityYears) PV of 1bp-per-year premium stream per unit spread (the risky annuity / risky DV01 base).static doubleCdsPricer.upfront(CreditCurve credit, YieldCurve discount, double contractSpread, double maturityYears) Upfront points (per unit notional) the protection buyer pays on a contract with fixed running couponcontractSpread.