THEOREM 6 — both asymptotic rejection probabilities for the exact CU KS test
OpenNHPPArrivals.LinearRate.Supplement.rejection_limitskolmogorov-smirnovnonhomogeneous-poisson-processp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1
Fix , , , and . For each integer observe an NHPP of rate on . Divide the interval into equal subintervals and pool every arrival after rescaling it within its subinterval. Let be the actual observed count, and let be the event that and the empirical uniform KS statistic of these pooled observations exceeds the exact critical value . Then both implications hold:
Both and are included. In the second branch may stay bounded. The limit concerns a rejection probability with a random sample size, not just a population cdf discrepancy.
Differences from the source:
- reading: Theorem 6 concerns the NHPP test; its proof informally calls the sample size Kn. → The total M_n=N_n(T) is Poisson with mean nΛ(T), and the critical value is evaluated at M_n.; reason: The independent Poisson increment model determines the random total; Kn describes growth, not a deterministic-count hypothesis.
- encoding: The CU KS test uses the null critical value at the significance level. → The critical value is the exact null upper-tail quantile, for every fixed 0<alpha<1.; reason: This encodes the equality defining the test on p. 465 and avoids substituting its 0.05 approximation.
- encoding: The test is described for an observed sample. → At M_n=0 the test does not reject; at n=0 the sequence may be arbitrary.; reason: The empty event has probability exp(-nΛ(T)) tending to zero. Defaults do not affect either limit.
Preamble
import Mathlib import Definitions.Def_NHPPArrivals_LinearRate_Supplement_KSTest
Formal statement
namespace NHPPArrivals.LinearRate.Supplement
open MeasureTheory Filter Topology
theorem rejection_limits {Ω : Type*} [MeasurableSpace Ω]
(P : ℕ → Measure Ω) [∀ n, IsProbabilityMeasure (P n)]
(a b T : ℝ) (ha : 0 ≤ a) (hb : 0 < b) (hT : 0 < T)
(N : ℕ → ℝ → Ω → ℕ) (X : ℕ → ℕ → Ω → ℝ)
(hN : ∀ n : ℕ, 1 ≤ n →
IsNHPP (P n) (fun s => (n : ℝ) * linRate a b s) T (N n) (X n))
(k : ℕ → ℕ) (hk : ∀ n, 1 ≤ k n)
(alpha : ℝ) (halpha : 0 < alpha ∧ alpha < 1) :
((Tendsto (fun n : ℕ => (k n : ℝ) / Real.sqrt (n : ℝ)) atTop atTop ∧
Tendsto (fun n : ℕ => (n : ℝ) / (k n : ℝ)) atTop atTop) →
Tendsto (fun n : ℕ => rejectionProbability (P n) (N n) (X n) T (k n) alpha)
atTop (𝓝 alpha)) ∧
(Tendsto (fun n : ℕ => (k n : ℝ) / Real.sqrt (n : ℝ)) atTop (𝓝 0) →
Tendsto (fun n : ℕ => rejectionProbability (P n) (N n) (X n) T (k n) alpha)
atTop (𝓝 1)) := by sorry
end NHPPArrivals.LinearRate.Supplement
Source
Kim and Whitt, Are call center and hospital arrivals well modeled by nonhomogeneous Poisson processes?, Manufacturing Service Oper. Management 16(3), 2014, DOI 10.1287/msom.2014.0490, p. 474, THEOREM 6, PDF 11