Educerie · AP · Statistics
AP Statistics 3.7
Carrying Out a Test for a Population Proportion
How can a sample of a few hundred people tell us something reliable about thousands, and how sure can we be?
What you will learn
- Know that the test statistic is z = (p-hat minus p0) over the square root of p0(1-p0) ÷ n
- Understand that the formal decision compares the p-value with alpha, and reject means convincing evidence for Ha
- Know that a test can never show that H0 is true
- Understand how to write a conclusion in context about Ha with non-definitive wording
You must be able to
- Calculate the z-statistic and the p-value for a one-proportion test
- Compare the p-value with alpha and make a decision
- Write a conclusion in context about the alternative hypothesis
- Carry out a complete test in the order the free-response question scores it
- Explain why the same data can lead to different decisions at different alpha
- Identify wrong conclusions such as accept H0 or prove Ha
In the exam. Section I multiple choice: pick the correct test statistic, compare a p-value with a significance level, or choose the correct conclusion. Section II: Question 3 is often a complete one-proportion test. The marks are split between the setup (3.5), the calculation of and the p-value, the comparison of the p-value with , and a conclusion in context. Skills: calculate (3.E), justify a claim (4.G).
1The test statistic
The sheet gives the general form: standardized test statistic = (statistic parameter) / standard error of the statistic. For one proportion, the parameter is the null value and the standard deviation is the one under :
The standard error in a test uses . It does not use . In an interval (3.3) you do not have a null value, so you use . In a test you have one, and the whole calculation assumes is true.
If is true and the conditions hold, has approximately a standard normal distribution.
2The significance level and the decision
The significance level, , is the probability of rejecting the null hypothesis when it is true. It is chosen before collecting the data. It is often 0.05, sometimes 0.01 or 0.10. The question usually gives it. If it does not, say which you are using.
The decision compares the p-value with :
- p-value : reject . The result is statistically significant.
- p-value : fail to reject .
Write the comparison with both numbers. "Since 0.057 > 0.05" earns a point that "so we reject" alone does not.
3A full test, start to finish
Use the clinic from 3.5. The clinic's records show that 15% of patients miss appointments. After reminder texts begin, the clinic believes the share is lower. It follows a random sample of 200 patients from its large patient list and finds that 22 missed an appointment. Test at .
Procedure. One-sample -test for a population proportion.
Parameter and hypotheses. = the proportion of all the clinic's patients who miss an appointment after reminder texts begin.
Conditions.
- Randomization: the patients were a random sample.
- 10%: the patient list is large, so 200 patients is less than 10% of it.
- Normality: and .
Calculation.
Figure 1 shows the picture. The clay region is the lowest 5% of the curve, which is where the result would have to fall for the decision to be "reject". The observed is just short of it. The shaded area to its left is the p-value.
Decision. Since the p-value of 0.057 is greater than , we fail to reject .
Conclusion in context. The data do not provide convincing evidence that the proportion of all the clinic's patients who miss an appointment after reminder texts begin is less than 0.15.
The sample proportion, 0.11, is below 0.15. But with only 200 patients, a result that low is not unusual enough if the true proportion is still 0.15. A larger sample might well find the effect.
4A two-sided example, and what changes
A newspaper reports that 50% of voters in a county support a measure. A pollster takes a random sample of 300 voters from the county, which has well over 3,000 voters. In the sample, 168 support the measure. Test whether the proportion has changed.
Conditions: a random sample; 300 is less than 10% of the voters; and .
The decision depends on .
- At : the p-value of 0.038 is less than 0.05, so reject . There is convincing evidence that the proportion of all voters in the county who support the measure is different from 0.50.
- At : the p-value of 0.038 is greater than 0.01, so fail to reject . The data do not provide convincing evidence of a difference.
The same data lead to different decisions at different levels. That is why must be fixed before the data, not after.
5Tests and intervals agree
The 95% interval for this sample is . The value 0.50 is just outside it. That matches the rejection of at the 5% level in a two-sided test.
This is not an accident. A two-sided test at and a confidence interval at tell the same story about a value . But the two procedures use slightly different standard errors (a test uses , an interval uses ), so on a close call they can occasionally differ.
6Writing the conclusion
A good conclusion has these parts.
- The decision, with the comparison of the p-value and .
- The meaning in terms of . The conclusion is about the alternative, not the null.
- Non-definitive language. "There is convincing evidence " or "The data do not provide convincing evidence ".
- The parameter and the population in context.
Reject means: there is convincing statistical evidence for .
Fail to reject means: there is not convincing statistical evidence for .
Never say:
- "We accept ." A test cannot show the null is true.
- "We have proven ." Evidence can be convincing, never certain.
- "There is no difference." A failure to find evidence is not evidence of no difference.
A tempting phrase after a large p-value is "the proportion is 0.15." Resist it. The data are consistent with 0.15. They are also consistent with 0.14, 0.16 and many others.
7The test statistic, the p-value and the sample size
A bigger sample with the same gives a larger and a smaller p-value. Suppose the clinic had followed 800 patients and still found 11% missing appointments:
The p-value falls to 0.0008. The effect is the same size, and the evidence is much stronger. Evidence depends on both the size of the difference and the sample size.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.