Achievable logoAchievable logo
AP Statistics
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. One variable data
2. Two variable data
3. Data collection
4. Probability and random variables
5. Sampling distributions
5.1 Calculations for the normal distribution
5.2 Central limit theorem
5.3 Biased and unbiased estimators
5.4 Sample proportions
5.5 Sample means
5.6 Sampling distribution simulations
6. Categorical data
7. Quantitative data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
5.3 Biased and unbiased estimators
Achievable AP Statistics
5. Sampling distributions
Our AP Statistics course is currently in development and is a work-in-progress.

Biased and unbiased estimators

4 min read
Font
Discuss
Share
Feedback

When using a sample statistic to estimate a population parameter, it matters whether that statistic tends to hit the target on average. An estimator that consistently overshoots or undershoots is called biased, while one that averages out to the true parameter is called unbiased.

Definitions
Biased estimator (in the context of sampling distributions)
A statistic whose expected value is not equal to the true population parameter.
  • For example, the sample variance computed as n1​∑(xi​−xˉ)2 is biased because it tends to underestimate the true population variance σ2.
Unbiased estimator
A statistic whose expected value equals the true population parameter.
  • For example, xˉ estimates μ, and p^​ estimates p. More generally, an estimator θ^ of a parameter θ is unbiased if

E[θ^]=θ

Sample mean as an estimator of the population mean

Let X1​,X2​,X3​,…,Xn​ be a random sample from a population with mean μ. The sample mean is defined as:

Xˉ=n1​i=1∑n​Xi​

To check whether Xˉ is unbiased for μ, we compute its expected value:

E[Xˉ]​=E[n1​i=1∑n​Xi​]=n1​i=1∑n​E(Xi​)=n1​i=1∑n​μ=n1​(nμ)=μ​

Solution:

(spoiler)

Since E[Xˉ]=μ, the sample mean is an unbiased estimator of the population mean.

Practice problems

Example 1:

Suppose we have a deck of 3 cards with values {2,4,6} and that random samples of size n=2 are taken with replacement. Find the population mean and the expected value of the sample mean in order to determine if the sample mean is a biased or an unbiased estimator of the population mean.

First, find the population mean:

μ=E(X)​=32+4+6​=312​=4​

Next, list all equally likely samples of size 2 (with replacement) and compute each sample mean:

(2,2)(2,4)(2,6)(4,2)(4,4)(4,6)(6,2)(6,4)(6,6)​→xˉ=22+2​=2→xˉ=22+4​=3→xˉ=22+6​=4→xˉ=24+2​=3→xˉ=24+4​=4→xˉ=24+6​=5→xˉ=26+2​=4→xˉ=26+4​=5→xˉ=26+6​=6​

There are 9 equally likely cases, so each has probability 91​:

E[Xˉ]​=91​(2+3+4+3+4+5+4+5+6)=91​(36)=4​

Solution:

(spoiler)

Since E[Xˉ]=μ=4, the sample mean is an unbiased estimator of the population mean.

Example 2:

The mayor of a city wants to estimate the average standardized test scores of high school students in the city. The city has three high schools: one public school, one private school, and one charter school. He randomly selects 100 students from the private school and uses that sample mean to estimate the citywide average. Is this sample mean likely to be an unbiased or biased estimator of the population mean, and why? If biased, suggest at least one way the mayor could improve his approach.

The sample is drawn only from the private school, while the population includes students from all three schools. Students at the public and charter schools had no chance of being selected — a violation of the random sampling requirement needed for an unbiased estimator.

If private school students tend to score higher than students at other schools (due to differences in resources, tutoring access, or socioeconomic factors), then this sample will systematically overestimate the citywide mean.

To reduce bias, the mayor could:

  • Take a simple random sample from the entire population of high school students, so every student has a chance of being selected.
  • Use a stratified sample by drawing from each school in proportion to its enrollment, so the sample structure mirrors the population.

If the mayor has the resources, he could conduct a census of all students. In that case, the calculated mean is the true population parameter μ rather than an estimate, so the concept of bias does not apply.

Solution:

(spoiler)

This sample mean is likely to be a biased estimator because only private school students were sampled, excluding the public and charter school populations entirely and creating a systematic tendency to overestimate the citywide mean.

Biased and unbiased estimators

  • Biased estimator: expected value ≠ true population parameter
    • Example: sample variance with denominator n
  • Unbiased estimator: expected value = true population parameter
    • Example: sample mean $ ar$ for $ mu$, sample proportion $ hat$ for p
  • Unbiasedness condition: E[hattheta]=theta

Sample mean as unbiased estimator

  • Sample mean $ bar = frac1 sum X_i$ estimates population mean $ mu$
  • E[barX]=mu for random samples
  • Sample mean is unbiased for population mean

Example 1: Card deck sampling

  • Population mean $ mu = 4$ for values $ $
  • All possible samples of size 2 (with replacement) yield E[barX]=4
  • Sample mean is unbiased estimator in this scenario

Example 2: Biased sampling in practice

  • Sampling only from private school excludes other groups
  • Sample mean likely biased if schools differ in test scores
  • To reduce bias:
    • Use simple random sampling from all students
    • Use stratified sampling proportional to school sizes

