The nonhomogeneous Poisson law (p.22)
ProvedQueueingFundamentals.Foundations.nonhomogeneous_poissondifferential-equationsnonhomogeneous-poissonp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1poisson-process
Let be a rate function, continuous on , and put
For real functions , , , the following are equivalent.
- They satisfy the forward equations with time-dependent rate on (one-sided derivative at ),
with and for . 2. For all and ,
These are the equations obtained from the axiomatic derivation of §1.7 when the constant rate is replaced by ; the solution is the nonhomogeneous Poisson distribution.
Preamble
import Mathlib
Formal statement
namespace QueueingFundamentals.Foundations
/-- p.22: with a time-dependent rate `λ(t)`, the unique solution of the forward equations
with `p_0(0) = 1`, `p_n(0) = 0` (`n > 0`) is the nonhomogeneous Poisson law
`p_n(t) = e^{-m(t)} m(t)^n / n!`, `m(t) = ∫_0^t λ(s) ds`. -/
theorem nonhomogeneous_poisson (lam : ℝ → ℝ) (hcont : ContinuousOn lam (Set.Ici 0))
(hnonneg : ∀ t : ℝ, 0 ≤ t → 0 ≤ lam t) (p : ℕ → ℝ → ℝ) :
((∀ t : ℝ, 0 ≤ t → HasDerivWithinAt (p 0) (-lam t * p 0 t) (Set.Ici 0) t) ∧
(∀ n : ℕ, 1 ≤ n → ∀ t : ℝ, 0 ≤ t →
HasDerivWithinAt (p n) (-lam t * p n t + lam t * p (n - 1) t) (Set.Ici 0) t) ∧
p 0 0 = 1 ∧ (∀ n : ℕ, 0 < n → p n 0 = 0)) ↔
∀ n : ℕ, ∀ t : ℝ, 0 ≤ t →
p n t = Real.exp (-(∫ s in (0 : ℝ)..t, lam s)) * (∫ s in (0 : ℝ)..t, lam s) ^ n /
(n.factorial : ℝ) := by sorry
end QueueingFundamentals.Foundations
Source
Gross, Shortle, Thompson & Harris, Fundamentals of Queueing Theory, 4th ed., Wiley 2008, DOI 10.1002/9781118625651, p.22, nonhomogeneous Poisson distribution (unnumbered display)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.