Basic Prerequisites: Black–Scholes–Merton (the equity-as-call identity is BSM) and Probability & Measure Theory (CDFs, the normal quantile ). (these are the folder-level prerequisites for pages 02–06; page 01 states its own, smaller, entry requirements)
1. Intuition & Practical Objective
Credit risk is the risk of loss when a borrower does not pay. The pricing problem is subtle: unlike a stock, a bond’s payoff depends on a discrete, terminal, catastrophic event - default - and the firm’s ability to pay is not directly observable. Merton (1974) produced the founding insight in one stroke:
A firm’s equity is a European call option on the firm’s assets, struck at the face value of its debt.
At maturity, equity holders pay off the debt if the firm is worth more than the debt and pocket the residual; otherwise they exercise limited liability, hand the firm to the bondholders, and walk away. Therefore the entire apparatus of Black–Scholes–Merton - the PDE, the risk-neutral measure, , - applies directly, with firm value playing the role of the “stock” and debt the role of the “strike”. Risk-neutral default probability is then simply : the BSM exercise probability.
This folder is the model topic-folder for the Kwant-Atlas build. It is a hub: it (a) gives the fast formula lookup below (job #1), covering the structural (Merton), reduced-form (intensity), CDS pricing, and portfolio (Vasicek) layers, and (b) routes you to six sub-pages that walk from raw intuition through the structural model, distance-to-default and PD, reduced-form and CDS, the failure modes, and the portfolio extensions.
The one-sentence essence. “Default is an option: equity is a call on firm assets, so a credit spread is the price of a put that the firm’s owners hold against its creditors - and the probability of exercise is a Black–Scholes exercise probability.”
2. Mathematical Ground Truth & Derivations
Quick-Reference Lookup (job #1). All formulas below are transcribed from the verified corpus - Merton (1974) eqs. (10)–(18), Hull (11th ed.) §§24.2–24.9 eqs. (24.2)–(24.10), CreditMetrics (1997) Tables 1.8/6.2, and Vašíček (1987/1991) - and every number in the check column was re-executed and reproduced exactly (§3).
Notation. firm (asset) value, equity value, face value of debt (one zero-coupon bond, maturity ), risk-free rate, asset volatility, equity volatility, recovery rate, standard-normal CDF, its quantile, standard-normal density.
2.1 Structural (Merton) layer. Everything follows from , :
| Quantity | Formula | Verified check (§3) |
|---|---|---|
| Equity (call) | ||
| Equity-vol identity | ||
| Debt (risk-free − put) | ||
| Risk-neutral PD | bp | |
| Risky yield (Merton eq. 14) | spread bp | |
| Distance to default | (RN, ) | |
| PD (real-world) | bp | |
| KMV default point | (empirical, Crosbie–Bohn) | - |
2.2 Reduced-form (intensity) layer (Jarrow–Turnbull 1995; Hull §24.4):
| Quantity | Formula | Verified check |
|---|---|---|
| Hazard from spread | (Hull 24.2) | bp, bp/yr |
| Survival / default | , | |
| CDS fair spread | (PV protection ÷ PV premium+accrual) | recovers bp from |
| Continuous approx | bp |
2.3 Portfolio credit layer (Vašíček one-factor / Gaussian copula, Hull 24.10; Bluhm §1.2.3):
| Quantity | Formula | Verified check |
|---|---|---|
| Conditional PD | - | |
| Asymptotic loss CDF | : | |
| Loss quantile (Basel “formula”) | (17.63% of EAD) | |
| Portfolio UL (2 loans) | Bluhm (1.13) |
Critical scaling caveat. In the structural model the observable is equity, not firm value; must be solved from the two-equation system, and that inversion is the single largest source of error (§5). In the reduced-form model the spread is given and PD is implied - the two layers calibrate to the same data but answer different questions (real-world vs risk-neutral).
3. Computational Implementation - the hub engine
This runs on the standard library only (math.erf gives the exact normal CDF, so there is no numpy/scipy dependency). It solves the Merton two-equation system by fixed-point iteration, then reports distance-to-default, PD, and the model credit spread.
4. Failure Modes & First-Principles Breakdowns
Hub signposts - the folder’s failure-mode analysis lives in 05 · Failure Modes & Practice. In one line each:
- Firm value is unobservable - the model must invert equity into , an ill-conditioned problem whose error is amplified into the PD (a 1% error in moves PD by here).
- Default only at maturity / continuous asset paths - real firms jump to default between coupons; the diffusion cannot produce a surprise (the “credit-spread puzzle”: the model gives bp where markets quote bp).
- Independence is false - defaults cluster; asset correlation drives the entire tail of a portfolio loss distribution, and getting wrong mis-prices every CDO tranche.
5. References
- Merton, Robert C. - On the Pricing of Corporate Debt: The Risk Structure of Interest Rates, Journal of Finance 29(2):449–470 (1
- Hull, John C. - Options, Futures, and Other Derivatives (11th ed.)
- Bluhm, Overbeck & Wagner - Introduction to Credit Risk Modeling, 2nd ed. (2010)
- Gupton, Finger & Bhatia (J.P. Morgan) - *CreditMetrics™
- Vašíček, Oldřich - Probability of Loss on Loan Portfolio (KMV, 1987) and Limiting Loan Loss Probability Distribution (1991)
- Gregory, Jon - The xVA Challenge (5th ed., 2025)
6. Connected Graph Bridges
- Foundational base: Black–Scholes–Merton · Probability & Measure Theory
- Sibling topic: Value at Risk & Expected Shortfall (the portfolio-loss machinery this folder feeds) · Extreme Value Theory & Fat Tails (the tail of the loss distribution)
- Sub-pages (in-folder): 01 From Zero · 02 Structural Model · 03 Distance-to-Default & PD · 04 Reduced-Form & CDS · 05 Failure Modes · 06 Advanced Extensions