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.5 Sample means
Achievable AP Statistics
5. Sampling distributions
Our AP Statistics course is currently in development and is a work-in-progress.

Sample means

6 min read
Font
Discuss
Share
Feedback

Sampling distribution of sample means

Suppose we want to estimate the population mean μ. We take a sample from the population and compute the sample mean. To judge how reliable that sample mean is, we need to understand how much sample means tend to vary from sample to sample. In general, a larger sample size n leads to less variation in sample means.

Sidenote
Important to know!

Start with a population with mean μ and standard deviation σ.

  • The mean of the set of sample means, μxˉ​, equals the population mean μ.
  • The standard deviation of the set of sample means is approximately n​σ​, where σ is the population standard deviation and n is the sample size.

The sampling distribution of xˉ has mean μ and standard deviation n​σ​. If the population is approximately normal, or if the central limit theorem applies (sample size n≥30), then the set of sample means is approximately normally distributed.

Practice problems

Example 1:

Suppose that the battery life for cell phones is normally distributed with a mean of 30 hours and a standard deviation of 5 hours. A quality inspector tests 16 phones. What is the distribution of the average battery life from these 16 phones?

We are given μ=30 hours, σ=5 hours, and n=16. Compute the standard error:

σxˉ​​=n​σ​=16​5​=45​=1.25 hours​

Solution:

(spoiler)

Because the population is normal, the sampling distribution of xˉ is normal with mean 30 and standard deviation 1.25.

Example 2:

Suppose that teenagers in the United States spend an average of 7 hours on computers each day with a standard deviation of 2.5 hours. What is the probability that a sample of 36 teenagers will average between 6.5 and 7.5 hours?

We are given μ=7 hours, σ=2.5 hours, and n=36.

First, find the standard error:

SE=σxˉ​​=n​σ​=36​2.5​=62.5​≈0.4167 hours​

Next, convert the endpoints to z-scores:

z1​​=0.41676.5−7​=−1.20​z2​​=0.41677.5−7​=1.20​

Look up the cumulative probabilities and subtract:

P(−1.20<Z<1.20)​=P(Z<1.20)−P(Z<−1.20)=0.8849−0.1151=0.7698​

Solution:

(spoiler)

The probability that the sample of 36 teenagers averages between 6.5 and 7.5 hours is 76.98%. If we repeatedly took samples of 36 teenagers, about 76.98% of those samples would have an average in that range.

Comparing two population means

Many real-life questions involve comparing two population means. For example:

  • Do students who graduate from school A earn more income than students from school B?
  • Does tech company A offer higher salaries on average to entry-level graduates than tech company B?
  • Is the life expectancy of people working in office jobs greater than that of people in jobs requiring physical labor?
  • Does the average American earn more than the average Canadian?

In these situations, we focus on the sampling distribution of the difference in sample means: we repeatedly take a sample from each population, compute each sample mean, and subtract them.

Consider two populations with means μ1​ and μ2​ and standard deviations σ1​ and σ2​. Take samples of sizes n1​ and n2​ and find the difference xˉ1​−xˉ2​ for each sample pairing.

  • The mean of the set of differences equals the difference in population means:

μXˉ1​−Xˉ2​​​=μ1​−μ2​​

E[Xˉ1​−Xˉ2​]​=μ1​−μ2​​

  • The standard deviation of the set of differences is approximately:

σXˉ1​−Xˉ2​​​=n1​σ12​​+n2​σ22​​​​

  • If the populations are normal, or if the sample sizes are at least 30, the set of all differences of sample means is approximately normally distributed.

Practice problem

Example 3:

Two brands of lightbulbs are tested to see which lasts longer. Brand A has a mean lifespan of 1200 hours with a standard deviation of 100 hours, and Brand B has a mean of 1100 hours with a standard deviation of 120 hours. If we sample 50 bulbs from each brand, what is the probability that the sample difference in average lifespan is at least 70 hours?

We are given μ1​=1200, μ2​=1100, σ1​=100, σ2​=120, n1​=n2​=50. Since both sample sizes are at least 30, the sampling distribution of Xˉ1​−Xˉ2​ is approximately normal.

Find the standard deviation of the differences:

σXˉ1​−Xˉ2​​​=n1​σ12​​+n2​σ22​​​=501002​+501202​​=200+288​=488​≈22.09​

The mean of the sampling distribution is the difference in population means:

μ1​−μ2​​=1200−1100=100​

Compute the z-score for a sample difference of 70 hours:

z​=22.0970−100​=22.09−30​≈−1.358​

Find the probability of getting a difference of at least 70 hours:

P(Z>−1.358)​=1−P(Z<−1.358)=1−0.0871=0.9129​

Solution:

(spoiler)

The probability that the sample difference in mean lifespan is at least 70 hours is 91.29%. If we repeatedly took samples of 50 bulbs from each brand, about 91.29% of the sample mean differences would be at least 70 hours.

Sampling distribution of the sample mean

  • Mean of sample means: μxˉ​=μ
  • Standard deviation (standard error): σxˉ​=n​σ​
  • Distribution is approximately normal if:
    • Population is normal
    • Or, by CLT, sample size n≥30

Example 1: Battery life sampling distribution

  • Population: μ=30 hours, σ=5 hours, n=16
  • Standard error: 1.25 hours
  • Sampling distribution: normal, mean 30, standard deviation 1.25

Example 2: Probability for sample mean range

  • Population: μ=7 hours, σ=2.5 hours, n=36
  • Standard error: 0.4167 hours
  • Probability sample mean between 6.5 and 7.5 hours: 76.98%

Sampling distribution of the difference of means

  • Mean of differences: μXˉ1​−Xˉ2​​=μ1​−μ2​
  • Standard deviation: σXˉ1​−Xˉ2​​=n1​σ12​​+n2​σ22​​​
  • Distribution is approximately normal if:
    • Both populations normal
    • Or, both sample sizes n1​,n2​≥30 (CLT)

Example 3: Difference in lightbulb lifespans

  • Brand A: μ1​=1200, σ1​=100, n1​=50
  • Brand B: μ2​=1100, σ2​=120, n2​=50
  • Standard error of difference: 22.09
  • Probability sample mean difference ≥70 hours: 91.29%

Key formulas and concepts

  • Standard error (sample mean): n​σ​
  • Standard error (difference of means): n1​σ12​​+n2​σ22​​​
  • Z-score for sample mean: z=σ/n​xˉ−μ​
  • Use CLT for approximate normality when n≥30

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

Previous
Next  | 5.6 Sampling distribution simulations
All rights reserved ©2016 - 2026 Achievable, Inc.

Sample means

Sampling distribution of sample means

Suppose we want to estimate the population mean μ. We take a sample from the population and compute the sample mean. To judge how reliable that sample mean is, we need to understand how much sample means tend to vary from sample to sample. In general, a larger sample size n leads to less variation in sample means.

Sidenote
Important to know!

Start with a population with mean μ and standard deviation σ.

  • The mean of the set of sample means, μxˉ​, equals the population mean μ.
  • The standard deviation of the set of sample means is approximately n​σ​, where σ is the population standard deviation and n is the sample size.

The sampling distribution of xˉ has mean μ and standard deviation n​σ​. If the population is approximately normal, or if the central limit theorem applies (sample size n≥30), then the set of sample means is approximately normally distributed.

Practice problems

Example 1:

Suppose that the battery life for cell phones is normally distributed with a mean of 30 hours and a standard deviation of 5 hours. A quality inspector tests 16 phones. What is the distribution of the average battery life from these 16 phones?

We are given μ=30 hours, σ=5 hours, and n=16. Compute the standard error:

σxˉ​​=n​σ​=16​5​=45​=1.25 hours​

Solution:

(spoiler)

Because the population is normal, the sampling distribution of xˉ is normal with mean 30 and standard deviation 1.25.

Example 2:

Suppose that teenagers in the United States spend an average of 7 hours on computers each day with a standard deviation of 2.5 hours. What is the probability that a sample of 36 teenagers will average between 6.5 and 7.5 hours?

We are given μ=7 hours, σ=2.5 hours, and n=36.

First, find the standard error:

SE=σxˉ​​=n​σ​=36​2.5​=62.5​≈0.4167 hours​

Next, convert the endpoints to z-scores:

z1​​=0.41676.5−7​=−1.20​z2​​=0.41677.5−7​=1.20​

Look up the cumulative probabilities and subtract:

P(−1.20<Z<1.20)​=P(Z<1.20)−P(Z<−1.20)=0.8849−0.1151=0.7698​

Solution:

(spoiler)

The probability that the sample of 36 teenagers averages between 6.5 and 7.5 hours is 76.98%. If we repeatedly took samples of 36 teenagers, about 76.98% of those samples would have an average in that range.

