The coupling inequality and approximate couplings #
Two functions of one sample are at statistical distance at most the probability that they differ
(Cslib.Probability.PMF.dist_map_map_le). The sample space may be infinite; only the common
codomain is finite.
This module also defines Cslib.Probability.PMF.CoupledWithin μ ν ε, stating that two discrete
distributions μ, ν : PMF α admit a joint coupling ω : PMF (α × α) whose disagreement
probability ω.toOuterMeasure {p | p.1 ≠ p.2} is at most ε. Every pair admits a maximal
coupling: its disagreement probability is exactly ∑' a, (μ a - ν a), so CoupledWithin and the
all-event relation CloseTo coincide, including on infinite types. The composition
combinators (refl, symm, mono, zero_iff, map, map₂, bind_of_eq_on) accompany event,
statistical-distance (dist_le, dist_bind_of_good), and total-variation-distance (tvDist_le)
bounds.
Main definitions #
Cslib.Probability.PMF.CoupledWithin: coupling of twoPMFs within disagreement probabilityε : ℝ≥0∞.
Main results #
Cslib.Probability.PMF.exists_coupling_toOuterMeasure_eq_tsum_tsub: maximal couplings of arbitrary probability mass functions.Cslib.Probability.PMF.coupledWithin_iff_closeTo: approximate couplings are exactly all-event statistical closeness.Cslib.Probability.PMF.CoupledWithin.closeTo,Cslib.Probability.CloseTo.coupledWithin: transport bounds between the coupling and all-event formulations.Cslib.Probability.PMF.dist_map_map_le: the coupling inequality for two maps of a single sample.Cslib.Probability.PMF.dist_bind_of_good: mixture statistical-distance bound conditioned on a good eventgood : Set α.Cslib.Probability.PMF.CoupledWithin.toOuterMeasure_le,Cslib.Probability.PMF.CoupledWithin.dist_le,Cslib.Probability.PMF.CoupledWithin.tvDist_le: event-probability, statistical-distance, and total-variation-distance bounds from a coupling.
Bounding dist (p.bind f) q by splitting p across a good event good : Set α on which
dist (f a) q ≤ b (0 ≤ b) and bounding dist (f a) q ≤ 1 outside good.
Two probability mass functions on an arbitrary type admit a coupling whose disagreement
probability is exactly their positive-part mass ∑' a, (μ a - ν a). The coupling puts
min (μ a) (ν a) on the diagonal and independently pairs the two residual masses.
Coupling inequality for events: if CoupledWithin μ ν ε, then for every event S : Set α,
μ.toOuterMeasure S ≤ ν.toOuterMeasure S + ε.
A coupling with disagreement probability at most ε witnesses all-events statistical
closeness with the same error.
Approximate coupling and all-events statistical closeness coincide for arbitrary probability mass functions, including distributions with infinite support.
All-events statistical closeness supplies a joint coupling with the same disagreement bound.
Every distribution is coupled with itself within 0.
Symmetry of CoupledWithin.
Monotonicity of CoupledWithin in the error bound ε.
CoupledWithin μ ν 0 holds if and only if μ = ν.
Deterministic postprocessing preserves CoupledWithin with the same error bound.
Composing two independent couplings via g : α → β → γ adds their disagreement bounds.
If a mixture p.bind f agrees with q on every a ∈ p.support belonging to a good event
good : Set α, then p.bind f is coupled with q within p.toOuterMeasure goodᶜ.
On a finite type, CoupledWithin μ ν ε (with ε ≠ ⊤) bounds the statistical distance
dist μ ν ≤ ε.toReal.
On a measurable singleton space, CoupledWithin μ ν ε (with ε ≠ ⊤) bounds the
total variation distance tvDist μ.toMeasure ν.toMeasure ≤ 2 * ε.toReal.
Coupling inequality. Two functions of the same sample are at statistical distance at most the probability that they differ.