AP Statistics · Unit 4 · Topic 4.5

    4.5 Carrying Out 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

    The test statistic is t=xˉ−μ0s/nt = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}} with df = n − 1 (for paired data use x̄_d, s_d and μ₀ = 0). The p-value is the area beyond t in the direction of Hₐ under the t-distribution. Compare with α and conclude in context, using State, Plan, Do, Conclude.

    What you need to know

    • Calculate the t test statistic for a one-sample or paired t-test.
    • Find the p-value from a t-distribution with n − 1 df.
    • Carry out a complete t-test and conclude in context.
    • Connect a two-sided t-test with a confidence interval.

    One-sample t-test: worked example

    Last year, students at a school averaged 3.8 hours of screen time a day. This year a random sample of 20 students has x̄ = 4.2 hours and s = 1.3 hours, with a roughly symmetric dotplot. Is there convincing evidence that the mean screen time has increased? Use α = 0.05.

    State. H₀: μ = 3.8; Hₐ: μ > 3.8, where μ is the mean daily screen time of all students at the school this year. α = 0.05.

    Plan. One-sample t-test for μ. Random sample; 20 is less than 10% of the students; n < 30 but the dotplot shows no strong skew or outliers.

    t=4.2−3.81.3/20≈1.38,df=19,p-value=P(t19≥1.38)≈0.092t = \frac{4.2 - 3.8}{1.3/\sqrt{20}} \approx 1.38, \quad df = 19, \quad \text{p-value} = P(t_{19} \geq 1.38) \approx 0.092

    Conclude. Because 0.092 > 0.05, we fail to reject H₀. There is not convincing evidence that the mean daily screen time of all students at the school has increased above 3.8 hours.

    The sample mean was higher than 3.8, but with only 20 students and a standard deviation of 1.3 hours, a difference of 0.4 hours could easily happen by chance. A larger sample would give the test more power to detect an increase of this size if it is real.

    Paired t-test: worked example

    The reading programme: 12 randomly selected students, differences d = after − before with x̄_d = 3.5 and s_d = 4.1 points; the dotplot of differences shows no strong skew or outliers. Test H₀: μ_d = 0 against Hₐ: μ_d > 0 at α = 0.05.

    t=3.5−04.1/12≈2.96,df=11,p-value≈0.0065t = \frac{3.5 - 0}{4.1/\sqrt{12}} \approx 2.96, \quad df = 11, \quad \text{p-value} \approx 0.0065

    Because 0.0065 < 0.05, we reject H₀. There is convincing evidence that the mean vocabulary score increases (after − before) for students like these. As in topic 4.3, without a comparison group we cannot say the programme itself caused the gain.

    Key terms

    t statistic
    (x̄ − μ₀)/(s/√n), the number of standard errors x̄ lies from μ₀.
    p-value (t-test)
    Area beyond t in the direction of Hₐ under the t-distribution with n − 1 df.
    T-Test
    Calculator routine for one-sample and paired t-tests.
    Power
    The probability of detecting a real difference; larger n increases it.

    Common mistakes

    • Using the normal distribution for the p-value.

      Use the t-distribution with n − 1 df.

    • Concluding the mean 'has not increased'.

      Say there is not convincing evidence it has increased.

    • For paired data, dividing by the before or after standard deviation.

      Use s_d, the standard deviation of the differences.

    How this topic is tested

    • Write t, df and the p-value together.
    • Link the decision to α in a 'because' sentence.
    • End with a conclusion about the parameter in context.

    Practice questions

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

    1. Question 1 · SP 3 · Analyze Data

      x̄ = 103, s = 12, n = 36, μ₀ = 100. The t statistic is:

    2. Question 2 · SP 3 · Analyze Data

      A one-sided t-test (Hₐ: μ > μ₀) gives t = 2.10 with df = 24. The p-value is closest to:

    3. Question 3 · SP 4 · Interpret Results

      A paired t-test of μ_d = 0 gives p-value 0.31. Which conclusion is correct?

    4. Question 4 · SP 4 · Interpret Results

      A 95% t-interval for μ is (48.2, 53.6). A two-sided test of H₀: μ = 55 at α = 0.05 would:

    5. Question 5 · SP 4 · Interpret Results

      Why can a sample mean above μ₀ still give a non-significant result?

    Free-response practice

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

    Inference (full test) · 5 points

    A snack maker states that packets contain 300 mg of sodium on average. A random sample of 25 packets has mean 312 mg and standard deviation 18 mg; a boxplot shows no outliers. Is there convincing evidence the mean is greater than 300 mg? Use α = 0.05.

    1. (a) State hypotheses and check conditions.
    2. (b) Calculate t and the p-value.
    3. (c) Conclude in context.

    Connected topics

    Frequently asked questions

    What if df isn't in the t-table?

    Use the calculator, or the next smaller df in the table, which is conservative.

    Do I have to show the formula?

    It's the safest way to earn credit if the calculator entry is wrong; show it with numbers substituted.

    Can a t-test be two-sided?

    Yes. Double the one-tail area beyond |t|.

    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.