Chapter 1 Normal Distributions and the Ornstein–Uhlenbeck Process
This chapter sets up the stage and the protagonist of the book. The stage is the set of normal distributions , and the protagonist is the Ornstein–Uhlenbeck process (OU process from now on). We use only the density and characteristic function of the multivariate normal distribution, change of variables in integrals, and the basics of Lebesgue integration. We do not use the theory of stochastic differential equations. The relation between the OU process and stochastic differential equations is only described in Remark 1.11. That theory can be found in Chapters 4 and 5 of Why Pictures Emerge from Noise [KEI26b], and the Kullback–Leibler divergence of general probability measures is treated in Chapter 1 of the same book.
The contents are as follows.
-
•
The Gaussian family and its parameter space (Section 1.1).
-
•
The Kullback–Leibler divergence (KL divergence) and the formula for the KL divergence between normal distributions (Section 1.2).
-
•
The OU flow on normal distributions and the Fokker–Planck equation (Section 1.3).
The function of Section 1.2 is the function studied throughout the book. The OU flow of Section 1.3 is one of the two gradient flows compared in Chapter 6.
History
The KL divergence is named after Kullback and Leibler’s 1951 paper [KL51].
1.1 The Gaussian Family
Let be an integer. We write for the set of real symmetric matrices and for the subset of positive definite ones. For we write if it is positive semidefinite and if it is positive definite. We write for the identity matrix.
Definition 1.1 (Gaussian family).
For and , the probability distribution on with density
| (1.1) |
is called the normal distribution . In particular, is called the standard normal distribution. For positive semidefinite , we write for the law of , where . When , we write with and identify it with the point of the upper half-plane
When , the change of variables shows that the two definitions agree. The following facts follow from the characteristic function
-
•
If , then and .
-
•
If is a matrix and , then .
-
•
If and are independent, then .
In particular, is determined by the mean and the covariance matrix. Hence the normal distributions with are in one-to-one correspondence with the set of parameters .
Listing the diagonal entries and the entries above the diagonal identifies with , so . The set is open in . Indeed, the smallest eigenvalue satisfies
(where is the operator norm), so it is continuous, and . Thus the parameter space of the Gaussian family is an open subset of . For we have , so , and using the coordinates instead of gives . The subject of the book is two geometries on this open set.
1.2 The Kullback–Leibler Divergence
We first prepare an elementary function used throughout the book.
Lemma 1.2.
For let . Then is strictly decreasing on and strictly increasing on . In particular , with equality only for .
Proof.
The derivative is negative for and positive for . This gives the monotonicity, and attains its minimum only at . ∎
Definition 1.3 (KL divergence).
Let , be probability density functions on , with positive everywhere. The quantity
is called the Kullback–Leibler divergence (KL divergence) of with respect to . Here the integrand is taken to be at points where . When probability distributions , have densities , , we write .
We check that this integral makes sense. Write for the integrand. At points where ,
| (1.2) |
by Lemma 1.2. At points where , we have . Hence , and since is integrable, the negative part of is integrable. So the integral is well defined as a value in ; the value can occur. Moreover, since ,
| (1.3) |
and the integrand on the right is nonnegative.
Lemma 1.4.
For , as in Definition 1.3, . Equality holds only if almost everywhere.
Proof.
The integrand in (1.3) is nonnegative, so . Suppose equality holds. Then the integrand vanishes almost everywhere. At points where the integrand is , so is a null set. At points where , (1.2) and the equality case of Lemma 1.2 give . Hence almost everywhere. Conversely, if , the integrand vanishes almost everywhere. ∎
We now compute the KL divergence between normal distributions, starting with .
Example 1.5 (One-dimensional normal distributions).
Let , , and let be the density of . Then
For we have and . The right-hand side is quadratic in , hence integrable, and we obtain
| (1.4) |
In particular, taking ,
The computation is the same for general . For expectations of quadratic forms we use the following formula. Let be an -valued random variable with , and let and . For a matrix ,
| (1.5) |
where the last equality uses .
Proposition 1.6.
For ,
| (1.6) |
In particular, if are the eigenvalues of , then
| (1.7) |
Proof.
Definition 1.7.
By (1.7) and Lemma 1.2, . Equality holds only when and all eigenvalues equal , that is, only when ; the last reformulation is the spectral theorem. Thus is a nonnegative function on that vanishes only at the point corresponding to .
Remark 1.8 (Asymmetry of the KL divergence).
The KL divergence is not symmetric in and . For example, by (1.4) of Example 1.5, for ,
For the former is and the latter is . So the KL divergence is not a distance. The KL divergence studied in this book is , with the second argument fixed to the standard normal distribution (in Chapters 4 and 6, a point of an exponential family is used instead of ). There are two reasons for choosing this direction.
- 1.
-
2.
Since , for the density of a normal distribution,
The two integrals on the right are finite, since is a quadratic polynomial in . The first term is the negative entropy, and the second is the expectation of the potential . On the other hand, since , the Fokker–Planck equation (1.11) of the next section can be written as
Here comes from the first term and from the second.
1.3 The OU Flow on Normal Distributions
Definition 1.9 (OU flow).
Let , and let be positive semidefinite. For let
| (1.9) |
The family of normal distributions is called the OU flow starting from . For we write with , and
We collect the basic properties of the OU flow.
-
•
may be singular. For we have . Indeed, for , . If , then also at .
-
•
. Hence can be given the same eigenvectors as , and the corresponding eigenvalues satisfy .
-
•
is the solution with initial value of the ordinary differential equation
(1.10) Since the equation is linear, this solution is unique.
-
•
As , ; that is, the OU flow approaches . If , then for all .
Times in this book are restricted to . For , may fail to be positive definite. For example, if and , then for .
Figure 1.1 shows the densities of the OU flow starting from . The mean approaches at rate , and the variance approaches .
The densities of the OU flow satisfy the Fokker–Planck equation, where . The next proposition also states the converse: the OU flow is the only family of normal densities satisfying this equation.
Proposition 1.10.
Proof.
Let and . Both and depend on , and . We first check two differentiation formulae. Differentiating gives . Also , so .
By (1.1), . The two formulae above give
Next we differentiate in . Since ,
where we used . Noting and collecting terms, we obtain
| (1.12) |
Suppose (1.10) holds. Then gives and , and . Hence the right-hand side of (1.12) is , and since , (1.11) holds.
Conversely, suppose (1.11) holds. For each , the right-hand side of (1.12) vanishes identically as a polynomial in . Replacing by and regarding it as a polynomial in , the quadratic and linear terms each vanish. The matrix of the quadratic term is symmetric, so it is itself . Multiplying by on both sides gives , that is, . The linear term gives , and since is invertible, .
Finally, the curve of the OU flow is a curve on with values in and satisfies (1.10). So the last assertion follows from the first part. ∎
Remark 1.11 (Relation to the OU process).
Let be a -dimensional Brownian motion and a random variable independent of . The solution of the stochastic differential equation
is called the OU process. It is given by
where the second term on the right is independent of and has law (not proved in this book). A proof is in Chapter 4 of Why Pictures Emerge from Noise [KEI26b]. Granting this, if , the facts of Section 1.1 give
Thus the OU flow is the time evolution of the law of the OU process started from a normal distribution. With the normalisation that multiplies the noise by , implies ; that is, is the stationary distribution of the OU process. The general relation between the law of the OU process and the Fokker–Planck equation (1.11) is treated in Chapter 5 of the same book. This book uses only the case of a normal initial law, which Proposition 1.10 verified directly.
Problems
-
1.
Let be an invertible matrix, , and . Show that the KL divergence of with respect to equals .
Hint: In (1.6), use and .
-
2.
Let , and let be the eigenvalues of . Show that
Show further that, for , and , the inequality is equivalent to .
Hint: For the second part, let ; then and .
-
3.
Let , and , and let along the OU flow. Show that . Show further that if , then is strictly decreasing and as .
Hint: With we have , and by (1.8).
-
4.
For the OU flow of Definition 1.9, let . Show that the OU flow starting from takes the value at time .
Hint: Substitute into (1.9) and use .
-
5.
Let and (the initial law is concentrated at ). Show that for , and that this diverges to as .
Hint: For , .