AP Statistics · Unit 4 · Topic 4.2

    4.2 Constructing a Confidence Interval 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

    A one-sample t-interval for μ is xˉ±t∗sn\bar{x} \pm t^* \frac{s}{\sqrt{n}} with df = n − 1. For paired data (two measurements on each individual, or matched pairs), compute the differences and use the same interval on them: xˉd±t∗sdn\bar{x}_d \pm t^* \frac{s_d}{\sqrt{n}}. Check random, 10% and normal/large sample (for paired data, check the differences).

    What you need to know

    • Construct a one-sample t-interval for a population mean.
    • Recognise paired data and construct a paired t-interval for a mean difference.
    • Find t* from the confidence level and degrees of freedom.
    • Verify the conditions, including the normal/large sample condition.

    One-sample t-interval: worked example

    xˉ±t∗sndf=n−1\bar{x} \pm t^* \frac{s}{\sqrt{n}} \qquad df = n - 1

    A random sample of 20 students at a large school recorded their daily screen time for a week. The mean was x̄ = 4.2 hours with s = 1.3 hours. A dotplot of the 20 values was roughly symmetric with no outliers. Construct a 95% confidence interval for the mean daily screen time of all students at the school.

    State. We want to estimate μ, the mean daily screen time of all students at the school, with 95% confidence.

    Plan. One-sample t-interval for μ. Random: random sample of students. 10%: 20 is less than 10% of the students at a large school. Normal/large sample: n = 20 < 30, but the dotplot shows no strong skewness or outliers, so a t-procedure is reasonable.

    df=19, t∗=2.093:4.2±2.0931.320=4.2±0.61⇒(3.59, 4.81)df = 19,\ t^* = 2.093: \quad 4.2 \pm 2.093\frac{1.3}{\sqrt{20}} = 4.2 \pm 0.61 \quad \Rightarrow \quad (3.59,\ 4.81)

    Conclude. We are 95% confident that the interval from 3.59 to 4.81 hours captures the true mean daily screen time of all students at the school.

    Paired data

    Data are paired when each value in one set is naturally linked to one value in the other: the same student before and after a course, twins, left and right hands. The two lists are not independent, so we analyse the differences as one sample.

    Example: 12 randomly selected students took a vocabulary test before and after a four-week reading programme. The differences (after − before) had mean x̄_d = 3.5 points and standard deviation s_d = 4.1 points, and a dotplot of the differences showed no strong skewness or outliers.

    df=11, t∗=2.201:3.5±2.2014.112=3.5±2.61⇒(0.89, 6.11)df = 11,\ t^* = 2.201: \quad 3.5 \pm 2.201\frac{4.1}{\sqrt{12}} = 3.5 \pm 2.61 \quad \Rightarrow \quad (0.89,\ 6.11)

    We are 95% confident that the interval from 0.89 to 6.11 points captures the true mean improvement (after − before) for students like these. Notice that the parameter is μ_d, the mean of the differences, and the normal check is on the differences, not on the before or after scores.

    Key terms

    One-sample t-interval
    x̄ ± t*·s/√n with df = n − 1, estimating a population mean.
    Paired data
    Two measurements linked one to one, such as before and after on the same individual.
    Mean difference μ_d
    The population mean of the paired differences.
    Paired t-interval
    A one-sample t-interval applied to the differences: x̄_d ± t*·s_d/√n.

    Common mistakes

    • Using z* = 1.96 for a mean with s.

      Use t* with n − 1 df.

    • Treating before/after data as two independent samples.

      Compute differences and use a paired procedure.

    • Checking normality on the original scores for paired data.

      Check the distribution of the differences.

    How this topic is tested

    • State df and t* explicitly.
    • For paired data, say which order you subtracted (after − before).
    • Describe the graph for the normal condition when n < 30.

    Practice questions

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

    1. Question 1 · SP 3 · Analyze Data

      A random sample of 16 has x̄ = 52 and s = 8. A 95% t-interval for μ uses t* with how many df?

    2. Question 2 · SP 3 · Analyze Data

      Using t* = 2.131 for the sample above, the 95% interval is:

    3. Question 3 · SP 2 · Collect Data

      Which study produces paired data?

    4. Question 4 · SP 2 · Collect Data

      For a paired t-interval with n = 10 pairs, what must be approximately normal (or show no strong skew/outliers)?

    5. Question 5 · SP 3 · Analyze Data

      Compared with a 95% t-interval, a 90% t-interval from the same data is:

    Free-response practice

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

    Inference (interval) · 5 points

    A nutritionist measures the sodium content (mg) of a random sample of 25 packets of a snack. The sample mean is 312 mg and the standard deviation is 18 mg. A boxplot shows no outliers and little skewness.

    1. (a) Identify the procedure and verify conditions.
    2. (b) Construct a 95% interval (df = 24, t* = 2.064).
    3. (c) Interpret the interval.

    Connected topics

    Frequently asked questions

    Why not just use z for large samples?

    With s, t is always correct; for large df, t and z are nearly equal anyway.

    What if my data have an outlier and n is small?

    Say the normal condition is not met and the t-interval may not be reliable.

    Does paired data need random assignment?

    For an experiment, randomise the order of treatments where possible; for observational pairs, a random sample of pairs.

    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.