| Study Guides
AP · Inference for the Difference in Two Population Means · 14 min read · Updated 2026-05-10

Inference for the Difference in Two Population Means — AP Statistics Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: Conditions for two-sample t-inference, confidence intervals for the difference of two independent population means, two-sample t-hypothesis tests, pooled vs. unpooled variance, and distinguishing independent two-sample inference from matched pairs inference.

You should already know: Confidence intervals and hypothesis testing for a single population mean; properties of the t-distribution; basics of random sampling and experimental design.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Inference for the Difference in Two Population Means?

Inference for the difference in two population means (often called two-sample t-inference for means) is a set of statistical methods to compare the true mean values of a quantitative variable across two distinct populations. This topic makes up approximately 4-5% of the total AP Statistics exam score, as part of Unit 7 (Inference for Quantitative Data: Means), which accounts for 12-15% of total exam score. It appears regularly in both multiple-choice (MCQ) and free-response (FRQ) sections, and often forms the core of a 3-5 point FRQ question.

Standard notation is used consistently on the AP exam: and are the unknown true population means for the two groups, and are the sample means calculated from observed data, and are sample standard deviations, and , are the sample sizes for each group. We almost always focus on inference for , the true difference between the two population means. This topic only applies when the two samples are independent—meaning no observation in one group is linked to a specific observation in the other group.

2. Conditions for Two-Sample Inference

Before conducting any inference for the difference in two population means, you must verify three core conditions to ensure your sampling distribution is well-behaved and your results are valid. The three conditions are:

  1. Random: Both groups must be independent random samples from their respective populations, or come from a randomized comparative experiment with two treatment groups. This ensures the sampling distribution is unbiased.
  2. Independence: Individual observations within each sample must be independent of one another. For sampling without replacement, this means the 10% condition holds: the sample size for each group is less than 10% of the total population size.
  3. Normal/Large Sample: The sampling distribution of must be approximately normal. This is satisfied if either: (a) both sample sizes are at least 30 (by the Central Limit Theorem), or (b) for smaller sample sizes, the distribution of each sample has no extreme outliers or strong skew, so the sampling distribution of the sample mean will still be approximately normal.

AP exam questions almost always require you to name and verify each condition to earn full credit, so it is critical you do not skip this step.

Worked Example

Problem: A high school counselor wants to compare the mean number of hours students spend on extracurricular activities per week between students who live on campus and students who commute. She obtains a random sample of 27 boarding students and 32 commuter students from the school’s large student body. The distribution of weekly extracurricular hours for boarding students is approximately symmetric with no outliers; the distribution for commuters is also roughly symmetric with no outliers. Are all conditions for inference met?

  1. Random Condition: The problem explicitly states the samples are random, so the random condition is satisfied. This ensures no selection bias.
  2. Independence Condition: The school has more than boarding students and commuter students, so the 10% condition holds. Observations within each group are independent.
  3. Normal Condition: One sample size is less than 30 (), but we are told both distributions have no outliers and are approximately symmetric, so the normality condition holds. , so the Central Limit Theorem applies to the commuter sample.

All conditions for inference are met.

Exam tip: Never just write "conditions are met" on an FRQ. You must explicitly verify each condition with reference to the problem context to earn the point for each condition.

3. Confidence Intervals for (Independent Samples)

A confidence interval for the difference in two population means gives a range of plausible values for , the true difference between the two population means. The general structure of a confidence interval follows the same form as all confidence intervals: .

The point estimate for is simply , the difference between the two sample means. The standard error (the standard deviation of the sampling distribution of the point estimate) is: This formula comes from the property that the variance of the difference of two independent random variables equals the sum of their variances, which is why we add the two variance terms (never subtract them, a common mistake). This is the unpooled standard error, which is the default you will always use on the AP exam unless explicitly told to pool variances.

For degrees of freedom, AP accepts two methods: the conservative method ( which is easy to calculate by hand) or the Welch-Satterthwaite approximation used by calculators, which gives a larger df and narrower interval. Both are accepted for full credit.

The final confidence interval is: where is the critical t-value for the desired confidence level and your degrees of freedom.

Worked Example

Problem: A coffee shop owner wants to estimate the difference in mean wait time for orders between the morning and afternoon rushes. A random sample of 15 morning orders has a mean wait time of 2.8 minutes with standard deviation 0.7 minutes. A random sample of 12 afternoon orders has a mean wait time of 2.1 minutes with standard deviation 0.6 minutes. Construct a 95% confidence interval for the difference in mean wait time ().

  1. We already verified conditions are met, so proceed. The point estimate is minutes.
  2. Calculate the standard error:
  3. Degrees of freedom (conservative method) = . The critical for 95% confidence and is 2.201.
  4. Margin of error = . The confidence interval is .

We are 95% confident that the true difference in mean wait time between morning and afternoon is between 0.15 and 1.25 minutes.

Exam tip: If 0 is not in your confidence interval, that means you can reject the null hypothesis of no difference at significance level — this is a common connection tested on multi-part FRQs.

4. Hypothesis Testing for the Difference in Two Population Means

Two-sample t-tests are used to test a claim about the difference between two population means, almost always testing the null hypothesis that there is no difference between the two means (). The alternative hypothesis can be two-sided (), left-sided, or right-sided, depending on the research question.

The test statistic follows the same general form for hypothesis tests: where is the hypothesized difference from the null hypothesis, which is almost always 0. The standard error is the same as for confidence intervals, and degrees of freedom follow the same rules. We calculate the p-value (the probability of observing a difference as extreme or more extreme than our sample difference if the null hypothesis is true) and compare it to our significance level to make a conclusion.

As with confidence intervals, you always use the unpooled version of the test unless explicitly told to assume equal population variances and pool.

Worked Example

Problem: A researcher claims that adults who regularly practice meditation have a lower mean resting heart rate than adults who do not. A random sample of 35 meditators has a mean resting heart rate of 68 bpm with standard deviation 5 bpm. A random sample of 42 non-meditators has a mean of 72 bpm with standard deviation 6 bpm. Test the researcher’s claim at .

  1. Define parameters and state hypotheses: Let = mean resting heart rate for meditators, = mean for non-meditators. , , .
  2. Check conditions: Random samples stated, 10% condition holds for both populations, both and , so all conditions are met.
  3. Calculate test statistic: Point estimate = . . .
  4. Find p-value: , one-tailed p-value for is approximately 0.0015.
  5. Conclusion: Since , we reject . There is convincing evidence at the 0.05 significance level that meditating adults have a lower mean resting heart rate than non-meditating adults.

Exam tip: Always define your parameters in words when writing hypotheses for FRQs. AP exam graders require this to earn full credit for the hypotheses step.

5. Pooled vs Unpooled, and Independent vs Matched Pairs

Two key distinctions that are commonly tested on the AP exam are (1) when to use pooled vs unpooled inference, and (2) when to use two-sample independent inference vs matched pairs inference.

For pooled vs unpooled: Pooled t-procedures assume that the two populations have equal variance, which is almost never known to be true in practice. The AP exam never requires you to use pooled procedures unless explicitly told to do so. Unpooled is always the default, and you should only use pooled if the problem explicitly states that the population variances are equal and you are instructed to pool.

For independent vs matched pairs: Two-sample inference for the difference in two population means is only for independent groups, where there is no link between individual observations in the two groups. Matched pairs data occurs when observations are paired: for example, the same subject measured before and after a treatment, or pairs of subjects matched on confounding variables like age and gender, with one in each group. For matched pairs, you should not use two-sample inference—instead, you calculate the difference within each pair and do a one-sample t-procedure on the mean difference.

Worked Example

Problem: For each scenario, state whether you should use two-sample t-inference for the difference in two population means, or a matched pairs t-procedure: (a) A physical therapist measures flexibility for 20 patients before and after a 4-week stretching program, to test if the program increases flexibility. (b) A physical therapist randomly assigns 20 patients to do either the stretching program or a control program, then compares mean flexibility after 4 weeks between the two groups.

  1. For (a): Each patient has two measurements (before and after), so the two samples are dependent, linked by patient. This is matched pairs data, so we use a matched pairs t-procedure (one-sample t on the within-patient differences).
  2. For (b): The two groups (treatment and control) are independently randomly assigned, with no linkage between individual patients in the two groups. This is independent groups, so we use two-sample t-inference for the difference in two population means.

Exam tip: AP exam questions often include a distractor that looks like two-sample data but is actually matched pairs. Always check if there is a pairing structure first before choosing your procedure.

6. Common Pitfalls (and how to avoid them)

  • Wrong move: Writing the standard error as , subtracting the variances instead of adding. Why: Students confuse the difference in means with the difference in variances, forgetting that variance adds for any independent random variables. Correct move: Remember , so always add the two variance terms under the square root, double-check this step before calculating.
  • Wrong move: Using a two-sample t-procedure for matched pairs data. Why: Students default to two-sample because there are two groups, and miss the pairing structure that makes the groups dependent. Correct move: Always check first if observations are linked between groups (same subject, matched subjects) — if yes, use matched pairs, not two-sample.
  • Wrong move: Saying the normality condition is satisfied when one sample is small and skewed, just because the other sample is large. Why: Students forget that both sampling distributions need to be approximately normal, not just one. Correct move: If one sample size is below 30, explicitly confirm it has no outliers or strong skew to satisfy the normality condition.
  • Wrong move: Using z-procedures instead of t-procedures just because both sample sizes are large. Why: Students know t approximates z for large n, but forget that population standard deviations are still unknown. Correct move: Always use t-procedures for inference on means, regardless of sample size, on the AP exam.
  • Wrong move: Interpreting a confidence interval as "there is a 95% chance the true difference is between and ". Why: Students repeat a common misinterpretation of confidence intervals. Correct move: State "we are 95% confident that the true difference in population means is between and " — the confidence is in the method, not the specific interval.
  • Wrong move: Using pooled t-procedures by default. Why: Some introductory courses teach pooled first, leading students to assume it is standard. Correct move: Only use pooled if the problem explicitly tells you to assume equal population variances; otherwise, always use unpooled.

