4.2 - Constructing a Confidence Interval for a Population Mean or Population Mean Difference
Overview
In real studies you almost never know the population standard deviation , so an interval for a mean uses the sample standard deviation and a -distribution. This topic covers -distributions, the one-sample -interval for a population mean , and the same interval for a population mean difference in a matched pairs design.
Why not just use ?
In Topic 4.1, had a standard normal distribution. When is unknown, you replace it with :
This statistic varies more than does, because now two things change from sample to sample: and , and small samples give especially shaky values of . So the distribution of has more area in its tails than the standard normal, and using would make intervals that are too narrow. The rule: use a -distribution for critical values and test statistics whenever is unknown and is used in its place, which is nearly always.
Describing -distributions
The -distributions (also called Student's -distributions) are a family of curves:
- Shape: each one is symmetric, bell-shaped, and centered at 0, like the standard normal curve. They're standardized distributions.
- Degrees of freedom: a specific -distribution is identified by its degrees of freedom (df), which are based on the sample size. For one sample of size , .
- Tails: when df is small, the -distribution has a lower peak and fatter tails than the standard normal: less of its area sits near 0 and more sits far out in the tails. That makes it more spread out.
- Large df: as df increases, the -distribution looks more and more like the standard normal distribution (mean 0, standard deviation 1). With very large df they're nearly identical.

Critical values
For a C% confidence interval, is the value that puts the middle C% of the -distribution with degrees of freedom between and . Here is for 95% confidence with df = 11:

- Table B: use the row for your df and the column for your confidence level C (along the bottom). If your df isn't in the table, use the next smaller df, which gives a slightly larger and a slightly wider, more cautious interval.
- TI-84:
invT(area to the left, df). For 95% confidence with df = 11,invT(0.975, 11)gives 2.201.
As df grows, shrinks toward :
df | 2 | 5 | 11 | 30 | 100 | (this is ) |
for 95% confidence | 4.303 | 2.571 | 2.201 | 2.042 | 1.984 | 1.960 |
Choosing the procedure and the parameter
One sample
To estimate the population mean of a quantitative variable from one sample, use a one-sample -interval for a population mean.
Matched pairs
In a matched pairs design, the two samples are dependent: each value in one group is linked to one specific value in the other, like the same person measured before and after, or twins split between two treatments. Don't treat the two columns as separate samples. Subtract within each pair to get one sample of differences, then use a one-sample -interval for a population mean difference (often called a paired -interval).
Stating the parameter
Define the parameter in words, in context: the population mean or mean difference, the response variable, and the population. For example, = the true mean caffeine content (mg) of all large cold brews sold by the chain. For a mean difference , always state the order of subtraction (like after minus before). It decides what a positive or negative value means.
Conditions
A one-sample -interval for or requires three conditions:
- Randomization condition: the data should be collected using a random sample or a randomized experiment.
- 10% condition: when sampling without replacement, the population size must be at least 10 times the sample size, . This keeps the observations close enough to independent.
- Sample data condition (some books call it the normal/large sample condition). At least one of these is true:
- the problem says the population distribution is approximately normal, or
- , or
- and a graph of the sample data (dotplot, boxplot, or stemplot) shows no strong skewness and no outliers.
For matched pairs, check everything on the differences: the number of differences should be at least 30, or the sample of differences should be free from strong skewness and outliers.
When , actually make the graph (or describe it) in your answer. Writing "the data look normal" with no evidence doesn't earn credit.

Why it matters: procedures assume the sampling distribution of is approximately normal, and with a small sample the data are your only clue to the population's shape. An outlier also drags and inflates .
Calculating the interval
The point estimate for is the sample mean . For , it's the mean of the sample differences, .
The standard error of estimates how far typically falls from :
The margin of error (MOE) is the critical value times the standard error, and the interval is the point estimate plus or minus the margin of error:
This is the formula sheet's general form, statistic ± (critical value)(standard error of the statistic). For matched pairs, use , , and = the number of pairs.
TI-84: STAT, TESTS,
8:TInterval (Data for a list, Stats for , , and ; for matched pairs, put the differences in a list first). On the AP exam, still name the procedure and show the formula with numbers.Example 1: Caffeine in cold brew
A consumer group wants to estimate the mean caffeine content of a coffee chain's large cold brew. They buy one large cold brew at each of 12 randomly selected locations and measure the caffeine (mg):
188, 195, 201, 204, 207, 210, 213, 215, 219, 224, 228, 240
Construct and interpret a 95% confidence interval for the mean caffeine content of all large cold brews sold by this chain.
State: We want to estimate = the true mean caffeine content (mg) of all large cold brews sold by this chain, with 95% confidence.
Plan: One-sample -interval for a population mean. Check the conditions:
- Randomization: the drinks came from 12 randomly selected locations.
- 10%: 12 drinks is far less than 10% of all the large cold brews this chain sells.
- Sample data: , so graph the data. The dotplot is roughly symmetric with no outliers, so a procedure is reasonable.

Do: From the data, mg and mg. With , .
Conclude: We are 95% confident that the interval from 202.8 mg to 221.2 mg captures the true mean caffeine content of all large cold brews sold by this chain.
Example 2: A reading program (matched pairs)
A school district randomly selects 10 of the 300 students in its summer reading program. Each student's reading score (words read correctly per minute) is measured at the start and at the end of the program.
Student | Before | After | Difference (after minus before) |
1 | 92 | 95 | 3 |
2 | 105 | 114 | 9 |
3 | 78 | 83 | 5 |
4 | 118 | 116 | |
5 | 96 | 104 | 8 |
6 | 84 | 90 | 6 |
7 | 110 | 121 | 11 |
8 | 99 | 103 | 4 |
9 | 88 | 95 | 7 |
10 | 101 | 110 | 9 |
Construct and interpret a 95% confidence interval for the mean change in reading score.
State: = the true mean difference in reading score (after minus before, in words per minute) for all students in the summer program. We'll estimate it with 95% confidence.
Plan: The before and after scores come from the same students, so the data are paired. Use a one-sample -interval for a population mean difference.
- Randomization: the 10 students were randomly selected.
- 10%: .
- Sample data: there are only 10 differences, so graph them. The dotplot shows no strong skewness and no outliers. The value sits a little apart, but with and the lower fence is , and is inside it.

Do: For the 10 differences, and . With df = 9, .
Conclude: We are 95% confident that the interval from 3.32 to 8.68 words per minute captures the true mean difference in reading score (after minus before) for all students in this summer program. Because the order is after minus before, positive values mean scores went up.
Example 3: Summary statistics only (AP-style)
A hospital randomly selects 50 of last month's 900 emergency room visits and records each patient's wait time. The sample mean is 47.3 minutes and the sample standard deviation is 21.8 minutes. A dotplot of the 50 wait times is skewed to the right. Construct and interpret a 90% confidence interval for the mean wait time of all ER visits last month.
State: = the true mean ER wait time (minutes) for all 900 visits last month, estimated with 90% confidence.
Plan: One-sample -interval for a population mean. Randomization: the visits were randomly selected. 10%: . Sample data: the sample is skewed, but , so the sampling distribution of is approximately normal by the central limit theorem.
Do: df = 49. Technology gives
invT(0.95, 49) = 1.677. (Table B's df = 40 row gives , slightly more conservative.)Conclude: We are 90% confident that the interval from 42.1 to 52.5 minutes captures the true mean wait time for all ER visits at this hospital last month.
Common mistakes
- Using instead of for a mean when is unknown.
- Using the wrong df. For one sample or matched pairs, df = , where is the number of individuals or pairs.
- Treating paired data as two independent samples. If each value in one group is linked to one value in the other, work with the differences.
- Leaving out the order of subtraction for , or describing the parameter as a sample statistic ("the mean of these 10 students").
- Saying the data are normal with no evidence. For , show or describe a graph of the sample data (or of the differences).