Search

Search papers and lessons

Cramér–Rao Bound

Level 3 · 10 min read

The Cramér–Rao bound sets a floor under the variance of any unbiased estimator, so no fair method can measure a parameter more precisely than the data allow.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Probability
  • Inference
  • Linear algebra
  • ReadReady to readNot yet

TL;DR

The Cramér–Rao bound is a floor under how much an estimate can wobble from one dataset to the next. Take any rule that turns data into a guess at an unknown parameter and that is correct on average (unbiased). The bound says its variance cannot be smaller than one over the total Fisher information in the data. More data or a more informative experiment lowers the floor, and no fair method can go below it.

Builds on: Fisher Information, Point Estimator · Leads to: Maximum Likelihood Estimation, Mean Squared Error

Where it's used

Designing experiments. Before collecting data, a scientist can compute the bound for the planned sample size. If even the best unbiased method cannot reach the precision the study needs, the study needs more observations or a better measurement, whatever analysis is used afterwards.

Judging estimators in medical and industrial measurement. A laboratory that estimates a concentration, or a factory that estimates a defect rate, wants to know whether its estimator is wasting information. Comparing the estimator's variance with the bound answers that question directly.

Quantum sensing and signal estimation. Physicists use the same bound to find the best precision a sensor can reach when estimating a field strength or a phase. The quantum version of the bound uses the same logic with a quantum form of Fisher information.

How it works

Take the simplest case: a coin with unknown probability pp of heads. You flip it four times and estimate pp by the fraction of heads. The steps below find the bound and check whether the fraction reaches it. Each flip is a Bernoulli trial, and the independent flips are what let their information add up.

flowchart LR
  A[Data: 4 flips] --> B[Estimate p by the fraction of heads]
  A --> C[Fisher information from 4 flips]
  C --> D[Floor: variance at least 1 over the information]
  B --> E[Compare the estimator's variance with the floor]
  D --> E
  1. Set up the model. Each flip gives heads with probability pp, and the flips are independent. Here pp is unknown and the true value is 0.50.5, which we use only to compute the bound.
  2. Choose an estimator. Let p^\hat{p} be the fraction of the four flips that are heads. It is unbiased: each flip is heads with probability pp, so the expected fraction of heads over four flips is pp.
  3. Measure how informative one flip is. If a flip is heads, the score (the slope of the log-probability with respect to pp) is 1/p=21/p = 2. If it is tails, the score is −1/(1−p)=−2-1/(1-p) = -2. Each squared score is 4, and each outcome has probability 0.5, so the average squared score is 44.
  4. Add the information from four flips. The information is 4×4=164 \times 4 = 16. Check: four independent flips each carry the same information.
  5. Compute the floor. The bound is one over the information, so Var(p^)≥1/16=0.0625\text{Var}(\hat{p}) \ge 1/16 = 0.0625. The standard error must be at least 0.0625=0.25\sqrt{0.0625} = 0.25.
  6. Compare with the estimator. For the fraction of heads, the variance is p(1−p)/4=0.25/4=0.0625p(1-p)/4 = 0.25/4 = 0.0625. It equals the bound, so no unbiased method can do better with four flips. The estimator is called efficient.

The lesson in step 6 is that the bound is not just a limit on bad methods. For this problem, the simplest method already reaches it.

The math

Definition: Cramér–Rao bound
For data X1,…,XnX_1, \dots, X_n drawn from a density f(x;θ)f(x;\theta) with unknown parameter θ\theta, and an unbiased estimator TT of θ\theta, the variance of TT satisfies Var(T)≥1/(n I(θ))\text{Var}(T) \ge 1/\bigl(n\,I(\theta)\bigr), where I(θ)I(\theta) is the Fisher information in one observation.

Step 3 in symbols: the score and the information

The score of one observation is the slope of its log-density with respect to the parameter:

s(x;θ)=∂∂θlog⁡f(x;θ)s(x;\theta) = \frac{\partial}{\partial\theta} \log f(x;\theta)

The Fisher information of one observation is the average squared score:

I(θ)=E ⁣[s(X;θ)2]I(\theta) = \mathbb{E}\!\left[s(X;\theta)^2\right]

For the coin, log⁡f(x;p)\log f(x;p) is log⁡p\log p for heads and log⁡(1−p)\log(1-p) for tails. The scores are 1/p1/p and −1/(1−p)-1/(1-p), so:

I(p)=p⋅1p2+(1−p)⋅1(1−p)2=1p+11−p=(1−p)+pp(1−p)=1p(1−p)I(p) = p \cdot \frac{1}{p^2} + (1-p)\cdot\frac{1}{(1-p)^2} = \frac{1}{p} + \frac{1}{1-p} = \frac{(1-p) + p}{p(1-p)} = \frac{1}{p(1-p)}

At p=0.5p = 0.5 this is 1/0.25=41/0.25 = 4, which matches step 3.

Step 4 in symbols: information from n observations

Independent observations add their information. With Sn=∑i=1ns(Xi;θ)S_n = \sum_{i=1}^{n} s(X_i;\theta), the total information is:

E ⁣[Sn2]=n I(θ)\mathbb{E}\!\left[S_n^2\right] = n\,I(\theta)

For four flips at p=0.5p = 0.5, nI=4×4=16n I = 4 \times 4 = 16.

Step 5 in symbols: the proof of the floor

The proof needs two facts: the score has mean zero, and the unbiasedness of TT means E[T]=θ\mathbb{E}[T] = \theta. It also uses the usual regularity conditions: the range of the observations must not depend on θ\theta, and the derivative with respect to θ\theta can be taken inside the integral (or sum) over the data. Differentiating Eθ[T]=θ\mathbb{E}_\theta[T] = \theta with respect to θ\theta gives E[T Sn]=1\mathbb{E}[T\,S_n] = 1. Since E[Sn]=0\mathbb{E}[S_n] = 0, the covariance of TT and SnS_n is 1. The Cauchy–Schwarz inequality says that the square of a covariance is at most the product of the two variances:

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

Rearranging gives Var(T)≥1/(n I(θ))\text{Var}(T) \ge 1/(n\,I(\theta)). For the coin, Var(p^)≥1/16\text{Var}(\hat{p}) \ge 1/16.

Step 6 in symbols: reaching the floor

For the fraction of heads, Var(p^)=p(1−p)/n\text{Var}(\hat{p}) = p(1-p)/n. Substitute I(p)=1/(p(1−p))I(p) = 1/(p(1-p)) into the bound:

1n I(p)=p(1−p)n\frac{1}{n\,I(p)} = \frac{p(1-p)}{n}

The two expressions are identical for every pp and every nn. So the fraction of heads is efficient for every sample size.

Worked examples

Example
1. One flip
  1. One flip of a fair coin, so p=0.5p = 0.5 and n=1n = 1.
  2. The information in one flip is I=1/(0.5×0.5)=4I = 1/(0.5 \times 0.5) = 4.
  3. The bound is 1/(1×4)=0.251/(1 \times 4) = 0.25.
  4. The estimator is the outcome itself, p^=1\hat{p} = 1 for heads and 00 for tails, which is unbiased.
  5. Its variance is 0.5×0.5=0.250.5 \times 0.5 = 0.25, equal to the bound. Check: p(1−p)/n=0.25/1=0.25p(1-p)/n = 0.25/1 = 0.25.

The point of the example: a single observation already gives a clear floor, and this estimator reaches it.

Example
2. Measuring a mean with known noise
  1. Each reading XiX_i is drawn from a Gaussian with unknown mean μ\mu and known standard deviation σ=2\sigma = 2.
  2. The score of one reading is (x−μ)/σ2(x - \mu)/\sigma^2, so the information in one reading is I=1/σ2=1/4=0.25I = 1/\sigma^2 = 1/4 = 0.25.
  3. Take n=16n = 16 readings. The information is 16×0.25=416 \times 0.25 = 4.
  4. The bound on the variance of an unbiased estimate of μ\mu is 1/4=0.251/4 = 0.25, so the standard error must be at least 0.50.5.
  5. The sample mean is unbiased, and its variance is σ2/n=4/16=0.25\sigma^2/n = 4/16 = 0.25.
  6. Check: the sample mean's variance equals the bound, so the sample mean is efficient.

The point of the example: the sample mean is not an accident. It is the best unbiased way to use Gaussian readings.

Example
3. A photon counter: the realistic case

A detector counts photons arriving in one-second windows. The counts are Poisson with unknown rate λ\lambda, and the true rate is λ=4\lambda = 4 counts per second. The experimenter takes n=25n = 25 one-second windows and estimates λ\lambda by the average count.

  1. For a Poisson count XX, the score is X/λ−1X/\lambda - 1. Its average square is E[(X/λ−1)2]=Var(X)/λ2=λ/λ2=1/λ\mathbb{E}[(X/\lambda - 1)^2] = \text{Var}(X)/\lambda^2 = \lambda/\lambda^2 = 1/\lambda, because a Poisson count has variance equal to its mean. So the information in one window is I=1/λ=0.25I = 1/\lambda = 0.25.
  2. The information from 25 windows is 25×0.25=6.2525 \times 0.25 = 6.25.
  3. The bound on the variance of any unbiased rate estimate is 1/6.25=0.161/6.25 = 0.16.
  4. The average count has variance λ/n=4/25=0.16\lambda/n = 4/25 = 0.16. It reaches the bound.
  5. The smallest possible standard error is the square root of 0.16, which is 0.40.4 counts per second.

Try it: how many one-second windows would bring the smallest possible standard error down to 0.2 counts per second? Answer: the bound on the variance must be 0.22=0.040.2^2 = 0.04, so n I=1/0.04=25n\,I = 1/0.04 = 25. With I=0.25I = 0.25, that gives n=25/0.25=100n = 25 / 0.25 = 100 windows. Check: λ/n=4/100=0.04\lambda/n = 4/100 = 0.04, and its square root is 0.20.2.

Common mistakes and tradeoffs

It is tempting to think the bound limits every estimator. In fact it applies only to unbiased estimators. The right yardstick for a biased estimator is the bias-variance tradeoff behind its mean squared error. A biased estimator can have a smaller variance, and it can have a smaller mean squared error, which is what matters in many applications. A well-known example is the James–Stein estimator, which beats the sample mean in mean squared error for three or more normal means, at the price of bias. This is the same bias-variance tradeoff that appears in Mean Squared Error.

It is tempting to think that a bound that is reached always exists. In fact many models have no estimator that attains the Cramér–Rao bound, so the bound is a floor that may not be tight. When an efficient estimator exists, maximum likelihood finds it, and in the usual regular models the maximum likelihood estimator is efficient in large samples. That is a large part of why it is so widely used.

It is tempting to read the bound as a statement about one dataset. In fact it is a statement about the spread of the estimator over repeated samples. A single estimate can land far from the truth even when the bound is met, because the bound describes how much estimates scatter from sample to sample.

When to use the bound: to decide whether an estimator is wasting information, or to plan a sample size before an experiment. When not to use it: when the estimator is deliberately biased to reduce its error, or when the model fails the smoothness conditions the derivation needs. Alternatives include Bayesian bounds, which average over a prior on the parameter, and the Chapman–Robbins bound, which does not need the derivative-based conditions of the classic version.

History

Ronald Fisher introduced the information measure in the 1920s, in work on how much data reveals about a parameter. The idea that the variance of an estimator is limited by that information was developed in the mid-1940s. C. R. Rao published the result in 1945, and Harald Cramér gave a full treatment in his 1946 book on the mathematical methods of statistics. The bound is named after them both.

The result caught on because it turned a vague intuition, that more data helps, into an exact limit that could be computed before any data were collected. It also gave a clean standard for judging estimators: an efficient estimator is one that wastes no information. The later use of the bound in experiment design and in quantum sensing followed from the same logic.

Recap

  • An unbiased estimator's variance is at least one over nn times the Fisher information of one observation.
  • Fisher information is the average squared score, and independent observations add their information.
  • The proof uses the covariance between the estimator and the total score, together with Cauchy–Schwarz.
  • An efficient estimator reaches the floor. For the coin fraction and for the Gaussian sample mean, it does.
  • Read next: Maximum Likelihood Estimation, which often produces efficient estimators, and Mean Squared Error, which handles biased estimators.
  • Built on: Fisher Information for the information, and Point Estimator for the rules being judged.

Check yourself

QuestionWhy does the bound apply only to unbiased estimators?Show answer
The proof uses the fact that E[T]=θ\mathbb{E}[T] = \theta for every θ\theta, so that differentiating it gives E[T Sn]=1\mathbb{E}[T\,S_n] = 1. A biased estimator has a mean that is a function of θ\theta other than the identity, so this step fails and the bound does not hold for it.
QuestionA [[bernoulli-distribution|coin]] has p=0.25p = 0.25. What is the Fisher information in one flip?Show answer
The information is 1/(p(1−p))=1/(0.25×0.75)=1/0.18751/(p(1-p)) = 1/(0.25 \times 0.75) = 1/0.1875, which is about 5.335.33. Check: 0.25×0.75=0.18750.25 \times 0.75 = 0.1875, and 1/0.1875=5.3331/0.1875 = 5.333.
QuestionWhy is the sample mean efficient for [[gaussian-distribution|Gaussian]] readings with known variance?Show answer
Each reading has information 1/σ21/\sigma^2, so nn readings have information n/σ2n/\sigma^2. The bound is σ2/n\sigma^2/n. The sample mean is unbiased with variance σ2/n\sigma^2/n, so it reaches the bound exactly. Nothing unbiased can do better.
QuestionAn experimenter wants the smallest possible standard error to be 0.1 for a Poisson rate λ=4\lambda = 4. How many windows are needed?Show answer
The bound on the variance must be 0.010.01, so n I=100n\,I = 100. With I=1/λ=0.25I = 1/\lambda = 0.25, the number of windows is 100/0.25=400100 / 0.25 = 400. Check: λ/n=4/400=0.01\lambda/n = 4/400 = 0.01, whose square root is 0.10.1.

Sources