What is total variation (TV) distance?

Total variation

Total variation distance or TV distance is the measure of distance for probability distributions. It also goes by the name of statistical difference or variational distance.

TV distance simply measures the distance between two probability distributions. A formula for TV. distance is defined as follows:

P.DP.D in the formula stands for the probability distribution. Here, ss is the set on which we want to calculate the probability and is contained in the countable set space of SS. So, the TV distance can be half of the sum of the probability distributions obtained on a setss%by the difference between both distributions.

One other way of expressing the TV distance could be to take events denoted by BB and then say that we take the probability of these events BB under P.D1P.D_1 and P.D2P.D_2 one by one, after which we take their difference and then root out the maximum amongst those:

Facts surrounding TV distance

A couple of factual statements on T.V. distance have been listed below:

  1. If we have two variables, XX and YY, whereXX has a marginal distribution denoted by DD and YY denoted by HH , the following statement is true:

  1. If p=xmin(D1(x),D2(x))p=\sum_x min(D_1(x), D_2(x))then 1p=D1D21-p = ||D_1-D_2||.

A simple illustration

Here, we have drawn a graph having two different PMFs Probability mass functionsof distributions and the total variation distance between them:

PMF 1 > PMF 2 PMF 2 > PMF 1= PMF 1= PMF 2Total variation distance / D1-D2 = +

We can see how the total variation distance is equal to the orange and green parts between the two PMF curves.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved