Mean waiting time equals a harmonic sum divided by
Provedwaiting_time_survival_meananalysisharmonicintegralprobability
Mean of the waiting time = harmonic sum / λ. For and rate , the integral over of the binomial survival function (lower partial sum) of the exp-clock waiting-time model equals :
Since the integrand is the survival function of the waiting time until of independent rate- exponential clocks fire, this is the mean . Proved by linearity of the integral over the finite sum, applying the per-term survival integral .
Preamble
import Mathlib.MeasureTheory.Function.JacobianOneDim import Mathlib.Analysis.SpecialFunctions.Exp import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts import Mathlib.Analysis.SpecialFunctions.Integrals.Basic import Mathlib.Algebra.BigOperators.Intervals set_option autoImplicit false open MeasureTheory Set Finset open scoped BigOperators
Formal statement
theorem waiting_time_survival_mean (N m : ℕ) (lam : ℝ) (hlam : 0 < lam) (hm : m < N) :
∫ t in Set.Ioi (0:ℝ), ∑ k ∈ Finset.range (m+1),
(Nat.choose N k : ℝ) * (1 - Real.exp (-(lam * t))) ^ k * (Real.exp (-(lam * t))) ^ (N - k)
= (1 / lam) * ∑ k ∈ Finset.range (m+1), (1 / ((N - k : ℕ) : ℝ)) := by sorrySource
Siegel, "Median Bounds and their Application", J. Algorithms 38:184-236, 2001, §2.1.1; the waiting-time mean (eq. for E[T], p.6).