Total variation distance of probability measures

From HandWiki
Revision as of 17:33, 8 February 2024 by Scavis (talk | contribs) (link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Concept in probability theory


Total variation distance is half the absolute area between the two curves: Half the shaded area above.

In probability theory, the total variation distance is a distance measure for probability distributions. It is an example of a statistical distance metric, and is sometimes called the statistical distance, statistical difference or variational distance.

Definition

Consider a measurable space [math]\displaystyle{ (\Omega, \mathcal{F}) }[/math] and probability measures [math]\displaystyle{ P }[/math] and [math]\displaystyle{ Q }[/math] defined on [math]\displaystyle{ (\Omega, \mathcal{F}) }[/math]. The total variation distance between [math]\displaystyle{ P }[/math] and [math]\displaystyle{ Q }[/math] is defined as:[1]

[math]\displaystyle{ \delta(P,Q)=\sup_{ A\in \mathcal{F}}\left|P(A)-Q(A)\right|. }[/math]

Informally, this is the largest possible difference between the probabilities that the two probability distributions can assign to the same event.

Properties

The total variation distance is an f-divergence and an integral probability metric.

Relation to other distances

The total variation distance is related to the Kullback–Leibler divergence by Pinsker’s inequality:

[math]\displaystyle{ \delta(P,Q) \le \sqrt{\frac{1}{2} D_{\mathrm{KL}}(P\parallel Q)}. }[/math]

One also has the following inequality, due to Bretagnolle and Huber[2] (see, also, Tsybakov[3]), which has the advantage of providing a non-vacuous bound even when [math]\displaystyle{ D_{\mathrm{KL}}(P\parallel Q)\gt 2 }[/math]:

[math]\displaystyle{ \delta(P,Q) \le \sqrt{1-e^{ -D_{\mathrm{KL}}(P\parallel Q) }}. }[/math]

The total variation distance is half of the L1 distance between the probability functions: on discrete domains this is the distance between probability mass functions[4] [math]\displaystyle{ \delta(P, Q) = \frac12 \sum_{x} |P(x) - Q(x)| }[/math], The relationship holds more generally as well:[5] [math]\displaystyle{ \delta(P, Q) = \frac12 \int | p(x) - q(x) | \mathrm{d}x }[/math] when the distributions have standard probability density functions p and q, or the analogous distance between Radon-Nikodym derivatives with any common dominating measure. This result can be shown by noticing that the supremum in the definition is achieved exactly at the set where one distribution dominates the other.[6]

The total variation distance is related to the Hellinger distance [math]\displaystyle{ H(P,Q) }[/math] as follows:[7]

[math]\displaystyle{ H^2(P,Q) \leq \delta(P,Q) \leq \sqrt 2 H(P,Q). }[/math]

These inequalities follow immediately from the inequalities between the 1-norm and the 2-norm.

Connection to transportation theory

The total variation distance (or half the norm) arises as the optimal transportation cost, when the cost function is [math]\displaystyle{ c(x,y) = {\mathbf{1}}_{x \neq y} }[/math], that is,

[math]\displaystyle{ \frac{1}{2} \| P - Q \|_1 = \delta(P,Q) = \inf\{ \mathbb{P}(X\neq Y ) : \text{Law}(X) = P , \text{Law}(Y) = Q\} = \inf_\pi \operatorname{E}_{\pi}[{\mathbf{1}}_{x\neq y}], }[/math]

where the expectation is taken with respect to the probability measure [math]\displaystyle{ \pi }[/math] on the space where [math]\displaystyle{ (x,y) }[/math] lives, and the infimum is taken over all such [math]\displaystyle{ \pi }[/math] with marginals [math]\displaystyle{ P }[/math] and [math]\displaystyle{ Q }[/math], respectively.[8]

See also

References

  1. Chatterjee, Sourav. "Distances between probability measures". UC Berkeley. http://www.stat.berkeley.edu/~sourav/Lecture2.pdf. 
  2. Bretagnolle, J.; Huber, C, Estimation des densités: risque minimax, Séminaire de Probabilités, XII (Univ. Strasbourg, Strasbourg, 1976/1977), pp. 342–363, Lecture Notes in Math., 649, Springer, Berlin, 1978, Lemma 2.1 (French).
  3. Tsybakov, Alexandre B., Introduction to nonparametric estimation, Revised and extended from the 2004 French original. Translated by Vladimir Zaiats. Springer Series in Statistics. Springer, New York, 2009. xii+214 pp. ISBN:978-0-387-79051-0, Equation 2.25.
  4. David A. Levin, Yuval Peres, Elizabeth L. Wilmer, Markov Chains and Mixing Times, 2nd. rev. ed. (AMS, 2017), Proposition 4.2, p. 48.
  5. Tsybakov, Aleksandr B. (2009). Introduction to nonparametric estimation (rev. and extended version of the French Book ed.). New York, NY: Springer. Lemma 2.1. ISBN 978-0-387-79051-0. 
  6. Devroye, Luc; Györfi, Laszlo; Lugosi, Gabor (1996-04-04) (in en). A Probabilistic Theory of Pattern Recognition (Corrected ed.). New York: Springer. ISBN 978-0-387-94618-4. https://www.amazon.com/Probabilistic-Recognition-Stochastic-Modelling-Probability/dp/0387946187. 
  7. Harsha, Prahladh (September 23, 2011). "Lecture notes on communication complexity". https://www.tcs.tifr.res.in/~prahladh/teaching/2011-12/comm/lectures/l12.pdf. 
  8. Villani, Cédric (2009) (in en). Optimal Transport, Old and New. Grundlehren der mathematischen Wissenschaften. 338. Springer-Verlag Berlin Heidelberg. pp. 10. doi:10.1007/978-3-540-71050-9. ISBN 978-3-540-71049-3. https://cds.cern.ch/record/1621563.