AP Statistics · Unit 4 · Topic 4.7

Confidence Interval for a Difference in Means Study Lab

A two-sample t interval estimates μ₁ − μ₂, the difference between two population means, from two independent samples. Enter the summary statistics, pick a confidence level, and follow each step from the point estimate to the interval. Then build 50 intervals at once to see what the confidence level really promises.

1. Build a two-sample t interval

Enter the summary statistics for two independent groups and choose a confidence level. Every step of the interval is worked out below, the same way a 2-SampTInt does it.

(x̄₁ − x̄₂) ± t* · √( s₁²/n₁ + s₂²/n₂ ) estimate ± margin of error
Preset studies

Sample data

Group 1
Group 2
Confidence level

The interval dashed line at 0 = no difference

Where t* comes from

Point estimate x̄₁ − x̄₂
Standard error
df (calculator)
Interval

Show your work

Two ways to get df

What does "95% confident" mean? Make 50 intervals

Pretend the preset's sample statistics are the true population values. Draw new random samples of the same sizes, build an interval from each, and count how many capture the true difference μ₁ − μ₂.

Captures μ₁ − μ₂MissesTrue difference

2. Key ideas

Parameter

Estimating μ₁ − μ₂

The interval estimates the difference between two population means. Always define it in context: "μ₁ − μ₂ = the true difference in mean exam score (app users − non-users)."

Standard error

Use s, not σ

We rarely know σ₁ and σ₂, so we plug in the sample standard deviations. The result, √(s₁²/n₁ + s₂²/n₂), is the standard error. Using s instead of σ is why we use t* instead of z*.

Degrees of freedom

Calculator df vs. conservative df

Technology uses a formula that gives a df between the smaller n − 1 and n₁ + n₂ − 2. If you must use a table, use the smaller of n₁ − 1 and n₂ − 1. That gives a larger t* and a slightly wider, "conservative" interval.

Conditions

Random, 10%, Normal/Large

Random: two independent random samples or a randomized experiment. 10%: each sample is at most 10% of its population (when sampling). Normal/Large sample: each n ≥ 30, or the sample data show no strong skew or outliers.

Interpretation

The template

"We are C% confident that the interval from a to b captures the true difference in mean [variable] for [group 1] minus [group 2]." Say which group was subtracted from which.

Confidence level

A long-run capture rate

95% confidence means that if we repeated the sampling many times, about 95% of the intervals made this way would capture μ₁ − μ₂. It is not the probability that this one interval is right.

3. Quick reference

Critical values t* change with df. These are the values a table would give for a few df.

4. On the FRQ

How to earn the points

  • Name the procedure: "two-sample t interval for μ₁ − μ₂." Define μ₁ and μ₂ in context.
  • Check conditions with numbers: "n₁ = 32 ≥ 30 and n₂ = 30 ≥ 30," or "the dotplot of each sample shows no strong skew or outliers."
  • Do: write the formula with values plugged in, df, and the interval. "(82.4 − 78.9) ± 2.00√(7.1²/32 + 8.3²/30) = (−0.43, 7.43)."
  • Conclude with the interpretation in context and the order of subtraction.
  • Calculator-only work ("2-SampTInt") can earn credit only if you name the procedure and give the inputs and the interval.

Common mistakes

  • Using z* instead of t* for means.
  • Pooling the standard deviations. On AP Statistics, set Pooled: No.
  • Using a two-sample interval for paired data (same subjects measured twice). That calls for a one-sample t interval on the differences.
  • Interpreting the interval as covering 95% of the individual differences or of the sample data.
  • Forgetting to say which way you subtracted. A negative interval means group 2's mean is likely larger.

5. Practice questions

AP-style multiple choice. Pick an answer to see the explanation.

0 / 0 correct

6. Key terms

The vocabulary for topic 4.7. Read the list, flip through flashcards, or quiz yourself. For every term in the unit, see the Unit 4 terminology guide.