Skip to content
Is the Normal Distribution Curved?Chapter 4 Exponential Families and the Dually Flat Structure

Chapter 4 Exponential Families and the Dually Flat Structure

The Gaussian family is the prime example of an exponential family. An exponential family carries two coordinate systems, the natural parameter θ and the expectation parameter η. In this chapter we study how these two coordinates relate to the Fisher metric. The main results are as follows.

  • •

    The matrix ∇2ψ of second partial derivatives of the potential function ψ is the Fisher information matrix (Proposition 4.3).

  • •

    The KL divergence can be written as the Bregman divergence of ψ (Proposition 4.13).

  • •

    We define e-geodesics, which are straight lines in θ, and m-geodesics, which are straight lines in η (Definition 4.15).

  • •

    A Pythagorean theorem holds for these two kinds of straight lines (Theorem 4.19).

We use the KL divergence (Definition 1.3), Riemannian metrics and gradients (Chapter 2) and the Fisher metric (Chapter 3). The formulas obtained here will be used in Chapter 6 to compute gradient flows with respect to the Fisher metric.

In this chapter we treat the dually flat structure as the pair of coordinates θ, η together with the Fisher metric. We do not treat dual connections on general manifolds (Remark 4.11) or applications to statistical inference. For these, see the book of Amari and Nagaoka [AN00], Amari’s book [AMA16] and Fujioka’s book [FUJ21] (in Japanese).

History

Amari and Nagaoka’s Methods of Information Geometry was published in Japanese by Iwanami Shoten in 1993. Its English translation appeared in 2000 [AN00].

4.1 Exponential Families

In this chapter we write a⋅b for the inner product of vectors a,b∈ℝn. In place of ℝn one may use any finite-dimensional real vector space V with an inner product; choosing an orthonormal basis of V identifies V with ℝn. The gradient ∇ and the matrix ∇2 of second partial derivatives are taken with respect to this inner product.

Definition 4.1 (Exponential family).

Let k,n≥1. Suppose that a C∞ map T:ℝk→ℝn and a C∞ function h:ℝk→(0,∞) satisfy the following conditions.

  1. 1.

    For a∈ℝn and c∈ℝ, if a⋅T⁢(x)=c almost everywhere, then a=0.

  2. 2.

    There is a nonempty open convex set Θ⊆ℝn such that for every θ∈Θ,

    Z⁢(θ)=∫ℝkeθ⋅T⁢(x)⁢h⁢(x)⁢𝑑x<∞.

For θ∈Θ put ψ⁢(θ)=log⁡Z⁢(θ) and define

pθ⁢(x)=exp⁡(θ⋅T⁢(x)−ψ⁢(θ))⁢h⁢(x). (4.1)

The family of probability density functions {pθ}θ∈Θ is called an exponential family. We call θ the natural parameter, Θ the natural parameter space, T the sufficient statistic and ψ the potential function.

Condition (1) means that the functions 1,T1,…,Tn are linearly independent. It implies that pθ≠pθ′ whenever θ≠θ′. Indeed, if pθ=pθ′ almost everywhere, then (θ−θ′)⋅T=ψ⁢(θ)−ψ⁢(θ′) almost everywhere, so θ=θ′ by condition (1). We write 𝔼θ, Varθ and Covθ for the expectation, variance and covariance matrix with respect to pθ.

The set of all θ with Z⁢(θ)<∞ is convex. Indeed, for 0<s<1, Hölder’s inequality with exponents 1/(1−s) and 1/s gives Z⁢((1−s)⁢θ+s⁢θ′)≤Z⁢(θ)1−s⁢Z⁢(θ′)s. In what follows, however, we use only that Θ is open and convex.

Example 4.2 (The Gaussian family).

First let d=1. Expanding the density of 𝒩⁢(m,σ2) (Definition 1.1) gives

12⁢π⁢σ2⁢exp⁡(−(x−m)22⁢σ2)=exp⁡(mσ2⁢x−12⁢σ2⁢x2−m22⁢σ2−12⁢log⁡(2⁢π⁢σ2)).

