Chapter 3 The Fisher Metric
In this chapter we equip the parameter space of a family of probability densities with a Riemannian metric called the Fisher metric. We then show that, with this metric, the set of one-dimensional Gaussians is a hyperbolic plane. The chapter covers the following.
-
•
Regular families, score functions, and the definitions of the Fisher information matrix and the Fisher metric (Section 3.1).
-
•
The Cramér–Rao inequality (Section 3.2).
-
•
The transformation law under a change of parameters (Section 3.3).
-
•
The Fisher metric of the Gaussian family, and the quadratic approximation of the KL divergence (Section 3.4).
-
•
The main theorem: is a complete hyperbolic plane of curvature (Section 3.5).
From Chapter 1 we use the following.
-
•
The Gaussian family (Definition 1.1).
-
•
The formula for the KL divergence (Proposition 1.6).
-
•
The function (Lemma 1.2).
-
•
The function (Definition 1.7).
From Chapter 2 we use the following.
-
•
Riemannian metrics.
-
•
Lengths of curves and distance.
-
•
Changes of coordinates and constant multiples.
-
•
Geodesics and Gaussian curvature.
-
•
The hyperbolic metric on the upper half-plane (Example 2.22).
We do not treat the differential geometry of general statistical models (statistical manifolds, -connections). For these, see the books of Fujioka [FUJ21] (in Japanese), Amari [AMA16], Amari–Nagaoka [AN00] and Ay et al. [AJL+17]. Dually flat structures are treated in Chapter 4, for exponential families only.
History
In his 1925 paper [FIS25], Fisher introduced the quantity now called the Fisher information. In his 1945 paper [RAO45], Rao regarded the Fisher information as a Riemannian metric and considered the distance it defines. The inequality of Theorem 3.6 appears in the same paper of Rao [RAO45] and in Cramér’s 1946 book [CRA46].
3.1 Score Functions and the Fisher Information Matrix
Throughout this chapter, is an open set, and to each is assigned a probability density function on . We call this a family . We write . For a function on we put . This is for . For symmetric matrices , we write if is positive semidefinite.
Definition 3.1 (Score function).
Suppose that the family satisfies condition (1) of Definition 3.2 just below. Put . The function is called the (th component of the) score function. We write the vector of these as and call it the score vector.
For , . This is the rate of change of the log-likelihood when the parameter moves in the direction .
Definition 3.2 (Regular family).
The family is called regular if it satisfies the following four conditions.
-
1.
is on , and everywhere.
-
2.
For each there are a neighbourhood of and an integrable function on such that for all , and .
-
3.
for each and each .
-
4.
By (3) and the Cauchy–Schwarz inequality, is finite. The matrix with these as entries is positive definite at each and is in .
Condition (2) is an assumption that lets us differentiate the integral under the integral sign (Lemma 3.5).
Definition 3.3 (Fisher information matrix, Fisher metric).
In particular . In other words, the squared length of is the mean square of the rate of change of the log-likelihood in the direction . As Lemma 3.5 shows, the score function has mean , so is also the covariance matrix of the score vector. In this book we do not multiply by a constant. Some references use a constant multiple of instead. Multiplying a metric by a constant changes its curvature too (Proposition 2.20), so the curvature value in Section 3.5 depends on this normalisation.
Example 3.4 (The Gaussian family is regular).
Consider the -dimensional Gaussian family (Definition 1.1). The parameter space is . We regard it as an open subset of and take as coordinates the components of and the entries () of . Thus and . We write a tangent vector as . Differentiate
along at . Using and at , we get
| (3.1) |
With this we check the four conditions of Definition 3.2.
-
1.
The density is and positive.
-
2.
Take a compact neighbourhood of . Suppose that on and that the eigenvalues of lie in an interval (). Since , we have on . Moreover, taking in (3.1) to be a coordinate unit vector, the coefficients are bounded on . Hence there is a constant with . Therefore , and the right-hand side is integrable.
-
3.
The score function is a polynomial of degree at most in , and a Gaussian has moments of all orders.
-
4.
is the expectation, under a Gaussian, of a polynomial whose coefficients are functions of . The moments of a Gaussian are polynomials in , so is . Next we show positive definiteness. Suppose . Since is continuous and the density is positive, vanishes everywhere. Regarding (3.1) as a polynomial in , the quadratic part gives , that is, . Then the linear part gives , that is, .
The explicit form of is found in Proposition 3.10.
Lemma 3.5 (Mean of the score function).
For a regular family, for each and each .
Proof.
We have , and this integral exists by condition (2). Fix and let , be as in condition (2). Let be the th unit vector, and let be so small that whenever . By the mean value theorem, for each , equals for some . Hence its absolute value is at most . Letting and using the dominated convergence theorem, we get
∎
3.2 The Cramér–Rao Inequality
The Fisher information matrix bounds how precisely a parameter can be estimated. Suppose an observation has density , and we estimate from . A Borel measurable map is called an estimator. We write for the covariance matrix of when .
Theorem 3.6 (Cramér–Rao inequality).
Let be a regular family, and suppose that the estimator satisfies the following three conditions.
-
1.
for all .
-
2.
It is unbiased, that is, for all .
-
3.
It can be differentiated under the integral sign, that is, for all and all .
Then for all .
The integral on the right-hand side of condition (3) exists. Indeed, , and by (1) and condition (3) of Definition 3.2, both and are square integrable with respect to . Hence their product is integrable by the Cauchy–Schwarz inequality.
Proof.
Fix , and put and . By Lemma 3.5 , and by definition . First we show . Since , the left-hand side is . By conditions (3) and (2), this equals .
Next take any and put . By what we have just shown, . By the Cauchy–Schwarz inequality,
Here . If this is positive, and dividing both sides by it gives . If , both sides are . ∎
Remark 3.7 (Independent observations).
Let be independent observations, each distributed according to . The score vector of the family of joint densities is . By Lemma 3.5 each term has mean , and the terms are independent. Hence the cross terms have expectation zero, and the Fisher information matrix of the family of joint densities is . If the family of joint densities is regular, Theorem 3.6 applies. That is, every unbiased estimator built from that satisfies conditions (1) and (3) satisfies .
3.3 Change of Parameters
If the same family of distributions is described by other parameters, the Fisher metric still describes the same object. This is the meaning of the following transformation law.
Proposition 3.8 (Transformation law).
Let be a regular family, let be an open set, and let be a bijection whose inverse is also . Put (). Then the family is regular. Moreover, with the Jacobian matrix, its Fisher information matrix satisfies
Proof.
Write for . By the chain rule,
We check the four conditions of regularity. Condition (1) follows because the composite map is . We show condition (2). Take , and let , be as in condition (2) for . Take a compact neighbourhood of with , and put . Then on . Condition (3) follows because is a linear combination of square-integrable functions. Taking the expectation of the product of both sides of the formula above gives the transformation law . Differentiating shows that is invertible, so is positive definite. Since and are , so is . This proves condition (4) as well. ∎
The transformation law has the same form as the change-of-coordinates law for metrics in Proposition 2.6. Hence lengths of curves and distances are the same whichever parameters we use to describe the family. In this sense the Fisher metric does not depend on the choice of parameters; it belongs to the family of distributions itself.
Remark 3.9 (Chentsov’s theorem).
Among Riemannian metrics attached to families of distributions, the Fisher metric is special. The set of positive probability distributions on a finite set can be regarded as an open simplex of dimension . The Fisher metric on it is defined by replacing the integral in Definition 3.3 by a sum. Give the open simplex of each finite set a Riemannian metric , and suppose that this whole collection is invariant under Markov embeddings (maps corresponding to sufficient statistics) all at once. Then there is a constant such that is times the Fisher metric for every . This is Chentsov’s theorem (not proved in this book). See Chentsov’s book [ČEN82] (English translation 1982) and the book of Ay et al. [AJL+17]. We return to it in Chapter 9.
3.4 The Fisher Metric of the Gaussian Family
Proposition 3.10 (The Fisher metric of the Gaussian family).
-
1.
The Fisher metric of the -dimensional Gaussian family (Example 3.4) is, for tangent vectors ,
(3.2) -
2.
Let , and parametrise by . This family is regular, and its Fisher information matrix is
Proof.
(1) Let and put . Then . Put and ; then is symmetric, and (3.1) becomes
Diagonalise ( orthogonal, ) and put . Then and . We have and , and the components are independent. Hence . Also, the product of and is an odd function of , so its expectation is . Altogether,
The Fisher metric is also the infinitesimal form of the KL divergence. For the Gaussian family this can be checked directly from the formulas of Chapter 1. Below, for a point of the Gaussian family and a tangent vector , we write and . We let be the Euclidean norm in the coordinates of Example 3.4.
Proposition 3.11 (Quadratic approximation of the KL divergence).
At each point of the Gaussian family, as ,
Also, around , .
Proof.
Both and have value , first derivative and second derivative at . Hence both are as .
The first statement concerns , while in the second is . The two arguments of the KL divergence play opposite roles, yet in both cases the quadratic term is given by the Fisher metric. For a general regular family, too, holds under suitable additional regularity (not proved in this book). See Amari’s book [AMA16]. Formally, one expands to second order in and uses Lemma 3.5 and .
3.5 The Upper Half-Plane of Gaussians Is a Hyperbolic Plane
From now on let , and equip with the Fisher metric of Proposition 3.10 (2),
Let be the distance on defined by this metric (Definition 2.3). Completeness is meant in the sense of Definition 2.3.
Theorem 3.12 (The upper half-plane with the Fisher metric).
-
1.
The Gaussian curvature of is everywhere. With we have , which is twice the hyperbolic metric of Example 2.22.
-
2.
For , and , the curves defined for by
are geodesics of speed . The image of is the vertical half-line . The image of is the half-ellipse , , whose semi-axis in the direction is and in the direction is . Conversely, a non-constant geodesic on an interval can be written as with one of these curves and constants , . In particular its image is contained in a vertical half-line or a half-ellipse.
-
3.
The distance between is
-
4.
, with equality when . is complete. If a sequence in satisfies one of , , , then its distance from each point diverges to .
The proof of (3) relies on the hyperbolic distance formula of Example 2.22. That formula is not proved in this book (see Surfaces of Curvature [KEI26a]). We prove (1), (2) and (4) without using it.
Proof.
Step 1 (Curvature). Write with and ; then . Since and depend only on , , and
By the formula of Definition 2.18, the Gaussian curvature is
Substituting gives , so .
Step 2 (Geodesics). In the coordinates we have , and , and the metric does not depend on . The nonzero Christoffel symbols (Definition 2.13) are
Hence the geodesic equation (Definition 2.14) is
| (3.3) |
For we have , and , so (3.3) holds. Its speed is . For , writing and ,
Substituting ,
The squared speed is . Also , and as ranges over , ranges over all of . Hence the image is the whole half-ellipse.
We prove the converse. Each term of (3.3) is either a second time derivative or quadratic in first derivatives. Hence if is a solution, so is for constants , . Let be a non-constant geodesic, and let and at some . If , the constant curve is also a solution with the same initial conditions, so is constant by uniqueness of solutions of ordinary differential equations. Therefore ; let be its length. If , let be with and this . Put if and if , and . Now consider . The slope of the velocity of is , which is a bijective function of . So take with , and put and . Let be for this , . Then passes through at , with velocity a positive multiple of . Put if and if , and . In both cases has speed , so passes through the same point as with the same velocity at . By uniqueness of solutions of ordinary differential equations, on .
Step 3 (Distance). Let be the metric of Example 2.22, and its distance. The map is a bijection from to itself, and its inverse is also . Its Jacobian matrix is , so . By Proposition 2.6, the length of a piecewise curve with respect to equals the length of with respect to . Since maps piecewise curves bijectively onto piecewise curves, equals the distance between and with respect to . By Proposition 2.20, the latter is . Substituting into the distance formula of Example 2.22 (not proved in this book), we have , which gives (3).
Step 4 (A lower bound in ). For a piecewise curve (),
Taking the infimum over curves joining and gives the inequality of (4). When , the vertical segment has length , so equality holds.
Step 5 (Balls lie in compact rectangles). Let and , and put and . We show that every with lies in the compact rectangle
Take a curve from to of length . The part from to also has length less than , so by Step 4, for each . Therefore
and . For each , all but finitely many terms of the sequence in (4) lie outside . Hence for all but finitely many , and the distance diverges to . Note that is a metric (Proposition 2.4).
Step 6 (Completeness). Since is convex, the segment joining lies in . Since ( the Euclidean norm), the length of that segment is at most . Hence . Let be a Cauchy sequence for . Take such that for , and put . Taking in Step 5, all the lie in . Since is compact, a subsequence converges in the Euclidean sense to a point of . By the bound above, . A Cauchy sequence with a convergent subsequence converges, so itself converges to . ∎
Figure 3.1 shows geodesics. The geodesic joining the two Gaussians and , which differ only in their means, is not the line but bulges towards larger . Gaussians with large variance are hard to tell apart, so to move the mean it is a shortcut to increase the variance first. Indeed, the segment on the line has length , whereas the distance given by (3) is .
Part (1) of the theorem is consistent with the fact that doubling a metric halves its curvature (Proposition 2.20), since the hyperbolic metric of Example 2.22 has curvature . By (4), the limit , which approaches the Dirac measure , is infinitely far away for the Fisher metric. For the Wasserstein distance of Chapter 5, it becomes a boundary at finite distance. This difference shows up in Chapter 7 as a difference in rates of convergence.
This answers the first half of the book’s question. The set of one-dimensional Gaussians can be regarded as the upper half-plane with coordinates . Measured by the Fisher metric, is a complete hyperbolic plane of curvature . What happens when the same is measured by the Wasserstein distance is the subject of Chapter 5.
Problems
-
1.
Find of Proposition 3.10 (2) by computing the score functions , directly.
Hint: With , and , and .
-
2.
Fix and consider the family (). Show that this family is regular with . Show further that the estimator satisfies the three conditions of Theorem 3.6, with equality .
Hint: It suffices to check that both sides of condition (3) equal , that is, .
-
3.
Show that the location family of Cauchy distributions () is regular, with .
Hint: , and .
-
4.
For , show that . Here the on the right is the -length of the segment on the line .
Hint: The derivative of the left-hand side in is , and both sides are at .
-
5.
Let and . Show that exactly one of the half-ellipses of Theorem 3.12 (2) passes through and , and that it has and . Then find the point of this half-ellipse at which attains its maximum .
Hint: Subtracting the equations obtained by substituting the two points gives .