Search

Search papers and lessons

Fisher Information

Level 4 · 16 min read

Fisher information measures how much one observation can reveal about an unknown parameter: the average squared slope, or equivalently the average curvature, of the log-likelihood.

On this page

  • Colour = topic mix
  • Calculus
  • Probability
  • Discrete math
  • Inference
  • Linear algebra
  • Sign in to see your progress

TL;DR

Fisher information measures how much one observation can tell you about an unknown parameter. It is the expected squared slope of the log-likelihood, the logarithm of the probability of the data viewed as a function of the parameter. Equivalently, it is the average curvature of that log-likelihood with a minus sign: sharp peaks mean precise estimates, flat peaks mean vague ones.

Where you'll see it: in the Cramér-Rao bound, which limits how precisely any unbiased estimator can recover a parameter, in the standard errors reported for maximum likelihood estimates, and in natural gradient methods that use it as a measure of distance between models.

Intuition

Sharp peaks and flat hills

Flip a coin ten times and see three heads. The probability of that data, as a function of the unknown heads probability pp, peaks at p=0.3p = 0.3. Now flip forty times and see twelve heads. The peak is again at 0.30.3, but it is much sharper: nudging pp away from 0.30.3 makes the observed data far less probable. The forty flips pin pp down more tightly, and the shape of the log-likelihood shows this directly.

0.10.20.30.40.50.6−10−50p (heads probability)log-likelihood, shifted so the peak is 0
  • 10 flips, 3 heads
  • 40 flips, 12 heads
Both curves peak at p = 0.3. The longer experiment has a much sharper peak, so its data rule out nearby values of p far more strongly.

The steepness of the curve near its peak is the information. If the curve is steep, moving the parameter a little changes how well the data fit, so the data can tell the two values apart. If it is flat, many parameter values fit about equally well and the data cannot choose. Fisher information is the average of this sharpness over the datasets you might have seen. It is a property of the model and the parameter, not of any one dataset.

Why the number matters

A parameter with high information can be estimated precisely, and one with low information cannot, however clever the estimator. This is a statement about the problem, not the method. Fisher information turns it into a number: the smallest variance any fair estimator can have from nn observations. It also tells you where to spend effort. A design that makes a parameter more informative yields tighter estimates, and a maximum likelihood estimator typically reaches that limit when samples are large.

The math

Setup

Let XX be an observation with density p(x;θ)p(x;\theta), where θ\theta is one unknown real parameter. The log-likelihood is ℓ(θ)=log⁡p(X;θ)\ell(\theta) = \log p(X;\theta). Its derivative with respect to the parameter is the score,

s(θ;x)=∂∂θlog⁡p(x;θ).s(\theta;x) = \frac{\partial}{\partial \theta} \log p(x;\theta).
Definition: Fisher information

For a single observation XX with density p(x;θ)p(x;\theta), the Fisher information is

I(θ)=Eθ ⁣[(∂∂θlog⁡p(X;θ))2].I(\theta) = \mathbb{E}_\theta\!\left[\left(\frac{\partial}{\partial \theta} \log p(X;\theta)\right)^{2}\right].

The expectation is taken over XX drawn from the model with parameter θ\theta.

So I(θ)I(\theta) is the expected square of the score. The next two facts are the reason it is also a curvature and a variance.

The score has mean zero

Assuming we can swap differentiation and integration (the usual regularity conditions), the expected score is

E[s]=∫∂θp(x;θ)p(x;θ) p(x;θ) dx=∂∂θ∫p(x;θ) dx=∂∂θ1=0.\mathbb{E}[s] = \int \frac{\partial_\theta p(x;\theta)}{p(x;\theta)}\, p(x;\theta)\,dx = \frac{\partial}{\partial\theta}\int p(x;\theta)\,dx = \frac{\partial}{\partial\theta} 1 = 0.

Since the mean is zero, the expected square is the variance: I(θ)=Var(s)I(\theta) = \mathrm{Var}(s).

The curvature form

