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 p and q on a countable set X, the
total variation distance is
dTV(p,q)=21x∈X∑∣p(x)−q(x)∣.
It is a metric with values in [0,1], and it has three equivalent descriptions:
Events.dTV(p,q)=maxA⊆X(p(A)−q(A)),
attained at A∗={x:p(x)>q(x)}. Indeed ∑x(p(x)−q(x))=0, so the
positive part p(A∗)−q(A∗) equals the negative part and each is half the
ℓ1 sum, and any other A collects less of the positive part or some of the
negative part.
Couplings.dTV(p,q)=minPr[X=Y] over all pairs of random
variables (X,Y) on a common probability space with X∼p and Y∼q
(Proposition 4.7 of Levin and Peres).
Testing. Given one sample from p or from q with prior probability 1/2 each, the
largest achievable probability of guessing correctly is
21(1+dTV(p,q)), achieved by guessing p exactly on
A∗.
Applying any stochastic map (a channel, or a function of the sample) to both distributions
cannot increase dTV. 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.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
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
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).