Lesson 7.2 · Inference for Means
Confidence intervals for a mean
How long does a typical phone battery last on a full charge? What is the average commute time for workers in your city? Questions like these ask about a population mean . In this lesson you'll use a random sample and the -distributions to build an interval of plausible values for , and you'll learn to check that the method is trustworthy.
The one-sample t interval
Every confidence interval in AP Statistics has the same shape:
For a population mean, the point estimate is , the standard error is , and the critical value comes from a -distribution with degrees of freedom.
One-sample t interval for a mean
When the conditions are met, a level confidence interval for a population mean is
where is the critical value for the middle area of the -distribution with .
Here are the critical values you'll need in this lesson.
| 90% () | 95% () | 99% () | |
|---|---|---|---|
| 7 | 1.895 | 2.365 | 3.499 |
| 9 | 1.833 | 2.262 | 3.250 |
| 11 | 1.796 | 2.201 | 3.106 |
| 15 | 1.753 | 2.131 | 2.947 |
| 24 | 1.711 | 2.064 | 2.797 |
| 29 | 1.699 | 2.045 | 2.756 |
| 40 | 1.684 | 2.021 | 2.704 |
| 1.645 | 1.960 | 2.576 |
Checking the conditions
The formula only gives an honest confidence level when three conditions hold.
- Random: The data come from a random sample from the population of interest, or from a randomized experiment.
- 10% condition: When sampling without replacement, , where is the population size. This keeps observations close enough to independent.
- Normal/Large Sample: The population distribution is approximately normal, or the sample size is large (). If is less than 30 and you don't know the population shape, graph the sample data (a dotplot, boxplot or histogram) and check that there is no strong skewness and no outliers.
The third condition is about the sampling distribution of . For large samples, the central limit theorem makes it approximately normal no matter the population shape. For small samples, you need evidence that the population itself isn't badly skewed, and the sample data are your only evidence.
Common mistake
The Normal/Large Sample condition is about the population (or the sampling distribution), not about the sample being perfectly bell-shaped. With , a dotplot that's roughly symmetric with no outliers is fine. Don't say "the sample is normal," and don't skip the graph when : the AP exam expects you to say what you looked at.
The four-step process
AP free-response questions reward a complete, organized answer. Use State, Plan, Do, Conclude.
- State: the parameter (in context) and the confidence level.
- Plan: name the procedure (one-sample interval for ) and check conditions.
- Do: compute the interval, showing , and the standard error.
- Conclude: interpret the interval in context.
Worked example: A complete interval
A company tests a random sample of of its new phone batteries. The batteries last a mean of hours with standard deviation hours. A dotplot of the data shows no strong skewness and no outliers. Construct and interpret a 95% confidence interval for the mean life of all batteries of this type.
State. We want to estimate , the true mean battery life (hours) of all batteries of this type, with 95% confidence.
Plan. One-sample interval for .
- Random: the batteries are a random sample.
- 10%: is less than 10% of all batteries produced.
- Normal/Large Sample: , but the dotplot shows no strong skewness or outliers.
Do. , so . The standard error is .
Conclude. We are 95% confident that the interval from about to hours captures the true mean battery life for all batteries of this type.
Interpreting the interval and the confidence level
These two ideas get confused all the time, so keep them separate.
- The interval: "We are % confident that the interval from ___ to ___ captures the true mean ___ (in context)."
- The confidence level: "If we took many random samples of the same size and built a % interval from each, about % of those intervals would capture the true mean."
The confidence level describes the method, not any single interval. Once the interval is computed, it either contains or it doesn't. You just don't know which.
Common mistake
A confidence interval for a mean says nothing about individual values. "95% of batteries last between 45.5 and 50.9 hours" is wrong. The interval is about the population mean, and individual batteries vary far more than the mean does.
Working from raw data
On the exam you may be given the data rather than the summary statistics.
Worked example: Starting from data
A random sample of students at a large school reported the number of minutes they spent on homework last night:
A dotplot shows no outliers or strong skew. Find a 95% confidence interval for the mean homework time of all students at the school.
Solution. Using a calculator, minutes and minutes. With , . The standard error is .
We are 95% confident that the true mean homework time for students at this school is between about and minutes. (Technology's TInterval gives the same result.)
What controls the width
The margin of error is , so:
- Higher confidence means a larger and a wider interval.
- Larger sample size means a smaller standard error (and slightly smaller ), so a narrower interval. To cut the margin of error in half, you need about four times as many observations.
- More variability in the data (larger ) means a wider interval.
Choosing a sample size
Before collecting data, you can choose to get a desired margin of error . Since you don't have yet, use a reasonable guess for (from a pilot study or past data) and in place of :
Worked example: Planning a study
A nutritionist wants to estimate the mean sodium content of a brand's frozen dinners to within milligrams with 95% confidence. Past data suggest mg. How many dinners should she sample?
Solution. Solve :
Always round up: she needs dinners.
Tip
Given an interval , you can recover its pieces: is the midpoint and is half the width.
Practice
A random sample of observations has and . The conditions for inference are met. Find a 99% confidence interval for . Enter the lower and upper endpoints, separated by a comma, to 2 decimal places.
Separate answers with commas, e.g. 2, -5
A random sample of light bulbs has a standard deviation of hours. What is the margin of error for a 90% confidence interval for the mean lifetime?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A 95% confidence interval for the mean weight (in ounces) of a brand of cereal boxes is . What was the sample mean?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A random sample of drivers gave a 95% confidence interval for the mean commute time in a city of minutes. Which is a correct interpretation?
A biologist measures the length of randomly selected fish from a lake. A dotplot shows that fish are between and cm and one fish is cm. Is a one-sample interval appropriate for estimating the mean length of fish in the lake?
A researcher computes a 95% confidence interval for a mean from a random sample of people. Which change would produce a narrower interval, assuming stays about the same?
A city planner wants to estimate the mean number of minutes residents wait for a bus to within minutes with 99% confidence. A pilot study suggests minutes. What is the smallest sample size that will do the job?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A random sample of adults at a gym reported how many hours they slept before a morning workout: . A dotplot shows no strong skew or outliers. Construct a 90% confidence interval for the mean sleep time of all such gym members. Enter the endpoints to 2 decimal places, separated by a comma.
Separate answers with commas, e.g. 2, -5