Basic Prerequisites: PFE and Credit Risk & the Merton Model (PD, LGD, hazard rates).
1. Intuition & Practical Objective
CVA is the number that prices a defaultable promise. The practical objective is to turn an exposure profile and a credit curve into one spread, in basis points, that a trader charges or hedges. The formula has a physical reading: walk along the survival curve; at each date, if the counterparty dies there, you lose the LGD fraction of what you are owed; discount and average.
Two implementations reach the same number:
- Direct (default-time) method - simulate a default time, value the portfolio once at that date, multiply by the probability the default happened in the interval.
- Path-wise (EPE) method - sum, over a grid, .
They are equal (with no wrong-way risk), but the direct method converges far faster: for a 10-year swap Gregory’s Spreadsheets 17.1–17.2 show a 6× smaller standard deviation for the same number of valuations - a 36× speed advantage (Monte Carlo error ).
The LGD cancellation - the most useful practical fact. In the discrete formula the actual LGD appears in the numerator and the market LGD (from the CDS calibration) appears in the denominator of the hazard. Where seniority matches, they cancel to first order: moving LGD from 60% to 50% changes CVA by <2% (Gregory Fig. 17.9). So do not agonise over LGD for a name where the CDS seniority matches your exposure.
2. Mathematical Ground Truth & Derivations
2.1 From first principle to the three CVA formulas
Let be the default time, , and the exposure at default. The direct (unilateral) CVA is
Writing the expectation as an integral over the default-intensity (survival) curve gives the path-wise integral form:
with the risky discount factor and . Discretising the integral over a grid:
This is the product-of-market-and-credit identity. Exposure (market risk) multiplies default probability (credit risk); with independence, everything else is bookkeeping.
2.2 The hazard comes from the CDS spread
For a flat spread and LGD, the risk-neutral hazard is (Hull, Eq 24.2)
Substituting into (17.3) and using gives the spread form
- CVA quoted as a spread in basis points, the desk’s natural unit. (Gregory Table 17.1: for a 10-year swap the recursive “CVA of the CVA” spread is bp, the risky-annuity estimate bp, and the EPE approximation bp.)
2.3 The LGD-adjusted form
Keeping the two LGDs separate:
When the LGD factors cancel - the practical reason (17.4) contains no LGD.
2.4 Bilateral CVA and DVA
Accounting (FAS 157 / IFRS 13) requires own credit risk in the value of liabilities. That is DVA, and the bilateral pair is
The joint discount factor is the first-to-default survival of both parties. In discrete form (17.8a/b) each term carries the other party’s survival probability . Because , DVA is a benefit opposing CVA - “my CVA is your DVA”. And when EPE ≈ −ENE,
DVA is derecognised from regulatory capital (BCBS 2011d) even though accounting demands it - a genuine conflict discussed in §4.
3. Computational Implementation - CVA, DVA and BCVA on a simulated profile
Reuse the ATM-forward exposure engine of 02, discount the EE to today, evaluate the discrete sum (17.3), and cross-check it against the integral (17.2) on a fine grid. Standard library only.
Read the block: CVA is −1.06 on a zero-value ATM forward - the price of the promise. The discrete sum and the fine-grid integral agree to ~3% (the residual is Monte Carlo noise plus the crude 20-step grid), which is the practical check that the two identities (17.2) and (17.3) are the same object. DVA (+0.73) uses the weaker own spread; it is smaller than CVA because our own credit is better, and BCVA lands at −0.327. The spread ladder shows CVA rising monotonically with spread - roughly linearly at moderate spreads, with the curvature that creates the large CVA gamma (and jump-to-default risk) discussed in 05 · Failure Modes.
4. Failure Modes & First-Principles Breakdowns
- Real-world vs risk-neutral PD. CVA must use market-implied (CDS) default probabilities, not historical default rates - the exit-price/hedging standard (Gregory §3.1.7). Substituting a real-world PD breaks the hedge and the accounting value.
- The DVA moral hazard. DVA increases in value when your own credit deteriorates - “book a profit by becoming less creditworthy”. Bondholders gain in firm default; shareholders do not, which is exactly why regulators derecognise DVA from capital (Gregory §17.3.5). Treat DVA as a funding benefit, not distributable income.
- DVA double-counts FBA. DVA and the funding benefit adjustment FBA are two names for the same negative-exposure benefit; adding both discounts it twice (§18.2.5). Choose
CVA + FCA + FBAorCVA + DVA + FCA, never all four. - Survival-adjustment and close-out ambiguity. Whether to include the other party’s survival probability (contingent vs non-contingent CVA), and whether close-out references base or actual (risky) value, changes the number and is not standardised across firms (Gregory §17.3.4).
- Spread-shape blindness. The same 5-year spread with an up-sloping, flat, or inverted curve gives materially different 10-year CVA (bp in Gregory Table 17.2). Using a single flat spread discards the term structure that drives the integral.
- “CVA of the CVA” forgetting. The exact spread that zeroes a CVA-inclusive value solves a recursive equation; the naive EPE approximation misses ~5% (Gregory Table 17.1).
5. References
- Gregory, Jon: The xVA Challenge (5th ed., 2025)
- Brigo, Morini & Pallavicini: Counterparty Credit Risk, Collateral and Funding (2013)
- Hull, Options, Futures, and Other Derivatives
- BCBS (2011d): DVA derecognition; BCBS (2017) Basel III CVA Risk Framework for the capital treatment.
6. Connected Graph Bridges
- Back: PFE
- Forward: 04 · Collateral, Netting & SA-CCR · Index Hub
- Base: Credit Risk & the Merton Model · Value at Risk & Expected Shortfall