Skip to content
Is the Normal Distribution Curved?Chapter 0 Two Geometries on Normal Distributions

Chapter 0 Two Geometries on Normal Distributions

This chapter motivates and guides the book, and contains no proofs. Each claim made here is either restated precisely and proved in a later chapter, or marked as not proved in this book.

0.1 Which Pair Is Farther Apart?

We write 𝒩⁢(m,σ2) for the normal distribution with mean m∈ℝ and variance σ2 (σ>0). Its density is

p⁢(x)=12⁢π⁢σ⁢exp⁡(−(x−m)22⁢σ2).

A normal distribution is determined by the two numbers m and σ, so we identify the set of all one-dimensional normal distributions with the upper half-plane

ℍ={(m,σ)∈ℝ2:σ>0}.

Compare the following two pairs of normal distributions.

  • •

    Pair A: 𝒩⁢(0,1) and 𝒩⁢(0,4), with standard deviations 1 and 2.

  • •

    Pair B: 𝒩⁢(0,0.0001) and 𝒩⁢(0,0.0004), with standard deviations 0.01 and 0.02.

Which pair is farther apart? There are at least two natural ways to measure how much two distributions differ, and they answer this question differently.

The first is through information. Two distributions are close if it is hard to tell them apart by observing samples. The quantity this view leads to is the Kullback–Leibler divergence (KL divergence)

KL⁡(p∥q)=∫ℝp⁢(x)⁢log⁡p⁢(x)q⁢(x)⁢d⁢x

(Chapter 1), where p and q are the densities of the two distributions. For two normal distributions with equal means, writing r=σ1/σ2, we have

KL⁡(𝒩⁢(0,σ12)∥𝒩⁢(0,σ22))=12⁢(r2−1−log⁡r2)

(Chapter 1). This depends only on the ratio r of the standard deviations. If σ1 is the smaller standard deviation of each pair, both pairs have r=1/2, so both values are 12⁢(log⁡4−34)≈0.318. Exchanging σ1 and σ2 gives r=2, and both values are 12⁢(3−log⁡4)≈0.807. In the information view, then, the two pairs are equally far apart. The infinitesimal version of the KL divergence is the Fisher information matrix (Chapter 3). Regarding the Fisher information matrix as an inner product at each point of ℍ gives the Fisher metric, and its study is information geometry. Measured by the distance of the Fisher metric, too, two distributions with equal means are 2⁢|log⁡(σ1/σ2)| apart, which depends only on the ratio (Chapter 3). For both pairs this is 2⁢log⁡2.

The second is through transport. Regard one distribution as a pile of sand: the two distributions are close if little work is needed to move it into the shape of the other. The work is measured by the mean of the squared distances the grains travel. Minimising this over all ways of moving the sand and taking the square root gives the Wasserstein distance 𝒲2, and its study is optimal transport. For two distributions with equal means, moving the sand at the point x to (σ2/σ1)⁢x is optimal, and

𝒲2⁢(𝒩⁢(0,σ12),𝒩⁢(0,σ22))=|σ1−σ2|

(Chapter 5). This is determined by the difference of the standard deviations. For pair A the sand is moved by x↦2⁢x, and 𝒲2=1. For pair B the sand is moved in the same way, but the pile is 100 times narrower, and 𝒲2=0.01. In the transport view, then, pair B is 100 times closer. On ℍ, 𝒲2 is also the distance determined by an inner product at each point. This inner product is called the Wasserstein metric (Chapter 5).

In short, the Fisher metric sees the ratio of the standard deviations; the Wasserstein distance sees their difference. The difference becomes striking as σ→0. As σ→0, 𝒩⁢(m,σ2) approaches the distribution δm concentrated at the point m. Measured by the Fisher metric, δm is infinitely far away. Measured by the Wasserstein distance, δm is at finite distance and corresponds to the boundary σ=0 of ℍ. This contrast reappears in the next section as a difference between two flows.

0.2 The Same KL Divergence, Two Flows

The choice of metric does more than change the numerical value of a distance. When distributions are moved so as to decrease a function, it changes the direction in which they move.

We write γ for the standard normal distribution 𝒩⁢(0,1); it corresponds to the point (0,1) of ℍ. Consider the KL divergence from γ,

F⁢(m,σ)=KL⁡(𝒩⁢(m,σ2)∥γ)=12⁢(σ2+m2−1−log⁡σ2).

The function F is nonnegative and vanishes only at γ. So by moving through ℍ while decreasing F, we may expect to approach γ. The most straightforward way to move is in the direction in which F decreases most steeply. A flow that moves in this way is called a gradient flow. But what “most steeply” means depends on how the length of a step is measured, that is, on the metric. So the same F has two gradient flows, one for each metric (Chapter 6). If the target γ is replaced by a non-Gaussian distribution π, the problem becomes that of finding the normal distribution that minimises KL(⋅∥π). In statistics and machine learning this is called Gaussian variational inference. There too, the gradient flow changes with the choice of metric (Chapter 8).

