Variance of Sample Means

Derive and apply the formula Var(X̄) = σ²/n for the variance of the sample mean of an iid random sample, including the standard error σ/√n and the inverse problem of choosing the sample size needed to achieve a target precision.

Step 1 of 119%

Tutorial

Variance of the Sample Mean

Suppose X1,X2,,XnX_1, X_2, \ldots, X_n is a random sample from a distribution with mean μ\mu and variance σ2\sigma^2. By definition, the random variables XiX_i are independent and identically distributed, so each one has variance σ2\sigma^2.

The sample mean is the random variable

Xˉ=1ni=1nXi.\bar{X} = \dfrac{1}{n}\sum_{i=1}^n X_i.

We want to know how variable Xˉ\bar{X} is. Pulling the constant 1n\dfrac{1}{n} outside (which squares when we take variance) and using independence to split the variance of the sum into a sum of variances, we get

Var(Xˉ)=Var ⁣(1ni=1nXi)=1n2i=1nVar(Xi)=1n2nσ2=σ2n.\begin{align*}\operatorname{Var}(\bar{X}) &= \operatorname{Var}\!\left(\dfrac{1}{n}\sum_{i=1}^n X_i\right) \\[3pt] &= \dfrac{1}{n^2}\sum_{i=1}^n \operatorname{Var}(X_i) \\[3pt] &= \dfrac{1}{n^2}\cdot n\sigma^2 \\[3pt] &= \dfrac{\sigma^2}{n}.\end{align*}

This is the variance of the sample mean:

Var(Xˉ)=σ2n.\boxed{\operatorname{Var}(\bar{X}) = \dfrac{\sigma^2}{n}}.

Notice that as nn grows, Var(Xˉ)\operatorname{Var}(\bar{X}) shrinks. Larger samples produce sample means that cluster more tightly around the true mean μ\mu.

For a quick illustration: if a population has σ2=20\sigma^2 = 20 and we take a sample of size n=5n = 5, then Var(Xˉ)=205=4.\operatorname{Var}(\bar{X}) = \dfrac{20}{5} = 4.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle