Setting Up Tests for
Population Mean
Learn how to formulate null and alternative hypotheses, identify the correct test statistic, and verify conditions for a one-sample \( t \)-test on \( \mu \).
What Is a Hypothesis Test?
A hypothesis test is a formal procedure that uses sample data to evaluate a claim about a population parameter. For this unit, the parameter of interest is the population mean \( \mu \).
The Two Hypotheses
Every test begins by writing two competing statements about \( \mu \):
Why Does Setting Up Matter?
An incorrect setup leads to an entirely wrong conclusion, even if every calculation afterward is perfect. Getting the hypotheses, test statistic, and conditions right is the foundation of any valid test.
Formal Hypothesis Structure
The null hypothesis always contains an equality. The alternative hypothesis indicates the direction of the test.
Choosing the Direction of \( H_a \)
The wording of the research question tells you which alternative to use. Look for key phrases:
| Key Phrase | \( H_a \) Form | Tail |
|---|---|---|
| "is different from," "has changed" | \( \mu \neq \mu_0 \) | Two |
| "is less than," "has decreased" | \( \mu < \mu_0 \) | Left |
| "is greater than," "has increased" | \( \mu > \mu_0 \) | Right |
The Test Statistic: One-Sample \( t \)
When \( \sigma \) is unknown (which is almost always), we use the one-sample \( t \)-statistic:
\( t \)-test vs. \( z \)-test: Key Distinction
| Feature | \( z \)-test | \( t \)-test |
|---|---|---|
| \( \sigma \) known? | Yes | No (use \( s \)) |
| Distribution | Standard Normal | \( t \) with \( df = n - 1 \) |
| AP Stats usage | Rare (proportions) | Primary for means |
| Tails thicker? | No | Yes, especially small \( n \) |
The Three Conditions
Before computing the test statistic, you must verify three conditions. AP graders look for all three.
Checking the Normal Condition
The guideline depends on sample size. Smaller samples require stronger evidence of normality.
How to Set Up the Test
Example 1: Coffee Shop Wait
A coffee shop claims the average wait time is 5 minutes. A random sample of \( n = 40 \) customers has \( \bar{x} = 5.8 \) min and \( s = 2.1 \) min. Is there evidence the true mean wait is greater than 5 minutes?
Example 1: Checking Conditions
Example 2: Battery Life
A manufacturer states its batteries last 500 hours on average. A consumer group randomly selects \( n = 18 \) batteries and finds \( \bar{x} = 486 \) hours, \( s = 24 \) hours. The dotplot shows a roughly symmetric distribution with no outliers. Is there evidence the true mean is different from 500?
Example 3: Tricky Wording
A school principal believes students now sleep less than the recommended 8 hours. She surveys \( n = 50 \) randomly selected students and finds \( \bar{x} = 7.4 \) hours, \( s = 1.2 \) hours.
Common Mistakes to Avoid
Question 1 of 5
A researcher claims the mean height of a plant species is different from 30 cm. Which hypotheses are correct?
Question 2 of 5
A sample of \( n = 12 \) has a heavily right-skewed distribution with one outlier. Which condition is not met for a one-sample \( t \)-test?
Question 3 of 5
A dietitian claims the average calorie intake for a certain group is less than 2000 calories. A random sample of \( n = 35 \) gives \( \bar{x} = 1940 \) and \( s = 180 \). What is the correct test statistic formula?
Question 4 of 5
A poll surveys 200 randomly chosen residents of a city with 5,000 residents. The 10% condition requires:
Question 5 of 5
A gym advertises that its members lose an average of 10 pounds in a month. A skeptical member believes the true average loss is less than 10 pounds. What are the correct hypotheses?