MathFin
Map / Risk · Credit portfolio risk / MathFin.Risk.Credit.CreditMetrics

CreditMetrics rating transitions

MathFin.Risk.Credit.CreditMetricsMSC 91G40MSC 60J10JEL G24JEL G32 source

In the CreditMetrics methodology (J.P. Morgan, CreditMetrics — Technical Document, 1997, ch. 6) an obligor's credit rating moves between finitely many states ι (AAA, AA, …, CCC, Default) once per period, with migration probabilities given by a row-stochastic transition matrix P: the entry P i j is the probability of moving from rating i to rating j. Mathlib's Matrix.rowStochastic ℝ ι is exactly this object, and it is a submonoid of Matrix ι ι ℝ.

  • Multi-period migration. The k-period transition matrix is P ^ k, again row-stochastic: this is Submonoid.pow_mem for Mathlib's submonoid.
  • Default is absorbing. If no obligor leaves the Default state d (row d of P is the indicator of d), the probability (P ^ k) i d of being in default after k periods is monotone in k (monotone_pow_apply_absorbing).
  • Gaussian threshold migration. Row i of the CreditMetrics matrix is generated by a latent standard normal return Z: with thresholds -∞ = z 0 ≤ z 1 ≤ ⋯ ≤ z m = +∞, the obligor lands in bucket j iff z j < Z ≤ z (j + 1) (ratingBucket). The buckets partition ℝ (iUnion_ratingBucket, pairwise_disjoint_ratingBucket), so their probabilities under any probability law sum to one, and a matrix built row by row this way is row-stochastic (thresholdMatrix_mem_rowStochastic); the CreditMetrics case is the law N(0, 1), thresholdMatrix_mem_rowStochastic (gaussianReal 0 1).
  • Calibration. Conversely, every transition matrix arises this way: with the thresholds Φ⁻¹ of the cumulative row sums ∑_{k < j} P i k (gaussianThresholds; -∞ and +∞ at the ends), standard normal threshold migration reproduces P exactly (thresholdMatrix_gaussianThresholds).
  • Two obligors. When the latent returns of two obligors are standard bivariate normal with asset correlation r (bivariateNormalLaw r), both land in the lowest rating bucket (Default, in the threshold ordering) with probability N₂(Φ⁻¹(P i 0), Φ⁻¹(P k 0); r) (measureReal_default_prod_gaussianThresholds), and the covariance of their default indicators is N₂(Φ⁻¹(P i 0), Φ⁻¹(P k 0); r) − P i 0 · P k 0 (covariance_indicator_default_gaussianThresholds, by covariance_indicator_one). Joint migration to buckets other than Default is not stated.

Main definitions

  • ratingBucket: the set {x | z j < x ≤ z (j + 1)} of latent returns that send the obligor to rating j, for thresholds z.
  • thresholdMatrix: the transition matrix μ(z i j < Z ≤ z i (j + 1)) generated by row-wise thresholds z i and a latent-return law μ.
  • gaussianThreshold: ⊥ for c ≤ 0, ⊤ for c ≥ 1 and Φ⁻¹(c) in between.
  • cumulativeRow: the cumulative probability ∑_{k < j} P i k of the ratings below j in row i.
  • gaussianThresholds: the thresholds Φ⁻¹(∑_{k < j} P i k) calibrated to a transition matrix P.

Main results

  • monotone_pow_apply_absorbing: for a row-stochastic matrix with an absorbing state d, the cumulative default probability (P ^ k) i d is nondecreasing in k.
  • thresholdMatrix_mem_rowStochastic: for monotone thresholds running from ⊥ to ⊤ and a probability latent law, threshold migration gives a transition matrix.
  • thresholdMatrix_gaussianThresholds: for a row-stochastic P, the calibrated thresholds reproduce the matrix.
  • measureReal_default_prod_gaussianThresholds, covariance_indicator_default_gaussianThresholds: joint default and default covariance of two obligors with correlated returns.

References

Tags

CreditMetrics, rating transitions, migration matrix, transition matrix, absorbing default, Gaussian threshold model, asset correlation, MSC 91G40, MSC 60J10, JEL G24, JEL G32

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-creditmetrics-threshold-calibration · credit.json · full statement
CreditMetrics Thresholds Reproduce the Transition Matrix

For a row-stochastic transition matrix P on m ratings, take in row i the thresholds Φ⁻¹ of the cumulative row sums ∑_{k<j} P i k (−∞ and +∞ at the ends). Standard normal threshold migration with these thresholds has transition matrix exactly P.

mf-creditmetrics-default-covariance · credit.json · full statement
CreditMetrics Default Covariance of Two Obligors

Two obligors in ratings i and k migrate by the Φ⁻¹-calibrated CreditMetrics thresholds of a transition matrix P, and their latent returns are standard bivariate normal with asset correlation r ∈ [−1, 1]. If their default probabilities P i 0 and P k 0 (the lowest bucket) lie in (0, 1), the covariance of their default indicators is N₂(Φ⁻¹(P i 0), Φ⁻¹(P k 0); r) − P i 0 · P k 0.

