AP Statistics / Unit 4: Inference for Quantitative Data: Means / Topic 4.5
NUM8ERS study notes · Topic 4.5

Carrying Out a Test for a Population Mean or Population Mean Difference

Turn a test plan into evidence. Calculate a tt-statistic, find the correct pp-value, and explain what the result tells us about a population mean or an average paired change.

2026–27 curriculum4 worked examples8 practice questionsCalculator guidance

By the end of this lesson, you should be able to:

  • Calculate a one-sample tt-statistic and its degrees of freedom.
  • Use paired differences correctly in a mean-difference test.
  • Choose the pp-value tail from the alternative hypothesis.
  • Compare pp with α\alpha and write a clear conclusion in context.

Before you start: Review the hypotheses and conditions in Topic 4.4. You will also need sample means, sample standard deviations and square roots.

First time learning this? Follow the bottle example, study the tail diagrams, then try the worked tests.

Here to revise? Review the formula and decision checklist, then attempt the practice questions before opening the solutions.

The concept in 60 seconds

A sample mean usually differs from a claimed population mean just because samples vary. A significance test asks whether the observed result is unusually far from the claim, after allowing for that variation.

The tt-statistic measures the difference in estimated standard-error units. The pp-value measures how unusual the statistic would be if the null hypothesis were true. The alternative hypothesis tells us which results count as more extreme.

The essential sequence: Check the test setup → calculate tt and df\mathrm{df} → find pp in the correct tail or tails → compare pp with α\alpha → conclude about the population in context.

For paired data, first turn each complete pair into 11 difference. Then carry out a one-sample tt-test on those differences. The sample size is the number of pairs.

Are the bottles averaging 500 mL500\,\mathrm{mL}?

A bottling company labels a production lot as averaging 500 mL500 \,\mathrm{mL} per bottle. An inspector takes an SRS of 2525 bottles from a lot of 10,00010{,}000. The sample mean is 501.2 mL501.2 \,\mathrm{mL} and the sample standard deviation is 7.5 mL7.5 \,\mathrm{mL}. The fill-volume population is approximately normal; its standard deviation is unknown.

The question is whether the lot’s mean differs from 500 mL500 \,\mathrm{mL}. Let μ\mu be the mean fill volume of all bottles in this lot. The inspector sets α=0.05\alpha =0.05 before analyzing the sample.

H0:μ=500 mLH_0:\mu=500\,\mathrm{mL}
Ha:μ≠500 mLH_a:\mu\ne500\,\mathrm{mL}

Use a one-sample tt-test. The sample is random, and 25≤0.10(10,000)=1,00025\le 0.10(10{,}000)=1{,}000 supports treating observations as approximately independent when sampling without replacement. The approximately normal population supports the tt procedure with n=25n=25.

Pause and predict: Is a sample mean 1.2 mL1.2 \,\mathrm{mL} above the claim necessarily convincing evidence? We need to compare that difference with the estimated variability of sample means, rather than judging 1.21.2 by itself.

You will find t=0.8t=0.8 and p≈0.43156p\approx 0.43156. That pp-value is much larger than 0.050.05, so this sample does not provide sufficient evidence that the lot’s population mean differs from 500 mL500 \,\mathrm{mL}.

Key ideas and notation

Null benchmark

μ0\mu_0 is the population mean specified by H0H_0. For paired differences, use μd,0\mu_{d,0}, often 00 for no average change.

Bottle example: μ0=500 mL\mu_0=500 \,\mathrm{mL}.

Sample summaries

xˉ\bar{x} and ss are the sample mean and sample SD⁡\operatorname{SD}. For differences, use dˉ\bar d and sds_d.

ss describes individual values; sn\frac{s}{\sqrt{n}} estimates variability of sample means.

tt and df\mathrm{df}

tt is the standardized test statistic. Its sign shows whether the sample mean is above or below the null benchmark.

For these one-sample procedures, df=n−1\mathrm{df}=n-1.

pp and α\alpha

pp is the calculated tail probability under the null model. α\alpha is the significance level chosen for the decision.

Compare these probabilities on the same scale: 0.050.05 means 5%5\%.

Paired mean difference

μd\mu_d is the population mean of the differences formed in a stated order. If d=before−afterd=\text{before}-\text{after}, a positive difference means the after value is lower.

Each pair supplies 11 observation to the difference sample. 22 separate groups with no matching require a different procedure; equal group sizes alone do not make data paired.

Calculate the test statistic

Start with the same idea for both procedures:

t=sample estimate−null valueestimated standard errort=\frac{\text{sample estimate}-\text{null value}}{\text{estimated standard error}}

11 population meant=xˉ−μ0s/nt=\frac{\bar x-\mu_0}{s/\sqrt n}

Estimated standard error: SE⁡=sn\operatorname{SE}=\frac{s}{\sqrt{n}}

Degrees of freedom: df=n−1\mathrm{df}=n-1

