Algorithm Search⌘K

Definitionintro

Bias of an estimator

Also called unbiased estimator, estimator bias.

The difference between the expected value of an estimator and the true parameter. An estimator is unbiased when this difference is zero for every parameter.

The bias of an estimator TT of ψ(θ)\psi(\theta) is Eθ[T]−ψ(θ)\mathbb{E}_\theta[T] - \psi(\theta), the distance from the center of its sampling distribution to the target, as a function of the true parameter θ\theta. An estimator is unbiased when its bias is zero at every θ\theta in the parameter space. Bias is the location part of the error; the standard error is the spread part, and the mean squared error adds the two as variance plus squared bias.

Definition

Let X1,…,XnX_1, \ldots, X_n have a law PθP_\theta with θ∈Θ\theta \in \Theta, and let T=t(X1,…,Xn)T = t(X_1, \ldots, X_n) be an estimator of ψ(θ)∈R\psi(\theta) \in \mathbb{R} with Eθ∣T∣<∞\mathbb{E}_\theta \lvert T \rvert < \infty for every θ∈Θ\theta \in \Theta.

  • Bias. bias⁡θ(T)=Eθ[T]−ψ(θ)\operatorname{bias}_\theta(T) = \mathbb{E}_\theta[T] - \psi(\theta). It is a function of θ\theta, not a number.
  • Unbiased. TT is unbiased for ψ(θ)\psi(\theta) if Eθ[T]=ψ(θ)\mathbb{E}_\theta[T] = \psi(\theta) for every θ∈Θ\theta \in \Theta. Zero bias at one θ\theta is not enough: the constant T≡ψ(θ0)T \equiv \psi(\theta_0) has zero bias at θ0\theta_0.
  • U-estimable. ψ\psi is U-estimable if at least one unbiased estimator of ψ(θ)\psi(\theta) exists.
  • Asymptotically unbiased. A sequence TnT_n is asymptotically unbiased if bias⁡θ(Tn)→0\operatorname{bias}_\theta(T_n) \to 0 as n→∞n \to \infty, for every θ\theta.
  • Median-unbiased. TT is median-unbiased if Pθ(T≤ψ(θ))≥12P_\theta(T \le \psi(\theta)) \ge \frac12 and Pθ(T≥ψ(θ))≥12P_\theta(T \ge \psi(\theta)) \ge \frac12 for every θ\theta. This needs no finite mean.
  • Vector estimands. For ψ(θ)∈Rk\psi(\theta) \in \mathbb{R}^k the bias is the vector Eθ[T]−ψ(θ)\mathbb{E}_\theta[T] - \psi(\theta), coordinate by coordinate.

Relation to the mean squared error. If Eθ[T2]<∞\mathbb{E}_\theta[T^2] < \infty, then Eθ[(T−ψ(θ))2]=Var⁡θ(T)+bias⁡θ(T)2\mathbb{E}_\theta[(T - \psi(\theta))^2] = \operatorname{Var}_\theta(T) + \operatorname{bias}_\theta(T)^2. The proof is on mean squared error. So among unbiased estimators the mean squared error is the variance, and a biased estimator with a smaller variance can have the smaller mean squared error. That page shows it for the variance of normal data with the divisors n−1n - 1, nn and n+1n + 1.

Bias under a change of target. By linearity of expectation, if TT is unbiased for ψ(θ)\psi(\theta) then aT+baT + b is unbiased for aψ(θ)+ba\psi(\theta) + b. A nonlinear function does not keep unbiasedness. If gg is strictly convex, TT is unbiased for ψ(θ)\psi(\theta), and TT is not constant under PθP_\theta, then by Jensen's inequality Eθ[g(T)]>g(Eθ[T])=g(ψ(θ))\mathbb{E}_\theta[g(T)] > g(\mathbb{E}_\theta[T]) = g(\psi(\theta)), so g(T)g(T) is biased upward for g(ψ(θ))g(\psi(\theta)). For a strictly concave gg, such as the square root, the bias is downward.

Examples and non-examples

The sample mean. If Eθ∣X1∣<∞\mathbb{E}_\theta \lvert X_1 \rvert < \infty and μ=Eθ[X1]\mu = \mathbb{E}_\theta[X_1], then Eθ[Xˉ]=1n∑iEθ[Xi]=μ\mathbb{E}_\theta[\bar X] = \frac1n \sum_i \mathbb{E}_\theta[X_i] = \mu, so Xˉ\bar X is unbiased for μ\mu. No independence is needed, only equal means.

The two divisors of the variance. The sample variance S2S^2 with divisor n−1n - 1 is unbiased for σ2\sigma^2 when the variance is finite. The version with divisor nn has expectation n−1nσ2\frac{n-1}{n}\sigma^2, so its bias is −σ2/n-\sigma^2/n. It is biased, and asymptotically unbiased.

SS is biased for σ\sigma. The square root is strictly concave, so E[S]<σ\mathbb{E}[S] < \sigma whenever S2S^2 is unbiased and not constant. For iid N(μ,σ2)N(\mu, \sigma^2) data, Y=(n−1)S2/σ2Y = (n - 1)S^2/\sigma^2 has the chi-square law with k=n−1k = n - 1 degrees of freedom, and

E[Y]=∫0∞y1/2 yk/2−1e−y/22k/2 Γ(k/2) dy=2(k+1)/2 Γ(k+12)2k/2 Γ(k2)=2 Γ(n/2)Γ((n−1)/2).\mathbb{E}\big[\sqrt{Y}\big] = \int_0^\infty \frac{y^{1/2}\, y^{k/2 - 1} e^{-y/2}}{2^{k/2}\,\Gamma(k/2)}\,dy = \frac{2^{(k+1)/2}\,\Gamma\big(\tfrac{k+1}{2}\big)}{2^{k/2}\,\Gamma\big(\tfrac{k}{2}\big)} = \sqrt2\, \frac{\Gamma(n/2)}{\Gamma((n-1)/2)}.

So E[S]=c4(n) σ\mathbb{E}[S] = c_4(n)\,\sigma with c4(n)=2/(n−1)  Γ(n/2)/Γ((n−1)/2)c_4(n) = \sqrt{2/(n - 1)}\; \Gamma(n/2) / \Gamma((n - 1)/2). The values are c4(2)=0.7979c_4(2) = 0.7979, c4(5)=0.9400c_4(5) = 0.9400 and c4(10)=0.9727c_4(10) = 0.9727. The ratio S/c4(n)S/c_4(n) is unbiased for σ\sigma under normality only.

A square of an unbiased estimator. Let X1,X2X_1, X_2 be iid Bernoulli(p)(p) and estimate p2p^2. Write q=1−pq = 1 - p.

(x1,x2)(x_1, x_2) probability xˉ2\bar x^2 x1x2x_1 x_2
(0,0)(0, 0) q2q^2 00 00
(0,1)(0, 1) or (1,0)(1, 0) 2pq2pq 1/41/4 00
(1,1)(1, 1) p2p^2 11 11

So E[Xˉ2]=2pq4+p2=p2+p(1−p)2\mathbb{E}[\bar X^2] = \frac{2pq}{4} + p^2 = p^2 + \frac{p(1-p)}{2}: the plug-in estimator Xˉ2\bar X^2 has bias p(1−p)/2p(1-p)/2, as the convexity argument predicts. The product X1X2X_1 X_2 has expectation p2p^2 and is unbiased.

The maximum of a uniform sample. For iid Uniform(0,θ)(0, \theta) data, M=max⁡iXiM = \max_i X_i has P(M≤t)=(t/θ)nP(M \le t) = (t/\theta)^n for 0≤t≤θ0 \le t \le \theta, so E[M]=∫0θ(1−(t/θ)n) dt=nn+1θ\mathbb{E}[M] = \int_0^\theta (1 - (t/\theta)^n)\,dt = \frac{n}{n+1}\theta. The bias is −θ/(n+1)-\theta/(n + 1), and n+1nM\frac{n + 1}{n} M is unbiased.

Non-example: no unbiased estimator exists. Let XX be Binomial(n,p)(n, p) with p∈(0,1)p \in (0, 1), and let ψ(p)=1/p\psi(p) = 1/p. Any estimator is t(X)t(X) for some function tt on {0,…,n}\{0, \ldots, n\}, and Ep[t(X)]=∑k=0nt(k)(nk)pk(1−p)n−k\mathbb{E}_p[t(X)] = \sum_{k=0}^{n} t(k) \binom{n}{k} p^k (1 - p)^{n - k} is a polynomial in pp. A polynomial is bounded on (0,1)(0, 1), while 1/p→∞1/p \to \infty as p→0p \to 0. So 1/p1/p is not U-estimable.

Non-example: unbiased but outside the range. Unbiasedness does not keep an estimate inside ψ(Θ)\psi(\Theta). The Horvitz-Thompson estimator of a population proportion is unbiased, and it can exceed 1.

References

  1. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 7.3.1 (bias and mean squared error of a point estimator) and Section 7.3.2 (best unbiased estimators)
  2. E. L. Lehmann and George Casella, Theory of Point Estimation, second edition, Springer, 1998, Chapter 2 (unbiasedness, U-estimable functions and their absence)
  3. Larry Wasserman, All of Statistics, Springer, 2004, Section 6.3 (bias, unbiasedness and the decomposition of the mean squared error)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/7FMKF0/text.yaml