This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
6m left·0%
Reading Time: 6 min
Last Updated: March 26, 2026
Main Ideas: 4
Reading Time: 6 min
Last Updated: March 26, 2026
Main Ideas: 4

Topic 7.8 Notes – Setting Up a Test for the Difference of Two Population Means

Read aloud
Topic 7.8 is about how to set up a significance test for the difference between two population means. You are not calculating the test statistic yet. You are identifying the correct procedure, writing the hypotheses properly, and verifying that the conditions for inference are met. This is the foundation for everything that comes next in two-sample inference.

Choosing the Correct Test

We are comparing two population means. That immediately tells you a few things.

  • The variable must be quantitative (heights, times, scores, weights, etc.).
  • There are two independent groups.
  • The parameter of interest is μ1−μ2\mu_1 - \mu_2

Because the population standard deviations are unknown, we use the t-distribution.

The correct name on the AP exam:

Two-sample t-test for a difference in two population means

If you see:

  • Two separate random samples → likely two-sample t-test
  • Random assignment to two treatments → also two-sample t-test
  • Same individuals measured twice → that is paired t-test, not this topic

Independence between the two groups is essential. If the data are matched (like before/after on the same people), stop. That is a different procedure.

Writing Hypotheses for μ₁ − μ₂

Everything revolves around the difference in population means.

Always define your parameters in context first. For example:

  • μ1 \mu_1 = true mean recovery time for patients given Drug A
  • μ2 \mu_2 = true mean recovery time for patients given Drug B

Now write hypotheses about μ, not about sample means.

Null Hypothesis

The null always states equality.

H0:μ1−μ2=0H_0: \mu_1 - \mu_2 = 0

This is equivalent to writing:

H0:μ1=μ2H_0: \mu_1 = \mu_2

On the AP exam, writing it as a difference (μ₁ − μ₂ = 0) helps keep your work consistent with the test statistic later.

Alternative Hypothesis

This depends entirely on the research question.

  • Two-sided (different)
    Ha:μ1−μ2≠0H_a: \mu_1 - \mu_2 \ne 0
  • Right-tailed (group 1 larger)
    Ha:μ1−μ2>0H_a: \mu_1 - \mu_2 > 0
  • Left-tailed (group 1 smaller)
    Ha:μ1−μ2<0H_a: \mu_1 - \mu_2 < 0

Match the direction to the wording. If the question says “is there a difference,” use ≠. If it says “is Group 1 higher,” use >.

Common mistakes that cost points:

  • Using xˉ \bar{x} instead of μ \mu
  • Forgetting to define μ₁ and μ₂
  • Choosing a one-sided test when the question asks “different”

Conditions for a Two-Sample t-Test

Before doing inference, you must check that it is appropriate to use a t-model. There are two big ideas: independence and approximately normal sampling distribution.

1. Independence

We need independence within each sample and between samples.

Within each group:

  • Data should come from a random sample, or treatments were randomly assigned.
  • If sampling without replacement, check the 10% condition:
    • n1≤0.10N1 n_1 \le 0.10N_1
    • n2≤0.10N2 n_2 \le 0.10N_2

Between groups:

  • The two samples must be independent of each other.
  • No pairing, no matching.

If it’s a randomized experiment, you can discuss cause and effect later. If it’s only random sampling, you can generalize to the population but not claim causation.

2. Nearly Normal Condition

The sampling distribution of xˉ1−xˉ2 \bar{x}_1 - \bar{x}_2 should be approximately normal.

That happens if:

  • Both sample sizes are at least 30, or
  • For smaller samples, both distributions show:
    • No strong skewness
    • No outliers

You must check this for each sample separately.

For small samples, the shape really matters. Compare the two dotplots below.

Small-sample distributions: acceptable vs. not acceptable for a t-test

On the left, the distribution is roughly symmetric with no outliers, so a t-test is reasonable even with n=12 n = 12 . On the right, there is strong right skew and an extreme outlier. With a small sample size, that violates the Nearly Normal condition.

If one group is heavily skewed with an outlier and n is small, the t-test is not appropriate.

What You Should Be Able to Do on a Quiz

Given a scenario, you should be able to:

  1. Identify that the variable is quantitative.
  2. Recognize two independent groups.
  3. State the parameter μ1−μ2 \mu_1 - \mu_2 in context.
  4. Write correct null and alternative hypotheses.
  5. Check Random, 10%, and Nearly Normal conditions clearly and in context.

On free-response, vague statements like “conditions are met” earn zero credit. You must tie each condition to the actual study described.

Key Takeaways

The parameter is always μ1−μ2 \mu_1 - \mu_2 , not a sample difference.
The null hypothesis for this test is always μ1−μ2=0 \mu_1 - \mu_2 = 0 .
Use a two-sample t-test only when the response variable is quantitative and the groups are independent.
Check independence and the nearly normal condition for both samples.
If the same subjects are measured twice, this is not a two-sample test.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining