In short
A two-sample t-interval for μ₁ − μ₂ is . Use the calculator's df (2-SampTInt) or, by hand, the conservative df = smaller of n₁ − 1 and n₂ − 1. Check random (two independent samples or random assignment), 10% and normal/large sample for each group.
What you need to know
- Identify when a two-sample t-interval is appropriate (independent groups, not paired).
- Verify the conditions for both groups.
- Calculate the standard error, t* and the interval.
- Interpret the interval in context, stating the order of subtraction.
Worked example: an experiment
Forty-seven volunteer students were randomly assigned to learn a topic with Method A (worked examples) or Method B (video lessons), then took the same test. Method A: n = 25, x̄ = 78.4, s = 8.2. Method B: n = 22, x̄ = 72.9, s = 9.6. Dotplots of both groups were roughly symmetric with no outliers. Construct a 95% confidence interval for the difference in mean scores.
State. Estimate μ_A − μ_B, the difference in true mean test scores for students like these taught by Method A and Method B, with 95% confidence.
Plan. Two-sample t-interval for μ_A − μ_B. Random: students were randomly assigned to methods. Normal/large sample: both groups have n < 30, but their dotplots show no strong skewness or outliers. (The 10% condition is not needed for random assignment.)
Do. The calculator (2-SampTInt) gives df ≈ 41.6 and t ≈ 2.019, so the interval is about 0.21 to 10.79 points. With the conservative df = 21, t = 2.080 and the interval is about (0.05, 10.95), slightly wider.
Conclude. We are 95% confident that the interval from 0.21 to 10.79 points captures the true difference in mean test scores (Method A − Method B) for students like these.
Points that cost marks
- Paired or two-sample? Two separate groups of students, so two-sample. If each student had used both methods, it would be paired (topic 4.2).
- Order: 'A − B' must appear in the parameter and the conclusion.
- Normality for both groups: a small, skewed group can invalidate the interval even if the other group is fine.
- Scope: random assignment supports cause and effect, but these were volunteers, so the result applies to students like them.
Two random samples (rather than an experiment) work the same way, with the 10% condition added for each sample. For example, independent random samples of 40 commuters in City A and 35 in City B, with means 34.2 and 29.5 minutes and standard deviations 9.1 and 7.4, give a 95% interval for μ_A − μ_B of about (0.90, 8.50) minutes.
Key terms
- Two-sample t-interval
- (x̄₁ − x̄₂) ± t*·√(s₁²/n₁ + s₂²/n₂), estimating μ₁ − μ₂.
- 2-SampTInt
- The calculator routine for a two-sample t-interval (use the unpooled option).
- Independent groups
- Groups made of different individuals with no pairing between them.
- Conservative degrees of freedom
- The smaller of n₁ − 1 and n₂ − 1.
Common mistakes
Using a two-sample interval for before/after data.
Before/after on the same people is paired.
Choosing 'pooled' on the calculator.
Use the unpooled option; AP doesn't assume equal variances.
Checking normality only for the combined data.
Check each group separately.
How this topic is tested
- Show the standard error with both variance terms.
- Report df and t* together.
- Interpret with 'difference in true mean … (group 1 − group 2)'.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
s₁ = 5, n₁ = 20, s₂ = 4, n₂ = 20. The standard error of x̄₁ − x̄₂ is about:
Question 2 · SP 3 · Analyze Data
With x̄₁ − x̄₂ = 3 and conservative df = 19 (t* = 2.093), the 95% interval is about:
Question 3 · SP 1 · Formulate Questions
Which situation calls for a two-sample t-interval?
Question 4 · SP 2 · Collect Data
For a two-sample t-interval with n₁ = 15 and n₂ = 40, which normal check is needed?
Question 5 · SP 3 · Analyze Data
Using the conservative df instead of the calculator's df makes the interval:
Free-response practice
Write your answer first, then mark it against the scoring guide.
Inference (interval) · 5 points
Independent random samples of commuters: City A (n = 40) mean 34.2 min, s = 9.1; City B (n = 35) mean 29.5 min, s = 7.4.
- (a) Identify the procedure and verify conditions.
- (b) Construct a 95% interval.
- (c) Interpret the interval.
Scoring guide: one point for each of the following
Part (a)
- Two-sample t-interval for μ_A − μ_B.
- Independent random samples; each is less than 10% of its city's commuters; both n ≥ 30.
Part (b)
- SE = √(9.1²/40 + 7.4²/35) ≈ 1.91; df ≈ 72.6, t* ≈ 1.993.
- 4.7 ± 3.80 gives about (0.90, 8.50) minutes.
Part (c)
- We are 95% confident the interval from 0.90 to 8.50 minutes captures the true difference in mean commute time (City A − City B).
Connected topics
Frequently asked questions
Why is df not a whole number?
The calculator uses Welch's approximation, which gives fractional df. That's fine to report.
Can I use z for large samples?
Use t; with large df t is close to z anyway.
What if the groups have very different sizes?
The formula handles that; just check each group's conditions.