Educerie · AP · Statistics
AP Statistics 4.4
Setting Up a Test for a Population Mean or Population Mean Difference
How can a sample of numerical measurements tell us about the mean of a whole population, and how sure can we be?
What you will learn
- Know that the test for a mean with sigma unknown is a one-sample t-test, and that matched pairs use differences.
- Understand that the parameter names the population mean or mean difference, the response variable and the population.
- Know how to write H0 and Ha for a mean and for a mean difference, with the order of subtraction.
- Know the randomization, 10% and sample data conditions and how to verify each.
You must be able to
- Name the full test procedure.
- Define the parameter in context, with the order of subtraction for pairs.
- Write H0 and Ha from the wording of the question.
- Verify the three conditions with the numbers given.
- State that a condition is not met and why, when a graph shows an outlier.
- Explain why hypotheses use mu or mu d and never x-bar.
In the exam. Section I multiple choice: pick the correct hypotheses for a described study, pick the right procedure (one sample or matched pairs), or choose the condition a graph checks. In Section II (Q3, and part of Q4) the set-up earns about half the points: the procedure, the parameter in context, the hypotheses, and the three conditions checked with numbers, before any calculation. Common slips are writing in the hypotheses, leaving out the population, and mixing up the 10% condition with randomization.
1Choosing the procedure
For one numerical variable and one sample, two designs are possible:
- One sample. One measurement on each unit, compared with a claimed value. The procedure is a one-sample t-test for a population mean.
- Matched pairs. Two measurements on each unit, or two units paired. Subtract within pairs to get one sample of differences. The procedure is a one-sample t-test for a population mean difference.
Write the full name. "A t-test" is not enough. It must say one-sample, and for what.
Two cues decide the design:
- A sentence such as "before and after", "left and right", "the same students on both", or "twins" points to pairs.
- Two separate groups of different units (two classes, a treatment and a control) is a different procedure. It is in Topic 4.9, and it is not matched pairs.
2The parameter
The parameter is a population value. It names the population mean (or mean difference), the response variable and the population, in context.
Example: " = the mean waiting time, in minutes, of all customers at this café."
Example: " = the mean difference in systolic blood pressure, before minus after, for all adults like the volunteers."
Two rules:
- Use or , never . The mean of the sample is a statistic. A hypothesis is a statement about the population.
- For a difference, say the order. "Before minus after" gives a positive if blood pressure falls. "After minus before" gives the opposite sign.
3The hypotheses
For one sample, with claimed value :
For matched pairs, the null value is 0, which says that on average there is no difference:
The alternative comes from the question, before you look at the data. Look for the words:
| The question says | The shape | |
|---|---|---|
| "convincing evidence that the mean is less than"; "decreased"; "lower" | one-sided, left | |
| "convincing evidence that the mean is greater than"; "increased"; "longer" | one-sided, right | |
| "convincing evidence that the mean is different from"; "has changed" | two-sided |
A manufacturer's claim "at least 500 g" gives and, if you suspect less, .
Read Figure 1 as a picture of the alternative. Each curve is the t-distribution assuming is true, centered at 0.
- Left tail. Only a sample mean well below counts as evidence.
- Right tail. Only a sample mean well above counts.
- Both tails. A sample mean far from in either direction counts. The p-value uses both tails (Topic 4.5).
Never pick after seeing the data: the direction must come from the question.
4The significance level
The question usually gives , such as 0.05. If it does not, state one, such as , when you carry out the test. It is used for the decision in Topic 4.5.
5The three conditions
A one-sample t-test for a mean or a mean difference needs the same three conditions as the interval in Topic 4.2. Write each with its numbers.
- Randomization. The data came from a random sample or a randomized experiment. For pairs, the order of the two treatments should be random, or the units randomly selected.
- The 10% condition. When you sample without replacement, . Not needed for a randomized experiment.
- The sample data condition. One of:
- the population is stated to be approximately normal;
- ;
- and the sample data show no strong skewness and no outliers.
For pairs, the differences are what is checked: at least 30 differences, or a sample of differences with no strong skew and no outliers.
Keep the three apart:
- Randomization is about how the data were gathered.
- The 10% condition is about the sample size against the population size.
- The sample data condition is about the shape of the sample, or its size.
A graph checks only the third. A dotplot or boxplot cannot tell you whether the sample was random.
6Worked example: one sample
A café says the mean wait for coffee is 4.0 minutes. The manager suspects customers wait longer. A random sample of 25 customers is timed from a day on which the café serves about 600 customers. A dotplot of the 25 waits is roughly symmetric with no outliers. Use .
Procedure. One-sample t-test for a population mean.
Parameter. = the mean waiting time, in minutes, for all customers at this café.
Hypotheses.
The manager suspects "longer", so the alternative is greater than.
Conditions.
- Randomization: the 25 customers are a random sample.
- 10%: .
- Sample data: , and the dotplot shows no strong skew and no outliers, so the population can be treated as not strongly skewed.
All three are met, so the test can go ahead (Topic 4.5 does it with data).
7Worked example: matched pairs
Twelve volunteers, chosen at random from a clinic's patients, have their systolic blood pressure measured before and after a month of meditation. The clinic wants to know whether meditation lowers the mean.
Procedure. One-sample t-test for a population mean difference. Each volunteer gives one difference, so this is matched pairs.
Parameter. = the mean difference in systolic blood pressure, before minus after, in mmHg, for all patients of the clinic.
Hypotheses.
If meditation lowers blood pressure, "before minus after" is positive. The order of subtraction and the direction of go together: this is the step students most often get backwards.
Conditions.
- Randomization: the 12 volunteers are a random sample of patients.
- 10%: the clinic has more than 10 times 12, which is 120, patients.
- Sample data: there are differences, and a dotplot of the 12 differences shows no outliers and no strong skew.
8A condition that fails
A random sample of 14 students was timed on a puzzle. The boxplot of the 14 times shows a long tail to the right and one outlier far above the rest.
- Randomization: met.
- 10%: met, if the school is large.
- Sample data: , and the plot shows an outlier. Not met.
The set-up does not stop: you must say the condition is not met and that a t-test is not justified from these data. Pretending it is met loses the marks.
Marks for a failed check go to the reason. "The boxplot has an outlier and " scores. "The data are not normal" does not.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.