Summary of estimator bias

  • Unbiased: E[hattheta]=theta
  • Bias formula: Bias(θ^)=E[θ^]−θ
  • Good estimators should be unbiased

Sign up for free to take 5 quiz questions on this topic

Previous
Next  | 5.4 Sample proportions
All rights reserved ©2016 - 2026 Achievable, Inc.

Biased and unbiased estimators

When using a sample statistic to estimate a population parameter, it matters whether that statistic tends to hit the target on average. An estimator that consistently overshoots or undershoots is called biased, while one that averages out to the true parameter is called unbiased.

Definitions
Biased estimator (in the context of sampling distributions)
A statistic whose expected value is not equal to the true population parameter.
  • For example, the sample variance computed as n1​∑(xi​−xˉ)2 is biased because it tends to underestimate the true population variance σ2.
Unbiased estimator
A statistic whose expected value equals the true population parameter.
  • For example, xˉ estimates μ, and p^​ estimates p. More generally, an estimator θ^ of a parameter θ is unbiased if

E[θ^]=θ

Sample mean as an estimator of the population mean

Let X1​,X2​,X3​,…,Xn​ be a random sample from a population with mean μ. The sample mean is defined as:

Xˉ=n1​i=1∑n​Xi​

To check whether Xˉ is unbiased for μ, we compute its expected value:

E[Xˉ]​=E[n1​i=1∑n​Xi​]=n1​i=1∑n​E(Xi​)=n1​i=1∑n​μ=n1​(nμ)=μ​

Solution:

(spoiler)

Since E[Xˉ]=μ, the sample mean is an unbiased estimator of the population mean.

Practice problems

Example 1:

Suppose we have a deck of 3 cards with values {2,4,6} and that random samples of size n=2 are taken with replacement. Find the population mean and the expected value of the sample mean in order to determine if the sample mean is a biased or an unbiased estimator of the population mean.

First, find the population mean:

μ=E(X)​=32+4+6​=312​=4​

Next, list all equally likely samples of size 2 (with replacement) and compute each sample mean:

(2,2)(2,4)(2,6)(4,2)(4,4)(4,6)(6,2)(6,4)(6,6)​→xˉ=22+2​=2→xˉ=22+4​=3→xˉ=22+6​=4→xˉ=24+2​=3→xˉ=24+4​=4→xˉ=24+6​=5→xˉ=26+2​=4→xˉ=26+4​=5→xˉ=26+6​=6​

There are 9 equally likely cases, so each has probability 91​:

E[Xˉ]​=91​(2+3+4+3+4+5+4+5+6)=91​(36)=4​

Solution:

(spoiler)

Since E[Xˉ]=μ=4, the sample mean is an unbiased estimator of the population mean.

Example 2:

The mayor of a city wants to estimate the average standardized test scores of high school students in the city. The city has three high schools: one public school, one private school, and one charter school. He randomly selects 100 students from the private school and uses that sample mean to estimate the citywide average. Is this sample mean likely to be an unbiased or biased estimator of the population mean, and why? If biased, suggest at least one way the mayor could improve his approach.

The sample is drawn only from the private school, while the population includes students from all three schools. Students at the public and charter schools had no chance of being selected — a violation of the random sampling requirement needed for an unbiased estimator.

If private school students tend to score higher than students at other schools (due to differences in resources, tutoring access, or socioeconomic factors), then this sample will systematically overestimate the citywide mean.

To reduce bias, the mayor could:

  • Take a simple random sample from the entire population of high school students, so every student has a chance of being selected.
  • Use a stratified sample by drawing from each school in proportion to its enrollment, so the sample structure mirrors the population.

If the mayor has the resources, he could conduct a census of all students. In that case, the calculated mean is the true population parameter μ rather than an estimate, so the concept of bias does not apply.

Solution:

(spoiler)

This sample mean is likely to be a biased estimator because only private school students were sampled, excluding the public and charter school populations entirely and creating a systematic tendency to overestimate the citywide mean.

Key points

Biased and unbiased estimators

  • Biased estimator: expected value ≠ true population parameter
    • Example: sample variance with denominator n
  • Unbiased estimator: expected value = true population parameter
    • Example: sample mean $ ar{x}$ for $ mu$, sample proportion $ hat{p}$ for p
  • Unbiasedness condition: E[hattheta]=theta

Sample mean as unbiased estimator

  • Sample mean $ bar{X} = frac{1}{n} sum X_i$ estimates population mean $ mu$
  • E[barX]=mu for random samples
  • Sample mean is unbiased for population mean

Example 1: Card deck sampling

  • Population mean $ mu = 4$ for values $ {2, 4, 6}$
  • All possible samples of size 2 (with replacement) yield E[barX]=4
  • Sample mean is unbiased estimator in this scenario

Example 2: Biased sampling in practice

  • Sampling only from private school excludes other groups
  • Sample mean likely biased if schools differ in test scores
  • To reduce bias:
    • Use simple random sampling from all students
    • Use stratified sampling proportional to school sizes

Summary of estimator bias

  • Unbiased: E[hattheta]=theta
  • Bias formula: Bias(θ^)=E[θ^]−θ
  • Good estimators should be unbiased

More from Sampling distributions

  • Calculations for the normal distribution
  • Central limit theorem
  • Sample proportions
  • Sample means
  • Sampling distribution simulations