Documentation

CslibFrontier.Foundations.Combinatorics.Hypergeometric.LowerTail

Exponential Lower-Tail Inequality for Hypergeometric Sampling #

Proves a strict exponential lower-tail inequality for uniform sampling without replacement on a finite universe.

If a subset A of a finite type α of size q > 0 has density at least p ∈ [0, 1], then for every admissible sample size r ≤ q and t > 0, the fraction of r-element subsets intersecting A in strictly fewer than (p - t) * r elements is strictly less than exp (-2 * t^2 * r) (including the edge cases r = 0 or p ≤ t, where the strict lower-tail event is empty). Passing to the complement B = univ \ A of density at most 1 - p reverses the tail, Cslib.Hypergeometric.hypergeometric_mgf_le_binomial_sample and Cslib.one_sub_add_mul_exp_le bound the exponential moment, and the strict < threshold on #(A ∩ S₁) gives the strict inequality in the final Markov step.

Main results #

theorem Cslib.Hypergeometric.hypergeometric_lower_tail_lt {α : Type u_1} [Fintype α] [DecidableEq α] (A : Finset α) {p t : ℝ} {r : ℕ} (hq : 0 < Fintype.card α) (hr : r ≤ Fintype.card α) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) (ht : 0 < t) (hA : p * ↑(Fintype.card α) ≤ ↑A.card) :
↑{S₁ ∈ Finset.powersetCard r Finset.univ | ↑(S₁ ∩ A).card < (p - t) * ↑r}.card / ↑((Fintype.card α).choose r) < Real.exp (-2 * t ^ 2 * ↑r)

Strict exponential lower-tail bound for sampling without replacement: for a finite universe α of size q > 0, subset A of density at least p ∈ [0, 1], sample size r ≤ q, and t > 0, the fraction of r-subsets S₁ satisfying |S₁ ∩ A| < (p - t) * r is strictly less than exp (-2 * t^2 * r).