MathFin
Map / Valuation · Interest rates / MathFin.Models.Rates.HJM

The Heath–Jarrow–Morton model bundle

MathFin.Models.Rates.HJMJEL E43MSC 91G30 source

The HJM model describes the whole forward-rate curve f(t,T), t ≤ T, as a family of Itô processes in t, one for each fixed maturity T: f(t,T) = f(0,T) + ∫₀ᵗ α(s,T) ds + ∫₀ᵗ σ(s,T) dB_s, driven by the Brownian motion B on [0,H]. HJMModel is that data. The stochastic integral is the library's itoProcessCLM of the L²(trim_H) realization volLp T of the volatility σ(·,T), so the dynamics hold as an identity of L²(μ) classes at each t ≤ min T H, and the drift is the pathwise timeMeasure integral (as driftPath).

The objects every later node of the HJM program consumes are defined from the bundle: the bond P(t,T) = exp(-∫_t^T f(t,u) du), the short rate r(t) = f(t,t), the bank account B(t) = exp(∫₀ᵗ r), the discounted bond P/B, and the integrated coefficients α*(t,T) = ∫_t^T α(t,u) du, σ*(t,T) = ∫_t^T σ(t,u) du. Only well-definedness is proved here (P(T,T) = 1, positivity of P and B), and the seam into the library's constant-rate bond: on a flat curve f(t,·) ≡ r the HJM bond is zcb r t T.

No dynamics of P, no drift condition and no stochastic Fubini interchange is proved in this file.

Main definitions

  • HJMModel: the bundle (forward curve, drift, volatility, the L² realization of the volatility, the Itô dynamics in t for each maturity, adaptedness, measurability, integrability of the curve and of the short rate).
  • HJMModel.bond, HJMModel.shortRate, HJMModel.integratedRate, HJMModel.bankAccount, HJMModel.discountedBond, HJMModel.starDrift, HJMModel.starVol: the derived objects.

Main results

  • HJMModel.bond_self: P(T,T) = 1.
  • HJMModel.bond_pos, HJMModel.bankAccount_pos, HJMModel.discountedBond_pos: positivity.
  • HJMModel.bond_of_flat: on a flat forward curve f(t,·) ≡ r the bond is zcb r t T.

References

Tags

Heath–Jarrow–Morton, forward rate curve, term structure, zero-coupon bond, short rate, bank account, JEL E43, MSC 91G30

Import neighbourhood

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

Declarations 26

structureMathFin.HJM.HJMModelsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → (μ : Measure Ω) → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → IsPreBrownianReal B μ → (∀ (t : NNReal), Measurable (B t)) → NNReal → Type u_1

The HJM model bundle on the horizon [0,H] over a Brownian motion B. fwd t T ω = f(t,T)(ω), drift s T = α(s,T), vol s T = σ(s,T); volLp T is the L²(trim_H) class of σ(·,T) (the Itô-integrable realization), and fwd_ito is the dynamics f(t,T) = f(0,T) + ∫₀ᵗ α(s,T) ds + ∫₀ᵗ σ(s,T) dB_s a.s., for t ≤ T and t ≤ H.

defMathFin.HJM.HJMModel.fwdsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The forward-rate curve f(t,T).

defMathFin.HJM.HJMModel.driftsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The forward-rate drift α(s,T).

defMathFin.HJM.HJMModel.volsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The forward-rate volatility σ(s,T).

defMathFin.HJM.HJMModel.volLpsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → ↥(Lp ℝ 2 (trimMeasure H hBmeas))

The L²(trim_H) realization of the volatility σ(·,T) of maturity T.

theoremMathFin.HJM.HJMModel.volLp_aesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (T : NNReal), ↑↑(self.volLp T) =ᵐ[trimMeasure H hBmeas] fun z => self.vol z.1 T z.2
theoremMathFin.HJM.HJMModel.fwd_itosource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (T t : NNReal), t ≤ T → t ≤ H → self.fwd t T =ᵐ[μ] fun ω => self.fwd 0 T ω + ∫ (s : NNReal) in Set.Ioc 0 t, self.drift s T ω ∂timeMeasure + ↑↑((itoProcessCLM hB H t hBmeas) (self.volLp T)) ω