qrm-creditmetrics-default-absorbing-monotone · quantitative_risk_management.json · full statement
CreditMetrics: Cumulative Default Probability Is Nondecreasing

For a row-stochastic transition matrix P whose state d is absorbing (P d d = 1), the k-period probability (P^k) i d of being in d starting from i is monotone in k.

qrm-creditmetrics-gaussian-threshold-row-stochastic · quantitative_risk_management.json · full statement
CreditMetrics: Gaussian Threshold Migration Gives a Transition Matrix

For row-wise thresholds −∞ = z i 0 ≤ … ≤ z i m = +∞ in EReal, the matrix of standard-normal bucket probabilities N(0,1)(z i j < Z ≤ z i (j+1)) is row-stochastic (the general threshold theorem, which holds for any latent probability law, at N(0,1)). Threshold calibration to a target matrix is the separate entry mf-creditmetrics-threshold-calibration.

Declarations 23

theoremMathFin.monotone_pow_apply_absorbingsource
∀ {ι : Type u_1} [Fintype ι] [DecidableEq ι] {P : Matrix ι ι ℝ}, P ∈ Matrix.rowStochastic ℝ ι → ∀ {d : ι}, P d d = 1 → ∀ (i : ι), Monotone fun k => (P ^ k) i d

If the state d (Default) is absorbing for the transition matrix P, the probability (P ^ k) i d of having defaulted within k periods, starting from rating i, is monotone in k.

defMathFin.ratingBucketsource
{m : ℕ} → (Fin (m + 1) → EReal) → Fin m → Set ℝ

The bucket {x | z j < x ≤ z (j + 1)} of latent returns that send the obligor to rating j, for thresholds z : Fin (m + 1) → EReal.

theoremMathFin.measurableSet_ratingBucketsource
∀ {m : ℕ} (z : Fin (m + 1) → EReal) (j : Fin m), MeasurableSet (ratingBucket z j)
theoremMathFin.pairwise_disjoint_ratingBucketsource
∀ {m : ℕ} {z : Fin (m + 1) → EReal}, Monotone z → Pairwise fun j k => Disjoint (ratingBucket z j) (ratingBucket z k)

Buckets of monotone thresholds are pairwise disjoint.

theoremMathFin.iUnion_ratingBucketsource
∀ {m : ℕ} {z : Fin (m + 1) → EReal}, z 0 = ⊥ → z (Fin.last m) = ⊤ → ⋃ j, ratingBucket z j = Set.univ

With z 0 = ⊥ and z (last m) = ⊤, the buckets cover ℝ.

theoremMathFin.sum_measureReal_ratingBucketsource
∀ {m : ℕ} (μ : Measure ℝ) [IsProbabilityMeasure μ] {z : Fin (m + 1) → EReal}, Monotone z → z 0 = ⊥ → z (Fin.last m) = ⊤ → ∑ j, μ.real (ratingBucket z j) = 1

For thresholds -∞ = z 0 ≤ ⋯ ≤ z m = +∞ and any probability law μ of the latent return, the bucket probabilities sum to one.

defMathFin.thresholdMatrixsource
{m : ℕ} → Measure ℝ → (Fin m → Fin (m + 1) → EReal) → Matrix (Fin m) (Fin m) ℝ

The transition matrix generated by row-wise thresholds z i and a latent-return law μ: thresholdMatrix μ z i j = μ(z i j < Z ≤ z i (j + 1)).

theoremMathFin.thresholdMatrix_mem_rowStochasticsource
∀ {m : ℕ} (μ : Measure ℝ) [IsProbabilityMeasure μ] {z : Fin m → Fin (m + 1) → EReal}, (∀ (i : Fin m), Monotone (z i)) → (∀ (i : Fin m), z i 0 = ⊥) → (∀ (i : Fin m), z i (Fin.last m) = ⊤) → thresholdMatrix μ z ∈ Matrix.rowStochastic ℝ (Fin m)

Threshold migration produces a valid transition matrix.

defMathFin.gaussianThresholdsource
ℝ → EReal

The standard normal threshold below which a latent return falls with probability c: ⊥ for c ≤ 0, ⊤ for c ≥ 1, and Φ⁻¹(c) in between.

theoremMathFin.gaussianThreshold_zerosource
gaussianThreshold 0 = ⊥
theoremMathFin.gaussianThreshold_of_mem_Ioosource
∀ {c : ℝ}, c ∈ Set.Ioo 0 1 → gaussianThreshold c = ↑(PhiInv c)
theoremMathFin.gaussianThreshold_monosource
∀ {c d : ℝ}, c ≤ d → gaussianThreshold c ≤ gaussianThreshold d
theoremMathFin.measureReal_coe_le_gaussianThresholdsource
∀ {c : ℝ}, c ∈ Set.Icc 0 1 → (gaussianReal 0 1).real {x | ↑x ≤ gaussianThreshold c} = c