7. Practice Questions (AP Statistics Style)

Question 1 (Multiple Choice)

A sociologist studying differences in hourly wages between rural and urban workers in a region obtains independent random samples of 25 rural workers and 30 urban workers. The sample mean wage for rural workers is 2.50, and for urban workers it is 3.20. What is the standard error of the difference in sample means (urban minus rural)? A) 0.62 B) 0.76 C) 1.35 D) 2.15

Worked Solution: The standard error for the difference of two independent sample means is given by the unpooled formula , where we add the two variance terms. Plugging in , , , : . The other options come from common mistakes: A uses the wrong degrees of freedom, C subtracts the variances, D is the difference in sample means. The correct answer is B.


Question 2 (Free Response)

A bakery wants to compare the mean rise of two different brands of yeast for sourdough bread. They bake 25 loaves with brand A and 20 loaves with brand B, getting the following summary statistics for height rise (in cm):

Brand Mean Rise Standard Deviation
A 4.2 0.8
B 3.7 0.7

(a) Check all conditions for inference for the difference in mean rise between the two brands. (b) Construct and interpret a 90% confidence interval for . (c) Based on your interval, is there statistically significant evidence of a difference in mean rise at the level? Justify.

Worked Solution: (a) 1. Random: This is a randomized experiment (loaves assigned to each yeast brand), so random condition is met. 2. Independence: Loaves are baked independently, and the 10% condition is satisfied for the population of all loaves baked with each brand, so independence is met. 3. Normality: Both sample sizes are close to 20, no mention of outliers or skew, so normality is reasonable. All conditions are met.

(b) Point estimate: cm. Standard error: . Degrees of freedom = , for 90% confidence. Margin of error: . Confidence interval: . Interpretation: We are 90% confident that the true difference in mean rise between brand A and brand B yeast is between 0.11 cm and 0.89 cm.

(c) For , a 90% confidence interval that does not contain 0 means we reject the null hypothesis of no difference. Since 0 is not in the interval , there is convincing evidence at the 0.10 level that the mean rise differs between the two brands.


Question 3 (Application / Real-World Style)

An agricultural researcher tests whether a new fertilizer increases the mean yield of corn (measured in bushels per acre) compared to the standard fertilizer. She randomly assigns 30 one-acre plots to get the new fertilizer, giving a mean yield of 162 bushels per acre with standard deviation 12 bushels. She assigns 25 plots to get the standard fertilizer, giving a mean yield of 153 bushels per acre with standard deviation 10 bushels. Conduct a test at to test the claim that the new fertilizer increases mean yield, and interpret your result in context.

Worked Solution: Let = mean yield for new fertilizer, = mean yield for standard fertilizer. Hypotheses: , , . All conditions are met (random assignment, independent plots, large sample sizes). Test statistic: Point estimate = . . . , one-tailed p-value ≈ 0.0027. Since 0.0027 < 0.05, we reject . There is convincing evidence at the 0.05 significance level that the new fertilizer increases the mean corn yield per acre compared to the standard fertilizer.

8. Quick Reference Cheatsheet

Category Formula / Rule Notes
Parameter of Interest True difference between population 1 mean and population 2 mean, for independent samples
Point Estimate Unbiased estimate of the true difference
Unpooled Standard Error Default for all inference; always use unless told to pool
Confidence Interval for conservative calculation
Two-Sample t Test Statistic is almost always 0 (null of no difference)
Conditions for Inference Random, Independence, Normal/Large Sample Random: independent random samples or randomized experiment; Independence: 10% condition for sampling without replacement; Normal: both OR approx normal with no outliers
Matched Pairs vs Two-Sample Matched: dependent paired data; Two-sample: independent groups Two-sample only for independent groups; matched pairs uses one-sample t on within-pair differences
Pooled Inference Only use when explicitly required Never default to pooled; only use when told population variances are equal

9. What's Next

Inference for the difference in two independent population means is the foundation for all comparative methods for quantitative data in statistics. Most real-world experiments and observational studies compare two groups, so this is one of the most widely used inference methods in practice. Next in the AP Statistics Unit 7 syllabus, you will study inference for matched pairs means, which extends the logic of comparative inference to dependent paired data. Later, you will learn one-way ANOVA, which extends this framework to compare means across more than two populations. Mastering the conditions, standard error calculation, and context interpretation in this chapter is critical to avoiding mistakes in these more advanced topics, as well as for earning full credit on FRQs that ask for comparative inference.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →