Statistical Distance of Finite Probability Mass Functions #
For PMFs p and q on a finite type, their statistical distance is
(1 / 2) * ∑ a, |p a - q a|.
This is [BS23], Definition 3.5. The probabilities are converted from
ℝ≥0∞, Mathlib's codomain for a PMF, to ℝ before taking the finite sum.
Statistical distance is packaged as a scoped MetricSpace instance on
PMF α, so it is spelled dist p q and the general metric API applies:
dist_nonneg, dist_self, dist_comm, dist_triangle, dist_eq_zero, and
so on. Open Cslib.Probability.PMF (or open scoped Cslib.Probability.PMF)
to activate the instance; it is scoped so that this library does not install a
global metric on Mathlib's PMF type.
Besides the metric structure, this file proves that applying the same transformation — deterministic or randomized — to two PMFs cannot increase their statistical distance; [BS23], Theorem 3.13 is the deterministic case.
Main definitions #
MetricSpace (PMF α)(scoped instance): statistical distance as a metricStatisticallyClose: an upper bound on statistical distance
Main results #
dist_bind_le: randomized postprocessing cannot increase statistical distancedist_eq_one_of_disjoint_support: PMFs with disjoint supports are at the maximum statistical distanceStatisticallyClose.trans: closeness bounds chain through an intermediate distribution, adding the errorsstatisticallyClose_zero_iff: zero error is equality
References #
Statistical distance makes the PMFs on a finite type a metric space ([BS23], Definition 3.5).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Two PMFs are ε-statistically close when their statistical distance is at
most ε. The ℝ≥0 parameter rules out meaningless negative bounds.
Equations
- Cslib.Probability.PMF.StatisticallyClose p q ε = (dist p q ≤ ↑ε)
Instances For
Every PMF is statistically close to itself with zero error.
Statistical closeness is symmetric.
A statistical-closeness bound remains valid when its error is enlarged.
Closeness bounds chain through an intermediate distribution, adding the errors.
A shared randomized postprocessing kernel preserves statistical closeness.
Deterministic postprocessing preserves statistical closeness.
Statistical closeness with zero error is equality.