The solution of the stochastic differential equation

d⁢Xt=−Xt⁢d⁢t+2⁢d⁢Bt

is called the Ornstein–Uhlenbeck process (OU process). Here B is a Brownian motion. The book does not use stochastic differential equations. All it needs is the time evolution of the law of the OU process. If the initial law is the normal distribution 𝒩⁢(m0,σ02), then the law at time t≥0 is 𝒩⁢(m⁢(t),σ⁢(t)2) with

m⁢(t)=e−t⁢m0,σ⁢(t)2=1+(σ02−1)⁢e−2⁢t

(Chapter 1). As t→∞, the law approaches γ. Thus the OU process defines a flow on ℍ that carries every point towards (0,1). The two gradient flows are as follows.

  • •

    The gradient flow of F for the Wasserstein metric is exactly the flow of laws of the OU process.

  • •

    The gradient flow of F for the Fisher metric is a different flow. Writing its law at time t as 𝒩⁢(m~⁢(t),σ~⁢(t)2), it is given by

    1σ~⁢(t)2=1+e−t⁢(1σ02−1),m~⁢(t)σ~⁢(t)2=e−t⁢m0σ02.

    Let pt be the density at time t, and write γ also for the density of γ; then pt is proportional to p0e−t⁢γ1−e−t. In other words, it interpolates between the densities of the initial law and of γ by a geometric mean.

Here a gradient flow means a gradient flow on ℍ, the set of normal distributions. The corresponding statements on the space of all probability distributions are not proved in this book (Chapters 6 and 9). The book compares these two flows on the Gaussian family. Figure 0.1 shows trajectories of the two flows. The two trajectories coincide as sets if and only if m0=0 or σ0=1 (Chapter 6).

Figure 0.1: Trajectories of the two gradient flows in the upper half-plane ℍ. They start from the initial points (m0,σ0)=(2.5,0.3), (−2.5,0.5), (2,2.5), (−1.5,2.2) (small dots) and are drawn for times t∈[0,8]. Solid lines are trajectories of the laws of the OU process; dashed lines are trajectories of the gradient flow of F for the Fisher metric. Both approach the point (0,1) (large dot), which corresponds to γ, as t→∞. The trajectories were computed from the formulas in the text. The m-axis and the σ-axis have the same scale.

Which flow approaches γ faster? The answer depends on the initial law and on the time (Chapter 7). Write F⁢(t) for the value of F at time t along a flow.

  • •

    For the OU process, F⁢(t)≤e−2⁢t⁢F⁢(0) holds whichever normal distribution the flow starts from. The same holds for d-dimensional normal distributions.

  • •

    The gradient flow for the Fisher metric has no such uniform rate. Even for a fixed time t>0, there are initial laws for which F⁢(t)/F⁢(0) is arbitrarily close to 1.

  • •

    Even so, the gradient flow for the Fisher metric is not always the slower one. Start both flows from m0=0 and the same σ0≠1, and compare F at time t>0. If σ02>1+et, the gradient flow for the Fisher metric has the smaller F; if σ02<1+et, the OU process has the smaller F. For example, starting from σ0=3, the gradient flow for the Fisher metric has the smaller F for t<log⁡8≈2.08, and the OU process for t>log⁡8. Starting from σ0<1, the OU process has the smaller F for every t>0.

So neither flow is always faster than the other. This is the climax of the book. This phenomenon can be explained by the contrast between ratio and difference seen in Section 0.1. As σ→0 the Fisher metric grows like 1/σ2, so the gradient for the Fisher metric is small and the flow is slow (Chapter 7).

0.3 The Question and the Answer

The difference between the two flows of the previous section comes from the difference between the two metrics. So we want to study the metrics themselves. What shape does each metric give the same half-plane ℍ? In particular, is either shape curved? This is the title question, “Is the normal distribution curved?” The book’s answer can be summarised as follows.

The set of one-dimensional normal distributions 𝒩⁢(m,σ2) can be regarded as the upper half-plane ℍ with coordinates (m,σ). Measured by the Fisher metric, ℍ is a complete hyperbolic plane of curvature −1/2; measured by the Wasserstein distance, it is a flat (incomplete) half-plane.

So the answer to the title question is “it depends on the metric”. The first half is proved in Chapter 3 and the second in Chapter 5. Curvature, completeness and the hyperbolic plane are defined in Chapter 2. Flatness comes from the fact that 𝒲2 equals the Euclidean distance of the (m,σ)-plane (Chapter 5). The contrast for δm seen in Section 0.1 is the difference between being complete and not.

We stress that the book proves flatness only for d=1. For d≥2, the Wasserstein distance also determines a metric on the set of d-dimensional normal distributions. Its sectional curvature is nonnegative. Sectional curvature generalises the two-dimensional Gaussian curvature of Chapter 2 to higher dimensions; this book does not define it. Nonnegativity is not proved in this book (Takatsu [TAK11, Theorem B], Chapter 5).

0.4 History

Fisher information goes back to Fisher’s 1925 paper [FIS25]. Twenty years later, in his 1945 paper [RAO45], Rao regarded Fisher information as a Riemannian metric and considered the distance it defines. The same paper contains the inequality now called the Cramér–Rao inequality, which Cramér also gave in his 1946 book [CRA46]. The paper of Kullback and Leibler dates from 1951 [KL51]. Later, the English translation of Chentsov’s book was published in 1982 [ČEN82]. Amari and Nagaoka’s Methods of Information Geometry was published in Japanese by Iwanami Shoten in 1993, and its English translation appeared in 2000 [AN00].

The transport problem is older still. In 1781 Monge wrote his paper on déblais et remblais (excavation and embankment) [MON81]. Kantorovich’s paper dates from 1942 [KAN42]. The formula for 𝒲2 between normal distributions was found independently in 1982 by Dowson and Landau [DL82] and by Olkin and Pukelsheim [OP82]. Givens and Shortt’s 1984 paper [GS84] also treats this formula. McCann’s 1997 paper [MCC97], the 1998 paper of Jordan, Kinderlehrer and Otto [JKO98] and Otto’s 2001 paper [OTT01] followed. In 2011 Takatsu’s paper [TAK11] appeared. Its introduction contrasts the two sides on one-dimensional normal distributions. These papers are presented from Chapter 5 onwards and in Chapter 9.

0.5 Map of the Book, Prerequisites and How to Read It

The Chapters

  • •

    Chapter 1: normal distributions, the KL divergence, the OU flow on normal distributions and the Fokker–Planck equation.

  • •

    Chapter 2: Riemannian metrics on open subsets of ℝn, distance, gradient flows, geodesics and curvature.

  • •

    Chapter 3: the Fisher metric, the Cramér–Rao inequality, and the fact that ℍ measured by the Fisher metric is a hyperbolic plane.

  • •

    Chapter 4: exponential families, the dually flat structure, e-geodesics and m-geodesics, and the Pythagorean theorem.

  • •

    Chapter 5: the Wasserstein distance, the formula between normal distributions, the fact that ℍ measured by the Wasserstein distance is flat, and the Wasserstein metric.

  • •

    Chapter 6: the two gradient flows: the OU process as the gradient flow for the Wasserstein metric, the gradient flow for the Fisher metric, and a comparison of the two trajectories.

  • •

    Chapter 7: rates of convergence, and the fact that neither flow is always faster than the other.

  • •

    Chapter 8: Gaussian variational inference as an application. The problem of approximating a non-Gaussian distribution by a normal distribution is solved with the two gradient flows.

  • •

    Chapter 9: developments not proved in this book, and further reading.

The climax is Chapters 6 and 7. Chapter 4 is used in Chapter 6 to solve the gradient flow for the Fisher metric.

Prerequisites

The book assumes the following.

  • •

    Measure-theoretic probability, needed for couplings and the definition of 𝒲2.

  • •

    Real analysis.

  • •

    Linear algebra: the spectral theorem, positive definite matrices and their square roots, and the singular value decomposition.

  • •

    Multivariable calculus.

  • •

    Existence and uniqueness of solutions of ordinary differential equations.

It does not assume the following.

  • •

    Manifolds and Riemannian geometry (including curvature).

  • •

    Information geometry.

  • •

    Optimal transport.

  • •

    Stochastic differential equations.

Riemannian metrics are introduced in Chapter 2, and only on open subsets of ℝn.

How to Read This Book

Results whose proof begins with the mark ⋆ may be skipped on a first reading; it is enough to accept the statement and move on. Claims not proved in this book are marked “not proved in this book”, with a reference to the literature. No proof in later chapters uses this chapter. Chapters 1 to 7 end with problems, each with a one-line hint.

Relation to Other Books in the Series

The book assumes the same background as Why Pictures Emerge from Noise [KEI26b]. The OU process is the protagonist of that book too, and the Fokker–Planck equation, the KL divergence and 𝒲2 also appear there. The OU process is normalised as in that book. That book treats general distributions, whereas this one restricts to normal distributions and studies their geometry. Since this book does not use stochastic differential equations, it can be read without having read that one.

Surfaces of Curvature −1 [KEI26a] treats the hyperbolic plane. For the hyperbolic metric on the upper half-plane introduced in Chapter 2, this book does not prove the distance formula but refers to that book.

What This Book Does Not Cover

  • •

    Infinite-dimensional theory. The book studies only finite-dimensional objects: the Gaussian family and exponential families. Geometry and gradient flows on the space of all probability distributions are presented without proof in Chapter 9.

  • •

    Most applications to statistics and machine learning. Chapter 8 treats Gaussian variational inference; for the rest, Chapter 9 only gives references.

For more on information geometry, Fujioka’s book [FUJ21] (in Japanese) and Amari’s book [AMA16] are good places to start. For optimal transport, Takatsu’s book [TAK26] (in Japanese) is recommended.