Unit 4 · Topic 4.4 · about 20 minutes
AP Statistics 4.4: Setting Up a Test for a Population Mean or Population Mean Difference
Turn a question about a population mean or a paired mean difference into a t-test setup that names the test, the parameter, the hypotheses and the conditions.
Unit 4: 10 to 20% of the multiple-choice section
What you'll be able to do
- Identify the one-sample t-test for a population mean or population mean difference when the population standard deviation is unknown, and define its parameter.
- Write the null and alternative hypotheses for a population mean or population mean difference.
- Verify the conditions that justify a t-test for a population mean or population mean difference.
Key vocabulary
| Term | What it means | The exam trap |
|---|---|---|
| One-sample t-test for a population mean | The test for a claim about when is unknown, with . | A large sample does not turn it into a z-test, because is still unknown and is still standing in for it. |
| One-sample t-test for a population mean difference | The test for matched pairs, run on one sample of differences with . | Reducing each pair to 'better or worse' and testing a proportion throws away the size of every change. |
| Null value | The value in : from the claim being tested, or 0 for a mean difference. | For matched pairs it is 0, not the mean of either list of measurements. |
| Sample data condition | The population is approximately normal, or , or, if , the sample data (the differences, for pairs) show no strong skewness and no outliers. | A belief that a variable is usually skewed does not override the data: a symmetric dotplot with no outliers meets it. |
| 10 percent condition | When sampling without replacement, . | Random selection does not cover it: 12 students chosen at random from a club of 95 still fail, because 10 percent of 95 is 9.5. |
Predict first
A juice company fills bottles labeled 500 mL. A consumer group suspects the bottles are underfilled on average and plans to measure a random sample of them. Which pair of hypotheses fits the group's question?
Which test, for which parameter
When a question asks whether data give convincing evidence about a population mean, and the population standard deviation is unknown, the test is the one-sample t-test for a population mean. In practice is almost never known.
When the data come in matched pairs, such as the same people measured twice or each subject trying both treatments, find the difference within each pair and use the one-sample t-test for a population mean difference. The mechanics are the same; you just run them on one sample of differences.
Define the parameter in words before you write any symbols. The definition names the population, the response variable and the context: " = the mean volume, in mL, of all bottles filled by the company." For paired data, add the order of subtraction: " = the mean of (after minus before) resting heart rate, in beats per minute, for all members of the gym."
| The question asks whether the mean is | One sample | Matched pairs |
|---|---|---|
| less than a value | , | , |
| greater than a value | , | , |
| different from a value | , | , |
Here is the value from the claim being tested, such as 500 mL. For matched pairs the null value is 0, which says the two treatments (or the before and after measurements) give the same results on average.
The direction of the alternative comes from the question, and you choose it before looking at the data. If the question says "changed" or "differs", use . A one-sided alternative needs a reason in the question, such as a suspicion of underfilling. With pairs, the direction also depends on your order of subtraction: if after minus before is negative when a program works, then .
The conditions
The conditions are the same three as for the interval in Topic 4.2:
- Randomization condition: the data come from a random sample or a randomized experiment.
- 10% condition: when sampling without replacement, .
- Sample data condition: the population distribution is approximately normal, or , or, if , the sample data are free from strong skewness and outliers.
With matched pairs, all three are about the differences. The sample data condition asks whether there are at least 30 differences or, if there are fewer, whether a graph of the differences shows no strong skewness and no outliers. When the data come from a randomized experiment on volunteers rather than from a sample, the 10% condition does not apply, because nothing was sampled from a population.
Water time minus sports-drink time for 14 runners, in seconds
A positive difference means the runner was faster after the sports drink. The differences show no strong skew and no outliers.
Worked exampleSetting up a paired test
A coach randomly selects 14 of the more than 300 members of a large running club. Each runner sprints 200 meters on two different days, once after a sports drink and once after water, with the order decided by a coin flip. The dotplot above shows each runner's water time minus sports-drink time. Set up a test of whether 200-meter times are lower after the sports drink, on average.
Identify the procedure. Each runner gives two times, so the data are paired. Use a one-sample t-test for a population mean difference.
Define the parameter. = the mean of (water time minus sports-drink time), in seconds, for all members of the club. With this order, a positive difference means faster after the drink.
State the hypotheses. , so the drink makes no difference on average, and , so times are lower after the drink on average.
Check conditions. Random: the runners were randomly selected and the order of the drinks was randomly assigned. 10%: 14 is less than 10% of the more than 300 members. Sample data: there are only 14 differences, and their dotplot shows no strong skewness and no outliers.
A one-sample t-test for with and , with all three conditions met. Carrying out the test is the job of Topic 4.5.
Check your understanding
Last year the mean commute time for employees of a large hospital was 31 minutes. A new parking garage has since opened, and the human resources office wants to know whether the mean commute time has changed. It will survey a random sample of employees. Which hypotheses are appropriate?
A dentist wants to know whether a new toothpaste leaves less plaque than her usual brand. Twenty randomly selected patients from her large practice each use both toothpastes for one month, in random order, and a plaque score is recorded at the end of each month. Which test is appropriate?
A gym measures the resting heart rate of 25 randomly selected members before and after a 12-week cardio program and computes (after minus before) for each member. Which is the correct parameter for a test of whether resting heart rate is lower after the program, on average?
A teacher randomly selects 12 of the 95 students in her school's robotics club and records how many minutes each one spent on the club's online forum last week. She wants to test whether the mean for all club members is more than 60 minutes. A dotplot of the 12 times is roughly symmetric with no outliers. Which condition is NOT met?
A study measures the typing speed (in words per minute) of 30 randomly selected students before and after a month of using a typing app, and records each difference as (before minus after). To test whether students type faster after the month, on average, the alternative hypothesis should be
Exam strategy for this topic
- Section I, Multiple Choice: 42 questions in 90 minutes.
- Section II, Free Response: 4 questions in 90 minutes.
- A graphing calculator with statistical capabilities is expected on both sections.
Questions students ask
How do I choose between one-sided and two-sided?
From the question, before you see the data. 'Changed' or 'differs' calls for . A one-sided alternative needs a reason in the question, such as a suspicion that bottles are underfilled.
How does the order of subtraction change ?
It decides the sign. If a typing app should make students faster and the differences are before minus after, a gain shows up as a negative difference, so .
Does the 10 percent condition apply to an experiment on volunteers?
No. Nothing was sampled from a population, so there is no population size to compare with. Random assignment meets the randomization condition.
Why do paired data become a one-sample test?
Each pair gives one difference, and the question is about the mean of those differences. From there the mechanics are the same as for one mean, with a null value of 0.
Why a t-test and not a z-test?
The z-test would need the population standard deviation , which is almost never known. The sample standard deviation stands in for it, and that calls for a t-distribution.
Course alignment, for teachers
AP Statistics topic 4.4, Unit 4: Inference for Quantitative Data: Means.
- Skill 2.C: Identify appropriate statistical inference methods.
- Skill 2.E: Identify the null and alternative hypotheses.
- Skill 4.E: Justify the use of a chosen statistical inference method by verifying conditions.