Historical Context & Motivation
Comparing two groups is one of the most fundamental tasks in empirical research. A physician might ask whether a new drug lowers blood pressure more than an existing treatment; an educator might investigate whether a revised curriculum raises test scores relative to the traditional approach. In each scenario, the core statistical question is the same: does a meaningful difference exist between two population means, or could the observed gap be attributable to random sampling variability? The intellectual lineage behind the confidence-interval approach to this question stretches across more than a century of statistical innovation.
Against this historical backdrop, the AP Statistics curriculum asks a precise question: given a confidence interval for µ1 − µ2, how do we use that interval to justify a claim about whether the two population means are different, and in which direction? This lesson develops the conceptual framework, the mathematical machinery, and the interpretive language you need to answer confidently on exam day.
Core Principles & Definitions
Before constructing or interpreting a two-sample confidence interval, it is essential to anchor your understanding in a few foundational ideas. These principles govern when the procedure is valid, what the resulting interval means, and how you can leverage it to support or refute a claim about two populations.
Parameter of Interest: µ₁ − µ₂
Sampling Distribution & Standard Error
Confidence Level & Margin of Error
Interpreting the Interval
Conditions for Inference
Visual Explanation
A number line diagram is the most direct way to see whether a confidence interval for µ1 − µ2 supports a claim of a difference. The following diagram illustrates three scenarios that arise in practice: an interval that contains zero (inconclusive), an interval entirely above zero (evidence µ1 > µ2), and an interval entirely below zero (evidence µ1 < µ2).
The critical question is always whether the value zero is inside or outside the interval. Zero represents the null claim that the two populations share the same mean. When the interval excludes zero, every plausible value of µ₁ − µ₂ is either strictly positive or strictly negative, providing convincing evidence at the given confidence level that a real difference exists. When zero is captured, we cannot rule out the possibility that any observed sample difference is simply the product of chance.
Mathematical Framework
The two-sample t-interval for µ1 − µ2 has the familiar structure of "point estimate ± margin of error." The formulas below show how the interval is constructed and how each component contributes to the final result.
Decision Rules & Interpretation
Once the confidence interval has been constructed, the interpretive step is what earns full credit on the AP exam. The decision rule is straightforward, but the language of justification must be precise. The following table codifies the three cases and the corresponding claim each supports.
| Position of Interval Relative to 0 | Conclusion | Justification Template |
|---|---|---|
| Entire interval is positive (both endpoints > 0) | Convincing evidence that µ₁ > µ₂ | "Because the interval (L, U) lies entirely above 0, we are C% confident that µ₁ − µ₂ > 0, meaning µ₁ is greater than µ₂." |
| Entire interval is negative (both endpoints < 0) | Convincing evidence that µ₁ < µ₂ | "Because the interval (L, U) lies entirely below 0, we are C% confident that µ₁ − µ₂ < 0, meaning µ₁ is less than µ₂." |
| Interval contains 0 (one endpoint negative, one positive) | No convincing evidence of a difference | "Because the interval (L, U) contains 0, it is plausible that µ₁ − µ₂ = 0, so there is not convincing evidence that the means differ." |
Worked Example
A nutritionist wants to compare the mean daily caloric intake of adults in City A versus City B. She selects independent random samples of 35 adults from each city and records their daily caloric intake. The sample data are as follows: City A has x̄1 = 2180 kcal, s1 = 320 kcal, n1 = 35. City B has x̄2 = 2040 kcal, s2 = 280 kcal, n2 = 35. Construct a 95% confidence interval for µ1 − µ2 and determine whether there is convincing evidence that the mean caloric intakes differ.
Confidence Intervals vs. Hypothesis Tests
Students often wonder about the relationship between a confidence interval for µ₁ − µ₂ and a two-sample t-test. Both procedures use the same underlying sampling distribution and conditions, but they answer slightly different questions. Understanding their connection deepens your ability to justify claims on the AP exam, where you may be asked to draw conclusions from either output.
| Feature | Confidence Interval | Hypothesis Test |
|---|---|---|
| Output | A range of plausible values for µ₁ − µ₂ | A p-value measuring evidence against H₀: µ₁ − µ₂ = 0 |
| Decision criterion | Does the interval contain 0? | Is the p-value ≤ α? |
| Effect size information | Yes — the interval shows plausible magnitudes | Not directly — the p-value does not indicate magnitude |
| Consistency | A two-sided C% CI excludes 0 ⟺ the two-sided test rejects H₀ at α = 1 − C | A two-sided test at α rejects ⟺ the (1 − α)×100% CI excludes 0 |
| Advantage | Communicates both direction and practical significance | Familiar reject/fail-to-reject framework; useful for one-sided alternatives |
Connection to Advanced Topics
The two-sample t-interval is a gateway to several more sophisticated techniques encountered in college-level and graduate statistics courses. Understanding the logic of "does the interval capture the null value?" transfers directly to each of these extensions.
| AP Statistics (This Lesson) | Advanced Extension |
|---|---|
| Two independent samples, each with one quantitative variable | Paired t-interval (matched pairs), where the difference is computed within each pair before building a one-sample interval on the differences |
| Compare two groups' means | ANOVA and simultaneous confidence intervals (e.g., Tukey HSD) compare three or more group means while controlling the family-wise error rate |
| Welch t-interval with approximate df | Bootstrap confidence intervals that make no distributional assumption; resample with replacement to estimate the sampling distribution directly |
| Check whether 0 is in the interval (binary decision) | Equivalence testing (TOST procedure): reverse the logic and show the difference is small enough to be practically negligible |
The interpretive skill you build here—checking whether a null value falls inside or outside an interval and articulating what that implies—remains the universal reasoning pattern across all of these methods. Whether you are comparing means, proportions, regression slopes, or any other parameter, the question is always: does the interval for the relevant difference include the value specified by the null claim? Mastering this logic now positions you well for future coursework in mathematical statistics, experimental design, and applied data science.
Practice Problems
Lesson Summary
A two-sample t-interval for µ₁ − µ₂ is constructed as (x̄₁ − x̄₂) ± t* × SE, where SE = √(s₁²/n₁ + s₂²/n₂). Before computing this interval, you must verify the Random, Independent, and Normal/Large Sample conditions. The degrees of freedom are computed via the Welch–Satterthwaite approximation and used to find the critical value t*.
To justify a claim, check whether zero lies inside or outside the interval. If the entire interval is above zero, there is convincing evidence that µ₁ > µ₂. If entirely below zero, there is convincing evidence that µ₁ < µ₂. If the interval contains zero, there is not convincing evidence of a difference—but this does not prove the means are equal. Always frame conclusions in context, reference the confidence level, and connect the interval's position to your inferential claim.