Return to Home
Quantitative Finance Masterclass

Unpacking CDS

A granular deep-dive into the mechanics of Credit Default Swaps, from bilateral insurance to advanced quantitative Greeks.

Credit Default Swaps Infographic
Click to view full screen

1. Foundational Intuition

The fundamental transfer of credit risk: Deconstructing the insurance-derivative hybrid.

The Bilateral Payout Mechanism

A Credit Default Swap (CDS) is a derivative that separates credit risk from a loan or bond. It involves two parties: the Protection Buyer (who pays a spread) and the Protection Seller (who assumes the risk).

Tutorial: How CDS Works Step-by-Step

1
Setup

Bank A owns $10M of Tesla bonds but wants to hedge credit risk without selling the bonds.

2
Contract

Bank A buys CDS protection from Hedge Fund B, paying 150bps annually on $10M notional.

3
Payout

If Tesla defaults, Hedge Fund B pays Bank A the loss: $10M × (1 - Recovery Rate).

💡 Key Insight

Bank A keeps earning interest on Tesla bonds but transfers default risk. Hedge Fund B earns premium income but assumes tail risk. This is pure risk transfer!

Reference Entity

The corporation or sovereign whose credit is being tracked. Note the Entity is the name, while the Obligation is the specific bond used to determine seniority.

Example: Reference Entity = "Tesla Inc.", Reference Obligation = "Tesla 5.3% 2025 Senior Notes"

Insurable Interest

Unlike insurance, CDS do not require the buyer to suffer a "loss." This allows for Long/Short Credit strategies, where a trader can profit from a company's demise without owning their debt.

Strategy: Hedge fund can buy CDS on 100 companies, betting on defaults without owning any bonds.

ISDA Credit Events

These are the specific triggers that activate CDS payouts. Understanding each is crucial for risk assessment:

Bankruptcy

Entity becomes insolvent or liquidates.

Example: Lehman Brothers filing Chapter 11 in 2008

Most Common
Failure to Pay

Entity misses a payment after grace periods.

Example: Argentina missing bond payments in 2001

Common
Restructuring

Terms changed (interest, principal, maturity).

Example: Greece extending bond maturities in 2012

Frequent in Sovereigns
Obligation Default

Another debt triggers a default clause.

Example: Cross-default clauses triggering

Rare
Repudiation

Sovereign denies the validity of debt.

Example: Russia repudiating Soviet-era debt

Very Rare
Acceleration

Debt becomes due immediately.

Example: Covenant breach forcing early payment

Uncommon
Professional Tip

Restructuring is often excluded from corporate CDS (called "No-R" contracts) because it's subjective and can be gamed. Sovereign CDS typically include it because debt restructuring is common in sovereign defaults.

2. Pricing and Valuation

The mathematical architecture: Solving the 'Credit Triangle' through hazard rates.

The Hazard Rate and Survival

CDS valuation relies on modeling Hazard Rates (\lambda), the instantaneous probability of default given survival. This allows us to construct the Survival Probability curve (P(t)).

Interactive Tutorial: Building the Survival Curve

Step 1: Market Data
1Y CDS Spread:100 bps
5Y CDS Spread:200 bps
Recovery Rate:40%
Step 2: Bootstrap Hazard Rates

We solve for λ values that make each CDS have zero NPV at inception:

λ₁ = 100bps / (1-40%) = 167bps
λ₅ = Solve iteratively...
Step 3: Calculate Survival Probabilities
1Y
98.3%
2Y
95.1%
3Y
91.2%
5Y
82.7%
P(t) = e^{-\int_0^t \lambda(u) du}

Market spreads are "bootstrapped" to find the sequence of hazard rates that satisfy the zero-NPV condition.

Intuition: If λ = 2% per year (constant), then after 5 years: P(5) = e^(-0.02×5) = 90.5% survival probability. The 9.5% cumulative default probability drives the CDS pricing.

The Premium Leg

The PV of periodic spread payments, conditional on survival. The protection buyer pays this.

PV_{Prem} = s \sum \Delta t_i D(t_i) P(t_i)

Example: For 200bps spread on $10M, 5Y: If entity survives all 5 years, total payments = $10M × 2% × 5 = $1M. But we discount and weight by survival probability.

The Protection Leg

The PV of the contingent payout (1-R) upon default. The protection seller pays this.

PV_{Prot} = (1-R) \int_0^T D(t) dP(t)

Example: If Tesla defaults in Year 3 with 25% recovery, protection seller pays: $10M × (1-25%) = $7.5M. This is weighted by default probability in Year 3.

Worked Example: Fair Value Calculation

Given
  • • Notional: $10M
  • • Maturity: 5 years
  • • Recovery: 40%
  • • Risk-free rate: 3%
  • • Hazard rate: 2% (flat)
Calculate
Premium Leg PV:
s × $10M × 4.2 = s × $42M
Protection Leg PV:
60% × $10M × 0.095 = $570K
Result
Set Premium = Protection:
s × $42M = $570K
Fair Spread = 136 bps

The Credit Triangle Simplification

For "napkin math," traders use the Credit Triangle relationship. For a flat curve and low default probability, the fair spread (s) simplifies to:

s \approx \lambda \times (1 - R)
Spread
Hazard Rate
Loss Given Default
Quick Calculator
Scenario A
λ = 3% per year
R = 40%
s ≈ 180 bps
Scenario B
λ = 1% per year
R = 60%
s ≈ 40 bps
Scenario C
λ = 5% per year
R = 20%
s ≈ 400 bps
The Basis Trade Opportunity

Institutional Note: The Z-spread on a cash bond should theoretically equal the CDS spread. The difference between them is the Basis.

Basis = CDS \, Spread - Cash \, Z\text{-}Spread
Positive Basis (CDS > Cash)

Trade: Buy cash bond, buy CDS protection. Profit from basis convergence while being credit-neutral.

Negative Basis (CDS < Cash)

Trade: Short cash bond, sell CDS protection. Requires careful funding and repo considerations.

3. The Big Bang Protocol

Evolution of the market: From bespoke contracts to standardized clearing and auction logic.

Standardization & Upfronts

Before 2009, CDS traded with "Par Spreads" (coupons that made NPV=0). Post-Big Bang, coupons are fixed at 100bps or 500bps to facilitate Trade Compression and Central Clearing.

Before vs After Big Bang (2009)

Pre-2009: Bespoke Contracts
Par Spreads

Each contract had unique coupon making NPV = 0

No Standardization

Different terms, maturities, recovery assumptions

Bilateral Risk

No central clearing, high counterparty risk

Illiquid

Hard to trade, compress, or net positions

Post-2009: Standardized World
Fixed Coupons

100bps (IG) or 500bps (HY) only

Standard Terms

IMM dates, 40% recovery, ISDA definitions

Central Clearing

ICE Clear Credit, reduced counterparty risk

Liquid Markets

Easy to trade, compress, and manage risk

Points Upfront (PUF) Calculation Tutorial

The Cash Gap Formula:
PUF \approx (s_{mkt} - Coupon) \times RD

The difference between market spread and fixed coupon, multiplied by risky duration.

Settlement Direction:
If mkt spread > couponBuyer Pays
If mkt spread < couponSeller Pays
Worked Examples
Example 1: IG Credit
Market Spread:150 bps
Fixed Coupon:100 bps
Risky Duration:4.7
PUF:+2.35%

Buyer pays 2.35% upfront

Example 2: Tight Credit
Market Spread:75 bps
Fixed Coupon:100 bps
Risky Duration:4.8
PUF:-1.20%

Seller pays 1.20% upfront

Example 3: HY Credit
Market Spread:750 bps
Fixed Coupon:500 bps
Risky Duration:3.2
PUF:+8.00%

Buyer pays 8.00% upfront

Credit Event Auctions: The Settlement Revolution

To handle massive volumes of CDS during a default (like Lehman Brothers), ISDA introduced the Auction mechanism. Market participants submit bond bids to find a "Final Price." The CDS payout is simply 100 - Final \, Price, avoiding the physical delivery of scarce bonds.

Auction Process (Step-by-Step)
1
Credit Event

ISDA determines credit event occurred

2
Initial Market

Dealers submit initial bond price estimates

3
Limit Orders

Physical settlement requests submitted

4
Final Price

Market clearing price determines payout

Historical Auction Results
Lehman Brothers (2008)
Final Price:8.625%
CDS Payout:91.375%

Massive payout due to near-total loss

Greece (2012)
Final Price:21.5%
CDS Payout:78.5%

Sovereign restructuring event

Hertz (2020)
Final Price:1.5%
CDS Payout:98.5%

COVID-related bankruptcy

4. Risk Sensitivities (CS01)

Mastering the Greeks: Quantifying spread risk, term structure, and the convexity of default.

CS01 & Risky Duration

CS01 (Credit Spread 01) is the dollar change in NPV for a 1bp shift in the credit spread. It is fundamentally linked to Risky Duration (RD), which is the sensitivity of the Premium Leg to the spread.

CS01 Calculation Tutorial

Method 1: Finite Difference
Step 1: Bump spread up 1bp
NPV(s + 1bp) = $45,230
Step 2: Bump spread down 1bp
NPV(s - 1bp) = $45,180
Result: CS01
($45,230 - $45,180) / 2 = $25
Method 2: Risky Duration
Given
Notional: $10M
Risky Duration: 4.7
Quick Estimate
CS01 ≈ $10M × 4.7 × 10⁻⁴ = $4,700
Note: This is per 100bp spread change
CS01 = \frac{PV(s + 1bp) - PV(s - 1bp)}{2}
1.

For safe entities (Low Spreads), RD is high (e.g., 4.8 for 5Y maturity).

2.

For distressed entities (High Spreads), RD collapses because the contract is likely to end early.

Risky Duration by Credit Quality
Investment Grade
Spread:50-200 bps
5Y Risky Duration:4.5-4.8
High survival probability means full duration exposure
High Yield
Spread:300-800 bps
5Y Risky Duration:3.5-4.2
Moderate default risk shortens effective duration
Distressed
Spread:1000+ bps
5Y Risky Duration:1.5-3.0
High default probability = short duration
Bucketed Credit Exposure Management
Bucket1Y
CS01: $15K
Bucket3Y
CS01: $32K
Bucket5Y
CS01: $47K
Bucket7Y
CS01: $38K
Bucket10Y
CS01: $28K

By bumping individual tenors, traders manage Curve Risk (steepening/flattening) rather than just parallel shifts. This is crucial for portfolio hedging and relative value trades.

Credit Convexity (Negative Gamma)

CDS are non-linear. Credit Gamma measures the change in CS01 as spreads move. Understanding this is crucial for risk management in volatile credit markets.

Gamma Effect Demonstration

Initial State
Spread:200 bps
CS01:$4,700
Position:Short Protection
Spread Widens to 400bps
New CS01:$4,200
Linear P&L:-$940K
Actual P&L:-$1,100K
Spread Widens to 1000bps
New CS01:$2,800
Linear P&L:-$3,760K
Actual P&L:-$3,200K
Key Observations
  • Initial widening: Linear model underestimates losses (negative gamma hurts)
  • Extreme widening: Linear model overestimates losses (approaching payout cap)
  • CS01 decreases: As default becomes more likely, duration shortens
\Gamma = \frac{\partial^2 NPV}{\partial s^2}
For a protection seller, the contract displays Negative Gamma. As spreads widen, your losses accelerate, but as they approach infinity, the loss per basis point (CS01) actually shrinks as the payout becomes certain.
Practical Risk Management Implications
For Protection Sellers
  • • Losses accelerate in initial spread widening
  • • Need larger hedges than CS01 suggests
  • • Consider gamma hedging with options
  • • Monitor correlation in portfolio
For Protection Buyers
  • • Benefit from negative gamma of sellers
  • • Gains accelerate in spread widening
  • • Natural hedge for credit portfolios
  • • Consider rolling strategies
CRITICAL: This means that a linear CS01 model will under-estimate losses in the initial stage of widening and over-estimate them as the name approaches default. Professional desks use full revaluation or second-order Taylor approximations for accurate P&L attribution.

5. Precise Estimation

The professional's toolkit: Estimating P&L and risk profiles on the fly.

Manual Risk Estimation

Calculating CS01 without a pricing engine requires estimating the Risky Duration (RD), which is the sensitivity of the annuity to the spread. This is essential for quick risk assessments and trade sizing.

Step-by-Step Manual Calculation

1
Identify Credit Quality

Investment Grade: RD ≈ 4.7
High Yield: RD ≈ 3.8
Distressed: RD ≈ 2.5

2
Apply Formula
CS01 = N × RD × 10⁻⁴

Where N is notional amount

3
Adjust for Maturity

1Y: RD × 0.2
3Y: RD × 0.6
5Y: RD × 1.0
10Y: RD × 1.4

4
Verify Result

Cross-check with market quotes or use finite difference method for validation.

Risky Duration Estimate
RD ≈ 4.7 (for 5Y IG)
CS01 Valuation
CS01 = N \times RD \times 10^{-4}

Where $10^{-4}$ represents 1bp (0.01%).

Recovery ($R$) Sensitivity

Recovery defaults to 40%. Changing it affects the Hazard Rate bootstrapped from the spread.

  • Low Recovery ⇒ High Hazard Rate ⇒ Short RD ⇒ Low CS01
  • High Recovery ⇒ Low Hazard Rate ⇒ Long RD ⇒ High CS01

Practical Examples

Example 1: Apple 5Y CDS
Notional:$50M
Credit Quality:IG (AAA)
Risky Duration:4.8
CS01:$24,000
Example 2: Tesla 5Y CDS
Notional:$25M
Credit Quality:HY (BB)
Risky Duration:3.8
CS01:$9,500
Example 3: WeWork 5Y CDS
Notional:$10M
Credit Quality:Distressed
Risky Duration:2.2
CS01:$2,200

Advanced Adjustments for Precision

Spread Level Adjustments
0-100 bps:RD × 1.0

Standard duration applies

100-500 bps:RD × 0.85

Moderate shortening

500+ bps:RD × 0.6

Significant shortening

Sector-Specific Factors
Financials:RD × 0.9

Higher correlation risk

Energy:RD × 0.8

Commodity volatility

Utilities:RD × 1.1

Stable cash flows

6. Stress Testing Logic

Tail-risk quantification: Evaluating the portfolio's breaking points.

Tiered Stress Testing

Professional desks use three tiers of stress testing to ensure they can survive a systemic or idiosyncratic credit crash. Each tier captures different aspects of tail risk and portfolio vulnerability.

Interactive Stress Testing Framework

Portfolio Setup for Examples
Position
Short $100M
Protection Seller
Current Spread
200 bps
Investment Grade
CS01
$47,000
Per 1bp move
Recovery
40%
Standard Assumption

Tier 1: Linear Stress (Parallel)

A "Systemic Widening" shock (e.g., +200bps). This is a 1st order estimate used for daily risk reporting.

Linear Logic
Loss \approx CS01 \times \Delta s
$47K × 200bp = $9.4M Loss
Convexity Effect

Note: This over-estimates losses for sellers in extreme shocks because it ignores the payout cap.

Actual Loss: ~$11.2M

Tier 2: Jump-to-Default

Assumes an instantaneous credit event. This removes all probability modeling and calculates the actual cash payout.

JTD = N(1 - R) - MTM
Calculation
Notional: $100M
Loss Given Default: 60%
Current MTM: $2M (negative)
JTD Loss: $62M

Ultimate Worst-Case Loss

Tier 3: Recovery Shock

In a crisis, Wrong-Way Risk occurs: spreads widen and Recovery rates drop simultaneously (e.g., 40% → 15%).

Scenario Analysis
Spread Shock:+300bps
Recovery Drop:40% → 20%
Combined Loss:$18.5M
This "Double Whammy" stress captures the systemic nature of credit cycles where assets and recovery values correlate to the downside.

Advanced Stress Testing Techniques

Historical Scenario Analysis
2008 Financial Crisis
IG Spreads: 100bp → 600bp
HY Spreads: 400bp → 2000bp
Recovery Rates: 40% → 25%
Portfolio Impact: -45%
COVID-19 March 2020
IG Spreads: 120bp → 400bp
HY Spreads: 350bp → 1100bp
Recovery Stable: ~40%
Portfolio Impact: -25%
Monte Carlo Stress Testing
Simulation Parameters
Simulations: 10,000 paths
Time Horizon: 1 year
Correlation Matrix: Sector-based
Default Clustering: Enabled
Risk Metrics
VaR (95%): $8.2M
VaR (99%): $15.7M
Expected Shortfall: $22.1M
Max Drawdown: $45.3M

Professional Risk Management Framework

Daily Monitoring
  • • CS01 by sector and rating
  • • Curve risk (DV01 buckets)
  • • Correlation exposure
  • • Liquidity metrics
  • • Basis risk (cash vs CDS)
Weekly Stress Tests
  • • Parallel spread shocks
  • • Curve steepening/flattening
  • • Sector rotation scenarios
  • • Recovery rate sensitivity
  • • Liquidity stress scenarios
Monthly Deep Dive
  • • Monte Carlo simulations
  • • Historical scenario replays
  • • Tail risk quantification
  • • Model validation
  • • Hedge effectiveness review

Continue Learning