Hence, with k=1, n=2, T⁢(x)=(x,x2), h=1 and

θ=(θ1,θ2)=(mσ2,−12⁢σ2), (4.2)

the density of 𝒩⁢(m,σ2) takes the form (4.1). The natural parameter space is the open convex set Θ=ℝ×(−∞,0), and (m,σ)↦θ is a bijection from ℍ onto Θ. Its inverse is σ2=−1/(2⁢θ2), m=−θ1/(2⁢θ2). The potential function is

ψ⁢(θ)=m22⁢σ2+12⁢log⁡(2⁢π⁢σ2)=−θ124⁢θ2+12⁢log⁡π−θ2.

Since the polynomial a1⁢x+a2⁢x2 is constant only when a=0, condition (1) also holds.

For general d, equip V=ℝd×Symd with the inner product (a,A)⋅(b,B)=a⋅b+tr⁡(A⁢B); then dimV=d+d⁢(d+1)/2. Let k=d, T⁢(x)=(x,x⁢x⊤), h=1, and put

θ=(θ1,θ2)=(Σ−1⁢m,−12⁢Σ−1). (4.3)

Then θ⋅T⁢(x)=m⊤⁢Σ−1⁢x−12⁢x⊤⁢Σ−1⁢x, and the density of 𝒩⁢(m,Σ) takes the form (4.1). The potential function is

ψ⁢(θ)=12⁢m⊤⁢Σ−1⁢m+12⁢log⁢det(2⁢π⁢Σ)=−14⁢θ1⊤⁢θ2−1⁢θ1−12⁢log⁢det(−1π⁢θ2). (4.4)

The natural parameter space is the set Θ=ℝd×(−Symd+) of all θ with θ2 negative definite, which is open and convex. The map (m,Σ)↦θ is a bijection from ℝd×Symd+ onto Θ, with inverse Σ=−12⁢θ2−1, m=Σ⁢θ1. Condition (1) follows because a⋅x+x⊤⁢A⁢x is constant only when a=0 and A=0. The natural parameter of the standard normal distribution γ is θ∗=(0,−12⁢I).

Proposition 4.3 (The potential function).

For the exponential family of Definition 4.1 the following hold.

  1. 1.

    Z and ψ are C∞ on Θ. The partial derivatives of Z may be computed by differentiating under the integral sign. For every θ∈Θ, T has moments of all orders under pθ.

  2. 2.

    ∇ψ⁢(θ)=𝔼θ⁢[T].

  3. 3.

    ∇2ψ⁢(θ)=Covθ⁡(T), and this matrix is positive definite. In particular, ψ is strictly convex on Θ, and for θ≠θ′,

    ψ⁢(θ′)−ψ⁢(θ)−∇ψ⁢(θ)⋅(θ′−θ)>0. (4.5)
  4. 4.

    {pθ}θ∈Θ is regular in the coordinate θ in the sense of Definition 3.2. The score function is ∂θilog⁡pθ=Ti−∂iψ⁢(θ), and the Fisher information matrix is G⁢(θ)=∇2ψ⁢(θ).

Proof.

(1) Fix θ0∈Θ. Since Θ is open, for δ>0 small enough the cube Q={θ:maxi⁡|θi−θ0,i|≤δ} is contained in Θ. We bound |tα|⁢eθ⋅t for θ with maxi⁡|θi−θ0,i|≤δ/2 and a multi-index α. For each a≥0 there is a constant C with |s|a≤C⁢e(δ/2)⁢|s|, so |tα|≤Cα⁢e(δ/2)⁢∑i|ti|. Also θ⋅t≤θ0⋅t+(δ/2)⁢∑i|ti|. Applying eδ⁢|s|≤eδ⁢s+e−δ⁢s to each component and expanding the product, we obtain

|tα|⁢eθ⋅t≤Cα⁢eθ0⋅t+δ⁢∑i|ti|≤Cα⁢∑ε∈{±1}ne(θ0+δ⁢ε)⋅t.

Since θ0+δ⁢ε∈Q⊆Θ, substituting t=T⁢(x) in the right-hand side and multiplying by h⁢(x) gives an integrable function independent of θ. Hence, applying the theorem on differentiation under the integral sign (via dominated convergence) by induction on |α|, we see that Z is C∞ with ∂αZ⁢(θ)=∫Tα⁢eθ⋅T⁢h⁢𝑑x. The same bound gives 𝔼θ⁢|Tα|=Z⁢(θ)−1⁢∫|Tα|⁢eθ⋅T⁢h⁢𝑑x<∞. Since Z>0, ψ=log⁡Z is also C∞.

(2) By (1), ∂iψ=∂iZ/Z=Z−1⁢∫Ti⁢eθ⋅T⁢h⁢𝑑x=𝔼θ⁢[Ti].

(3) By (1) and (2),

∂i∂jψ=∂i∂jZZ−∂iZ⁢∂jZZ2=𝔼θ⁢[Ti⁢Tj]−𝔼θ⁢[Ti]⁢𝔼θ⁢[Tj].

Hence a⋅∇2ψ⁢(θ)⁢a=Varθ⁡(a⋅T)≥0 for a∈ℝn. If equality holds, then a⋅T is almost surely constant under pθ. Since pθ>0, this is the same as being constant almost everywhere, and condition (1) gives a=0. Thus ∇2ψ⁢(θ) is positive definite. Next let θ≠θ′ and put u=θ′−θ. Since Θ is convex, Taylor’s formula with integral remainder gives

ψ⁢(θ′)−ψ⁢(θ)−∇ψ⁢(θ)⋅u=∫01(1−s)⁢u⋅∇2ψ⁢(θ+s⁢u)⁢u⁢𝑑s>0.

This is (4.5), which expresses the strict convexity of ψ.

(4) We have pθ⁢(x)>0. Since T and h are C∞ and ψ is C∞ by (1), (4.1) shows that (θ,x)↦pθ⁢(x) is C∞ on Θ×ℝk. Each ∂αpθ is a polynomial in the components of T and the partial derivatives of ψ, multiplied by eθ⋅T⁢h. The partial derivatives of ψ are bounded near θ0, so the same bound as in (1) justifies the differentiation under the integral sign required in Definition 3.2. Differentiating log⁡pθ=θ⋅T−ψ⁢(θ)+log⁡h shows that the score function is Ti−∂iψ⁢(θ), which is square integrable by (1). Since ∂iψ⁢(θ)=𝔼θ⁢[Ti] by (2), the Fisher information matrix (Definition 3.3) is

Gi⁢j⁢(θ)=𝔼θ⁢[(Ti−𝔼θ⁢Ti)⁢(Tj−𝔼θ⁢Tj)]=(Covθ⁡(T))i⁢j=∂i∂jψ⁢(θ).

By (3), G⁢(θ) is positive definite. ∎

Example 4.4 (The Fisher information matrix of the Gaussian family).

We check Proposition 4.3 (3) for d=1. If X∼𝒩⁢(m,σ2), then Var⁡X=σ2, Cov⁡(X,X2)=2⁢m⁢σ2 and Var⁡X2=4⁢m2⁢σ2+2⁢σ4. Differentiating the ψ of Example 4.2 directly also gives

∇2ψ⁢(θ)=(σ22⁢m⁢σ22⁢m⁢σ24⁢m2⁢σ2+2⁢σ4).

We transfer this to the coordinates (m,σ). Let J=∂(θ1,θ2)/∂(m,σ) be the Jacobian matrix of (4.2). Then

J=(1/σ2−2⁢m/σ301/σ3),J⊤⁢∇2ψ⁢(θ)⁢J=(1/σ2002/σ2).

By the transformation rule of Proposition 3.8, this is the Fisher information matrix in the coordinates (m,σ). Indeed, it agrees with the Fisher metric (d⁢m2+2⁢d⁢σ2)/σ2 of Proposition 3.10.

4.2 The Expectation Parameter and the Legendre Transform

Fix an exponential family and put H=∇ψ⁢(Θ)⊆ℝn.

Proposition 4.5 (The expectation parameter).

The map θ↦η=∇ψ⁢(θ) is a C∞ diffeomorphism from Θ onto H, and H is open. We write its inverse as η↦θ⁢(η).

Proof.

Let θ≠θ′ and put u=θ′−θ. Since Θ is convex, Proposition 4.3 (3) gives

(∇ψ⁢(θ′)−∇ψ⁢(θ))⋅u=∫01u⋅∇2ψ⁢(θ+s⁢u)⁢u⁢𝑑s>0.

Hence ∇ψ is injective. Its Jacobian matrix ∇2ψ is invertible at every point, so by the inverse function theorem ∇ψ is an open map and its inverse is also C∞. ∎

We call η=∇ψ⁢(θ)=𝔼θ⁢[T] the expectation parameter of pθ. By Proposition 4.5, η is also a coordinate on the exponential family.

Definition 4.6 (Legendre transform).

For η∈H put

ϕ⁢(η)=θ⋅η−ψ⁢(θ),θ=θ⁢(η).

We call ϕ the Legendre transform of ψ, or the dual potential.

Proposition 4.7 (The dual potential).

ϕ is C∞ on H, and with θ=θ⁢(η),

∇ϕ⁢(η)=θ,∇2ϕ⁢(η)=∇2ψ⁢(θ)−1.
Proof.

Since θ⁢(η) is C∞ (Proposition 4.5), so is ϕ. Let D⁢θ be the Jacobian matrix of η↦θ⁢(η). By the chain rule and ∇ψ⁢(θ⁢(η))=η,

∇ϕ⁢(η)=θ+(D⁢θ)⊤⁢η−(D⁢θ)⊤⁢∇ψ⁢(θ)=θ.

Differentiating once more gives ∇2ϕ⁢(η)=D⁢θ⁢(η), which is the inverse of the Jacobian matrix ∇2ψ⁢(θ) of ∇ψ. ∎

Example 4.8 (The expectation parameter of the Gaussian family).

For d=1 we have η=𝔼⁢[(X,X2)]=(m,m2+σ2). Conversely m=η1 and σ2=η2−η12, and H={η:η2>η12}. The dual potential is

ϕ⁢(η)=mσ2⁢m−m2+σ22⁢σ2−m22⁢σ2−12⁢log⁡(2⁢π⁢σ2)=−12⁢(1+log⁡(2⁢π⁢(η2−η12))).

One checks that ∂η1ϕ=η1/(η2−η12)=m/σ2=θ1 and ∂η2ϕ=−1/(2⁢(η2−η12))=θ2.

For general d we have η=(η1,η2)=(m,Σ+m⁢m⊤) and H={η:η2−η1⁢η1⊤∈Symd+}. The dual potential is

ϕ⁢(η)=−12⁢(d+log⁢det(2⁢π⁢(η2−η1⁢η1⊤))).

4.3 The Dually Flat Structure and the Bregman Divergence

Consider a C1 curve c⁢(s) in an exponential family. Let θ⁢(s) and η⁢(s) be the natural and expectation parameters of c⁢(s). By the chain rule, the θ-component a=θ˙⁢(s) and the η-component η˙⁢(s) of the velocity vector are related by η˙⁢(s)=∇2ψ⁢(θ⁢(s))⁢a. In θ-components, the Fisher metric gF is given by the matrix G⁢(θ)=∇2ψ⁢(θ) of Proposition 4.3 (4).

Lemma 4.9 (The inner product in two coordinates).

Let X,Y be tangent vectors at pθ with θ-components a,b and η-components u,w. Then

gF⁢(X,Y)=a⋅∇2ψ⁢(θ)⁢b=u⋅b=a⋅w.

In particular, the matrix of the Fisher metric in the coordinate η is ∇2ψ⁢(θ)−1=∇2ϕ⁢(η).

Proof.

We have u=∇2ψ⁢(θ)⁢a and w=∇2ψ⁢(θ)⁢b, and ∇2ψ⁢(θ) is symmetric. Hence the other two equalities follow from the first. Moreover gF⁢(X,Y)=u⋅b=u⋅∇2ψ⁢(θ)−1⁢w. The last equality follows from Proposition 4.7. ∎

Taking a to be the ith standard basis vector and w the jth in Lemma 4.9, we obtain gF⁢(∂/∂θi,∂/∂ηj)=δi⁢j. That is, the coordinate curves in the θi direction and in the ηj direction are orthogonal with respect to the Fisher metric when i≠j, and their tangent vectors have inner product 1 when i=j.

Definition 4.10 (Dually flat structure).

The natural parameter θ and the expectation parameter η of an exponential family are called mutually dual affine coordinates. In this book, the triple consisting of the Fisher metric gF and the two coordinates θ, η is called the dually flat structure of the exponential family.

The dually flat structure in the sense of this book is a special case of the general theory.

Remark 4.11 (Dual connections).

The general theory considers a Riemannian metric g on a manifold together with a pair of affine connections that are dual to each other with respect to g. When both connections are flat, the pair is called dually flat. An exponential family carries a pair of dual connections called the e-connection and the m-connection; θ is an affine coordinate for the e-connection and η one for the m-connection. The geodesics of these connections are the e-geodesics and m-geodesics defined below. The geodesics of the Fisher metric (Definition 2.14) are the geodesics of the connection that is the average of the e-connection and the m-connection. These facts are not proved in this book; see the book of Amari and Nagaoka [AN00]. As Figure 4.1 shows, the three kinds of geodesics differ in general.

Definition 4.12 (Bregman divergence).

For θ,θ′∈Θ we put

Dψ⁢(θ′,θ)=ψ⁢(θ′)−ψ⁢(θ)−∇ψ⁢(θ)⋅(θ′−θ)

and call it the Bregman divergence of ψ.

By (4.5), Dψ⁢(θ′,θ)≥0, with equality only when θ=θ′.

Proposition 4.13 (The KL divergence and the Bregman divergence).

Take an exponential family and θ,θ′∈Θ, and put η=∇ψ⁢(θ). Then the following hold.

  1. 1.

    With the order of the arguments reversed,

    KL⁡(pθ∥pθ′)=Dψ⁢(θ′,θ)=ψ⁢(θ′)−ψ⁢(θ)−∇ψ⁢(θ)⋅(θ′−θ). (4.6)
  2. 2.

    KL⁡(pθ∥pθ′)=ψ⁢(θ′)+ϕ⁢(η)−θ′⋅η.

  3. 3.

    Fix θ∗∈Θ and put f⁢(θ)=KL⁡(pθ∥pθ∗). The gradient vector of f in the coordinate θ is ∇θf⁢(θ)=∇2ψ⁢(θ)⁢(θ−θ∗). The gradient vector of f expressed in the coordinate η is ∇ηf=θ−θ∗.

  4. 4.

    For the f of (3), the θ-component of the gradient gradF⁡f with respect to the Fisher metric (Definition 2.7) is θ−θ∗.

Proof.

(1) By (4.1), log⁡pθ−log⁡pθ′=(θ−θ′)⋅T−ψ⁢(θ)+ψ⁢(θ′). By Proposition 4.3 (1), T is integrable under pθ. Hence the KL divergence (Definition 1.3) is finite and

KL⁡(pθ∥pθ′)=𝔼θ⁢[log⁡pθ−log⁡pθ′]=(θ−θ′)⋅𝔼θ⁢[T]−ψ⁢(θ)+ψ⁢(θ′).

Since 𝔼θ⁢[T]=∇ψ⁢(θ) by Proposition 4.3 (2), we obtain (4.6).

(2) Substitute ψ⁢(θ)=θ⋅η−ϕ⁢(η) (Definition 4.6) into the right-hand side of (1).

(3) By (1), f⁢(θ)=ψ⁢(θ∗)−ψ⁢(θ)−∇ψ⁢(θ)⋅(θ∗−θ). Differentiating in θ gives

∇θf=−∇ψ⁢(θ)−∇2ψ⁢(θ)⁢(θ∗−θ)+∇ψ⁢(θ)=∇2ψ⁢(θ)⁢(θ−θ∗).

Also, by (2), f=ψ⁢(θ∗)+ϕ⁢(η)−θ∗⋅η, so ∇ηf=θ−θ∗ by Proposition 4.7.

