MathFin
Map / Probability · Laws / MathFin.Probability.Laws.GammaPoissonMixturePgf

CreditRisk+ sector probability-generating function (Poisson–Gamma mixture)

MathFin.Probability.Laws.GammaPoissonMixturePgfMSC 91G40MSC 60E10JEL G32 source

CreditRisk+ (Credit Suisse First Boston, 1997) models each sector's systematic risk factor as a random intensity Λ ∼ Gamma(a, r) (shape a, Mathlib's rate parametrisation r = 1/β for the technical document's scale β). Conditional on Λ = λ, the sector default count N is Poisson(λ), with conditional pgf E[z^N | Λ = λ] = exp(λ(z−1)) (PoissonPgf.integral_pow_poissonMeasure, Probability/Jumps/PoissonPgf.lean).

The mixture, as an iterated integral. The unconditional sector pgf is the tower property G_N(z) = E_Λ[E[z^N | Λ]]. Here it is stated as the iterated integral

∫ λ, (∫ n, z ^ n ∂Poisson(λ)) ∂Gamma(a, r) = (r / (r − (z − 1))) ^ a,

whose inner integral is the Poisson pgf and whose outer integral is the Gamma moment-generating function at z − 1. The mixed law of N itself (a Measure.bind of the Poisson kernel against the Gamma law) and a pair of random variables (N, Λ) with this conditional structure are not constructed.

The loss-banding approximation that turns the exact per-sector pgf into CreditRisk+'s practical recursion is out of scope here, as is the portfolio pgf across independent sectors.

Main results

  • integral_exp_mul_gammaMeasure, mgf_id_gammaMeasure: the Gamma(a, r) moment-generating function, ∫ λ, exp(s·λ) ∂Gamma(a,r) = (r / (r − s)) ^ a for s < r (Mathlib has the Gamma law but no Gamma MGF).
  • integral_integral_pow_poissonMeasure_gammaMeasure: the Poisson–Gamma mixture sector pgf, as the iterated integral above, for z < r + 1.
  • integral_integral_pow_poissonMeasure_gammaMeasure_eq_negBinomial: the same pgf in the technical document's p = β / (1 + β) scale parametrisation, ((1 − p) / (1 − p·z)) ^ a.
  • poissonMeasure_real_compl_singleton_zero: PD_i = 1 − e^{−λ_i}, i.e. P(N_i ≠ 0) = 1 − e^{−λ_i} for N_i ∼ Poisson(λ_i).

References

Tags

CreditRisk+, Poisson–Gamma mixture, negative binomial, probability generating function, default count, sector risk factor, MSC 91G40, MSC 60E10, JEL G32

Import neighbourhood

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

Corpus entries

mf-gamma-mgf · credit.json · full statement
Moment-Generating Function of the Gamma Law

For Λ ∼ Gamma(a, r) (shape a > 0, rate r > 0, Mathlib's gammaMeasure) and s < r, E[exp(sΛ)] = (r / (r − s))^a.

Declarations 5

theoremMathFin.GammaPoissonMixturePgf.integral_exp_mul_gammaMeasuresource
∀ {a r s : ℝ}, 0 < a → 0 < r → s < r → ∫ (lam : ℝ), Real.exp (s * lam) ∂gammaMeasure a r = (r / (r - s)) ^ a

Gamma moment-generating function. For Λ ∼ Gamma(a, r) (shape a, rate r) and s < r, E[exp(s·Λ)] = (r / (r − s)) ^ a. Proved the same way Mathlib normalises the Gamma pdf (lintegral_gammaPDF_eq_one): factor the pdf's exp(−r·λ) against exp(s·λ) into exp(−(r−s)·λ) and apply the Gamma integral integral_rpow_mul_exp_neg_mul_Ioi at rate r − s.

theoremMathFin.GammaPoissonMixturePgf.mgf_id_gammaMeasuresource
∀ {a r s : ℝ}, 0 < a → 0 < r → s < r → mgf id (gammaMeasure a r) s = (r / (r - s)) ^ a

The Gamma moment-generating function in Mathlib's mgf form, the sibling of mgf_id_gaussianReal: mgf id (gammaMeasure a r) s = (r / (r − s)) ^ a for s < r.

theoremMathFin.GammaPoissonMixturePgf.integral_integral_pow_poissonMeasure_gammaMeasuresource
∀ {a r z : ℝ}, 0 < a → 0 < r → z < r + 1 → ∫ (lam : ℝ), ∫ (n : ℕ), z ^ n ∂poissonMeasure lam.toNNReal ∂gammaMeasure a r = (r / (r - (z - 1))) ^ a

CreditRisk+ sector pgf (Poisson–Gamma mixture, exact, before loss-banding): for z < r + 1, the Poisson pgf E[z^N | Λ = λ] = ∫ n, z ^ n ∂Poisson(λ) integrated against Λ ∼ Gamma(a, r) is (r / (r − (z − 1))) ^ a. This is the tower property E[z^N] = E_Λ[E[z^N | Λ]] written as an iterated integral; the mixed law of N is not constructed. The Gamma law lives on [0, ∞), so λ.toNNReal = λ almost everywhere and the outer integral is the Gamma MGF at z − 1.

theoremMathFin.GammaPoissonMixturePgf.integral_integral_pow_poissonMeasure_gammaMeasure_eq_negBinomialsource
∀ {a β z : ℝ}, 0 < a → 0 < β → z < 1 + 1 / β → ∫ (lam : ℝ), ∫ (n : ℕ), z ^ n ∂poissonMeasure lam.toNNReal ∂gammaMeasure a (1 / β) = ((1 - β / (1 + β)) / (1 - β / (1 + β) * z)) ^ a

Sector pgf, negative-binomial-style p-form. With β > 0 the mixture scale and p = β / (1 + β), the sector pgf is ((1 − p) / (1 − p·z)) ^ a, matching the CreditRisk+ technical document's parametrisation. Mathlib's gammaMeasure is rate-parametrised, so the Gamma law used is gammaMeasure a (1 / β).

theoremMathFin.GammaPoissonMixturePgf.poissonMeasure_real_compl_singleton_zerosource
∀ (lam : NNReal), (poissonMeasure lam).real {0}ᶜ = 1 - Real.exp (-↑lam)

PD_i = 1 − e^{−λ_i}: for N ∼ Poisson(λ), the default probability P(N ≠ 0) equals 1 − e^{−λ}, since P(N = 0) = e^{−λ} and probabilities sum to 1.