First-to-Default & Nth-to-Default Baskets#
A single-name CDS pays when one name defaults, and an index tranche pays when the losses on a large portfolio pass a level. Between them are the basket products on a handful of names, the first-to-default and nth-to-default swaps. They give protection on the first name in a basket to default, or on the second, the third or a later one, for a premium that is much higher than any single name’s for the first, and much lower for the later ones. They are the simplest products whose value depends on the correlation of defaults, and they are a tranche on a small portfolio. This page sets out the products, the Gaussian copula price, the bounds and the behaviour against the correlation that follow, and the risk, with an example and a plot.
The products#
A basket has \(N\) reference names, usually 3 to 10, with equal notionals. In a first-to-default swap (FTD), the protection buyer pays a spread on the full notional until the first name defaults, or the maturity if none does. On the first default the seller pays the loss on that name, \((1 - R_i)\) times the notional, and the contract ends. The other names are not covered. In an nth-to-default swap, the buyer is protected against the loss on the \(n\)-th name to default, and the first \(n-1\) defaults are for the buyer’s account, so the swap pays only once \(n - 1\) defaults have already happened.
Each is a tranche of the basket loss. With equal notionals and the same recovery, the first-to-default swap covers the slice of the portfolio loss from 0 to \(1/N\), the second-to-default the slice from \(1/N\) to \(2/N\), and so on. The first-to-default is the equity tranche of a small portfolio, and the last is its most senior. A basket of 5 names is a tranche structure with 20% slices.
The quotes are in basis points a year, as for a CDS, or as an upfront payment and a running spread.
Pricing#
Let \(\tau_{(n)}\) be the time of the \(n\)-th default. The swap has a protection leg that pays on that event and a premium leg that stops at it:
and the fair spread is \(s_n = \text{Protection}_n / \text{Annuity}_n\). Both depend on the distribution of the time of the \(n\)-th default, and that depends on how the names default together. With a premium paid at dates \(t_j\) and \(N_t\) the number of names that have defaulted by \(t\),
The standard model for the joint distribution is the one-factor Gaussian copula of Tranche Correlation: Compound & Base. Name \(i\) has a default probability \(p_i(t) = 1 - e^{-h_i t}\) from its own credit curve (Building a Credit Curve), and a latent variable \(X_i = \sqrt{\rho}\,M + \sqrt{1 - \rho}\,\varepsilon_i\). It has defaulted by \(t\) if \(X_i < \Phi^{-1}(p_i(t))\). Given the market factor \(M\), the names are independent with probability
and the distribution of the number of defaults \(N_t\) given \(M\) is a sum of independent Bernoulli variables, which is found one name at a time. With \(d_k\) the probability of exactly \(k\) defaults among the first \(i\) names,
The unconditional probability \(P(N_t \ge n)\) is the integral over \(M\) of one minus the sum of the first \(n\) terms, which is done with Gauss-Hermite quadrature (Numerical Integration: Quadrature). The method is exact for names with different spreads and costs a few hundred operations, so it needs no simulation. The simulation of default times, \(\tau_i = -\ln(1 - \Phi(X_i))/h_i\), gives the same answer and is the check.
Bounds and the behaviour with correlation#
The correlation does not change the expected loss of the basket. It moves the loss between the tranches of default.
When the correlation is zero, defaults are independent. The first default is the most likely to happen, the later ones are very unlikely, and the first-to-default spread is about the sum of the single-name spreads. It is slightly above it, since the premium stops at the first default.
When the correlation is close to one, the names default together, or not at all, and the name that matters is the one with the highest hazard rate. The first-to-default spread falls toward the largest single-name spread, since only one name needs to be covered, and the later defaults become as likely as the first.
A seller of first-to-default protection gains when the correlation rises, as the spread falls toward the largest single name. For the later defaults the opposite is true, and the fifth, which needs all the names to default, is worth almost nothing at zero correlation.
The protection legs add up. The five nth-to-default swaps together cover every default on every name, so the sum of their protection legs is the sum of the single-name protection legs, for any correlation. The spreads do not add up, because the annuities are different.
The middle ranges are not monotone. The second-to-default spread rises with correlation and then falls, as the first-to-default does at the other end, which is the same hump as the mezzanine tranche of Tranche Correlation: Compound & Base.
Risk#
Delta by name. The change in the swap’s spread for a change in a name’s own spread. At low correlation the first-to-default spread is nearly the sum of the spreads, and each name has a delta of about one. At high correlation the riskiest name dominates, and the safer names have almost none.
Correlation delta. The sensitivity to the correlation has a different sign for each rank, and the correlation is not observable for a bespoke basket.
Jump to default. When a name defaults the first-to-default swap pays, and ends, so the position changes in value at once by the loss. The loss given default and the recovery rate matter directly.
Hedging. The first-to-default can be hedged with single-name CDS in amounts that depend on the deltas, and they have to be rebalanced as the spreads and the correlation change.
Worked example#
The example takes a basket of five names with single-name spreads of 60, 90, 130, 180 and 250 basis points, a 5-year maturity, a 40% recovery and a flat 3% discount rate. It prices the first to fifth-to-default swaps at six correlations, checks that the protection legs add up, checks the first-to-default spread by simulation, and computes the delta by name and the correlation delta.
Python code
"""First-to-default and nth-to-default baskets in a one-factor Gaussian copula: spreads against correlation, bounds, a Monte Carlo check and the deltas by name."""
import numpy as np
from numpy.polynomial.hermite_e import hermegauss
from scipy.stats import norm
RECOVERY = 0.40
RATE = 0.03
MATURITY = 5.0
DT = 0.25
SPREADS = np.array([60.0, 90.0, 130.0, 180.0, 250.0]) * 1e-4
DATES = np.arange(DT, MATURITY + DT / 2, DT)
DF = np.exp(-RATE * DATES)
NODES, WEIGHTS = hermegauss(120)
WEIGHTS = WEIGHTS / np.sqrt(2 * np.pi)
def hazards(spreads):
return spreads / (1 - RECOVERY)
def prob_at_least(n, rho, spreads):
"""Probability that at least n of the names have defaulted by each premium date, for the Gaussian copula."""
h = hazards(spreads)
out = np.zeros(len(DATES))
for j, t in enumerate(DATES):
p = 1 - np.exp(-h * t)
c = norm.ppf(p)
if rho == 0.0:
cond = np.tile(p[:, None], (1, len(NODES)))
else:
cond = norm.cdf((c[:, None] - np.sqrt(rho) * NODES[None, :]) / np.sqrt(1 - rho))
dist = np.zeros((len(spreads) + 1, len(NODES)))
dist[0] = 1.0
for i in range(len(spreads)):
new = dist * (1 - cond[i])
new[1:] += dist[:-1] * cond[i]
dist = new
out[j] = np.sum(WEIGHTS * (1 - dist[:n].sum(axis=0)))
return out
def legs(prob):
"""Protection leg and risky annuity for a payoff that ends at the event whose cumulative probability is prob."""
prev = np.concatenate(([0.0], prob[:-1]))
protection = (1 - RECOVERY) * np.sum(DF * (prob - prev))
annuity = np.sum(DT * DF * (1 - prob))
return protection, annuity
def ntd_spread(n, rho, spreads=SPREADS):
protection, annuity = legs(prob_at_least(n, rho, spreads))
return protection / annuity
def single_name_spread(i, spreads=SPREADS):
q = np.exp(-hazards(spreads)[i] * DATES)
return legs(1 - q)[0] / legs(1 - q)[1]
def monte_carlo_ftd(rho, paths, seed):
"""First-to-default spread by simulating default times, with a default assigned to the end of its premium period."""
rng = np.random.default_rng(seed)
h = hazards(SPREADS)
m = rng.standard_normal(paths)
x = np.sqrt(rho) * m[:, None] + np.sqrt(1 - rho) * rng.standard_normal((paths, len(h)))
tau = -np.log(1 - norm.cdf(x)) / h
first = tau.min(axis=1)
idx = np.ceil(first / DT).astype(int)
hit = idx <= len(DATES)
protection = (1 - RECOVERY) * np.sum(DF[idx[hit] - 1]) / paths
alive = np.sum([np.sum(DT * DF[: min(i, len(DATES))]) for i in np.minimum(idx - 1, len(DATES))]) / paths
return protection / alive
if __name__ == "__main__":
print(f"Five names, 5 years, recovery {RECOVERY:.0%}, discount rate {RATE:.0%}. Single-name spreads (bp): " + ", ".join(f"{s * 1e4:.0f}" for s in SPREADS))
print(f" Sum of the spreads {SPREADS.sum() * 1e4:.0f}bp, largest {SPREADS.max() * 1e4:.0f}bp")
print("\n1. First to fifth to default spread (bp) against the correlation")
rhos = (0.0, 0.2, 0.4, 0.6, 0.8, 0.95)
print(f" {'Correlation':>11} " + " ".join(f"{str(n) + 'st' if n == 1 else str(n) + 'th' if n > 3 else str(n) + ('nd' if n == 2 else 'rd'):>9}" for n in range(1, 6)) + f" {'sum of the five':>16}")
for rho in rhos:
row = [ntd_spread(n, rho) for n in range(1, 6)]
print(f" {rho:11.2f} " + " ".join(f"{s * 1e4:9.1f}" for s in row) + f" {sum(row) * 1e4:16.1f}")
print("\n2. The protection legs of the five tranches of default add up to the sum of the single-name protection legs")
singles = sum(legs(1 - np.exp(-hazards(SPREADS)[i] * DATES))[0] for i in range(5))
for rho in (0.0, 0.4, 0.8):
total = sum(legs(prob_at_least(n, rho, SPREADS))[0] for n in range(1, 6))
print(f" correlation {rho:.1f}: sum over n of the nth-to-default legs {total:.8f}, sum of the single-name legs {singles:.8f}, difference {total - singles:+.1e}")
print("\n3. Monte Carlo check of the first-to-default spread, 1,000,000 simulations")
for rho in (0.2, 0.6):
print(f" correlation {rho:.1f}: semi-analytic {ntd_spread(1, rho) * 1e4:.2f}bp, simulation {monte_carlo_ftd(rho, 1_000_000, 5) * 1e4:.2f}bp")
print("\n4. Delta of the first-to-default spread: change in bp for a 1bp rise in each name's spread")
print(f" {'Correlation':>11} " + " ".join(f"{str(int(s * 1e4)) + 'bp name':>11}" for s in SPREADS) + f" {'sum':>8}")
for rho in (0.1, 0.5, 0.9):
base = ntd_spread(1, rho)
row = []
for i in range(5):
bumped = SPREADS.copy()
bumped[i] += 1e-4
row.append((ntd_spread(1, rho, bumped) - base) * 1e4)
print(f" {rho:11.1f} " + " ".join(f"{d:11.3f}" for d in row) + f" {sum(row):8.3f}")
print("\n5. Correlation delta: change in the spread of each tranche of default for a rise of 0.1 in the correlation, from 0.3")
print(f" {'':<8} " + " ".join(f"{n:>9d}" for n in range(1, 6)))
print(f" {'bp':<8} " + " ".join(f"{(ntd_spread(n, 0.4) - ntd_spread(n, 0.3)) * 1e4:+9.1f}" for n in range(1, 6)))
The output is:
Five names, 5 years, recovery 40%, discount rate 3%. Single-name spreads (bp): 60, 90, 130, 180, 250
Sum of the spreads 710bp, largest 250bp
1. First to fifth to default spread (bp) against the correlation
Correlation 1st 2nd 3rd 4th 5th sum of the five
0.00 720.6 114.6 11.5 0.6 0.0 847.3
0.20 626.6 148.0 32.4 5.3 0.5 812.8
0.40 535.0 169.6 57.4 16.8 3.2 782.1
0.60 445.0 181.6 82.9 35.0 10.7 755.1
0.80 352.3 184.4 107.5 60.2 27.2 731.6
0.95 275.1 180.7 125.2 84.4 50.9 716.3
2. The protection legs of the five tranches of default add up to the sum of the single-name protection legs
correlation 0.0: sum over n of the nth-to-default legs 0.30642686, sum of the single-name legs 0.30642686, difference +5.6e-17
correlation 0.4: sum over n of the nth-to-default legs 0.30642686, sum of the single-name legs 0.30642686, difference +0.0e+00
correlation 0.8: sum over n of the nth-to-default legs 0.30642686, sum of the single-name legs 0.30642686, difference +0.0e+00
3. Monte Carlo check of the first-to-default spread, 1,000,000 simulations
correlation 0.2: semi-analytic 626.57bp, simulation 627.63bp
correlation 0.6: semi-analytic 444.96bp, simulation 444.97bp
4. Delta of the first-to-default spread: change in bp for a 1bp rise in each name's spread
Correlation 60bp name 90bp name 130bp name 180bp name 250bp name sum
0.1 0.886 0.905 0.923 0.939 0.956 4.608
0.5 0.424 0.500 0.578 0.657 0.745 2.903
0.9 0.038 0.100 0.218 0.404 0.697 1.457
5. Correlation delta: change in the spread of each tranche of default for a rise of 0.1 in the correlation, from 0.3
1 2 3 4 5
bp -45.4 +9.5 +12.7 +6.6 +1.8
Reading the output:
The first-to-default is the expensive one at low correlation. At zero correlation it is 720.6 basis points, just above the sum of the single-name spreads, 710, since the premium stops at the first default. It falls to 275.1 at a correlation of 0.95, close to the largest spread, 250. The third, fourth and fifth rise from 11.5, 0.6 and 0.0 to 125.2, 84.4 and 50.9, and the second rises from 114.6 to a maximum of 184.4 at 0.8 and falls to 180.7.
The protection legs add up exactly. The sum over the five swaps is 0.30642686 at every correlation, the same as the sum of the single-name legs, to 6e-17. The spreads add to 847.3 at zero correlation and 716.3 at 0.95, never to 710, because the annuities differ.
The semi-analytic price agrees with simulation. At a correlation of 0.6 the two are 444.96 and 444.97 basis points. At 0.2 the simulation is 1.06 basis points higher, which is within its sampling error.
The deltas follow the correlation. At a correlation of 0.1 the first-to-default spread moves by 0.89 to 0.96 basis points for a basis point on any name, 4.6 in total, close to the number of names. At 0.9 the delta of the 60 basis point name is 0.04 and of the 250 basis point name 0.70, and the sum is 1.46: the basket behaves as one name, the riskiest.
The correlation delta has a sign for each rank. A rise of 0.1 in the correlation, from 0.3, takes 45.4 basis points off the first-to-default spread and adds 9.5, 12.7, 6.6 and 1.8 to the others. A seller of first-to-default protection gains when the correlation rises, and a seller of the third gains less than the first, with the opposite sign.
A valuation control view#
Check the correlation source: a basket has no quoted correlation of its own. It is taken from the index tranches by a mapping, or from a historical estimate, and the choice moves the first-to-default spread by hundreds of basis points over the range of 0 to 0.95. See Tranche Correlation: Compound & Base and Proxy Mapping and Illiquid Credit. The correlation is Level 3. See Fair-Value Hierarchy: Levels 1, 2 & 3.
Test the conservation of loss: the protection legs of all the ranks must add up to the single-name legs. A model that fails the test has a bug in the default times or the legs.
Check the bounds: the first-to-default spread must lie between the largest single-name spread and, allowing for the premium effect, about the sum. A price outside them is an error in the inputs.
Compare the model with a second method: a simulation of default times, or a different copula, such as a t copula with fatter joint tails. The difference is a model reserve. See Model Risk in Valuation.
Report delta by name and the jump to default: the risk is concentrated in a few names at high correlation, and a default of one name changes the position by the whole loss.
Look at the single-name curves: the basket spread depends on every name’s curve, and a stale or proxied curve for one name moves the price. See Building a Credit Curve.