Educerie · AP · Statistics
AP Statistics 4.5
Carrying Out 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 t equals x-bar minus mu0 over s over root n, with n minus 1 degrees of freedom, and that pairs use the differences.
- Understand that the p-value is a tail area set by Ha, from technology or Table B.
- Know how to interpret the p-value, including that it assumes the null is true.
- Understand how to decide by comparing the p-value with alpha and write a conclusion in context, in terms of Ha, in non-definitive language.
You must be able to
- Calculate the t statistic and its degrees of freedom.
- Find the p-value for the correct tail or tails.
- Interpret the p-value in context, assuming the null mean.
- Compare the p-value with alpha using both numbers and decide.
- Write the conclusion in terms of Ha, with the population and non-definitive language.
- Explain why a large p-value does not show that H0 is true.
In the exam. Section I multiple choice: a statistic from summary numbers, the right tail or tails for a p-value, the correct reading of a p-value, or the right decision and conclusion. In Section II (Q3 and part of Q4) it is the calculation and conclusion half of a full test: with its degrees of freedom, the p-value, a comparison with , and a conclusion in context. Common slips are comparing with , doubling the wrong p-value, and concluding about instead of .
1The test statistic
For a one-sample t-test for a mean, or for a mean difference, the formula sheet gives
It is the general pattern, "statistic minus parameter, over standard error", with the standard error . When is true, has a t-distribution with degrees of freedom.
For matched pairs, use the mean and standard deviation of the differences, and is the number of pairs. The null value is 0.
Read the number: says the sample mean is 2 standard errors above . A near 0 means the sample mean is close to the claim.
2The p-value
The p-value uses the t-distribution with the right df, and its tail or tails depend on .
- : the area to the right of .
- : the area to the left of .
- : the area in both tails beyond , which is twice the one-tail area.
Find it with technology, such as a t-distribution cumulative function with the df, or estimate it from Table B. In Table B, find your df, and see which two critical values falls between. The tail probabilities at the top give a range for the p-value.
Read Figure 1 in this order:
- The curve is centered at 0. That is the world where is true.
- The amber line marks the observed .
- The shaded area to its right is the p-value, about 0.028. It is the chance of a result this large or larger when is true.
If a calculator is used, write what you entered, for example "t-distribution, df = 24, area to the right of ". A bare number from a calculator, or syntax alone, may not earn the mark.
3Interpreting the p-value
The wording is fixed by the course. A correct interpretation includes three things:
- a probability of a test statistic (or sample mean) at least as extreme, in the direction of ;
- the phrase that it is computed assuming is true, written as the null in context;
- the context.
Example: "Assuming the true mean waiting time is 4.0 minutes, the probability of getting a sample mean of 4.6 minutes or more in a random sample of 25 customers is 0.028."
What the p-value is not:
- It is not the probability that is true. is either true or not; the p-value assumes it is.
- It is not the probability that the result happened by chance alone.
- It is not the probability of the sample mean being exactly what it was.
4The decision
The formal decision explicitly compares the p-value with .
- If p-value : reject .
- If p-value : fail to reject .
Write the numbers: "Because the p-value 0.028 is less than , we reject ." A decision with no comparison of the two numbers loses the mark.
Do not say "accept ". A large p-value means the data are not strong enough to rule out . It does not show that is true.
5The conclusion
A conclusion has to be stated three ways at once:
- In context, with the variable and the population.
- In terms of : you say whether there is convincing evidence for the alternative.
- In non-definitive language: "convincing evidence", never "proves".
When you reject: "There is convincing evidence that the mean waiting time of all customers at this café is greater than 4.0 minutes."
When you fail to reject: "There is not convincing evidence that the mean waiting time of all customers at this café is greater than 4.0 minutes."
Never write the conclusion about the null ("we conclude the mean is 4.0"). And do not use a causal claim for an observational sample. A random sample supports a conclusion about the population; a randomized experiment supports a conclusion about the effect of the treatment.
6Worked example: one sample
The café from Topic 4.4 claims a mean wait of 4.0 minutes, and the manager suspects it is longer. A random sample of 25 customers has minutes and minutes.
Set-up (from Topic 4.4). One-sample t-test for a population mean. = the mean waiting time of all customers at this café. and , with . The conditions were verified: random sample, , and no outliers or strong skew.
Statistic.
p-value. The alternative is , so the area to the right of with df is
Table B check: with df , the table has for a tail probability of 0.05 and for 0.025. Our is between them, so the p-value is between 0.025 and 0.05. That agrees.
Decision. The p-value 0.0285 is less than , so we reject .
Conclusion. There is convincing evidence that the mean waiting time of all customers at this café is greater than 4.0 minutes.
Now watch the effect of the alternative. Suppose the manager had only asked whether the mean is different from 4.0. Then the p-value is two-tailed: , and since we would fail to reject. The same data, a different question, a different decision. This is why must come from the question and not the data.
7Worked example: matched pairs
The 12 patients from Topic 4.4 had blood pressure measured before and after a month of meditation, in mmHg.
| Patient | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Before | 142 | 135 | 150 | 128 | 160 | 147 | 138 | 155 | 131 | 146 | 152 | 139 |
| After | 136 | 133 | 141 | 130 | 151 | 144 | 139 | 146 | 129 | 140 | 147 | 133 |
| Before minus after | 6 | 2 | 9 | -2 | 9 | 3 | -1 | 9 | 2 | 6 | 5 | 6 |
Set-up. One-sample t-test for a population mean difference. = the mean difference in systolic blood pressure, before minus after, for all patients of the clinic. and , with . The conditions are met (random sample, more than 120 patients, no outliers in the differences).
Statistic. The 12 differences give and .
p-value. The area to the right of with df is . In Table B, df has for 0.0025 and for 0.0005, so the p-value is between 0.0005 and 0.0025.
Decision. The p-value, 0.0008, is less than , so we reject .
Conclusion. There is convincing evidence that the mean systolic blood pressure of all patients of the clinic is lower after a month of meditation than before. The mean decrease is estimated at 4.5 mmHg.
Notice what the study cannot show. It had no comparison group, so a fall in blood pressure could have other causes. The test supports the claim about the difference, not the cause.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.