Bagaria ch. 16, Calculation 16.2 (eq. 16.2): the protection leg is (1 − R) ∫₀ᵀ P(0,t) λ_t Q(t) dt, with the remark "−dQ/dt = λ_t Q(t), so this is the loss integrated against the density of the default time". Survival is (16.1), Q(t) = P(τ > t) = exp(−∫₀ᵗ λ_s ds), taken with λ deterministic as in §16.1.
Here Q = hazardSurvival h (Models/Credit/HazardCurve.lean) and the density is defaultDensity h t = h t · hazardSurvival h t.
Calculus layer (no probability)
hasDerivAt_hazardSurvival — Q' = −λ·Q at t, for h locally integrable and continuous at t.defaultDensity_nonneg — λ ≥ 0 ⇒ f ≥ 0.integral_defaultDensity — ∫ₐᵇ f = Q(a) − Q(b) for continuous h; integral_defaultDensity_zero — ∫₀ᵀ f = 1 − Q(T).
Measure-theoretic layer (a true Lebesgue density of τ's law)
For a random time τ (a.e.-measurable, finite measure space) whose CDF on [0, ∞) is P(τ ≤ a) = 1 − Q(a) — hypothesized, the shape of MathFin.Cox.cox_cdf_timeVarying — with h continuous and ≥ 0:
map_eq_withDensity — Law(τ) = Leb.withDensity (1_{[0,∞)}·f) (lawDensity).integral_comp_eq — E[g(τ)] = ∫_{[0,∞)} f·g for measurable g.integral_indicator_Iic_eq — E[D(τ)·1{τ ≤ T}] = ∫₀ᵀ D·f: the (16.2) protection-leg kernel as an expectation, for any measurable discount curve D.expMeasure_eq_withDensity — constant-λ cross-check: lawDensity of the flat curve is Mathlib's expMeasure λ.
Scope: deterministic, continuous hazard (the bootstrapped piecewise-constant curve of §16.4 is not covered); τ is not constructed here, and the stochastic-intensity (Cox mixing) density is not treated.
Main definitions
defaultDensity: the default-time density f(t) = λ(t)·Q(t) = λ(t)·exp(−∫₀ᵗ λ) of a deterministic hazard curve h.lawDensity: the density of the law of τ as an ℝ≥0∞-valued function, f on [0, ∞) and zero on (−∞, 0).
Main results
hasDerivAt_hazardSurvival: −dQ/dt = λ·Q, for a locally integrable hazard h continuous at t.integral_defaultDensity, integral_defaultDensity_zero: ∫ₐᵇ f = Q(a) − Q(b) and ∫₀ᵀ f = 1 − Q(T) for a continuous hazard.map_eq_withDensity: for a continuous nonnegative hazard h and an a.e.-measurable τ with CDF P(τ ≤ a) = 1 − Q(a) on [0, ∞), the law of τ is volume.withDensity (lawDensity h).integral_comp_eq: under the same hypotheses, E[g(τ)] = ∫_{[0,∞)} f(s)·g(s) ds for measurable g.integral_indicator_Iic_eq: under the same hypotheses, E[D(τ)·1{τ ≤ T}] = ∫₀ᵀ D(s)·λ(s)·Q(s) ds for measurable D and T ≥ 0.expMeasure_eq_withDensity: for constant hazard λ > 0, lawDensity reproduces Mathlib's exponential law.
References
- S. Bagaria, Notes on Fixed Income Derivative Pricing [BagariaFIDP], ch. 16.
Tags
default density, hazard rate, survival function, protection leg, default time law, CDS pricing, MSC 91G40, MSC 60E05, JEL G12