Documentation

CslibFrontier.Probability.StatisticalDistance.HeterogeneousProduct

Heterogeneous Product, Mixture, and Conditioning Bounds for Statistical Distance #

This module proves quantitative lower bounds and conditioning stability estimates for statistical distance (dist on finite PMFs, taking values in [0, 1]):

Main results #

theorem Cslib.Probability.PMF.dist_eq_sSup_event {α : Type u_1} [Fintype α] (P Q : PMF α) :
dist P Q = sSup (Set.range fun (E : Set α) => (P.toOuterMeasure E).toReal - (Q.toOuterMeasure E).toReal)

Event-supremum variational characterization of statistical distance.

theorem Cslib.Probability.PMF.dist_eq_sInf_coupling {α : Type u_1} [Fintype α] (P Q : PMF α) :
dist P Q = sInf {r : ℝ | ∃ (ω : PMF (α × α)), PMF.map Prod.fst ω = P ∧ PMF.map Prod.snd ω = Q ∧ r = (ω.toOuterMeasure {p : α × α | p.1 ≠ p.2}).toReal}

Optimal-coupling variational characterization of statistical distance.

theorem Cslib.Probability.PMF.prob_eq_le_one_sub_dist {α : Type u_1} [Fintype α] {P Q : PMF α} (ω : PMF (α × α)) (hfst : PMF.map Prod.fst ω = P) (hsnd : PMF.map Prod.snd ω = Q) :
(ω.toOuterMeasure {p : α × α | p.1 = p.2}).toReal ≤ 1 - dist P Q

For any coupling (X, Y) with marginals P and Q, Pr[X = Y] ≤ 1 - dist P Q.

theorem Cslib.Probability.PMF.dist_product_lower_bound {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : ι → Type u_2} [(i : ι) → Fintype (α i)] (P W : PMF ((i : ι) → α i)) (B : Finset ι) (pB wB : (i : ↥B) → PMF (α ↑i)) (hP : PMF.map (fun (x : (i : ι) → α i) (i : ↥B) => x ↑i) P = pi pB) (hW : PMF.map (fun (x : (i : ι) → α i) (i : ↥B) => x ↑i) W = pi wB) {ε : ℝ} (hε : 0 ≤ ε) (hdist : ∀ (i : ↥B), ε ≤ dist (pB i) (wB i)) :
1 - 2 * Real.exp (-(ε ^ 2 * ↑B.card / 2)) ≤ dist P W

Heterogeneous product lower bound for statistical distance: if the marginals of P and W on a coordinate subset B are independent products whose coordinate marginals are all at distance at least ε ≥ 0, then dist P W ≥ 1 - 2 * exp (-(ε ^ 2 * |B| / 2)).

theorem Cslib.Probability.PMF.dist_mixture_of_dist_or_expect {ι : Type u_1} {α : Type u_2} [Fintype ι] [Fintype α] (P : ι → PMF α) (w : PMF ι) (Q : PMF α) (φ : α → ℝ) {a b η₁ η₂ : ℝ} (hab : a < b) (hφ : ∀ (x : α), φ x ∈ Set.Icc a b) (hη₁ : 0 ≤ η₁) (hη₂ : η₂ ≤ b - a) (hcase : ∀ (i : ι), 1 - η₁ ≤ dist (P i) Q ∨ η₂ ≤ ∑ x : α, (Q x).toReal * φ x - ∑ x : α, ((P i) x).toReal * φ x) :
η₂ / (b - a) - (↑(Fintype.card ι) + 1) * η₁ ≤ dist (w.bind P) Q

Mixture statistical distance lower bound from a componentwise dichotomy: if every mixture component P i is either (1 - η₁)-far from Q or separated from Q in expectation by at least η₂ under an [a, b]-valued test function φ, then dist (w.bind P) Q ≥ η₂ / (b - a) - (|ι| + 1) * η₁.

theorem Cslib.Probability.PMF.dist_filter_le {α : Type u_1} [Fintype α] (P Q : PMF α) (E : Set α) (hP : ∃ a ∈ E, a ∈ P.support) (hQ : ∃ a ∈ E, a ∈ Q.support) :
dist (P.filter E hP) (Q.filter E hQ) ≤ dist P Q / (Q.toOuterMeasure E).toReal

Conditioning two distributions on an event E divides their statistical distance by at most Q(E): dist (P.filter E hP) (Q.filter E hQ) ≤ dist P Q / (Q.toOuterMeasure E).toReal.