Population mean of paired differencest=dˉ−μd,0sd/nt=\frac{\bar d-\mu_{d,0}}{s_d/\sqrt n}

Estimated standard error: SE⁡=sdn\operatorname{SE}=\frac{s_d}{\sqrt{n}}

nn counts pairs; df=n−1\mathrm{df}=n-1.

Apply the formula to the bottles

  1. Estimate variability: SE⁡=7.525=1.5 mL\operatorname{SE}=\frac{7.5}{\sqrt{25}}=1.5 \,\mathrm{mL}.
  2. Find the observed difference: 501.2−500=1.2 mL501.2-500=1.2 \,\mathrm{mL}.
  3. Standardize: t=1.21.5=0.8t=\frac{1.2}{1.5}=0.8.
  4. Choose the reference distribution: df=25−1=24\mathrm{df}=25-1=24.

The sample mean is 0.80.8 estimated standard errors above the null mean. The units cancel, so tt has no measurement units.

Keep the denominator straight: Use the sample SD⁡\operatorname{SD} divided by n\sqrt{n}, not ss alone. For pairs, calculate the SD⁡\operatorname{SD} of the differences; subtracting the 22 original standard deviations does not give sds_d.

Use full precision for intermediate calculations. Round the reported tt-statistic and pp-value at the end. If s=0s=0, the usual tt formula is undefined; do not divide by 00 or force a standard test result.

Choose the correct pp-value tail

Choose the alternative from the investigative question before looking at the result. Then use that alternative to select the area under the tt curve. In the table, TT represents a statistic from the null tt distribution and tobst_{\mathrm{obs}} is the observed statistic.

The alternative determines the tail or tails
AlternativeCount as more extremepp-value
Ha:μ<μ0H_a:\mu\lt\mu_0Statistics at or below the observed tt.P(T≤tobs)P(T\le t_{\mathrm{obs}}) — left tail
Ha:μ>μ0H_a:\mu\gt\mu_0Statistics at or above the observed tt.P(T≥tobs)P(T\ge t_{\mathrm{obs}}) — right tail
Ha:μ≠μ0H_a:\mu\ne\mu_0Statistics at least as far from 00 in either direction.P(∣T∣≥∣tobs∣)=2P(T≥∣tobs∣)P(\lvert T\rvert\ge\lvert t_{\mathrm{obs}}\rvert)=2P(T\ge\lvert t_{\mathrm{obs}}\rvert)

The same tail rules apply to μd\mu_d. Remember that the meaning of “greater” or “less” depends on your difference order.

One question, one correct choice of tails
Choosing a t-test probability tail from the alternative hypothesisThree t density curves with 24 degrees of freedom. For a less-than alternative and observed t minus 2, shade left of minus 2. For greater-than and observed t 2, shade right of 2. For not-equal and t 2, shade both tails beyond minus 2 and 2. One-tail p is about 0.02847; two-tail p is about 0.05694. −4 −2 0 2 4 Standardized t statistic 0.0 0.1 0.2 0.3 0.4 Density p ≈ 0.02847 Hₐ: μ < μ₀; observed t = −2
Posted on Google Google
0000003998 : Abdad Alam Shamim Alam profile picture
0000003998 : Abdad Alam Shamim Alam
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
This is the bestest institution I have ever come to and I love it very much.
Posted on Google Google
Aliki S profile picture
Aliki S
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Ali profile picture
Ali
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Sly is him
Posted on Google Google
Jitendra Kumar Kumawat profile picture
Jitendra Kumar Kumawat
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Raahil Hasan profile picture
Raahil Hasan
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Tina Mudarres profile picture
Tina Mudarres
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
The classes are amazing and my child learnt so much
Posted on Google Google
alisha gadoya profile picture
alisha gadoya
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I have experienced a lot of good things, it has taught me so many things and from B/Cs I have gone to an A! This is wonderful and Mavish’s class is awesome.
Posted on Google Google
smasher 123 profile picture
smasher 123
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
It’s sensational my kid went. First he only would get C now it’s all A’s really good and recommend
Posted on Google Google
Mosa Al- Samaraie profile picture
Mosa Al- Samaraie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
AMAZING PRICES GREAT TEACHERS STRAIGHT FORWARD LEARNING STEADY PACE IN TUTORING
Posted on Google Google
Cael Dagnelie profile picture
Cael Dagnelie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I had a great experience learning math with Ms. Mavish. She explains complex topics in a very clear and simple way, which made it easier for me to understand and enjoy the subject. Her patience and dedication really stood out, and she always made sure that everyone in the class was keeping up. I especially appreciated how approachable she was — I never felt afraid to ask questions, and she was always willing to help. Thanks to her teaching, my confidence in math has grown a lot. I’m really thankful for the effort she puts into every lesson!

NUM8ERS is one of finest tutoring institutes in UAE, Located in Al Barsha 1, Dubai. Close to DUBAI AMERICAN ACADEMY (DAA) & AMERICAN SCHOOL OF DUBAI (ASD).