The total variation distance between high-dimensional Gaussians with the same mean
Luc Devroye, Abbas Mehrabian, Tommy Reddad
Introduction
We denote by a random variable with this distribution. Note that if then and .
with respect to the -dimensional Lebesgue measure on . The density is zero outside this affine subspace. For general background on high-dimensional Gaussian distributions (also called multivariate normal distributions), see .
If and have densities and , then it is easy to verify that the set attains the supremum here, and this observation leads to the identity
that is, the total variation distance is half the distance. In the following, we will sometimes write for , where and are random variables distributed as and , respectively. Observe that is a metric and is always between 0 and 1. For a survey on measures of distance between distributions and inequalities between them, see .
We have seen that the total variation distance can be written as an integral or as a supremum, but in general there is no known closed form for it. In this note, given two Gaussians with the same mean, we give closed-form lower and upper bounds for their total variation distance, which are within a constant factor of one another. If the Gaussians have different means, we give only a lower bound and leave a tight characterization as an open problem.This problem has been solved; see [1, Theorem 1.8].
Open Problem. Find closed-form lower and upper bounds for the total variation distance between two high-dimensional Gaussians that are within a constant factor of one another.
Note that if , in particular if , then we have , since the intersection of the supports have zero Lebesgue measure. Another trivial case is when and , in which case the total variation distance is zero. We will not explicitly treat these two cases.
Our first main result concerns the same-mean case. We have not tried to optimize the constants in our results.
If and are positive semi-definite, , and , then let be a matrix that has the same range as and and let denote the eigenvalues of . Then, we have
The paper proves a bound similar to Theorem 1.1 for Gaussian distributions in a general Hilbert space: if and are positive definite matrices, has eigenvalues , and , then [2, Corollary 2] gives
This result has the advantage that it covers infinite-dimensional spaces as well, but it holds only when is smaller than a threshold.
One can express the quantities and in Theorem 1.1 in terms of Frobenius norms of appropriate matrices. For the first case, i.e., when are positive definite, we have
To see this, first note that have the same spectrum as , because a vector is an eigenvector for with eigenvalue if and only if is an eigenvector for with eigenvalue . Thus, the eigenvalues of are , proving the first equality in (2). The second equality follows by noting that the matrix is symmetric. The second case, i.e., when are positive semi-definite, can be handled similarly.
For the case where the means are different, we prove the following lower bound.
Along the way of proving this theorem, we also give bounds for the one-dimensional case.
In the one-dimensional case, , we have
Although the total variation distance is symmetric, our lower and upper bounds are not symmetric, so they can be automatically strengthened; for instance, the following symmetric version of Theorem 1.3 holds:
Moreover, for Theorem 1.1, swapping and can change the estimation of the total variation distance by at most a multiplicative factor of 2. Namely, suppose and are positive definite matrices, are the eigenvalues of , and are the eigenvalues of . Then elementary calculations give
Some preliminaries and other known bounds for the total variation distance between Gaussians appear in Section 2. We start by proving Theorem 1.1 in Section 3, then we prove Theorem 1.3 in Section 4, and finally we prove Theorem 1.2 in Section 5.
Preliminaries
The -dimensional identity matrix is denoted . The trace and determinant of a matrix are denoted and , respectively. The Frobenius norm (also called the Hilbert–Schmidt norm or the Schur norm) of a matrix is denoted by . Note that equals the sum of squares of entries of . If is symmetric, equals the sum of squares of eigenvalues of . For general background on matrix norms, see [4, Chapter 5].
The coupling characterization of the total variation distance.
For two distributions and , a pair of random variables defined on the same probability space is called a coupling for and if and . An extremely useful property of the total variation distance is the coupling characterization: for any two distributions and , we have if and only if there exists a coupling for them such that (see, e.g., [6, Proposition 4.7]). This characterization implies that for any function we have . If is invertible (for instance if where is full-rank) this also implies .
An important property of the Gaussian distribution is that any linear transformation of a Gaussian random variable is also Gaussian: if then
For a positive semi-definite matrix with eigendecomposition where the are orthonormal, we define and . It is easy to observe that if then .
throughout, which implies that for any there exists a such that .
We next state some known bounds for the total variation distance between two Gaussians, which may be more convenient than the above bounds for some applications.
For the case when the two Gaussians have the same covariance matrix, [2, Theorem 1] gives
The following bounds follow from known relations between statistical distances.
An upper bound for the total variation distance using the KL-divergence.
and Pinsker’s inequality [11, Lemma 2.5] states that for any pair of distributions. The KL-divergence between two Gaussians has a closed form (e.g., [8, Formula (A.23)]):
Combining these gives the following proposition.
If and are positive definite, then
Bounds for the total variation distance using the Hellinger distance.
see [5, page 44]. The Hellinger distance between two Gaussians has a closed form (e.g., [7, Exercises 11 and 14 in Chapter 1]):
Combining these gives the following proposition.
Assume that are positive definite, and let
The same-mean case: proof of Theorem 1.1
In this section we consider the case when both Gaussians have the same mean. For proving the theorem we will need two lemmas.
Suppose and let . If is a diagonal matrix with diagonal entries , then
Define a random vector . From (1) we have
Since for all , we have for some , and summing these up we find for some . Also let and , whence
where the first inequality is the triangle inequality, the second one follows from
and the third one follows from Hölder’s inequality (see, e.g., [3, Lemma 14.8]). We control each term on the right-hand-side of (3). First, observe that since is mean-zero, we have for all , and since ,
Second, since , and we have ; thus,
Finally, for the exponential moment, note that for any , hence
If then .
If then , so we have
and if then , so we have
For both parts of the theorem, we may assume that . We start with the case that and are positive definite, i.e., they have full rank. Recall that have eigenvalues . Let .
We first prove the upper bound. If some then trivially
and the upper bound in the theorem is proved.
For proving the lower bound, we first claim that if is a diagonal matrix with diagonal entries , then
To prove this, let . We first claim if and are positive definite matrices with the same spectrum, then . To see this, let be the eigenvalues of and , and let be the components of . By rotational invariance of the standard Gaussian distribution (see, e.g., [12, Proposition 3.3.2]), both and are equal to , and the claim is proved. This also implies, for any two positive definite matrices and with the same spectrum,
Now has the same spectrum as , which has the same spectrum as , whence (4) is proved.
For proving the lower bound in the theorem we consider three cases.
Case 1: there exists some with . Observe that if we project a random variable distributed as onto the th component, we obtain a one-dimensional random variable . Since projection can only decrease the total variation distance, using Lemma 3.2 we obtain
as required. The above equality holds because the total variation distance is invariant under any linear transformation.
Case 2: for all , and . In this case Lemma 3.1 gives
Case 3: for all , and . Define
and observe that for . Let be the largest index such that , and observe that since for all , we have and so . Let be the diagonal matrix with diagonal entries . If we project a random variable distributed as onto the first coordinates, we obtain a random variable. Since projection can only decrease the total variation distance, using Lemma 3.1 we obtain
The matrices and are positive definite matrices, hence the second part of the theorem follows from the first part. ∎
The one-dimensional case: proof of Theorem 1.3
We start with the upper bound. If , then the right-hand-side is at least 1 and the bound holds because the total variation distance is at most 1. Otherwise, since , we have , so from Proposition 2.1 we have
The lower bound follows from the following two lower bounds:
and then (5) follows from Theorem 1.1. Assume, without loss of generality, that and . By the form of the density of the normal distribution, this implies there exists some such that
To complete the proof of Theorem 1.3 we need only prove (6). By symmetry, we may assume . Let . Then
which proves (6) and completes the proof of the theorem.
The general case: proof of Theorem 1.2
with .
Let and . Then we have, by the coupling characterization of the total variation distance,
We next claim that . To see this, observe that is a linear map of a Gaussian, so it is Gaussian. Its mean and covariance can be computed from those of . Similarly, one can compute . So, Theorem 1.3 gives
On the other hand, since , both and are also Gaussians, with and . Note that . Also observe that since each column of is orthogonal to , we have and . Recall that are the eigenvalues of . Hence the second part of Theorem 1.1 gives
We are grateful to Michael Kohler, Gautam Kamath, Cole Franks, and Shirshendu Ganguly for pointing out inaccuracies in earlier versions of this paper.