MathFin
Map / Valuation · Credit / MathFin.Models.Credit.HazardCurve

Time-varying hazard credit curve

MathFin.Models.Credit.HazardCurveMSC 91G40JEL G12 source

Extension of Credit.lean to a deterministic time-varying hazard h : ℝ → ℝ. The cumulative hazard is H(t) = ∫₀^t h(u) du and survival is

S(t) = exp(-H(t)).

When h is constant we recover the constant-hazard model. When h is integrable the term-structure of credit spreads is the time-averaged hazard:

c(T) = -log(S(T)) / T = H(T) / T = (1/T) · ∫₀^T h(u) du.

Main definitions

  • cumHazard: the cumulative hazard H(t) = ∫₀^t h(u) du of a deterministic hazard function h.
  • hazardSurvival: the survival probability S(t) = exp(-H(t)) under a time-varying hazard.

Main results

  • hazardSurvival_at_zero: S(0) = 1.
  • hazardSurvival_pos: positive.
  • cumHazard_const: H(t) = h₀ · t for constant h.
  • hazardSurvival_eq_const_survival: matches survivalProbability for constant h.
  • creditSpread_eq_time_avg_hazard: c(T) = H(T) / T.

References

Tags

hazard curve, cumulative hazard, survival probability, time-varying intensity, credit spread term structure, default intensity, MSC 91G40, JEL G12

Import neighbourhood

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

Corpus entries

mf-hazard-survival-const · credit.json · full statement
Time-Varying Hazard Survival Reduces to Constant Form

When the hazard function is constant h(u) ≡ h₀, the cumulative hazard ∫₀^t h₀ du = h₀·t and the survival probability exp(-cumHazard) matches the constant-hazard formula exp(-h₀(T-t)) at t=0.

mf-credit-spread-time-avg-hazard · credit.json · full statement
Credit Spread as Time-Averaged Hazard

Under time-varying hazard h(u), the credit spread c(T) = -log(S(T))/T = H(T)/T where H is the cumulative hazard. The spread is the time-averaged hazard.

Declarations 8

defMathFin.cumHazardsource
(ℝ → ℝ) → ℝ → ℝ

Cumulative hazard H(t) = ∫₀^t h(u) du for a deterministic hazard function h.

defMathFin.hazardSurvivalsource
(ℝ → ℝ) → ℝ → ℝ

Survival probability with time-varying hazard S(t) = exp(-H(t)) — the credit instance of the shared survivalFromIntensity (Probability/Analysis/ExponentialDiscount). The same calculus as Actuarial.survivalFromForce.

theoremMathFin.hazardSurvival_at_zerosource
∀ (h : ℝ → ℝ), hazardSurvival h 0 = 1

S(0) = 1.

theoremMathFin.hazardSurvival_possource
∀ (h : ℝ → ℝ) (t : ℝ), 0 < hazardSurvival h t

Hazard survival is strictly positive (an instance of the ExponentialDiscount principle discount_pos; holds regardless of hazard sign / integrability).

theoremMathFin.hazard_eq_neg_log_deriv_survivalsource
∀ {h : ℝ → ℝ} (t : ℝ), Continuous h → HasDerivAt (fun s => -Real.log (hazardSurvival h s)) (h t) t

Hazard intensity as the negative log-derivative of survival — the recovery direction h(t) = −d/dt log S(t): for continuous h, the credit instance of hasDerivAt_neg_log_survivalFromIntensity, as force_eq_neg_log_deriv_survival in Insurance/Mortality.lean is the actuarial one.

theoremMathFin.cumHazard_constsource
∀ (h_0 t : ℝ), cumHazard (fun x => h_0) t = h_0 * t

For a constant hazard h_0, H(t) = h_0 · t.

theoremMathFin.hazardSurvival_eq_const_survivalsource
∀ (h_0 T : ℝ), hazardSurvival (fun x => h_0) T = survivalProbability h_0 0 T

The time-varying model collapses to the constant-hazard survivalProbability under t = 0 and constant hazard.

theoremMathFin.creditSpread_eq_time_avg_hazardsource
∀ {h : ℝ → ℝ} {T : ℝ}, 0 < T → -Real.log (hazardSurvival h T) / T = cumHazard h T / T

Credit spread as time-averaged hazard: for T > 0, c(T) = -log(S(T)) / T = H(T) / T = (1/T) · ∫₀^T h(u) du.