Animated formulas

Statistical inference · Interactive series

From Variance to Efficiency

If you repeated the study, how much would your answer move? Start with the sample mean and follow that question all the way to the semiparametric efficiency bound.

01 · Foundations

What is actually varying?

Learning goal: distinguish the spread of observations from the spread of estimates across repeated samples.

Imagine repeatedly drawing independent observations from a normal population with mean 0 and standard deviation 12. Before moving the slider: what happens to the sample mean’s standard error when you go from 16 to 64 observations?

-24-1201224
Central 95% ranges: solid = one observation; dashed = one sample mean. Both are shown on the same scale. These are ranges of possible values under the model, not confidence intervals for the mean.
Observation SD
12
Variance of the mean
9
Standard error of the mean
3
Var⁡(X)=E[(X−μ)2],Var⁡(Xˉ)=σ2n\operatorname{Var}(X)=E[(X-\mu)^2],\qquad \operatorname{Var}(\bar X)=\frac{\sigma^2}{n}

Variance averages squared distances from the mean. Standard deviation returns to the original units. The standard error is the standard deviation of the estimator’s sampling distribution; when the population SD is unknown, we estimate it with the sample SD and report s/√n here. Normality is used for the illustrated ranges, not for the variance identity.

Go deeper: n − 1, covariance, decomposition and transformations

Why divide by n − 1? Centering at the estimated mean consumes one degree of freedom. For independent, identically distributed observations, the expected sum of squared residuals is (n − 1)σ²: subtract the expected squared error of the estimated center, n Var(X̄) = σ², from nσ².

s2=∑i(Xi−Xˉ)2n−1s^2=\frac{\sum_i(X_i-\bar X)^2}{n-1}

Covariance measures whether two variables tend to move together. Positive covariance can make an average less precise than the independence formula suggests. For two variables:

Var⁡(X+Y)=Var⁡(X)+Var⁡(Y)+2Cov⁡(X,Y)\operatorname{Var}(X+Y)=\operatorname{Var}(X)+\operatorname{Var}(Y)+2\operatorname{Cov}(X,Y)

Conditioning on a group label G separates the average spread within groups from the spread of their means.

Var⁡(Y)=E[Var⁡(Y∣G)]+Var⁡(E[Y∣G])\operatorname{Var}(Y)=E[\operatorname{Var}(Y\mid G)]+\operatorname{Var}(E[Y\mid G])

For a smooth transform g, the delta method uses its local slope. For example, the log of an estimated positive mean has approximate variance Var(μ̂)/μ². This is a first-order approximation; if the slope is zero, a different expansion may be needed.

Var⁡(g(θ^)) ≈ [g′(θ)]2Var⁡(θ^)\operatorname{Var}(g(\widehat\theta))\ \approx\ [g'(\theta)]^2\operatorname{Var}(\widehat\theta)

02 · Parametric models

Where does the Cramér–Rao bound come from?

Fix the target and the model. The score is the slope of the log-likelihood as the parameter moves. Fisher information is the expected squared score: it measures how strongly the data respond to a small change in the parameter. Here I(θ) is information in one observation.

sθ(X)=∂∂θlog⁡pθ(X),I(θ)=Eθ[sθ(X)2]s_\theta(X)=\frac{\partial}{\partial\theta}\log p_\theta(X),\qquad I(\theta)=E_\theta[s_\theta(X)^2]

Suppose T is unbiased for g(θ), observations are independent and identically distributed, and the model is regular enough to differentiate expectations. Differentiating Eθ[T] gives its covariance with the full-sample score Sₙ. Cauchy–Schwarz then limits how small the variance of T can be.

g′(θ)2=Cov⁡θ(T,Sn)2≤Var⁡θ(T) nI(θ)g'(\theta)^2=\operatorname{Cov}_\theta(T,S_n)^2\le\operatorname{Var}_\theta(T)\,nI(\theta)
Var⁡θ(T)≥[g′(θ)]2nI(θ)\boxed{\operatorname{Var}_\theta(T)\ge\frac{[g'(\theta)]^2}{nI(\theta)}}

Back to the normal mean with known variance: moving the mean changes the score by way of the centered observation, sμ(X) = (X − μ)/σ². The information is 1/σ², so the bound is σ²/n. The sample mean reaches it exactly.

Information per observation
0.00694
Sample information (n = 16)
0.1111
Variance bound
9

Try doubling σ from 12 to 24. More noise means that a single observation tells us less about μ: its information quarters and the bound quadruples at fixed n.

What changes when another parameter is unknown?

A nuisance parameter is an unknown quantity needed by the model but not the target. To isolate information about θ, subtract from its score the part explained by the nuisance score. For a scalar target θ and a vector nuisance η, with an invertible nuisance information block:

Ieff=Iθθ−IθηIηη−1Iηθ,bound=1nIeffI_{\rm eff}=I_{\theta\theta}-I_{\theta\eta}I_{\eta\eta}^{-1}I_{\eta\theta},\qquad \text{bound}=\frac{1}{nI_{\rm eff}}

For the Gaussian mean and an unknown variance, the cross-information is zero: one score is odd and the other even around the mean. So the bound for the mean stays the same. Unknown nuisance parameters do not always reduce information.

03 · Semiparametric efficiency

Same data, same mean, different bound

Take a Laplace distribution with location μ and scale b. It is symmetric, so its mean and median are both μ. Compare two models at this same distribution: one assumes the Laplace shape with known scale; the other allows any distribution with finite variance. In both, we ask for the population mean.

Same sample size as above : n = 16

Laplace model: b²/n
0.25
Unrestricted model: 2b²/n
0.5

At this sample size, both bars use the same fixed scale as b changes. The unrestricted-model bound is always twice the Laplace-model bound.

Under the Laplace model, the score is sign(X − μ)/b almost surely, so the information is 1/b². The sample median estimates μ and reaches the bound asymptotically. In the broader model the median need not estimate the mean. The sample mean still does; its efficient influence function is X − E[X], whose variance here is 2b².

The bridge: from scores to the efficient influence function

A parametric submodel is a smooth path of distributions inside the larger model, passing through the true distribution. Any estimator regular in the larger model must also respect the local bound along each path. The tightest such bound comes from taking the supremum over the allowed paths.

For a pathwise differentiable target, its efficient influence function φ(O) represents the derivative along every allowed path, where O denotes the data observed for one person and s(O) is the path’s score at t = 0. It has mean zero and belongs to the closed linear span of the scores (the tangent space).

ddtψ(Pt)∣t=0=EP[ϕ(O)s(O)],Veff=EP[ϕ(O)2]\left.\frac{d}{dt}\psi(P_t)\right|_{t=0}=E_P[\phi(O)s(O)],\qquad V_{\rm eff}=E_P[\phi(O)^2]

Cauchy–Schwarz bounds each path’s squared derivative divided by its information by E[φ²]. Scores in the tangent space approximate the efficient direction. This is a lower bound for the limiting variance of √n(ψ̂ − ψ) for regular estimation. Divide by n for the first-order variance scale of ψ̂, not for a finite-sample guarantee.

04 · Application

What does incomplete follow-up cost?

We want the overall mean outcome Y. We know everyone’s baseline group X, but only observe Y when R = 1. Assume that within each baseline group, who is observed does not depend on Y, and that every group has some chance of being observed. Write m(X) for the mean outcome in each group and π(X) for its observation probability.

In our fictional example, the groups are equally common, their outcome means are 0 and 2, and the within-group outcome variance is 1 in both. Outcomes in group A are always observed. Change follow-up in group B and see which part of the precision bound moves.

Between-group contribution
1
Within-group contribution
1.5
Efficiency bound on √n scale
2.5

With complete outcomes in both groups the bound is 2. Less follow-up increases the within-group term; the group means and group mix do not change.

The efficient influence function combines two contributions: how far the group mean is from the overall mean, and how far an observed outcome is from its group mean, weighted by the inverse probability of observing it. For R = 0, the second contribution is zero and does not require knowing the missing Y.

ϕ(O)=m(X)−ψ+Rπ(X){Y−m(X)},ψ=E[Y]\phi(O)=m(X)-\psi+\frac{R}{\pi(X)}\{Y-m(X)\},\qquad \psi=E[Y]

The residual contribution has conditional mean zero, so its covariance with the group-mean contribution is zero. Taking the conditional variance gives the 1/π(X) factor: squaring the weight gives 1/π(X)², but the term appears only with probability π(X).

Veff=Var⁡(m(X))+E ⁣[Var⁡(Y∣X)π(X)]V_{\rm eff}=\operatorname{Var}(m(X))+E\!\left[\frac{\operatorname{Var}(Y\mid X)}{\pi(X)}\right]
What to take with you

A precision bound is tied to the target, the model and what is actually observed. Before comparing two variances, check that all three match and that the numbers are on the same scale.