Skip to content
AI360XpertBeta

Cramer-Rao Bound and Efficiency

No unbiased estimator beats the information in the data. Cramer-Rao turns that slogan into a floor: variance sits at or above one over information.

Unbiased variance sits on or above the one-over-information floor, with the sample mean touching 0.0025 and a noisy rule floating at 0.0125
Unbiased variance sits on or above the one-over-information floor, with the sample mean touching 0.0025 and a noisy rule floating at 0.0125

Why Does This Exist?

Estimator shootouts need a referee. One rule reports variance 0.003, another 0.012. Is the first genuinely better, or just luckier on this dataset? Without a floor, every comparison is relative: A beats B today, C arrives tomorrow and the ranking resets.

The Cramer-Rao lower bound ends that regress for unbiased rules. It says the variance of any unbiased estimator θ^\hat{\theta} of a parameter θ\theta cannot go below one over the Fisher information I(θ)I(\theta):

Var(θ^)≥1I(θ)\mathrm{Var}(\hat{\theta}) \geq \frac{1}{I(\theta)}

In plain words: the data holds a fixed amount of information, and no unbiased arithmetic can squeeze more precision out of it than that. When an estimator touches the floor it is efficient and the search is over. When it sits far above, either the estimator is wasteful or the model needs more data. It builds on Fisher information and certifies the estimators in maximum likelihood estimation.

The one idea you need first

An estimator θ^\hat{\theta} is unbiased when E[θ^]=θ\mathbb{E}[\hat{\theta}] = \theta: right on average across repeated datasets. Variance measures its dataset-to-dataset wobble. Information I(θ)I(\theta) measures how sharply the data distinguishes nearby parameter values. The bound connects the two: sharp distinction means a low floor, flat likelihood means a high one.

Think of It Like This

A speed limit for precision

Information is fuel and variance is travel time. The bound is the posted speed limit: no unbiased car arrives faster than its fuel allows. An efficient estimator drives exactly at the limit. A noisy one dawdles above it, burning the same fuel for a slower arrival.

Biased estimators are bicycles on a separate path. By cutting corners they can post a faster time, but they arrive at the wrong address. The limit never claimed to govern bicycles.

Where it stops: the limit assumes a smooth road. At a boundary or a kink in the model the signposts fall over and the number on the sign means nothing.

How It Actually Works

Under regularity conditions, the Cauchy-Schwarz inequality applied to the score function gives Var(θ^) I(θ)≥(d E[θ^]/dθ)2\mathrm{Var}(\hat{\theta}) \, I(\theta) \geq (d\,\mathbb{E}[\hat{\theta}] / d\theta)^2. For unbiased rules the derivative is 11, so the right side is 11 and the familiar floor drops out. Efficiency is the ratio of floor to actual variance, so 11 means optimal and 0.20.2 means five times worse than necessary.

Three consequences matter in practice. The maximum likelihood estimator is asymptotically efficient: with enough data it touches the floor under regularity. The multiparameter form floors whole covariance matrices as Cov(θ^)⪰I(θ)−1\mathrm{Cov}(\hat{\theta}) \succeq I(\theta)^{-1}. And biased rules obey a shifted floor with (d E[θ^]/dθ)2(d\,\mathbb{E}[\hat{\theta}] / d\theta)^2 on top, which is why shrinkage can report variance below 1/I1/I without breaking anything.

Worked example

Take n=100n = 100 flips of a fair coin, so p=0.5p = 0.5. For one Bernoulli trial the information is I1=1/(p(1−p))=1/0.25=4I_1 = 1 / (p(1-p)) = 1 / 0.25 = 4. Information adds across independent flips, so I=100×4=400I = 100 \times 4 = 400. The floor is 1/400=0.00251/400 = 0.0025 and the standard error floor is 0.0025=0.05\sqrt{0.0025} = 0.05.

The sample mean Xˉ\bar{X} has variance p(1−p)/n=0.25/100=0.0025p(1-p)/n = 0.25/100 = 0.0025. It touches the floor exactly, so it is efficient here with efficiency 0.0025/0.0025=10.0025/0.0025 = 1.

A noisier rule that adds independent N(0,0.01)N(0, 0.01) noise to Xˉ\bar{X} has variance 0.0025+0.01=0.01250.0025 + 0.01 = 0.0125. Its efficiency is 0.0025/0.0125=0.20.0025/0.0125 = 0.2, five times worse, floating above the floor as the diagram shows.

A shrunk rule T=0.9Xˉ+0.05T = 0.9\bar{X} + 0.05 has variance 0.81×0.0025=0.0020250.81 \times 0.0025 = 0.002025, below 0.00250.0025. No theorem is broken: its mean is 0.9p+0.050.9p + 0.05, whose derivative with respect to pp is 0.90.9, so its own floor is 0.92/400=0.0020250.9^2/400 = 0.002025, which it attains. Below the unbiased floor, exactly on its own biased floor.

Code

The snippet below uses only the standard library. It recomputes the floor and the three variances above, so the hand arithmetic has a second witness.

p = 0.5n = 100
i_one = 1.0 / (p * (1.0 - p))  # one flip: 1 / 0.25i_n = n * i_one                # one hundred flips addfloor = 1.0 / i_n              # the boundmean_var = p * (1.0 - p) / n   # sample mean attains itnoisy_var = mean_var + 0.01    # plus independent noiseshrunk_var = 0.81 * mean_var   # 0.9 squared times mean variance
print(round(i_one, 4))    # -> 4.0print(round(i_n, 4))      # -> 400.0print(round(floor, 5))    # -> 0.0025print(round(mean_var, 5))  # -> 0.0025print(round(noisy_var, 5))  # -> 0.0125print(round(floor / noisy_var, 4))  # -> 0.2print(round(shrunk_var, 6))  # -> 0.002025

The prints land on the hand trace: information 400400, floor 0.00250.0025, noisy 0.01250.0125 with efficiency 0.20.2, shrunk 0.0020250.002025 on its own biased floor.

Watch Out For

Applying the unbiased floor to a biased rule

Shrinkage, early stopping, weight decay and regularized fits bias on purpose and can report variance below 1/I1/I while losing on bias. Declaring them impossible misreads the theorem and blocks estimators that win on mean-squared error.

Compare biased rules by mean-squared error, which is variance plus squared bias, not by the unbiased floor. If a bound is needed, use the biased form with the squared derivative of the mean on top.

Quoting the floor where regularity fails

At p=0p = 0 or 11, on a constrained edge, or where the support of the data moves with the parameter, the score no longer averages to zero and differentiating under the integral sign fails. The computed floor is then an artifact and an apparently attaining estimator proves nothing.

Check interior parameters, smooth support and finite information first. On edges, switch to constrained or Bayesian analysis instead of quoting the bound.

The Quick Version

  • Unbiased variance floors at 1/I(θ)1/I(\theta), and efficiency is that floor divided by actual variance.
  • On 100 fair flips the information is 400400, the floor is 0.00250.0025 and the standard error floor is 0.050.05.
  • The sample mean attains the floor with efficiency 11; adding 0.010.01 noise drops efficiency to 0.20.2.
  • Biased rules obey their own shifted floor, so shrinkage below 1/I1/I is expected and judged by mean-squared error.
  • The maximum likelihood estimator is asymptotically efficient under regularity.
  • Boundaries void the bound, so verify regularity before quoting a floor.