(4) The matrix of the metric in the coordinate θ is G⁢(θ)=∇2ψ⁢(θ) (Proposition 4.3 (4)). Hence the θ-component of gradF⁡f is G⁢(θ)−1⁢∇θf=θ−θ∗. ∎

By Proposition 4.13 (4), the gradient flow of f with respect to the Fisher metric becomes the linear equation θ˙=−(θ−θ∗) in the coordinate θ. We solve it in Chapter 6.

Example 4.14 (The KL divergence from the standard normal distribution).

Let d=1 and θ′=θ∗=(0,−12) (the natural parameter of γ); then ψ⁢(θ∗)=12⁢log⁡(2⁢π). The right-hand side of (4.6) becomes

12⁢log⁡(2⁢π)−m22⁢σ2−12⁢log⁡(2⁢π⁢σ2)−m⁢(−mσ2)−(m2+σ2)⁢(−12+12⁢σ2)
=12⁢(σ2+m2−1−log⁡σ2).

This agrees with F⁢(m,σ2) of Proposition 1.6.

4.4 e-Geodesics and m-Geodesics

Definition 4.15 (e-geodesic and m-geodesic).

Take two points p0=pθ0 and p1=pθ1 of an exponential family, with expectation parameters η0 and η1.

  1. 1.

    The curve s↦p(1−s)⁢θ0+s⁢θ1 (0≤s≤1) is called the e-geodesic from p0 to p1. Since Θ is convex, this curve always stays in the family.

  2. 2.

    Suppose that the segment {(1−s)⁢η0+s⁢η1:0≤s≤1} is contained in H. The curve that assigns to s the member of the family with expectation parameter (1−s)⁢η0+s⁢η1 is then called the m-geodesic from p0 to p1.

In other words, the e-geodesic is a straight line in the coordinate θ, and the m-geodesic is a straight line in the coordinate η.

In terms of densities, the e-geodesic is a weighted geometric mean. With θs=(1−s)⁢θ0+s⁢θ1, (4.1) gives

log⁡pθs=(1−s)⁢log⁡p0+s⁢log⁡p1−(ψ⁢(θs)−(1−s)⁢ψ⁢(θ0)−s⁢ψ⁢(θ1)).

The term in parentheses does not depend on x, so pθs is proportional to p01−s⁢p1s. On the other hand, at a point p on the m-geodesic we have 𝔼p⁢[T]=(1−s)⁢𝔼p0⁢[T]+s⁢𝔼p1⁢[T], which equals the expectation of T under the mixture (1−s)⁢p0+s⁢p1. The mixture itself, however, does not belong to the family in general.

Example 4.16 (Geodesics of the Gaussian family).

By (4.3), the point 𝒩⁢(ms,Σs) on the e-geodesic from 𝒩⁢(m0,Σ0) to 𝒩⁢(m1,Σ1) is determined by

Σs−1=(1−s)⁢Σ0−1+s⁢Σ1−1,Σs−1⁢ms=(1−s)⁢Σ0−1⁢m0+s⁢Σ1−1⁢m1.

For the m-geodesic, ms=(1−s)⁢m0+s⁢m1 and Σs+ms⁢ms⊤=(1−s)⁢(Σ0+m0⁢m0⊤)+s⁢(Σ1+m1⁢m1⊤) give

Σs=(1−s)⁢Σ0+s⁢Σ1+s⁢(1−s)⁢(m0−m1)⁢(m0−m1)⊤. (4.7)

The right-hand side is positive definite, so the segment always lies in H. Hence for the Gaussian family H is convex, and any two points can be joined by an m-geodesic.

For d=1 we compare the geodesics from 𝒩⁢(−1,1) to 𝒩⁢(1,1) (Figure 4.1). On the e-geodesic, σs−2=1 and ms=2⁢s−1, so it is the segment σ=1. On the m-geodesic, ms=2⁢s−1 and σs2=1+4⁢s⁢(1−s)=2−ms2, so it is an arc of the circle m2+σ2=2. By Theorem 3.12, the geodesic of the Fisher metric is an arc of the half-ellipse m2/2+σ2=3/2.