Comparing two population means

Many real-life questions involve comparing two population means. For example:

  • Do students who graduate from school A earn more income than students from school B?
  • Does tech company A offer higher salaries on average to entry-level graduates than tech company B?
  • Is the life expectancy of people working in office jobs greater than that of people in jobs requiring physical labor?
  • Does the average American earn more than the average Canadian?

In these situations, we focus on the sampling distribution of the difference in sample means: we repeatedly take a sample from each population, compute each sample mean, and subtract them.

Consider two populations with means μ1​ and μ2​ and standard deviations σ1​ and σ2​. Take samples of sizes n1​ and n2​ and find the difference xˉ1​−xˉ2​ for each sample pairing.

  • The mean of the set of differences equals the difference in population means:

μXˉ1​−Xˉ2​​​=μ1​−μ2​​

E[Xˉ1​−Xˉ2​]​=μ1​−μ2​​

  • The standard deviation of the set of differences is approximately:

σXˉ1​−Xˉ2​​​=n1​σ12​​+n2​σ22​​​​

  • If the populations are normal, or if the sample sizes are at least 30, the set of all differences of sample means is approximately normally distributed.

Practice problem

Example 3:

Two brands of lightbulbs are tested to see which lasts longer. Brand A has a mean lifespan of 1200 hours with a standard deviation of 100 hours, and Brand B has a mean of 1100 hours with a standard deviation of 120 hours. If we sample 50 bulbs from each brand, what is the probability that the sample difference in average lifespan is at least 70 hours?

We are given μ1​=1200, μ2​=1100, σ1​=100, σ2​=120, n1​=n2​=50. Since both sample sizes are at least 30, the sampling distribution of Xˉ1​−Xˉ2​ is approximately normal.

Find the standard deviation of the differences:

σXˉ1​−Xˉ2​​​=n1​σ12​​+n2​σ22​​​=501002​+501202​​=200+288​=488​≈22.09​

The mean of the sampling distribution is the difference in population means:

μ1​−μ2​​=1200−1100=100​

Compute the z-score for a sample difference of 70 hours:

z​=22.0970−100​=22.09−30​≈−1.358​

Find the probability of getting a difference of at least 70 hours:

P(Z>−1.358)​=1−P(Z<−1.358)=1−0.0871=0.9129​

Solution:

(spoiler)

The probability that the sample difference in mean lifespan is at least 70 hours is 91.29%. If we repeatedly took samples of 50 bulbs from each brand, about 91.29% of the sample mean differences would be at least 70 hours.

Key points

Sampling distribution of the sample mean

  • Mean of sample means: μxˉ​=μ
  • Standard deviation (standard error): σxˉ​=n​σ​
  • Distribution is approximately normal if:
    • Population is normal
    • Or, by CLT, sample size n≥30

Example 1: Battery life sampling distribution

  • Population: μ=30 hours, σ=5 hours, n=16
  • Standard error: 1.25 hours
  • Sampling distribution: normal, mean 30, standard deviation 1.25

Example 2: Probability for sample mean range

  • Population: μ=7 hours, σ=2.5 hours, n=36
  • Standard error: 0.4167 hours
  • Probability sample mean between 6.5 and 7.5 hours: 76.98%

Sampling distribution of the difference of means

  • Mean of differences: μXˉ1​−Xˉ2​​=μ1​−μ2​
  • Standard deviation: σXˉ1​−Xˉ2​​=n1​σ12​​+n2​σ22​​​
  • Distribution is approximately normal if:
    • Both populations normal
    • Or, both sample sizes n1​,n2​≥30 (CLT)

Example 3: Difference in lightbulb lifespans

  • Brand A: μ1​=1200, σ1​=100, n1​=50
  • Brand B: μ2​=1100, σ2​=120, n2​=50
  • Standard error of difference: 22.09
  • Probability sample mean difference ≥70 hours: 91.29%

Key formulas and concepts

  • Standard error (sample mean): n​σ​
  • Standard error (difference of means): n1​σ12​​+n2​σ22​​​
  • Z-score for sample mean: z=σ/n​xˉ−μ​
  • Use CLT for approximate normality when n≥30

More from Sampling distributions

  • Calculations for the normal distribution
  • Central limit theorem
  • Biased and unbiased estimators
  • Sample proportions
  • Sampling distribution simulations