Fisher Information
How sharply the data pin down a parameter. Sharp likelihood peaks mean tight estimates, while flat ones mean the data barely speak.
Why Does This Exist?
Two experiments can report the same estimate and deserve very different trust. Six heads in ten flips and six hundred heads in one thousand flips both say , but the second pins down while the first barely constrains it. The estimate alone cannot tell them apart, so every interval and sample-size calculation needs a separate number for how much the data speak.
Fisher information is that number. It measures the expected curvature of the log-likelihood: sharp peaks carry information and give tight estimates, flat peaks carry little and give wide ones. It sets the floor in the Cramer-Rao bound, drives the standard errors behind confidence intervals, and weights steps in natural-gradient methods. It assumes the likelihood setup in maximum likelihood estimation.
The one idea you need first
The score is the slope of the log-likelihood: how strongly a small move in the parameter would raise the fit. Its average over data is zero at the truth, so the average slope tells you nothing. Its variance tells you everything. Large variance means the data tug hard on the parameter, which is exactly what high curvature means. Fisher information is that variance.
Think of It Like This
A valley felt out in fog
You stand somewhere in a valley in thick fog and feel the ground under your feet. In a sharp V-shaped gully, two steps tell you where the bottom is within a pace. In a wide flat bowl, you can wander several meters and the slope still feels near zero, so your position stays vague.
Fisher information is the curvature at your feet. Observed information is the ground you actually feel today. Expected information averages that curvature over all the weather the valley could have shown. Where the analogy stops: curvature is local. A sharp local dip inside a multimodal landscape still misleads globally, and no local number warns you about a second valley over the ridge.
How It Actually Works
Under regularity conditions, meaning the support of the data does not move with and differentiation can pass under the integral, two definitions agree. Here is the model density, is the gradient with respect to the parameter, and averages over data drawn at :
In words: the variance of the score equals minus the expected second derivative. Information adds per independent observation, so , where is one observation's share. For vectors the same idea becomes the information matrix, and natural gradients precondition an update by its inverse because the matrix says which directions the data actually constrain.
For a Bernoulli trial with success chance , one flip carries , so flips carry . Wald standard errors then use : estimation error cannot sit far below that floor once is large.
Worked example
Take flips at . Then and:
At , , so and the floor is . Same sample size, slightly sharper peak because the variance is smaller away from one half.
Now drop to at : and the floor is . Same estimate scale, triple the wobble. That factor of is the whole point: information turns more data into a number, and the error floor falls with the square root of .
Code
The point is the check: evaluate the definition where it matters, with standard-library arithmetic only.
import math
def bernoulli_info(n: int, p: float) -> float: return n / (p * (1.0 - p))
def error_floor(info: float) -> float: return 1.0 / math.sqrt(info)
for n, p in [(100, 0.5), (100, 0.6), (10, 0.5)]: info = bernoulli_info(n, p) print(n, p, round(info, 1), round(error_floor(info), 3))# -> 100 0.5 400.0 0.05# -> 100 0.6 416.7 0.049# -> 10 0.5 40.0 0.158Information 400 gives the 0.05 floor from the worked example, and dropping to ten flips triples it to 0.158. The code is the definition, evaluated at the three cases the page reasons about.
Watch Out For
Quoting expected information when the model is wrong
averages under the assumed model. When the model is only a working approximation, the true sampling wobble follows the sandwich form instead of , where is the expected curvature and is the true variance of the score. Model-based intervals then run narrow and overconfident.
Symptom: intervals that miss far more often than their nominal rate while residuals look structured. Fix: use observed information or sandwich standard errors when the model is approximate, and distrust whenever diagnostics suggest misspecification.
Trusting curvature at the boundary
Near or , the Bernoulli value explodes while the regularity behind it frays: the estimate piles at the edge and the normal approximation breaks. Wald intervals built from can then spill outside .
Symptom: an estimate of exactly 0 or 1 with a tiny reported standard error. Fix: reparameterize through the logit, or switch to exact or profile intervals. If the estimate sits on the edge, the curvature number is fiction.
The Quick Version
- Fisher information is expected log-likelihood curvature: sharp peaks mean tight estimates.
- For Bernoulli data, ; 100 fair flips give 400 and a 0.05 floor.
- Ten flips give 40 and a 0.158 floor, so error falls with the square root of .
- Information adds per observation when regularity holds.
- It sets Cramer-Rao floors, Wald standard errors, and natural-gradient steps.
- Under misspecification use sandwich errors, not ; at boundaries go exact.