Courses › Statistics and Econometrics
Estimation and confidence intervals
What makes an estimator good (unbiased, consistent, efficient), confidence intervals for means and proportions, the t distribution and choosing a sample size.
Module 3 worked forwards: given the population, how do sample means behave? Real work goes backwards: given one sample, what can you say about the population? This module is about estimation, the first half of that backwards step.
You will learn what makes an estimator good (unbiased, consistent, efficient), how to build a confidence interval that honestly reports your uncertainty, how the t distribution handles small samples, how polls arrive at their margins of error, and how to plan a sample big enough to answer your question.
By the end of this module you will be able to
- Distinguish an estimator from an estimate and judge estimators by bias, variance, mean squared error and consistency.
- Explain why the sample variance divides by n − 1.
- Build and correctly interpret confidence intervals for a mean using the normal and t distributions.
- Build confidence intervals for proportions and compute the sample size needed for a target margin of error.
- Build a confidence interval for a difference between two groups and avoid common misreadings of intervals.
What this module covers
- What makes a good estimator
- Confidence intervals for a mean
- Small samples and the t distribution
- Proportions, polls and sample size
- Comparing groups and reading intervals well
- Problem set with step-by-step solutions
- Module quiz
Lesson 4.1 Free lesson
What makes a good estimator
An estimator is a rule for turning data into a guess about a parameter: “add up the observations and divide by n” is an estimator of μ. An estimate is the number the rule produces for a particular sample. Because samples are random, an estimator is a random variable with its own sampling distribution, and we judge estimators by the properties of that distribution.
Four properties
- Unbiased: the estimator’s expected value equals the parameter. On average across samples, it hits the target. The sample mean is unbiased for μ (Module 3).
- Consistent: as the sample grows, the estimator gets arbitrarily close to the parameter. The sample mean is consistent by the law of large numbers.
- Efficient: among unbiased estimators, it has the smallest variance. Less bounce from sample to sample means a more reliable single guess.
- Low mean squared error: MSE = bias² + variance, the expected squared distance from the truth. It lets you compare an unbiased but noisy estimator with a slightly biased but steady one.
Worked example: Bias versus variance
Two analysts estimate average weekly visits to a gym. Analyst A’s method is unbiased with variance 4. Analyst B’s method is biased upward by 1 visit but has variance 1.
MSE of A = 0² + 4 = 4. MSE of B = 1² + 1 = 2.
B is typically closer to the truth even though it is biased. Unbiasedness is a virtue, but not the only one. In this course, most estimators are unbiased or nearly so, and the main contest is about variance.
Mean or median?
Both the sample mean and the sample median estimate the centre of a symmetric population. When the data are normal, the mean is more efficient: the median’s variance is about 1.57 times larger, so the median needs about 57% more data for the same precision. When the data have heavy tails or wild outliers, the median can win. Efficiency depends on the population.
Why the sample variance divides by n − 1
Module 1 promised an explanation. The deviations xi − x̄ are measured from the sample mean, which is computed from the same data and so sits closer to the observations than the true μ does. As a result Σ(xi − x̄)² tends to be smaller than Σ(xi − μ)². It can be shown that
so dividing by n − 1 makes s² unbiased for σ². Another way to say it: once you know x̄, only n − 1 of the deviations are free (they must sum to zero), so the sample has n − 1 degrees of freedom left for estimating spread. The same idea reappears in regression, where estimating two coefficients uses up two degrees of freedom.
Common mistake
Thinking an unbiased estimator is right in every sample. Unbiased means right on average across many hypothetical samples. Your one sample can still be far off; the standard error tells you how far it is likely to be.
Key ideas
- An estimator is a rule; an estimate is the number it gives for one sample.
- Good estimators are unbiased, consistent and efficient; MSE = bias² + variance.
- For normal data the mean is more efficient than the median; for heavy-tailed data it can be the reverse.
- Dividing by n − 1 makes the sample variance unbiased.
Practice questions: Estimation and confidence intervals
Try these, then open each answer to check your work.
- 1.An estimator whose expected value equals the parameter it estimates is called:
- Unbiased
- Consistent
- Efficient
- Robust
Show answer
Answer: A. Unbiased means correct on average across repeated samples.
- 2.Estimator X has bias 3 and variance 4. Its mean squared error is:
- 5
- 7
- 13
- 25
Show answer
Answer: C. MSE = bias² + variance = 9 + 4 = 13.
- 3.A sample of 100 has mean 50 and SD 20. The 95% confidence interval for μ is about:
- 10.8 to 89.2
- 30.4 to 69.6
- 46.08 to 53.92
- 48 to 52
Show answer
Answer: C. SE = 20/10 = 2, so 50 ± 1.96 × 2 = 50 ± 3.92.
Problems with step-by-step solutions
- 4.Estimator A of a population mean is unbiased with standard error 3. Estimator B has bias 2 and standard error 1. Which has the lower mean squared error?
Show step-by-step solution
- MSE(A) = 0² + 3² = 9.
- MSE(B) = 2² + 1² = 5.
- B has the lower MSE: it is usually closer to the truth despite its bias.
- 5.Someone proposes estimating μ with just the first observation, X₁, ignoring the rest of the sample. Is this estimator unbiased? Consistent? Why is it a bad idea?
Show step-by-step solution
- Unbiased: E(X₁) = μ.
- Not consistent: its variance is σ² no matter how large n gets, so it never homes in on μ.
- It throws away information; the sample mean is also unbiased and has variance σ²/n.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.