Write ℓ=log⁡p\ell = \log p, so p=eℓp = e^{\ell}. Differentiating twice gives ∂θ2p=(ℓ′′+(ℓ′)2) p\partial_\theta^2 p = (\ell'' + (\ell')^2)\,p. Divide by pp and take expectations:

E ⁣[∂θ2pp]=∫∂θ2p dx=∂2∂θ2∫p dx=0.\mathbb{E}\!\left[\frac{\partial_\theta^2 p}{p}\right] = \int \partial_\theta^2 p\,dx = \frac{\partial^2}{\partial\theta^2}\int p\,dx = 0.

The left side equals E[ℓ′′]+E[(ℓ′)2]\mathbb{E}[\ell''] + \mathbb{E}[(\ell')^2], so

I(θ)=−E ⁣[∂2∂θ2log⁡p(X;θ)].I(\theta) = -\mathbb{E}\!\left[\frac{\partial^2}{\partial \theta^2} \log p(X;\theta)\right].

In words: the average squared slope equals the negative average curvature. The second form is often easier to compute, and the curvature of the observed log-likelihood at the estimate is what standard-error calculations use in practice.

Information adds over independent observations

For nn independent observations X1,…,XnX_1, \dots, X_n the log-likelihood is a sum, so the total score is a sum of nn independent terms, each with variance I(θ)I(\theta). Therefore

In(θ)=n I(θ).I_n(\theta) = n\, I(\theta).

Twice as much data carries twice the information, which is why standard errors shrink like 1/n1/\sqrt{n}.

The Cramér-Rao bound

Let θ^\hat\theta be an unbiased estimator built from nn independent observations. Under the regularity conditions,

Var(θ^)≥1n I(θ).\mathrm{Var}(\hat\theta) \ge \frac{1}{n\, I(\theta)}.

The proof is short. Let Sn=∑is(θ;Xi)S_n = \sum_i s(\theta;X_i) be the total score. Differentiating E[θ^]=θ\mathbb{E}[\hat\theta] = \theta with respect to θ\theta gives E[θ^ Sn]=1\mathbb{E}[\hat\theta\, S_n] = 1. Since E[Sn]=0\mathbb{E}[S_n] = 0, this says Cov(θ^,Sn)=1\mathrm{Cov}(\hat\theta, S_n) = 1. The Cauchy-Schwarz inequality then gives

1=Cov(θ^,Sn)2≤Var(θ^) Var(Sn)=Var(θ^) n I(θ).1 = \mathrm{Cov}(\hat\theta, S_n)^2 \le \mathrm{Var}(\hat\theta)\,\mathrm{Var}(S_n) = \mathrm{Var}(\hat\theta)\, n\, I(\theta).

An unbiased estimator that meets the bound is called efficient. Maximum likelihood estimators are asymptotically efficient: for large nn, n(θ^−θ)\sqrt{n}(\hat\theta - \theta) is approximately Gaussian with variance 1/I(θ)1/I(\theta).

Standard examples

Bernoulli (a single yes/no outcome with probability pp). The log-density is xlog⁡p+(1−x)log⁡(1−p)x\log p + (1-x)\log(1-p), so

s=x−pp(1−p),I(p)=1p(1−p).s = \frac{x-p}{p(1-p)}, \qquad I(p) = \frac{1}{p(1-p)}.

Gaussian mean, with known σ\sigma: the score is s=(x−μ)/σ2s = (x-\mu)/\sigma^2 and I(μ)=1/σ2I(\mu) = 1/\sigma^2.

Gaussian variance, with known mean and θ=σ2\theta = \sigma^2: the log-density is −12log⁡(2πθ)−(x−μ)2/(2θ)-\tfrac12\log(2\pi\theta) - (x-\mu)^2/(2\theta). Its derivative is −1/(2θ)+(x−μ)2/(2θ2)-1/(2\theta) + (x-\mu)^2/(2\theta^2), and the expected negative second derivative gives I(σ2)=1/(2σ4)I(\sigma^2) = 1/(2\sigma^4).

Several parameters. With a vector θ\boldsymbol{\theta}, the Fisher information becomes a matrix whose entries are Ijk=E[∂jlog⁡p⋅∂klog⁡p]=−E[∂j∂klog⁡p]I_{jk} = \mathbb{E}[\partial_j \log p \cdot \partial_k \log p] = -\mathbb{E}[\partial_j \partial_k \log p]. For a Gaussian with unknown mean and variance, I=diag(1/σ2, 1/(2σ4))I = \mathrm{diag}(1/\sigma^2,\ 1/(2\sigma^4)). The bound becomes a matrix inequality: the covariance of an unbiased estimator is at least (nI)−1(nI)^{-1} in the positive-semidefinite order.

Reparameterisation. If we measure the parameter through ϕ=g(θ)\phi = g(\theta), the information transforms as Iϕ(ϕ)=Iθ(θ)/g′(θ)2I_\phi(\phi) = I_\theta(\theta)/g'(\theta)^2. The amount of information is the same; only the coordinates change.

Worked examples

Example
One coin flip, by hand

Take a fair coin, p=1/2p = 1/2.

  1. For the outcome x=1x = 1, the score is (1−0.5)/(0.25)=2(1 - 0.5)/(0.25) = 2.
  2. For x=0x = 0, it is (0−0.5)/(0.25)=−2(0 - 0.5)/(0.25) = -2.
  3. Each outcome has probability 1/21/2, so E[s]=12(2)+12(−2)=0\mathbb{E}[s] = \tfrac12(2) + \tfrac12(-2) = 0, as the theory requires.
  4. The expected square is E[s2]=12(4)+12(4)=4\mathbb{E}[s^2] = \tfrac12(4) + \tfrac12(4) = 4.
  5. The formula 1/(p(1−p))1/(p(1-p)) gives 1/0.25=41/0.25 = 4. One flip carries information 4.
Example
How precise is an A/B test?

A page has a true click rate p=0.3p = 0.3, and we observe n=50n = 50 visitors.

  1. Information per visitor: I(p)=1/(0.3×0.7)=1/0.21≈4.762I(p) = 1/(0.3 \times 0.7) = 1/0.21 \approx 4.762.
  2. Total information: I50=50×4.762≈238.1I_{50} = 50 \times 4.762 \approx 238.1.
  3. The bound on the variance of any unbiased estimate is 1/238.1≈0.00421/238.1 \approx 0.0042.
  4. The square root is ≈0.065\approx 0.065, so no unbiased estimator can have a typical error smaller than about 6.5 percentage points.
  5. The sample proportion is the maximum likelihood estimator here, and its variance is exactly p(1−p)/n=0.21/50=0.0042p(1-p)/n = 0.21/50 = 0.0042. It meets the bound. Nothing fair can do better with these 50 visitors.
Example
The sample mean is efficient

Measurements are Gaussian with known σ=2\sigma = 2 and unknown mean μ\mu. We have n=16n = 16 of them.

  1. Information per measurement: I(μ)=1/σ2=1/4I(\mu) = 1/\sigma^2 = 1/4.
  2. Total information: I16=16/4=4I_{16} = 16/4 = 4.
  3. The bound: Var(μ^)≥1/4=0.25\mathrm{Var}(\hat\mu) \ge 1/4 = 0.25, so the standard deviation is at least 0.50.5.
  4. The sample mean has variance σ2/n=4/16=0.25\sigma^2/n = 4/16 = 0.25. It meets the bound exactly.
  5. Interpretation: to halve the error you need four times the data, because the bound depends on nn directly.
Example
Estimating a variance

Data are Gaussian with mean 00 and variance σ2=4\sigma^2 = 4. We have n=20n = 20 observations and want to estimate σ2\sigma^2.

  1. Information per observation: I(σ2)=1/(2σ4)=1/(2×16)=1/32I(\sigma^2) = 1/(2\sigma^4) = 1/(2 \times 16) = 1/32.
  2. Total information: I20=20/32=0.625I_{20} = 20/32 = 0.625.
  3. The bound: Var(σ2^)≥1/0.625=1.6\mathrm{Var}(\widehat{\sigma^2}) \ge 1/0.625 = 1.6.
  4. The estimator 1n∑iXi2\frac{1}{n}\sum_i X_i^2 has variance 2σ4/n=2×16/20=1.62\sigma^4/n = 2 \times 16/20 = 1.6. It meets the bound.
  5. Interpretation: the typical error in the variance estimate is about 1.6≈1.26\sqrt{1.6} \approx 1.26, roughly a third of the true value 44. More data is the only way to shrink it.

Tradeoffs and failure modes

The bound is a best case under assumptions, and each assumption can fail in practice.

SituationProblemBetter choice
Standard errors for an MLE from one datasetExpected information needs an average over the model, which you may not trustObserved information (the negative second derivative at the estimate), or the bootstrap
The model is misspecifiedThe information describes the wrong model, so the bound says little about the real dataA sandwich (robust) variance estimator
The parameter sits at a boundary (for example pp near 0 or 1)Information is zero or infinite, and the usual asymptotics breakReparameterise, for example with log-odds
The support of the data depends on the parameter (for example uniform on [0,θ][0, \theta])The regularity conditions fail, so the bound does not applyWork from the exact sampling distribution
You care about mean squared error, not unbiasednessBiased estimators, such as shrinkage or ridge, can have lower total errorRegularised or shrinkage estimators
Neural networks with millions of parametersThe full Fisher matrix has a trillion entriesDiagonal or Kronecker-factored approximations

Two warnings. First, the "empirical Fisher", which uses the observed labels in place of samples from the model, looks like Fisher information but is a different quantity; many papers have mixed them up. Second, a large Fisher information does not mean the estimate is correct. It means the data are informative under the model you assumed.

History

Ronald Fisher introduced maximum likelihood as a general method and the idea of information in a pair of papers in the early 1920s, and developed the information measure more fully in 1925. He wanted a way to say how much precision an estimate could carry, and to compare estimators on that basis. The bound that makes the idea a limit came later. In the mid-1940s C. R. Rao and Harald Cramér (with Maurice Fréchet and Georges Darmois reaching similar results around the same time) showed that the inverse of the information sets a floor on the variance of unbiased estimators. The name Cramér-Rao bound followed.

The idea caught on for two reasons. It gave a yardstick: an estimator's variance could be judged against a theoretical minimum rather than against other estimators. And it connected to maximum likelihood, which reaches that minimum asymptotically. Shun-ichi Amari and others later treated the Fisher information as a Riemannian metric on the space of distributions, and in 1998 Amari proposed the natural gradient, which uses that metric to take steps in parameter space. Martens and Grosse's 2015 Kronecker-factored method brought a practical version of it into deep learning.

Check yourself

QuestionA single observation has Fisher information I(θ)I(\theta). What is the Fisher information of nn independent observations of the same kind, and what does that do to the Cramér-Rao bound?Show answer

It is n I(θ)n\,I(\theta), because the log-likelihood and the score are sums of independent terms, and their variances add. The bound on an unbiased estimator's variance becomes 1/(n I(θ))1/(n\,I(\theta)), so it shrinks in proportion to 1/n1/n.

QuestionA coin has heads probability p=0.2p = 0.2. You flip it 25 times. What is the smallest possible standard deviation of an unbiased estimate of pp?Show answer

Per flip, I(p)=1/(0.2×0.8)=6.25I(p) = 1/(0.2 \times 0.8) = 6.25. For 25 flips, I25=156.25I_{25} = 156.25, so the bound on the variance is 1/156.25=0.00641/156.25 = 0.0064. The square root is 0.080.08. The sample proportion has variance p(1−p)/n=0.16/25=0.0064p(1-p)/n = 0.16/25 = 0.0064, so it reaches this floor.

QuestionWhy does the score have mean zero, and why does that make the variance-of-the-score definition agree with the negative-curvature definition?Show answer

The expected score is the derivative of ∫p(x;θ) dx=1\int p(x;\theta)\,dx = 1 with respect to θ\theta, which is zero. Because the mean is zero, the expected square of the score is its variance. Separately, differentiating pp twice and integrating gives zero, which rearranges to show that the expected second derivative of log⁡p\log p equals minus the expected square of its first derivative. Both formulas therefore give the same I(θ)I(\theta).

QuestionVisitors arrive at a website as a Poisson process with rate λ\lambda. For a Poisson count, I(λ)=1/λI(\lambda) = 1/\lambda. You observe 9 hours of traffic with λ=4\lambda = 4 visitors per hour. What is the smallest variance an unbiased estimate of λ\lambda can have, and which estimator reaches it?Show answer

The information from 9 hours is 9/4=2.259/4 = 2.25, so the bound on the variance is 1/2.25=4/9≈0.4441/2.25 = 4/9 \approx 0.444, a standard deviation of about 0.670.67. The sample mean of the hourly counts has variance λ/n=4/9\lambda/n = 4/9, so it reaches the bound. This is also the maximum likelihood estimator.

Sources