Study Guide

Carrying Out a Test for the Difference Between Two Population Means

AP StatisticsΒ· 12 min read

1. Step 1: State Hypotheses and Define Parametersβ˜…β˜…β˜†β˜†β˜†β± 8 min

[Block type renderer not yet implemented Β· content will appear once shipped]
πŸ“˜ Definition

Two-Sample Hypothesis Notation

Null hypothesis claims no difference between the two population means; alternative hypothesis claims a non-zero difference, greater than zero, or less than zero, aligned exactly to the stated research question.

πŸ“ Worked Example

A researcher claims that 10th graders sleep more on average than 9th graders. State the correct hypotheses for this test.

  1. 1

    First define parameters explicitly:

  2. 2

    = true mean hours of sleep per night for all 10th graders, = true mean hours of sleep per night for all 9th graders

  3. 3

    Null hypothesis (no difference between population means):

  4. 4
    H0:ΞΌ1βˆ’ΞΌ2=0H_0: \mu_1 - \mu_2 = 0
  5. 5

    One-sided alternative hypothesis aligned to the researcher's claim:

  6. 6
    Ha:ΞΌ1βˆ’ΞΌ2>0H_a: \mu_1 - \mu_2 > 0

2. Step 2: Verify Inference Conditionsβ˜…β˜…β˜…β˜†β˜†β± 10 min

[Block type renderer not yet implemented Β· content will appear once shipped]
  1. Independent: Observations within each sample are independent, and the two samples are fully independent of each other. The 10% rule requires each population to be at least 10 times larger than its corresponding sample.

  2. Normal/Large Sample: For each sample, if n < 30, you must confirm no strong skewness or outliers in the sample distribution. If n β‰₯ 30, the Central Limit Theorem applies and the sampling distribution of is approximately normal.

πŸ“ Worked Example

You are comparing mean commute time for 50 urban workers and 42 suburban workers. Both samples are random. Confirm the normal condition for this test.

  1. 1

    Sample 1 (urban workers): n1 = 50 β‰₯ 30, so sampling distribution for is approximately normal by CLT.

  2. 2

    Sample 2 (suburban workers): n2 = 42 β‰₯ 30, so sampling distribution for is approximately normal by CLT.

  3. 3

    The difference of two approximately normal distributions is also approximately normal, so the normal condition is fully satisfied.

3. Step 3: Calculate Test Statistic and P-Valueβ˜…β˜…β˜…β˜…β˜†β± 12 min

[Block type renderer not yet implemented Β· content will appear once shipped]
t=(xΛ‰1βˆ’xΛ‰2)βˆ’(ΞΌ1βˆ’ΞΌ2)H0s12n1+s22n2t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)_{H_0}}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}
πŸ“ Worked Example

Sample 1: n1=25, xΜ„1=18.2, s1=3.1; Sample 2: n2=30, xΜ„2=15.7, s2=2.8. Calculate the t-statistic for a test of H0: ΞΌ1 - ΞΌ2 = 0.

  1. 1

    Plug values into the test statistic formula:

  2. 2
    t=(18.2βˆ’15.7)βˆ’03.1225+2.8230t = \frac{(18.2 - 15.7) - 0}{\sqrt{\frac{3.1^2}{25} + \frac{2.8^2}{30}}}
  3. 3

    Simplify denominator first:

  4. 4
    9.6125+7.8430=0.3844+0.2613=0.6457β‰ˆ0.8036\sqrt{\frac{9.61}{25} + \frac{7.84}{30}} = \sqrt{0.3844 + 0.2613} = \sqrt{0.6457} \approx 0.8036
  5. 5

    Final t-statistic:

  6. 6
    tβ‰ˆ2.50.8036β‰ˆ3.111t \approx \frac{2.5}{0.8036} \approx 3.111
βœ“ Quick check

Test your understanding of the calculation rules:

  1. What is the correct conservative degrees of freedom for n1=25, n2=30?

    • 24

    • 29

    • 53

    • 54

    Reveal answer
    24 β€”

    Conservative df is min(n1-1, n2-1) = min(24, 29) = 24.

4. Step 4: Make a Contextual Conclusionβ˜…β˜…β˜…β˜†β˜†β± 7 min

[Block type renderer not yet implemented Β· content will appear once shipped]
πŸ“ Worked Example

Your p-value for the earlier sleep difference test is 0.023, with Ξ± = 0.05. Write a full valid conclusion.

  1. 1
    1. Compare p-value to Ξ±: 0.023 < 0.05
  2. 2
    1. State formal decision: We reject the null hypothesis.
  3. 3
    1. Link to full context: There is convincing evidence that the true mean hours of sleep for 10th graders is greater than the true mean hours of sleep for 9th graders.

5. Common Pitfalls

Wrong move:

Using a pooled two-sample t-test by default

Why:

AP graders deduct points for pooled tests unless the problem explicitly states population variances are equal

Correct move:

Always use unpooled Welch's t-test for all two-sample mean inference on the AP exam.

Wrong move:

Combining n1 and n2 to check the n β‰₯ 30 normal condition

Why:

CLT applies to each individual sampling distribution, not the combined sample

Correct move:

Verify the normal/large sample condition separately for each of the two groups.

Wrong move:

Writing a conclusion that refers to the sample difference instead of the population difference

Why:

Hypothesis tests make claims about population parameters, not observed sample results

Correct move:

Explicitly reference 'true population mean' in every part of your conclusion.

Wrong move:

Using a paired t-test for two independent samples

Why:

Paired tests are for matched observations, not separate independent groups

Correct move:

Confirm the two samples are independent before selecting a two-sample t-test.

Wrong move:

Stating that you 'accept the null hypothesis' when the p-value is large

Why:

We never have evidence to prove the null is 100% true, only that we cannot reject it

Correct move:

Use the exact phrasing 'fail to reject the null hypothesis' for non-significant results.

6. Quick Reference Cheatsheet

Component

Formula / Requirement

Hypotheses

,

Conditions

Random, Independent (10% rule), Normal (nβ‰₯30 or no outliers)

t-statistic

Conservative df

Conclusion Structure

P-value < Ξ± β†’ Reject H0, state context conclusion

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 Β· FRQ 2

    Two-sample t-test for test score difference

  • 2022 Β· MCQ Set 7

    Identify correct p-value for two-sample test

  • 2021 Β· FRQ 3

    Verify conditions for two-sample t-test

What's Next

Mastering the full workflow for two-sample t-tests is one of the highest-weight skills on the AP Statistics free response section, as it appears in nearly every other exam administration. You will next extend this logic to scenarios where you are comparing the difference between two population proportions, rather than quantitative means, and learn to identify which type of inference test is appropriate for any given prompt. This skill will also help you earn full credit on the investigative task FRQ that makes up 25% of your total exam score.