AP Statistics · Unit 4 · Topic 4.4

    4.4 Setting Up a Test for a Population Mean or Population Mean Difference

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    For a one-sample t-test, test H0:μ=μ0H_0: \mu = \mu_0 against Hₐ: μ > μ₀, μ < μ₀ or μ ≠ μ₀. For a paired t-test, test H0:μd=0H_0: \mu_d = 0 about the mean of the differences. Define the parameter in context, choose α in advance, and check random, 10% and normal/large sample (on the differences for paired data).

    What you need to know

    • Write hypotheses about a population mean, defining μ in context.
    • Write hypotheses for paired data about μ_d, stating the order of subtraction.
    • Decide whether a one-sample or paired test fits a situation.
    • Verify the conditions for a t-test.

    One-sample t-test hypotheses

    A cereal company says its boxes contain 500 g on average. A consumer group suspects the boxes are under-filled and weighs a random sample of 25 boxes.

    H0:μ=500Ha:μ<500H_0: \mu = 500 \qquad H_a: \mu < 500

    where μ is the mean weight (in grams) of all boxes of this cereal. The null value 500 comes from the company's claim. The alternative is one-sided because the group suspects under-filling; if the question asked whether the mean is different from 500, the alternative would be μ ≠ 500.

    Paired t-test hypotheses

    For the reading programme (topic 4.2), each of 12 students has a before and an after score. Work with the differences d = after − before.

    H0:μd=0Ha:μd>0H_0: \mu_d = 0 \qquad H_a: \mu_d > 0

    where μ_d is the true mean difference in vocabulary score (after − before) for students like these. H₀ says the programme makes no difference on average; Hₐ says scores go up. If you subtract the other way (before − after), the alternative flips to μ_d < 0, so always state the order.

    • Paired: two linked measurements on each individual or matched pair. Analyse the differences.
    • Two-sample (topics 4.9–4.10): two separate groups of individuals with no natural pairing.

    Conditions

    • Random: a random sample (or random assignment). For paired experiments, randomise the order of treatments where possible.
    • 10%: the sample is less than 10% of the population when sampling without replacement.
    • Normal/large sample: n ≥ 30, or the population (of differences, for paired data) is approximately normal, or a graph of the sample shows no strong skewness or outliers.

    For the cereal: 25 boxes is a random sample, less than 10% of all boxes produced, and n < 30, so we would look at a dotplot of the 25 weights. If it shows no strong skew or outliers, the t-test is reasonable.

    Choose α before looking at the data. Topic 4.5 carries the tests out, using t = (x̄ − μ₀)/(s/√n) with df = n − 1.

    Key terms

    One-sample t-test
    A test about a single population mean using t = (x̄ − μ₀)/(s/√n).
    Paired t-test
    A one-sample t-test on paired differences, testing μ_d.
    Null value μ₀
    The value of μ stated in H₀.
    μ_d
    The population mean of the paired differences.

    Common mistakes

    • H₀: x̄ = 500.

      H₀: μ = 500, about the population mean.

    • Running a two-sample test on before/after data.

      Before/after data on the same people are paired.

    • Not stating the order of subtraction for μ_d.

      Write 'd = after − before' so the direction of Hₐ is clear.

    How this topic is tested

    • Name the test: 'one-sample t-test for μ' or 'paired t-test for μ_d'.
    • Define the parameter with units and population.
    • For n < 30, refer to a graph of the data in the normal condition.

    Practice questions

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

    1. Question 1 · SP 1 · Formulate Questions

      A bakery claims its loaves average 800 g. An inspector suspects they are lighter. Which hypotheses are correct?

    2. Question 2 · SP 1 · Formulate Questions

      Which situation calls for a paired t-test?

    3. Question 3 · SP 1 · Formulate Questions

      For paired data with d = before − after, a researcher expects scores to rise after training. The alternative is:

    4. Question 4 · SP 2 · Collect Data

      A random sample of 12 values has a dotplot with one extreme outlier. What should you say about a t-test?

    5. Question 5 · SP 2 · Collect Data

      In a paired t-test, the normal/large sample condition is checked on:

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Inference (set-up) · 4 points

    A gym says new members lose weight in their first month. A random sample of 15 new members is weighed on joining and one month later.

    1. (a) State hypotheses, defining the parameter.
    2. (b) Identify the test and list what you'd check for the normal condition.

    Connected topics

    Frequently asked questions

    Is a paired test just a one-sample test?

    Yes, on the differences. The paired structure is what decides to compute differences first.

    Can μ₀ be anything?

    It comes from a claim, a standard or a previous value in the context; don't take it from the sample.

    What if the question gives raw data?

    Enter them in the calculator, get x̄ and s (or the differences' x̄_d and s_d), and show a quick graph for the normal check.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 4 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 4 cheat sheet

    Every topic in Unit 4: Inference for Quantitative Data: Means on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 4 practice test: 50 questions with explanations

    All topics in Unit 4: Inference for Quantitative Data: Means

    1. 4.1 Sampling Distributions for Sample Means
    2. 4.2 Constructing a Confidence Interval for a Population Mean or Population Mean Difference
    3. 4.3 Justifying a Claim Based on a Confidence Interval for a Population Mean or Population Mean Difference
    4. 4.4 Setting Up a Test for a Population Mean or Population Mean Difference
    5. 4.5 Carrying Out a Test for a Population Mean or Population Mean Difference
    6. 4.6 Sampling Distributions for the Difference Between Two Sample Means
    7. 4.7 Constructing a Confidence Interval for the Difference Between Two Population Means
    8. 4.8 Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Means
    9. 4.9 Setting Up a Test for the Difference Between Two Population Means
    10. 4.10 Carrying Out a Test for the Difference Between Two Population Means

    Other units in AP Statistics

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