A standard normal return falls below the threshold of c ∈ [0, 1] with probability c.

theoremMathFin.measureReal_gaussianThreshold_lt_lesource
∀ {c d : ℝ}, c ∈ Set.Icc 0 1 → d ∈ Set.Icc 0 1 → c ≤ d → (gaussianReal 0 1).real {x | gaussianThreshold c < ↑x ∧ ↑x ≤ gaussianThreshold d} = d - c

The standard normal law puts mass d − c between the thresholds of c ≤ d in [0, 1].

defMathFin.cumulativeRowsource
{m : ℕ} → Matrix (Fin m) (Fin m) ℝ → Fin m → Fin (m + 1) → ℝ

The cumulative probability ∑_{k < j} P i k of the ratings below j in row i.

theoremMathFin.cumulativeRow_zerosource
∀ {m : ℕ} (P : Matrix (Fin m) (Fin m) ℝ) (i : Fin m), cumulativeRow P i 0 = 0
theoremMathFin.cumulativeRow_succsource
∀ {m : ℕ} (P : Matrix (Fin m) (Fin m) ℝ) (i j : Fin m), cumulativeRow P i j.succ = cumulativeRow P i j.castSucc + P i j
theoremMathFin.cumulativeRow_mem_Iccsource
∀ {m : ℕ} {P : Matrix (Fin m) (Fin m) ℝ}, P ∈ Matrix.rowStochastic ℝ (Fin m) → ∀ (i : Fin m) (j : Fin (m + 1)), cumulativeRow P i j ∈ Set.Icc 0 1
defMathFin.gaussianThresholdssource
{m : ℕ} → Matrix (Fin m) (Fin m) ℝ → Fin m → Fin (m + 1) → EReal

The CreditMetrics thresholds of a transition matrix: in row i, the threshold below rating j is Φ⁻¹ of the cumulative probability ∑_{k < j} P i k (-∞ and +∞ at the ends).

theoremMathFin.thresholdMatrix_gaussianThresholdssource
∀ {m : ℕ} {P : Matrix (Fin m) (Fin m) ℝ}, P ∈ Matrix.rowStochastic ℝ (Fin m) → thresholdMatrix (gaussianReal 0 1) (gaussianThresholds P) = P

Threshold calibration recovers the transition matrix (CreditMetrics): for a row-stochastic P, standard normal threshold migration with the thresholds gaussianThresholds P (Φ⁻¹ of the cumulative row sums) has transition matrix exactly P.

theoremMathFin.ratingBucket_gaussianThresholds_zerosource
∀ {m : ℕ} {P : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} {i : Fin (m + 1)}, P i 0 ∈ Set.Ioo 0 1 → ratingBucket (gaussianThresholds P i) 0 = Set.Iic (PhiInv (P i 0))

The lowest rating bucket of the calibrated thresholds is (-∞, Φ⁻¹(P i 0)].

theoremMathFin.measureReal_default_prod_gaussianThresholdssource
∀ {m : ℕ} {P : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} {i k : Fin (m + 1)}, P i 0 ∈ Set.Ioo 0 1 → P k 0 ∈ Set.Ioo 0 1 → ∀ (r : ℝ), (bivariateNormalLaw r).real (ratingBucket (gaussianThresholds P i) 0 ×ˢ ratingBucket (gaussianThresholds P k) 0) = bivariateNormalCDF (PhiInv (P i 0)) (PhiInv (P k 0)) r

Joint default of two obligors (CreditMetrics, correlated migration). Two obligors in ratings i and k migrate by the calibrated thresholds of P, and their latent returns are standard bivariate normal with asset correlation r (bivariateNormalLaw r). With default probabilities P i 0, P k 0 ∈ (0, 1) (the lowest bucket), both default with probability N₂(Φ⁻¹(P i 0), Φ⁻¹(P k 0); r).

theoremMathFin.covariance_indicator_default_gaussianThresholdssource
∀ {m : ℕ} {P : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} {i k : Fin (m + 1)}, P i 0 ∈ Set.Ioo 0 1 → P k 0 ∈ Set.Ioo 0 1 → ∀ {r : ℝ}, r ^ 2 ≤ 1 → covariance ((Prod.fst ⁻¹' ratingBucket (gaussianThresholds P i) 0).indicator 1) ((Prod.snd ⁻¹' ratingBucket (gaussianThresholds P k) 0).indicator 1) (bivariateNormalLaw r) = bivariateNormalCDF (PhiInv (P i 0)) (PhiInv (P k 0)) r - P i 0 * P k 0

Default covariance of two obligors (CreditMetrics): under the hypotheses of measureReal_default_prod_gaussianThresholds with r ∈ [−1, 1], the covariance of the two default indicators is N₂(Φ⁻¹(P i 0), Φ⁻¹(P k 0); r) − P i 0 · P k 0; each obligor defaults with probability P i 0 (resp. P k 0) because each margin of the pair is standard normal.