Figure 4.1: The three geodesics from 𝒩⁢(−1,1) to 𝒩⁢(1,1) in the (m,σ) plane. The solid line is the e-geodesic σ=1, the dashed line is the m-geodesic m2+σ2=2, and the dotted line is the geodesic m2/2+σ2=3/2 of the Fisher metric. The vertical axis shows only the range 0.8≤σ≤1.55.
Example 4.17 (Orbits of the OU process and m-geodesics).

Let Σ0∈Symd+ with (m0,Σ0)≠(0,I). We examine the expectation parameter of the flow of Gaussians of the OU process (Definition 1.9),

m⁢(t)=e−t⁢m0,Σ⁢(t)=e−2⁢t⁢Σ0+(1−e−2⁢t)⁢I(t≥0).

Put C=Σ0+m0⁢m0⊤−I. Then Σ⁢(t)+m⁢(t)⁢m⁢(t)⊤=I+e−2⁢t⁢C, so

η⁢(t)=(e−t⁢m0,I+e−2⁢t⁢C).

The expectation parameter of γ is ηγ=(0,I).

When m0=0 we have η⁢(t)=(0,I+e−2⁢t⁢C). Putting s=1−e−2⁢t gives η⁢(t)=(1−s)⁢η⁢(0)+s⁢ηγ. Hence the orbit is the m-geodesic from 𝒩⁢(0,Σ0) to γ with its endpoint removed, traversed over [0,1) with parameter s=1−e−2⁢t.

When m0≠0, the orbit still lies on an m-geodesic in the exceptional case C=0. That is, the orbit lies on a single straight line in the coordinate η only when m0=0 or Σ0+m0⁢m0⊤=I. We prove this. As t→∞, η⁢(t)→ηγ, and a line is closed, so such a line passes through ηγ. Hence the condition is that η⁢(t)−ηγ=e−t⁢(m0,e−t⁢C) is parallel to a single direction for all t≥0. Suppose m0≠0 and C≠0, and let t≠t′. If λ⁢(m0,e−t⁢C)=(m0,e−t′⁢C), then the first component gives λ=1, and the second then gives e−t=e−t′, a contradiction. So in this case the orbit does not lie on a line. Conversely, if m0=0 or C=0, all these vectors are parallel.

When C=0 we have η⁢(t)=(e−t⁢m0,I), and with s=1−e−t, η⁢(t)=(1−s)⁢η⁢(0)+s⁢ηγ. For d=1 this is the case m02+σ02=1, and the orbit moves along the unit circle m2+σ2=1 towards (0,1). That the orbits of the gradient flow with respect to the Fisher metric are e-geodesics is shown in Chapter 6.

4.5 The Pythagorean Theorem

Lemma 4.18 (Three-point identity).

Take three points p=pθp, q=pθq, r=pθr of an exponential family, with expectation parameters ηp, ηq, ηr. Then

KL⁡(p∥r)=KL⁡(p∥q)+KL⁡(q∥r)−(ηp−ηq)⋅(θr−θq). (4.8)
Proof.

Apply Proposition 4.13 (1) to the three KL divergences. The terms ψ⁢(θp), ψ⁢(θq), ψ⁢(θr) cancel, and

KL⁡(p∥r)−KL⁡(p∥q)−KL⁡(q∥r)
=−ηp⋅(θr−θp)+ηp⋅(θq−θp)+ηq⋅(θr−θq)
=−(ηp−ηq)⋅(θr−θq).

∎

Theorem 4.19 (Pythagorean theorem).

Take three points p, q, r of an exponential family with p≠q and q≠r. Suppose that the m-geodesic from p to q exists, and consider it together with the e-geodesic from q to r. Then the two geodesics are orthogonal at q with respect to the Fisher metric if and only if

KL⁡(p∥r)=KL⁡(p∥q)+KL⁡(q∥r).
Proof.

