Skip to main content
KetQat

Appearance

Definition · introductory

Total variation distance

Half the l1 distance between two probability distributions. It equals the largest difference in probability they assign to one event, the smallest probability that a coupling of them differs, and fixes the best success probability for telling them apart from one sample.

Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

For probability distributions pp and qq on a countable set X\mathcal{X}, the total variation distance is

dTV(p,q)=12∑x∈X∣p(x)−q(x)∣.d_{\mathrm{TV}}(p, q) = \frac{1}{2} \sum_{x \in \mathcal{X}} \abs{p(x) - q(x)} .

It is a metric with values in [0,1][0, 1], and it has three equivalent descriptions:

  1. Events. dTV(p,q)=max⁡A⊆X(p(A)−q(A))d_{\mathrm{TV}}(p, q) = \max_{A \subseteq \mathcal{X}} \big( p(A) - q(A) \big), attained at A∗={x:p(x)>q(x)}A^{*} = \{x : p(x) > q(x)\}. Indeed ∑x(p(x)−q(x))=0\sum_x (p(x) - q(x)) = 0, so the positive part p(A∗)−q(A∗)p(A^{*}) - q(A^{*}) equals the negative part and each is half the ℓ1\ell_1 sum, and any other AA collects less of the positive part or some of the negative part.
  2. Couplings. dTV(p,q)=min⁡Pr⁡[X≠Y]d_{\mathrm{TV}}(p, q) = \min \Pr[X \ne Y] over all pairs of random variables (X,Y)(X, Y) on a common probability space with X∼pX \sim p and Y∼qY \sim q (Proposition 4.7 of Levin and Peres).
  3. Testing. Given one sample from pp or from qq with prior probability 1/21/2 each, the largest achievable probability of guessing correctly is 12(1+dTV(p,q))\tfrac{1}{2}\big(1 + d_{\mathrm{TV}}(p, q)\big), achieved by guessing pp exactly on A∗A^{*}.

Applying any stochastic map (a channel, or a function of the sample) to both distributions cannot increase dTVd_{\mathrm{TV}}. The quantum counterpart is the trace distance, which equals the largest total variation distance between the outcome distributions of a single measurement applied to the two states (section 9.2 of Nielsen and Chuang).

Holds when

  • Distributions on a finite or countable set; the same statements hold for general measures with sums replaced by integrals against a dominating measure.
Part of
Related
Needed for
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. David A. Levin, Yuval Peres (2017). Markov Chains and Mixing Times (2nd edition). American Mathematical Society. doi:10.1090/mbk/107
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Definition, event characterisation with the maximising set, and coupling characterisation compared with Levin and Peres, Markov Chains and Mixing Times 2nd ed. (authors' open PDF), Proposition 4.2 and Proposition 4.7 (numbering confirmed). Testing success probability (1 + d_TV)/2 and the event/coupling identities re-derived and checked numerically on random distributions. Nielsen and Chuang section 9.2 location from knowledge of the book, not read.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 328911a54861f250. Source file knowledge/records/definition/total-variation-distance.md in the content repository (readable there once it is public).