AP Statistics · Unit 4 · Inference for Quantitative Data: Means
4.4 Setting up a test for a mean or mean difference
State null and alternative hypotheses for a mean, check the conditions for a t test, and choose and calculate the correct test statistic.
1/5A hypothesis test starts with two competing claims about the mean
- A hypothesis test starts with two competing claims about the mean
- The wording of the question sets the direction of the alternative
- A test for a mean uses the same three conditions as an interval
- The t statistic counts standard errors from the claimed mean
- A complete setup names the parameter, hypotheses, conditions, and statistic
- Check your recall
- Practice: 10 questions
Part 1 of 5: A hypothesis test starts with two competing claims about the mean
A café says customers wait 5 minutes on average. You suspect the wait is longer. A hypothesis test uses sample data to judge a claim like this.
The null hypothesis, , is the claim assumed true at the start. For one mean it says , where is the claimed value.
The alternative hypothesis, , is what the data might support instead. It says the mean is greater than, less than, or different from .
Key terms · tap one for its definition
null hypothesis
The null hypothesis is the claim about a parameter, written , that is assumed true when a test begins.
alternative hypothesis
The alternative hypothesis is the competing claim about a parameter, written , that the sample data may support.
Part 2 of 5: The wording of the question sets the direction of the alternative
Next, decide which form of fits the situation. Read the research question, not the data.
Question wording and the matching alternative hypothesis
- Question wording
- Is the mean greater than the claim?
- Alternative
- Name
- one-sided
- Question wording
- Is the mean less than the claim?
- Alternative
- Name
- one-sided
- Question wording
- Is the mean different from the claim?
- Alternative
- Name
- two-sided
A one-sided alternative looks for a change in one direction only. A two-sided alternative allows a change in either direction.
Choose the form before looking at the data, because the data should not decide the question. Define in words, such as the true mean wait time of all customers. A two-sided alternative is the safe choice when the question names no direction.
Key terms · tap one for its definition
one-sided alternative
A one-sided alternative is a hypothesis stating that the mean is only greater than, or only less than, the null value.
two-sided alternative
A two-sided alternative is a hypothesis stating that the mean differs from the null value, in either direction.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 3 of 5: A test for a mean uses the same three conditions as an interval
Before computing anything, check that the model fits. The conditions match those used for an interval.
- Random: the data come from a random sample or a randomized experiment.
- Independent: sampling without replacement uses at most 10% of the population, so , where is the population size.
- Normal: the population is Normal, , or the sample data show no strong skew or outliers.
For paired data, find one difference per pair, then test the mean of the differences. The null hypothesis is usually , where is the population mean difference.
Part 4 of 5: The t statistic counts standard errors from the claimed mean
With the conditions checked, measure how far the sample result sits from the claim. A raw difference such as 1.8 hours is hard to judge by itself. A test statistic converts that distance into standard errors.
When is unknown, which is almost always, use . The denominator is the standard error, the estimated standard deviation of .
The statistic follows a t-distribution, a bell-shaped model with heavier tails than the Normal model. Its degrees of freedom are . A z statistic is only for the rare case where is known. The sign of shows the direction: it is negative when falls below .
Key terms · tap one for its definition
test statistic
A test statistic is a value calculated from sample data that measures how far the data fall from the null hypothesis, in standard errors.
t-distribution
A t-distribution is a symmetric, bell-shaped distribution with heavier tails than the Normal model, determined by its degrees of freedom.
degrees of freedom
The degrees of freedom for a one-sample t procedure are , which set the shape of the t-distribution.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 5: A complete setup names the parameter, hypotheses, conditions, and statistic
Now combine the pieces into one setup. Also choose a significance level, , before seeing any data, so the result cannot influence your standard. A common choice is . A complete setup has four parts.
- Parameter: define in words and context.
- Hypotheses: write and in symbols.
- Conditions: verify each one with numbers from the problem.
- Statistic: state and its degrees of freedom.
Worked example
Set up a test for a mean
- Parameter: let be the true mean battery life, in hours, of all the company’s batteries.
- Hypotheses: and .
- Conditions: the sample is random, 25 is under 10% of a very large run, and the data show no strong skew or outliers.
- Statistic: .
- Calculate: , with .
Answer: , , and with 24 degrees of freedom.
This statistic is the starting point for judging how unusual the sample is. A value far from 0 suggests the sample mean is far from the claim, measured in standard errors.
Key term
significance level
The significance level is the cutoff, chosen before seeing the data, for how unlikely results must be under to reject it.
Check your recall[13 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Identify[3 marks]
A café claims its mean wait time is 5 minutes. A customer believes it is longer. Identify appropriate hypotheses, defining the parameter.
Show mark schemeHide mark scheme
Model answer
Let be the true mean wait time, in minutes, for all customers. and .
- 1 mark for defining as the true mean wait time of all customers
- 1 mark for writing
- 1 mark for writing
- 2.Identify[3 marks]
Identify the three conditions to check before a one-sample t test for a mean.
Show mark schemeHide mark scheme
Model answer
The data must come from a random sample or randomized experiment. The sample must be at most 10% of the population when sampling without replacement. The population must be Normal, , or the sample data must show no strong skew or outliers.
- 1 mark for identifying the random condition
- 1 mark for identifying the 10% condition
- 1 mark for identifying the Normal condition
- 3.Calculate[3 marks]
Calculate the test statistic for when , , and .
Show mark schemeHide mark scheme
Model answer
.
- 1 mark for using
- 1 mark for finding a standard error of 0.68
- 1 mark for obtaining
- 4.Determine[2 marks]
Determine the degrees of freedom for a test with , and give one reason a t-distribution is used rather than the Normal model.
Show mark schemeHide mark scheme
Model answer
. A t-distribution is used because is unknown and is estimated by .
- 1 mark for giving
- 1 mark for stating that is unknown and estimated by
- 5.Explain[2 marks]
Explain why hypotheses are written about rather than .
Show mark schemeHide mark scheme
Model answer
Hypotheses are claims about a population parameter. The sample mean is already known from the data, so there is nothing to claim or test about it.
- 1 mark for stating that hypotheses are about a population parameter
- 1 mark for explaining that is known from the sample

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation