The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Statistics and Econometrics

Second and third year · Module 4 of 15

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.

By Maximus S. Waldbauer · About 3 hours, including the problem set and quiz.

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

What this module covers

  1. What makes a good estimator
  2. Confidence intervals for a mean
  3. Small samples and the t distribution
  4. Proportions, polls and sample size
  5. Comparing groups and reading intervals well
  6. Problem set with step-by-step solutions
  7. 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

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

E[Σ(Xi − X̄)2] = (n − 1)σ2

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. 1.An estimator whose expected value equals the parameter it estimates is called:
    1. Unbiased
    2. Consistent
    3. Efficient
    4. Robust
    Show answer

    Answer: A. Unbiased means correct on average across repeated samples.

  2. 2.Estimator X has bias 3 and variance 4. Its mean squared error is:
    1. 5
    2. 7
    3. 13
    4. 25
    Show answer

    Answer: C. MSE = bias² + variance = 9 + 4 = 13.

  3. 3.A sample of 100 has mean 50 and SD 20. The 95% confidence interval for μ is about:
    1. 10.8 to 89.2
    2. 30.4 to 69.6
    3. 46.08 to 53.92
    4. 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

  1. 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
    1. MSE(A) = 0² + 3² = 9.
    2. MSE(B) = 2² + 1² = 5.
    3. B has the lower MSE: it is usually closer to the truth despite its bias.
  2. 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
    1. Unbiased: E(X₁) = μ.
    2. Not consistent: its variance is σ² no matter how large n gets, so it never homes in on μ.
    3. 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.