Author: Yen-Chi Chen (University of Washington)
Date: 07/22/2026
- This note is modified on my lecture note of STAT 581 since the topic may be of interest to some researchers. The full lecture note can be found here.
- We will discuss several metrics/distances of distributions that are commonly used in statsitics and machine learning.
- How these metrics compare to each other is in this Section.
- A guide on what metrics to be used from my past experience is in this Section
By the Portmanteau theorem, we have seen that there are a number of ways to define convergence in distribution (weak convergence). However, the Portmanteau theorem does not directly describe the convergence as a convergence in metric/distance of distributions. In this section, we discuss the concept of convergence under distances of distributions.
Let be a sequence of random variables with CDF and let be a fixed random variable with a CDF . We want to study the convergence of , where is a distance of distributions. We first introduce three core distances whose convergence is equivalent to the convergence in distribution.
The Lévy distance between CDFs and is
Note that Lévy distance is only defined for univariate distributions.
For any given set , let be an open region that is within an neighborhood of . The Prokhorov distance between CDFs and is
The Bounded Lipschitz distance between CDFs and is
where .
Note that the notation where has a CDF .
The Portmanteau theorem (Theorem \ref{thm::port}) implies the following result.
The following statements are equivalent:
This Theorem shows that if distributions converge in any of the above three distances of distributions, this implies that the corresponding random variables converge in distribution. Formally, mathematicians often refer to this as these three distances inducing the weak topology, i.e., convergence in any of these distances implies convergence in distribution (weak convergence).
The Kolmogorov-Smirnov (KS) distance is another distance for distributions. Formally, it is defined as follows.
The Kolmogorov-Smirnov distance between CDFs and is
Note that if the CDFs are multivariate distributions, will be multivariate.
Clearly, convergence in KS distance implies convergence in distribution because the Portmanteau theorem states that convergence in distribution only requires the CDF to converge at every continuous point of the target distribution while KS distance requires uniform convergence, namely,
The KS distance is in fact a stronger distance than any of the above three distances! The following example shows that a random variable can converge in distribution but not in KS distance.
Consider .
Clearly, converges in distribution to a point mass at .
However, the CDF does not converge uniformly! Specifically, let be a random variable with a point mass at . Clearly,
for every . Thus, does not converge to zero!
While the above example shows that KS distance is a stronger distance, if the converging target is a continuous random variable, they are equivalent. This result is known as Pólya's Theorem.
If is continuous everywhere, then
In statistics, we often only need convergence in distribution for constructing confidence intervals and performing hypothesis tests. But convergence in distribution may not enough for applications beyond these two tasks. In many modern statistical and machine learning tasks, we are often interested in moments of random variables. The convergence in distribution is in fact NOT enough for convergences of moments!
Consider the sequence of random variables such that
where are IID from .
The distribution of is a mixture of a nice distribution (standard normal) and a bad 'noise' (a point mass at ).
This type of mixture is a common case in Huber contamination model.
You can easily show that .
However, the mean of is that actually diverges.
Thus, convergence in distribution does not imply convergence of expectation!
To strengthen the convergence in distribution along with convergence of moment, people often use the Wasserstein distance.
For two distributions and , their -Wasserstein distance is
The Wasserstein distance is also called Kantorovich distance, or Monge-Kantorovich distance, or the Mallows distance. It is a very important topic in optimal transport—you can think of the joint CDF as a transportation map from a distribution to another distribution and we want to minimizes the cost .
We have the following equivalence theorem that is particularly useful to associate the Wasserstein distance to convergence in distribution.
if and only if the following two conditions are met:
Due to the above theorem, we see that convergence in Wasserstein distance is a stronger notion than convergence in distribution, i.e.,
but not the other way around. But their difference primarily lies in the requirement on moment convergence or not.
The -Wasserstein distance has an equivalent expression known as the Kantorovich duality theorem.
where .
From this duality theorem, we see that the -Wasserstein distance is almost like the bounded Lipschitz distance except that we allow unbounded for the -Wasserstein distance.
The key difference is: bounded Lipschitz only requires bounded function .
While this excludes the linear function , the convergence in distribution actually does not need this.
The convergence in distribution allows probability mass to escape to infinity as long as this proportion eventually disappear (recall the example at the begining of this section).
Kantorovich duality theorem turns the computation of Wasserstein distance into a maximization problem. This is the foundation of the modern Wasserstein generative adversarial neural networks (W-GAN). Essentially, W-GAN just uses neural networks to approximate all possible Lipschitz continuous functions .
Finally, we want to note that while the Wasserstein distances are often hard to compute for multivariate distributions, there is a simple formula for the univariate case.
When are CDFs of univariate random variables,
In particular,
There are other popular distances that are related to probability density/mass functions. Here we cover two popular metrics that often appear in Statistics: the total variation (TV) distance and Hellinger distance.
For two distributions and , their total variation distance is
where the supremum is taken over all possible subsets of
When the two distributions have PDFs and , the total variation distance has an equivalent expression using the PDFs.
The total variation distance has a nice interpretation that it tells us the bound on probability difference over any region of interest. This appealing feature makes it very popular for various application such as showing the convergence of a Markov chain (and hence convergence of the Markov chain Monte Carlo). If , we know that for any region, the probability mass difference between the two distribution and can differ by at most .
For two distributions and , their Hellinger distance is
Hellinger distance can be viewed as putting the square root of a PDF on an infinite dimensional sphere and using the Euclidean distance in that sphere. It is related to the concept of Quadratic Mean Differentiation (QMD).
When are PMFs, their Hellinger distance is
A simple way to understand Hellinger distance is to view the square root of a PDF or PMF as a vector on a sphere. This is because once we take a square root of a PDF or a PMF, say , we immediately have or . In particular, for the case of a PMF that taking values on , if we consider the vector such that ,then . So the square root of a probability vector is a vector on the sphere. In this regard, the Hellinger distance is essentially the Euclidean distance between two vectors on a unit sphere.
Here is how all these metrics are related in (or ).
We have the following inequalities:
You may notice that the first inequality implies that converges to if and only if converges. The fourth inequality shows that converges to when converges. Since all three of them induce the same weak topology (converge in distribution), you may be wondering if convergence in implies convergence in . Unfortunately, this is NOT the case. Here is a counterexample that goes to while does not.
Consider two sequences of univariate distributions and such that places equal probability on integers while places the same probability on the shifted position .
Since , we can easily bound
due to the fact that each jump has a height .
Therefore,
However, does not converge to zero!
Consider the set .
Clearly, while .
When we consider , we immediately have
Therefore, that does not converge to zero.
The above example seems to offer a conflicting example to the Portmanteau theorem but this is not true. The critical part of the above example is that we are considering two sequences. If is a fixed probability distribution , then we have
Formally, the above equation means that and are topologically equivalent. The topological equivalence only requires open sets, which is defined via a fixed convergent target.
For and , since we know that the convergence of one implies the convergence of another even for two sequences of distributions, they are uniformly equivalent. Note: the formal definition of uniformly equivalent is that there exists functions when such that . For and , and . Clearly, uniform equivalence implies topological equivalence.
With so many distances available to quantify the distance between distributions, selecting the right one depends entirely on the downstream statistical task. If the goal is simply to establish asymptotic normality to construct a basic confidence interval or hypothesis test, any distance that metrizes the weak topology is sufficient.
However, when we need finite-sample bounds, exact coverage rates, or control over moments, the choice of metric becomes critical. Here is general guidance on when to deploy which metric from my personal experience:
Coverage bounds: Kolmogorov-Smirnov distance.
While weak convergence guarantees that a bootstrap confidence interval is asymptotically valid, it does not quantify the finite-sample accuracy of that coverage. To bound the coverage error, we need the KS distance. Because KS directly measures the maximum vertical discrepancy between CDFs, it is the natural metric for theorems like the Berry-Esseen bound, which dictates exactly how fast the coverage deficiency shrinks (e.g., ).
Interpretation and state-space mixing: Total variation distance.
The TV distance provides a strict, highly interpretable probability bound: a TV distance of guarantees that the two distributions will differ by at most on any measurable set, no matter how complex. This makes TV the gold standard for bounding the mixing times of Markov chains, as it ensures the chain has properly explored every subset of the state space relative to its stationary distribution.
Moment convergence: Wasserstein distance.
If a downstream task requires not just the probabilities to align, but the expectations (or variances) to converge, the Wasserstein distance is required. convergence guarantees the convergence of the -th moment. The Kantorovich duality theorem is particularly powerful for deriving rates of convergence for generative models (like W-GANs or diffusion models) and for bounding distributional shifts.
Multi-stage estimators: Bounded Lipschitz.
For complex, multi-stage estimation procedures, the BL distance is powerful. Suppose an estimator behaves perfectly in a "good" scenario (stage one succeeds), but becomes wildly unstable in a "bad" scenario (stage one fails). If we evaluate this using an unbounded distance like , the extreme values of the bad scenario could cause the distance to explode. However, because the BL distance restricts test functions to , the integral over the bad event is strictly bounded by the probability of the bad event occurring. As long as the probability of the first stage failing shrinks to , the BL distance nullifies the bad scenario and guarantees weak convergence.
Likelihood approximations and minimax lower bounds: Hellinger distance.
Because the Hellinger distance operates on the square root of the probability density, it represents the geometry of maximum likelihood theory. In parametric statistics, it is the foundation of QMD. By defining smoothness under the Hellinger distance, QMD allows us to define Fisher information and establish local asymptotic normality even when densities are not pointwise differentiable. We will formally cover this in the next lecture. Furthermore, the Hellinger distance of IID observations enjoys an elegant form of product:
where is the Hellinger affinity and are the PDFs of and . This product form leads to minimax lower bounds via Le Cam's method.