Chan & Tse Exercise 1.1 #
Chan & Tse Exercise 1.2 #
Here we develop interest theory, taking the force of interest δ as basic.
Interest namespace will clash with annuity namespaces since they use a for different things.
Effective interest over an interval, not annualized. i₂ u v = (a v - a u) / (a u) This should be used when u ≤ v. See Chan & Tse (1.15).
One can prove that the limit of i₂ u (u + h) / h as h → 0 is a' u / a u: (a (u+h) - a u) / (h * (a u))
Equations
- interest.i₂ a u v = a v / a u - 1
Instances For
Force of interest with not necessarily constant interest rates.
Equations
- interest.δ a u = deriv a u / a u
Instances For
Equations
- interest.iF a t τ = interest.i₂ann a t (t + τ)
Instances For
The effective interest rate function i(t) is defined so that
a t = (1 + i t) * a (t - 1).
Equations
- interest.i a t = interest.i₂ a (t - 1) t
Instances For
theorem
interest.eq_of_deriv_eq
(f g : ℝ → ℝ)
(hf : Differentiable ℝ f)
(hg : Differentiable ℝ g)
(h : deriv f = deriv g)
(h₀ : f 0 = g 0)
:
theorem
interest.general_force
(a : ℝ → ℝ)
(hnz : ∀ (t : ℝ), a t ≠ 0)
(hdiff : Differentiable ℝ a)
(ha₀ : a 0 = 1)
{n : ℝ}
(hn : 0 ≤ n)
(hcontδ : ContinuousOn (δ a) (Set.Ici 0))
(hδ : ∀ t ≥ 0, 0 < δ a t ∧ δ a t ≤ 1)
(hc₀ : ContinuousAt (δ a) 0)
(hme : StronglyMeasurableAtFilter (δ a) (nhds 0) MeasureTheory.volume)
:
The equation a(t) = e^(∫^t δ(s) ds).