# Confidence Intervals for the Difference of Two Population Means Course: AP® Statistics › Unit 4: Inference for Quantitative Data: Means › 4.7 Constructing a Confidence Interval for the Difference Between Two Population Means ([course hub](https://www.albert.io/blog/category/test-prep/advanced-placement/ap-statistics.md)) Source: https://www.albert.io/blog/ap-statistics-confidence-interval-difference-two-means/ · Updated November 16, 2026 You've estimated a single mean with a confidence interval. Now you're comparing two groups: is the average sleep different between college and high school students? Does one training program produce higher average scores? A two-sample t-interval estimates μ₁ − μ₂ — the true difference between two population means. Same framework, two sets of data, one powerful comparison. ## The Formula at a Glance A confidence interval for μ₁ − μ₂ follows the same structure as every other CI: point estimate ± margin of error. ![What 95% confidence means: about 95% of intervals from repeated samples capture the parameter.](https://www.albert.io/blog/wp-content/uploads/2026/11/confidence-intervals-capture-rate.png) What 95% confidence means: about 95% of intervals from repeated samples capture the parameter. **(̄x₁ − ̄x₂) ± t* · √(s₁²/n₁ + s₂²/n₂)** | Component | Meaning | Notes | | --- | --- | --- | | ̄x₁ − ̄x₂ | Point estimate of the difference | Order matters — keep it consistent | | t* | Critical value from t-distribution | Depends on confidence level and df | | s₁²/n₁ + s₂²/n₂ | Combined variance from both samples | Variances add (samples are independent) | | df | Degrees of freedom | Use min(n₁−1, n₂−1) by hand; calculator gives Welch's approximation | **Why t* and not z*?** You're estimating two unknown population standard deviations from sample data. That extra uncertainty calls for the t-distribution, just like one-sample t-intervals for means. ## Checking Conditions (RIN) Same three conditions as always — check all three, state them explicitly. ![The sampling distribution of a difference: means subtract and variances add.](https://www.albert.io/blog/wp-content/uploads/2026/11/sampling-distribution-difference.png) The sampling distribution of a difference: means subtract and variances add. **R — Random:** Both samples must be random (or randomly assigned in an experiment). Quote the problem's randomness language directly. **I — Independent (10% Rule):** The two samples must be independent of each other (not matched pairs). Each sample must also be ≤ 10% of its own population. State both: "The two groups are independent, and each sample is less than 10% of its respective population." **N — Normal:** Two acceptable pathways: • n₁ ≥ 30 AND n₂ ≥ 30: CLT guarantees approximate normality — state this. • Small samples (either n < 30): Check for severe skewness or outliers in the data. If the data look roughly symmetric with no extreme outliers, the t-procedure is appropriate. ## Degrees of Freedom Two options for df — know which to use when: | Method | Formula | When to Use | | --- | --- | --- | | Conservative (by hand) | df = min(n₁−1, n₂−1) | Free response without calculator, or when asked to specify df | | Welch's approximation | Complex formula — calculator computes this | Always use when running 2-SampTInt on calculator | The conservative method uses a slightly larger t* (wider interval, more conservative). The calculator gives the more precise df. Either is acceptable on AP free-response — if using the calculator, state "df = [calculator output]." ## Worked Example Researchers randomly sampled 40 college students (̄x₁ = 6.8 hrs, s₁ = 1.2 hrs) and 35 high school students (̄x₂ = 7.9 hrs, s₂ = 0.9 hrs). Construct a 95% CI for the difference in mean sleep time. **Conditions:** Random: Both samples randomly selected ✓ Independence: Separate, unrelated groups; each sample < 10% of its population ✓ Normal: n₁ = 40 ≥ 30 and n₂ = 35 ≥ 30 → CLT applies ✓ **df (conservative):** min(40−1, 35−1) = min(39, 34) = 34. For 95% CI: t* ≈ 2.032 **Standard error:** SE = √(1.2²/40 + 0.9²/35) = √(0.0360 + 0.0231) = √0.0591 ≈ 0.2431 **Margin of error:** ME = 2.032 × 0.2431 ≈ 0.494 **Interval:** (6.8 − 7.9) ± 0.494 = −1.1 ± 0.494 = (−1.594, −0.606) **Interpretation:** "We are 95% confident that college students sleep, on average, between 0.606 and 1.594 fewer hours per night than high school students." Because the interval is entirely negative, there is convincing evidence that college students sleep less than high school students on average. ## Common Mistakes | Mistake | What to Do Instead | | --- | --- | | Using z* instead of t* | Population σ is unknown → always use t for means CIs | | Forgetting to take the square root of the sum | The SE = √(s₁²/n₁ + s₂²/n₂) — square root the whole thing | | Using df = n₁ + n₂ − 2 | That's for pooled variance (not recommended for AP); use min(n₁−1, n₂−1) | | Treating this as a matched-pairs problem | Matched pairs → one-sample t on differences. Two independent groups → two-sample t | | Omitting context from the interpretation | Always name the variables and groups: "college students sleep... fewer hours than high school students" | ## Two-Sample t vs. Matched Pairs: How to Tell The AP exam frequently presents both designs. The distinction determines which procedure to use. ![t-distributions have heavier tails than the normal and approach it as degrees of freedom grow.](https://www.albert.io/blog/wp-content/uploads/2026/11/t-distributions-vs-normal.png) t-distributions have heavier tails than the normal and approach it as degrees of freedom grow. | | Two-Sample t-Interval | Matched Pairs t-Interval | | --- | --- | --- | | **Design** | Two separate, independent groups | Each subject measured twice (before/after) OR paired subjects | | **Data** | Two separate lists of values | One list of differences (after − before) | | **Procedure** | Two-sample t-interval on (̄x₁ − ̄x₂) | One-sample t-interval on d̄ | | **Signal phrases** | "Two groups," "separate samples," "independent" | "Before and after," "same subjects," "paired" | ## Test-Taking Strategies **Use your calculator — 2-SampTInt is faster and more precise.** Input both sets of summary statistics (̄x, s, n for each group), set your confidence level, and the calculator handles the df automatically via Welch's approximation. Just remember to state your conditions and interpret the result in context — the calculator doesn't do that for you. **Conservative df by hand: min(n₁−1, n₂−1).** Memorize this. When a free-response problem requires you to show work or compute df manually, this is your go-to. It always produces a valid (slightly conservative) result, and the AP exam accepts it. **Interpret using the interval endpoints, not just "there is a difference."** "We are 95% confident that Group 1's mean is between [lower] and [upper] units [higher/lower] than Group 2's mean." If both endpoints are the same sign, state which group is higher. If the interval contains zero, say "insufficient evidence of a difference." **Check for matched pairs before calculating.** Ask: "Is each person measured twice, or are these two completely separate groups?" If there are pairs, you need one-sample t on the differences — not this procedure. This question comes up almost every year on the AP exam. **Time allocation on free response.** Conditions: 2 minutes. Calculation: 2−3 minutes. Interpretation: 1 minute. If you're using your calculator for the full interval, you can compress the calculation step significantly. Don't skip writing the formula — AP rubrics often require seeing your setup, not just the final answer. ## Check for Understanding Think you've got it? Complete the quiz below to make sure. Download your results at the end. Previous topic: [4.6 Sampling Distributions for the Difference Between Two Sample Means](https://www.albert.io/blog/ap-statistics-sampling-distributions-for-differences-in-sample-means.md) Next topic: [4.8 Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Means](https://www.albert.io/blog/ap-statistics-justifying-claim-difference-means-ci.md)