We use the notation of Lemma 4.18. The velocity vector at q of the m-geodesic from p to q has η-component ηq−ηp. The velocity vector at q of the e-geodesic from q to r has θ-component θr−θq. By Lemma 4.9, the inner product of these two velocity vectors with respect to the Fisher metric is (ηq−ηp)⋅(θr−θq). Hence orthogonality is equivalent to (ηp−ηq)⋅(θr−θq)=0, which by Lemma 4.18 is equivalent to the desired equality. ∎

Since the KL divergence is not symmetric, direction matters in Theorem 4.19. The m-geodesic joins p and q, and the e-geodesic joins q and r. As the next example shows, the equality for the same three points with the arguments of the KL divergence swapped does not hold in general.

Example 4.20 (The Pythagorean theorem for Gaussians).

Let d=1, p=𝒩⁢(1,1), q=γ=𝒩⁢(0,1) and r=𝒩⁢(−12,2). By (4.2) and Example 4.8,

ηp−ηq=(1,2)−(0,1)=(1,1),θr−θq=(−14,−14)−(0,−12)=(−14,14),

so (ηp−ηq)⋅(θr−θq)=0. By Example 4.16, the m-geodesic from p to q exists. Proposition 1.6 gives

KL⁡(p∥q)=12,KL⁡(q∥r)=−316+12⁢log⁡2,KL⁡(p∥r)=516+12⁢log⁡2,

and the equality of Theorem 4.19 holds. On the other hand,

KL⁡(r∥p)=138−12⁢log⁡2,KL⁡(r∥q)+KL⁡(q∥p)=58−12⁢log⁡2+12=98−12⁢log⁡2,

so the equality with the arguments swapped fails.

Remark 4.21 (m-projection).

In the situation of Theorem 4.19, suppose that the two geodesics are orthogonal at q. Let r′ be any point on the e-geodesic from q to r. Since θr′−θq is a scalar multiple of θr−θq, we have (ηp−ηq)⋅(θr′−θq)=0. Hence by Lemma 4.18, KL⁡(p∥r′)=KL⁡(p∥q)+KL⁡(q∥r′)≥KL⁡(p∥q). That is, the point of this e-geodesic that minimises KL⁡(p∥⋅) is the point q where the m-geodesic from p meets it orthogonally.

Problems

  1. 1.

    Show that the family {𝒩⁢(m,1)}m∈ℝ with variance fixed at 1 is an exponential family with T⁢(x)=x, h⁢(x)=e−x2/2/2⁢π and Θ=ℝ. Find θ, ψ, η and ϕ, and derive KL⁡(𝒩⁢(m,1)∥𝒩⁢(m′,1))=(m−m′)2/2 from Proposition 4.13 (1).

    Hint: θ=m and ψ⁢(θ)=θ2/2.

  2. 2.

    Let η∈H and θ=θ⁢(η). Show that θ′⋅η−ψ⁢(θ′)≤ϕ⁢(η) for every θ′∈Θ, with equality only when θ′=θ.

    Hint: ϕ⁢(η)−(θ′⋅η−ψ⁢(θ′))=Dψ⁢(θ′,θ).

  3. 3.

    Let p, q, r be three points of an exponential family such that the m-geodesic from q to r exists and is orthogonal at q to the e-geodesic from q to p. Show that KL⁡(r∥p)=KL⁡(r∥q)+KL⁡(q∥p).

    Hint: Apply Lemma 4.18 to the three points in the order r, q, p.

  4. 4.

    For d=1, show that the e-geodesic and the m-geodesic from 𝒩⁢(0,σ02) to 𝒩⁢(0,σ12) both move along the line m=0 from σ0 to σ1. Show also that if σ0≠σ1, their σs differ for 0<s<1.

    Hint: σs−2 is affine in s on the e-geodesic and σs2 is affine in s on the m-geodesic, and a weighted harmonic mean is smaller than the arithmetic mean.

  5. 5.

    Show that ϕ⁢(η)=𝔼θ⁢[log⁡pθ−log⁡h] for an exponential family. In particular, check that ϕ⁢(η)=∫pθ⁢log⁡pθ⁢d⁢x for the Gaussian family.

    Hint: Take the expectation of log⁡pθ−log⁡h=θ⋅T−ψ⁢(θ).