Algorithm Search⌘K

Definitionintro

Standard error

Also called standard error of the mean.

The standard deviation of the sampling distribution of an estimator, or an estimate of it. For the sample mean it is sigma divided by the square root of n.

The standard error of an estimator is the standard deviation of its sampling distribution: how far the estimate typically moves from one sample to the next. It depends on the unknown parameter, so in practice it is itself estimated, and the reported number is an estimated standard error. For the sample mean of nn iid observations with standard deviation σ\sigma, the standard error is σ/n\sigma/\sqrt n, estimated by S/nS/\sqrt n.

Definition

Let TT be an estimator of ψ(θ)\psi(\theta) with Eθ[T2]<∞\mathbb{E}_\theta[T^2] < \infty for every θ∈Θ\theta \in \Theta.

  • Standard error. se⁡θ(T)=Var⁡θ(T)\operatorname{se}_\theta(T) = \sqrt{\operatorname{Var}_\theta(T)}, a function of θ\theta. It measures the spread of TT around its own mean Eθ[T]\mathbb{E}_\theta[T], not around ψ(θ)\psi(\theta); the distance to the target is the bias. The mean squared error combines them: Eθ[(T−ψ(θ))2]=se⁡θ(T)2+bias⁡θ(T)2\mathbb{E}_\theta[(T - \psi(\theta))^2] = \operatorname{se}_\theta(T)^2 + \operatorname{bias}_\theta(T)^2.
  • Estimated standard error. A statistic se⁡^\widehat{\operatorname{se}} that estimates se⁡θ(T)\operatorname{se}_\theta(T). The plug-in choice is se⁡θ^(T)\operatorname{se}_{\hat\theta}(T), the formula evaluated at an estimate θ^\hat\theta. Other choices are the delta method, the sandwich formula of M-estimators, the inverse Fisher information for maximum likelihood, and the bootstrap, which needs no formula.

The standard error of the mean. Let X1,…,XnX_1, \ldots, X_n be uncorrelated with common mean μ\mu and common variance σ2<∞\sigma^2 < \infty. Then

Var⁡(Xˉ)=1n2Var⁡(∑i=1nXi)=1n2∑i=1n∑j=1nCov⁡(Xi,Xj)=nσ2n2=σ2n,\operatorname{Var}(\bar X) = \frac{1}{n^2} \operatorname{Var}\Big(\sum_{i=1}^n X_i\Big) = \frac{1}{n^2} \sum_{i=1}^n \sum_{j=1}^n \operatorname{Cov}(X_i, X_j) = \frac{n \sigma^2}{n^2} = \frac{\sigma^2}{n},

because the terms with i≠ji \ne j are zero. So se⁡(Xˉ)=σ/n\operatorname{se}(\bar X) = \sigma/\sqrt n. Iid data with finite variance meet the condition. The usual estimate is S/nS/\sqrt n, with S2S^2 the sample variance (divisor n−1n - 1). Since SS is biased downward for σ\sigma, S/nS/\sqrt n is biased downward for σ/n\sigma/\sqrt n, although S2/nS^2/n is unbiased for σ2/n\sigma^2/n.

The factor 1/n1/\sqrt n means that four times the data halve the standard error. This rate is typical of estimators that are smooth functions of averages, but it is not universal: the unbiased estimator n+1nmax⁡iXi\frac{n+1}{n}\max_i X_i of θ\theta for Uniform(0,θ)(0, \theta) data has standard error θ/n(n+2)\theta/\sqrt{n(n + 2)}, of order 1/n1/n. (The ratio max⁡iXi/θ\max_i X_i/\theta has density nun−1n u^{n-1} on [0,1][0, 1], with mean nn+1\frac{n}{n+1} and variance n(n+1)2(n+2)\frac{n}{(n+1)^2(n+2)}; multiply the variance by (n+1n)2θ2(\frac{n+1}{n})^2\theta^2.)

Examples and non-examples

A sample of five. For x=(3,7,7,9,14)x = (3, 7, 7, 9, 14), xˉ=8\bar x = 8 and S2=64/4=16S^2 = 64/4 = 16, so S=4S = 4 and se⁡^(Xˉ)=4/5=1.7889\widehat{\operatorname{se}}(\bar X) = 4/\sqrt 5 = 1.7889. The number 44 describes the spread of one observation. The number 1.78891.7889 describes the spread of the mean of five observations.

A proportion. For nn iid Bernoulli(p)(p) trials, se⁡(p^)=p(1−p)/n\operatorname{se}(\hat p) = \sqrt{p(1 - p)/n}, with p^=Xˉ\hat p = \bar X. With 37 successes in 100 trials, the plug-in estimate is 0.37⋅0.63/100=0.0483\sqrt{0.37 \cdot 0.63 / 100} = 0.0483.

A difference of independent estimators. If T1T_1 and T2T_2 are independent, se⁡(T1−T2)=se⁡(T1)2+se⁡(T2)2\operatorname{se}(T_1 - T_2) = \sqrt{\operatorname{se}(T_1)^2 + \operatorname{se}(T_2)^2}, because the covariance term is zero. For two independent sample means this is σ12/n1+σ22/n2\sqrt{\sigma_1^2/n_1 + \sigma_2^2/n_2}.

The median has a different standard error. If the distribution function FF is differentiable at the median mm with F′(m)=f(m)>0F'(m) = f(m) > 0, the sample median is asymptotically normal with standard error about 1/(2f(m)n)1/(2 f(m) \sqrt n). For normal data f(m)=1/(σ2π)f(m) = 1/(\sigma\sqrt{2\pi}), which gives π/2 σ/n=1.2533 σ/n\sqrt{\pi/2}\,\sigma/\sqrt n = 1.2533\,\sigma/\sqrt n, about 25 percent more than the mean. For heavy-tailed data the order can reverse.

Under random sampling from a finite population. For a simple random sample of nn units drawn without replacement from NN, the standard error of the sample mean has the extra factor 1−n/N\sqrt{1 - n/N}. The Horvitz-Thompson estimator page gives the general design-based variance.

Non-example: the standard deviation of the data. SS estimates the spread of one observation, σ\sigma. It is not the standard error of Xˉ\bar X, and it does not shrink as nn grows.

Non-example: σ/n\sigma/\sqrt n for correlated data. If X1,X2,…X_1, X_2, \ldots is stationary with variance σ2\sigma^2 and Cov⁡(Xi,Xj)=σ2ρ∣i−j∣\operatorname{Cov}(X_i, X_j) = \sigma^2 \rho^{\lvert i - j \rvert}, ∣ρ∣<1\lvert \rho \rvert < 1, the double sum above gives

Var⁡(Xˉ)=σ2n(1+2∑h=1n−1(1−hn)ρh)→σ2n⋅1+ρ1−ρin ratio, as n→∞.\operatorname{Var}(\bar X) = \frac{\sigma^2}{n}\Big(1 + 2 \sum_{h=1}^{n-1} \Big(1 - \frac{h}{n}\Big) \rho^h\Big) \to \frac{\sigma^2}{n} \cdot \frac{1 + \rho}{1 - \rho} \quad \text{in ratio, as } n \to \infty.

For ρ=0.5\rho = 0.5 the factor in parentheses is 2.2252.225 at n=5n = 5, 2.962.96 at n=100n = 100, and tends to 33. The iid formula then understates the standard error by a factor of about 3=1.73\sqrt 3 = 1.73.

Non-example: infinite variance. For iid Cauchy data Xˉ\bar X has the same Cauchy law for every nn. It has no variance, so it has no standard error, and S/nS/\sqrt n estimates nothing.

  • Sampling distribution: the standard error is its standard deviation.
  • Bias of an estimator and mean squared error: the other parts of the error.
  • Confidence interval: intervals of the form estimate ±\pm quantile ×\times estimated standard error. Under normal iid data, Xˉ±t(n−1,0.975)S/n\bar X \pm t_{(n-1, 0.975)} S/\sqrt n is the exact t interval.
  • Delta method: se⁡(g(T))≈∣g′(θ)∣se⁡(T)\operatorname{se}(g(T)) \approx \lvert g'(\theta) \rvert \operatorname{se}(T) for a smooth gg with g′(θ)≠0g'(\theta) \ne 0.
  • Bootstrap and jackknife: estimated standard errors by resampling.

References

  1. Larry Wasserman, All of Statistics, Springer, 2004, Section 6.3 (the standard error and the estimated standard error of a point estimator)
  2. Bradley Efron and Robert J. Tibshirani, An Introduction to the Bootstrap, Chapman and Hall, 1993, Chapter 5 (standard errors and estimated standard errors) and Chapter 6 (the bootstrap estimate of standard error)
  3. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 5.2 (the mean and variance of the sample mean) and Section 10.1.4 (bootstrap standard errors)
  4. A. W. van der Vaart, Asymptotic Statistics, Cambridge University Press, 1998, Section 21.2 (asymptotic normality of sample quantiles)

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/74RKSV/text.yaml