Setting Up a Test for a Population Mean or Population Mean Difference
Turn a question about an average into a clear test plan. Define the population mean, write the hypotheses, choose a one-sample -test, and check the conditions before calculating.
By the end of this lesson, you should be able to:
- Choose a one-sample -test for mean or a mean paired difference.
- Define the parameter in context and write null and alternative hypotheses.
- Translate “lower,” “higher” or “different” into the correct alternative.
- Justify the relevant randomization, and sample-data conditions.
Before you start: Review population means, sample , paired differences and the role of a null hypothesis.
First time learning this? Follow the bottle investigation, then work through the paired example.
Here to revise? Use the setup checklist, then attempt the practice questions before revealing solutions.
The concept in 60 seconds
Setting up a test means deciding what to test and why the method is appropriate. For quantitative measurements from population with unknown population , use a one-sample -test for a population mean.
For matched pairs, calculate a difference within each pair. Those differences form sample, so use a one-sample -test for the population mean difference.
mean: . Choose , or to match the investigative question.
Paired mean difference: Define in a stated order. For no average difference, write . Choose the alternative using that same order.
The hypotheses concern population parameters, not the observed sample mean. The sample is the evidence you will use to investigate the hypotheses; it is not the hypothesis itself.
This lesson builds the setup. Topic 4.5 develops the test statistic, -value and final conclusion.
A bottle-filling investigation
Fictional teaching investigation: A team asks whether the mean fill volume of bottles in a particular lot differs from . It selects an SRS of bottles without replacement from a lot of . The sample mean is and the sample is . Previous process information supports an approximately normal population model. The population is unknown.
The target is , the mean fill volume of all bottles in this lot. Because the question says “differs,” a change in either direction matters:
The method is a one-sample -test for a population mean. The sample average of does not change the hypotheses to a greater-than alternative. Direction comes from the question, before using the sample result to select it.
Pause and predict: Would a question about underfilling use the same alternative? What would change if the question specifically asked whether the mean is below ?
Reveal the reasoning
The null stays . For evidence of underfilling, use . The sample mean being above does not justify switching to a different question after seeing the data.
Key ideas and notation
and
is the unknown population mean. is the benchmark mean specified under the null hypothesis.
For the bottles, . The benchmark comes from the claim, not from .
, and
The sample mean, sample and sample size. These are observed summaries that later enter the test calculation.
, and . Sample does not make population known.
: the null hypothesis
The reference claim used to build the test model. For this AP one-sample setup, write equality to a specified population mean.
. It does not say that every bottle contains exactly .
: the alternative hypothesis
The population-level pattern the investigation seeks evidence for: less than, greater than or different from the benchmark.
is two-sided. is one-sided.
, and
The population mean, sample mean and sample of paired differences. Define before choosing the alternative.
For time, corresponds to lower after times on average.
Degrees of freedom
For a one-sample procedure, . In a paired test, is the number of differences, which equals the number of complete pairs.
students measured supply differences, so .
Choose the test and parameter
First decide whether you are studying a quantitative measurement or a categorical outcome. Then decide whether the observations form sample, paired measurements or independent groups.
Compare a population mean with a benchmark. Unknown → one-sample -test.
Subtract within each pair, then test the population mean of that difference list.
Independent groups or a proportion need a different procedure.
measurements do not automatically mean independent samples. The relationship between observations determines whether a paired analysis is appropriate.
Define a parameter in a full sentence: “ is the mean fill volume, in mL, of all bottles in this lot.” Include the mean, response measurement and target population.
For pairs: “ is the mean before-minus-after completion-time difference, in minutes, for students in this academy performing these comparable tasks.” Include the order of subtraction.
Keep methods distinct: A one-sample -test answers a mean question when is unknown. A proportion test answers a question about the fraction with a categorical outcome. A two-sample mean test handles independent groups; it is developed later in Unit 4.
Large does not require switching an unknown- mean test to . A procedure still uses to estimate the unknown population . If were genuinely known, a different setup would be relevant; this topic focuses on unknown .
Write the hypotheses
State the null as . Translate the research question into one of the listed alternatives:
| Question wording | Alternative | Direction |
|---|---|---|
| Lower, less, below, under | One-sided, lower direction | |
| Higher, more, above, exceeds | One-sided, upper direction | |
| Different, changed, not equal | Two-sided, either direction |