Estimators and sampling variation
Quick answer
An estimator is a rule for using a random sample to estimate a population parameter. Its result on a particular sample is an estimate. Repeating the sampling process produces different estimates. The sampling distribution describes that variation; its standard deviation is called the standard error.
See a sampling distribution exactly
Consider independent draws with replacement from two equally probable weights, 2 and 6 kg. The population mean is 4. All four ordered samples of size two have equal probability. Their means are 2, 4, 4 and 6. The mean of this sampling distribution is 4, so the sample mean is unbiased in this model. Its variance is 2 kg², half the single-observation variance 4. Bias is the expected estimate minus the parameter, not the error on one draw. A biased estimator can sometimes have lower mean squared error: MSE equals variance plus squared bias when the target is fixed and moments exist.
from itertools import productfrom statistics import mean, pvariancemeans = [mean(pair) for pair in product([2, 6], repeat=2)]print(means)print(mean(means), pvariance(means))Expected output (local Python 3.13.5):
[2, 4, 4, 6]4 2The four estimates fluctuate even though their expectation equals the parameter.
Estimate uncertainty from a sample
For n independent identically distributed observations with finite variance σ², Var(sample mean) = σ²/n. The true standard error is σ/sqrt(n). When σ is unknown, estimate it with sample standard deviation s, computed using s² = sum((x_i - mean)²)/(n−1) for n ≥ 2. The n−1 divisor corrects bias of the variance estimator under IID sampling; s itself is not generally unbiased for σ. The estimated standard error is s/sqrt(n). It describes precision of the estimated mean, not spread of individual observations.
from statistics import variance, stdevfrom math import sqrtx = [2, 4, 6, 8]print(round(variance(x), 4))print(round(stdev(x)/sqrt(len(x)), 4))Expected output (local Python 3.13.5):
6.66671.291The sample variance is 20/3 kg² and the estimated standard error is about 1.291 kg.
Common mistakes
Using n instead of n−1 estimates the empirical distribution variance, not the usual unbiased sample variance. The standard error formula assumes independent observations; correlated rows or sampling without replacement from a small finite population can require a different variance calculation. A precise estimate can still be biased.
Practice and next steps
If n increases from 25 to 100 with the same population spread and IID design, predict the change in true standard error. Next, turn standard error into an interval using an appropriate sampling distribution.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Estimators and sampling variation — knowledge check
Apply statistical reasoning to original synthetic examples.
What is an estimator?
An estimator has expectation 10 for a parameter of 12. What is its bias?
If IID sample size quadruples, what happens to true SE of the mean?
What divisor gives the usual unbiased sample variance under IID sampling?
Does small SE guarantee absence of sampling bias?