f(·,T) is an Itô process: initial value, drift integral and Itô integral.

theoremMathFin.HJM.HJMModel.fwd_adaptedsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (t T : NNReal), StronglyMeasurable (self.fwd t T)
theoremMathFin.HJM.HJMModel.drift_meassource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (ω : Ω), Measurable fun p => self.drift p.1 p.2 ω
theoremMathFin.HJM.HJMModel.vol_meassource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (ω : Ω), Measurable fun p => self.vol p.1 p.2 ω
theoremMathFin.HJM.HJMModel.drift_integrablesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (T : NNReal) (ω : Ω), IntegrableOn (fun s => self.drift s T ω) (Set.Ioc 0 H) timeMeasure
theoremMathFin.HJM.HJMModel.fwd_integrablesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (t : NNReal) (ω : Ω), IntegrableOn (fun u => self.fwd t u ω) (Set.Ioc t H) timeMeasure
theoremMathFin.HJM.HJMModel.shortRate_integrablesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (self : HJMModel μ hB hBmeas H) (ω : Ω), IntegrableOn (fun s => self.fwd s s ω) (Set.Ioc 0 H) timeMeasure

The short rate f(s,s) is integrable on the horizon, so the bank account is not a junk exp 0.

defMathFin.HJM.HJMModel.bondsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The bond price P(t,T) = exp(-∫_t^T f(t,u) du).

defMathFin.HJM.HJMModel.shortRatesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → Ω → ℝ

The short rate r(t) = f(t,t).

defMathFin.HJM.HJMModel.integratedRatesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → Ω → ℝ

The integrated short rate ∫₀ᵗ r(s) ds.

defMathFin.HJM.HJMModel.bankAccountsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → Ω → ℝ

The bank account B(t) = exp(∫₀ᵗ r(s) ds).

defMathFin.HJM.HJMModel.discountedBondsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The discounted bond Z(t,T) = P(t,T) / B(t).

defMathFin.HJM.HJMModel.starDriftsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The integrated drift α*(t,T) = ∫_t^T α(t,u) du.

defMathFin.HJM.HJMModel.starVolsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → [IsProbabilityMeasure μ] → {B : NNReal → Ω → ℝ} → {hB : IsPreBrownianReal B μ} → {hBmeas : ∀ (t : NNReal), Measurable (B t)} → {H : NNReal} → HJMModel μ hB hBmeas H → NNReal → NNReal → Ω → ℝ

The integrated volatility σ*(t,T) = ∫_t^T σ(t,u) du.

theoremMathFin.HJM.HJMModel.bond_self @[simp]source
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) (T : NNReal) (ω : Ω), M.bond T T ω = 1

A bond is worth one at its own maturity: P(T,T) = 1.

theoremMathFin.HJM.HJMModel.bond_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) (t T : NNReal) (ω : Ω), 0 < M.bond t T ω
theoremMathFin.HJM.HJMModel.bankAccount_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) (t : NNReal) (ω : Ω), 0 < M.bankAccount t ω
theoremMathFin.HJM.HJMModel.bankAccount_zero @[simp]source
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) (ω : Ω), M.bankAccount 0 ω = 1

The bank account starts at one.

theoremMathFin.HJM.HJMModel.discountedBond_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) (t T : NNReal) (ω : Ω), 0 < M.discountedBond t T ω
theoremMathFin.HJM.HJMModel.bond_of_flatsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} {hB : IsPreBrownianReal B μ} {hBmeas : ∀ (t : NNReal), Measurable (B t)} {H : NNReal} (M : HJMModel μ hB hBmeas H) {r : ℝ} {t T : NNReal}, t ≤ T → ∀ {ω : Ω}, (∀ u ∈ Set.Ioc t T, M.fwd t u ω = r) → M.bond t T ω = zcb r ↑t ↑T

On a flat forward curve the HJM bond is the constant-rate bond. If f(t,u) = r for u ∈ (t,T], then P(t,T) = zcb r t T = exp(-r (T - t)).