Chapter 16 measures the exposure of a netting set and prices the counterparty's default as a unilateral CVA. This chapter adds the other side and the cost of money: the debit valuation adjustment (DVA), the value to us of our own default, and the funding valuation adjustment (FVA), the cost of funding a positive exposure and the benefit of lending out a negative one. It also defines the bilateral CVA, where the first default closes the netting set out. Nothing here is taken from an existing implementation: the bilateral formulas are those of Brigo and Capponi (2010), the funding adjustments follow Burgard and Kjaer (2011), Gregory (2015) (ch. 14, 17 and 18) and Green (2015).
Every adjustment is signed for us, as everywhere in the library (Chapter 8): a cost is negative, a benefit positive, and the value after XVA is today's value plus the adjustments.
| Adjustment | What it prices | Sign |
|---|---|---|
| CVA | The counterparty defaults while the netting set is worth something to us | \(\le 0\) |
| DVA | We default while the netting set is worth something to the counterparty | \(\ge 0\) |
| FCA | We borrow to fund a positive value | \(\le 0\) for a positive borrowing spread |
| FBA | We lend out the cash a negative value frees | \(\ge 0\) for a positive lending spread |
| FVA | FCA + FBA | either |
| XVA | CVA + DVA + FCA + FBA | either |
Assumptions, stated once: the netting set is uncollateralised; at a default it is closed out at its risk-free value \(V(\tau)\) (no replacement cost on our own credit); our default, the counterparty's default and interest rates are independent of each other (no wrong-way risk); exposures are those of Section 16.6, simulated under Hull-White on the currency's standard discount curve, for swaps, FRAs and options (Chapter 24).
23.1 Notation
| Symbol | Meaning |
|---|---|
| \(C\), \(B\) | The counterparty and ourselves (the bank) |
| \(t\) | Curve time from the valuation date, Act/365 Fixed (Section 7.2) |
| \(t_0 = 0 < t_1 < \dots < t_n\) | The exposure dates; \(t_n\) is the netting set's last payment |
| \(\Delta_i\) | \(t_i - t_{i-1}\) |
| \(\mathrm{EE}_d(t)\), \(\mathrm{ENE}_d(t)\), \(\mathrm{EV}_d(t)\) | Discounted expected exposure, expected negative exposure and expected value (Equation (16.13)) |
| \(S_C(t)\), \(S_B(t)\) | The survival probabilities of the counterparty and of ourselves (Equation (16.16)) |
| \(\lambda_B(t)\) | Our hazard rate |
| \(R_C\), \(R_B\) | The recovery rates of the counterparty and of ourselves |
| \(s_b(t)\), \(s_l(t)\) | The borrowing and lending spreads over the discount rate, per year |
| \(\phi\) | 1 with first-to-default closeout, 0 without |
| \(\bar S_C(t)\), \(\bar S_B(t)\) | \(S_C(t)^{\phi}\) and \(S_B(t)^{\phi}\): the other party's survival when it counts, else 1 |
| \(M\) | The number of independent samples (paths, or antithetic pairs) |
23.2 Bilateral CVA and DVA
With first-to-default closeout, the counterparty's default costs us only if we have not defaulted first, and ours benefits us only if the counterparty has not. With the two defaults independent of each other and of rates,
In words: the CVA is the discounted expected positive value at each time, weighted by the probability that the counterparty defaults then and we are still alive, times the counterparty's loss given default. The DVA is the same with the roles swapped; since \(\mathrm{ENE}_d \le 0\) it is a benefit. Without closeout (\(\phi = 0\)) each default is counted alone and the CVA is the unilateral CVA of Equation (16.1).
The DVA is a benefit that cannot be monetised without defaulting; IFRS 13 fair value includes it, prudential valuation does not. The library computes it and lets the reader choose (Section 23.7).
23.3 Funding
An uncollateralised positive value has to be funded: the bank hedges it with a collateralised trade, posts cash, and borrows that cash at the discount rate plus its borrowing spread \(s_b\). A negative value frees cash, which earns the discount rate plus a lending spread \(s_l\). Funding lasts until the first default when closeout applies:
Each spread is either flat (for example a treasury's funds transfer spread) or at our own credit, \(s(t) = (1-R_B)\,\lambda_B(t)\): what a bank pays when it funds through unsecured bonds priced at its CDS spread (Burgard and Kjaer, 2011). With first-to-default closeout and funding at our own credit, \(s_b(t)\,\bar S_B(t)\,dt = (1-R_B)\,(-dS_B(t))\), so
our own default both stops the funding and is its price. This is what "funding at our own credit" means in this library.
The borrowing spread is at our own credit by default and the lending spread 0. Two caveats. A bank's actual funding spread is usually below its CDS spread (the CDS-bond basis, secured funding), so a treasury reports the FCA on its funds transfer curve: the flat borrowing spread serves that. And a lending spread at our own credit counts our default a second time (Section 23.7). Asymmetric FCA and FBA are chosen over a symmetric adjustment on \(\mathrm{EV}_d\) because most treasuries borrow and lend at different spreads; the symmetric case is recovered with \(s_b = s_l\).
23.4 Credit inputs
Each party's survival curve is either one of the market's CDS curves, bootstrapped from its quotes (Section 18.9), or a flat credit spread \(s\) turned into a flat hazard rate \(s/(1-R)\) by the credit triangle (Equation (16.17)), an approximation exact only for a CDS paying its premium continuously.
Recovery. A CDS curve is bootstrapped under a recovery rate: the quotes fix the default probabilities that the curve implies with it. When the user chooses another recovery \(R'\) for a curve, the library bootstraps the same quotes again under \(R'\), so the curve still reprices the market. Simply replacing \(R\) by \(R'\) in the loss given default with the curve held would value the CVA on a curve the market does not quote. A consequence the user should expect: the spreads fix \((1-R)\,\lambda\) to first order, so the bootstrap raises the hazard rates as the recovery falls and the CVA barely moves. The recovery sensitivity of Section 16.8 says the same in derivative form (+3.21 per point in its example). Recovery matters more for the DVA and FCA, whose own-credit curve is often a flat spread, and for the timing of defaults along the curve.
23.5 On the exposure dates
Each adjustment is computed on the exposure dates as Equation (16.18) does: on interval \(i\), the probability-weighted term is the average of the exposure at both ends, the other party's survival taken inside the average. With \(\Delta\mathrm{PD}_{X,i} = S_X(t_{i-1}) - S_X(t_i)\),
A funding leg at our own credit is weighted by our default probability of the interval, exactly as the DVA:
and the FBA likewise with \(\mathrm{ENE}_d\). A flat spread \(s\) is integrated over the interval's length, both survivals inside the average:
and the FBA likewise with \(s_l\) and \(\mathrm{ENE}_d\). On a flat hazard rate the two forms agree to second order in \(\lambda_B \Delta_i\); the first is chosen so that the identities of Section 23.7 hold exactly. In plain words: a flat spread is accrued over the interval, while at our own credit our default probability of the interval is used, so switching from "our credit" to a flat spread of the same number of basis points moves the FCA slightly, at second order. Each interval's term is the adjustment's contribution for that interval; the contributions add up to the adjustment and show where in time it comes from.
23.6 Standard errors
Every adjustment above has the form
with deterministic weights \(a_i, b_i\) and \(X\) the mean of \(\max(U, 0)\) or \(\min(U, 0)\) over the samples, where \(U\) is the deflated value of Section 16.6. Computing \(A_m\) with the exposure of sample \(m\) in place of the mean,
as Equation (16.19). The FVA's and the total's standard errors use the sum of their components on each sample, as the components share their paths. Two netting sets share their random numbers (the same seed), so their errors are not independent; the sum of their standard errors bounds the error of their total.
23.7 Overlaps and identities
DVA and FBA overlap. Both are benefits on the negative exposure. With the lending spread at our own credit, Equation (23.7) applied to \(\mathrm{ENE}_d\) is Equation (23.6)'s DVA term by term: \(\mathrm{FBA} = \mathrm{DVA}\) exactly, and counting both counts our default twice (Gregory, 2015, ch. 18). With the default lending spread of 0 the total is the usual "CVA + DVA + FCA". The desktop also shows the total without DVA, for those who report the FBA instead.
DVA and FCA do not overlap: they sit on opposite sides of the exposure. At our own credit, since \(\mathrm{EE}_d + \mathrm{ENE}_d = \mathrm{EV}_d\),
the symmetric funding adjustment on the expected value, which is the Burgard–Kjaer result for a bank funding at its own credit (Burgard and Kjaer, 2011).
Regression. Without closeout the CVA is Equation (16.18)'s unilateral CVA, sample by sample.
The tests pin the three identities exactly.
23.8 Netting sets on the desktop
The desktop's XVA tab values the checked trades. Swaps (OIS and IRS), FRAs, caps, floors and swaptions (Chapter 24) are grouped by counterparty, netting set and currency; each group is calibrated (Section 16.9), simulated and adjusted on its own. A netting set under a CSA is simulated with its margin terms (Section 24.10). One simplification is stated on the page, making the CVA and the DVA an upper bound on their size: a counterparty's trades in different currencies are netted per currency (cross-currency netting needs a multi-currency simulation). Adjustments are converted to the base currency at today's FX spot (Section 8.6); a netting set without a rate is left out of the totals and the page says so. Other products are listed with the reason they are left out.
The simulation and calibration use the currency's standard discount curve: its default curve, or for SAR its curve against USD. The waterfall's first bar is therefore labelled "PV, standard discounting": the pricers' present value, which for a netting set holding options differs from the model value the exposure starts from (Section 24.6).
23.9 Worked example
The swap and model of Section 16.10: a 5Y USD SOFR OIS receiving 3.95% on 10,000,000, Hull-White \(a = 3\%\), \(\sigma = 1\%\), 10,000 paths, seed 1, annual exposure dates. The counterparty's hazard rate is 2% and ours 1%, both with 40% recovery; we borrow at our own credit, \((1-0.4) \times 1\% = 0.6\%\), and lend at 0. With first-to-default closeout:
| Interval ending | \(S_C\) | \(S_B\) | CVA | DVA | FCA |
|---|---|---|---|---|---|
| 2027-10-14 | 0.980199 | 0.990050 | -804 | 590 | -400 |
| 2028-10-13 | 0.960789 | 0.980199 | -1,691 | 1,064 | -845 |
| 2029-10-14 | 0.941713 | 0.970446 | -1,707 | 1,070 | -854 |
| 2030-10-14 | 0.923066 | 0.960789 | -1,407 | 851 | -704 |
| 2031-10-14 | 0.904788 | 0.951229 | -911 | 540 | -456 |
| Total | -6,520 | 4,115 | -3,259 |
Standard errors: CVA 58, DVA 32, FCA 29; the FBA is 0. The XVA is \(-6{,}520 + 4{,}115 - 3{,}259 = -5{,}664\) (standard error 55), and \(-9{,}779\) without the DVA. The first interval by hand: the CVA is \(-0.6 \times (1 - 0.980199) \times \tfrac{1}{2}(0 + 136{,}758 \times 0.990050) = -804\); the DVA is \(-0.6 \times (1 - 0.990050) \times \tfrac{1}{2}(-32{,}230 - 168{,}690 \times 0.980199) = +590\); the FCA is \(-0.6 \times (1 - 0.990050) \times \tfrac{1}{2}(0 + 136{,}758 \times 0.980199) = -400\).
Without closeout the CVA is \(-6{,}687\) (that of Section 16.10), the DVA 4,322, the FCA \(-3{,}429\) and the XVA \(-5{,}793\): closeout trims each adjustment by the other party's survival, a few percent here. The swap is below par, so its negative exposure is larger than its positive one and the DVA is large next to the CVA; the funding cost is about half the CVA, the ratio of our 0.6% funding spread to the counterparty's 1.2% loss rate.
References
References
- Damiano Brigo and Agostino Capponi (2010). Bilateral Counterparty Risk with Application to CDSs. Risk 23(3), 85–90.
- Christoph Burgard and Mats Kjaer (2011). Partial Differential Equation Representations of Derivatives with Bilateral Counterparty Risk and Funding Costs. The Journal of Credit Risk 7(3), 75–93.
- Andrew Green (2015). XVA: Credit, Funding and Capital Valuation Adjustments. Wiley.
- Jon Gregory (2015). The xVA Challenge: Counterparty Credit Risk, Funding, Collateral and Capital. 3 edition. Wiley.