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 leads to less variation in sample means.
Practice problems
Example 1:
Suppose that the battery life for cell phones is normally distributed with a mean of hours and a standard deviation of hours. A quality inspector tests phones. What is the distribution of the average battery life from these phones?
We are given hours, hours, and . Compute the standard error:
Solution:
Because the population is normal, the sampling distribution of is normal with mean and standard deviation .
Example 2:
Suppose that teenagers in the United States spend an average of hours on computers each day with a standard deviation of hours. What is the probability that a sample of teenagers will average between and hours?
We are given hours, hours, and .
First, find the standard error:
Next, convert the endpoints to z-scores:
Look up the cumulative probabilities and subtract:
Solution:
The probability that the sample of teenagers averages between and hours is . If we repeatedly took samples of teenagers, about 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.
Practice problem
Example 3:
Two brands of lightbulbs are tested to see which lasts longer. Brand A has a mean lifespan of hours with a standard deviation of hours, and Brand B has a mean of hours with a standard deviation of hours. If we sample bulbs from each brand, what is the probability that the sample difference in average lifespan is at least hours?
We are given , , , , . Since both sample sizes are at least , the sampling distribution of is approximately normal.
Find the standard deviation of the differences:
The mean of the sampling distribution is the difference in population means:
Compute the z-score for a sample difference of hours:
Find the probability of getting a difference of at least hours:
Solution:
The probability that the sample difference in mean lifespan is at least hours is . If we repeatedly took samples of bulbs from each brand, about of the sample mean differences would be at least hours.