Carrying Out a Test for a Proportion
How to calculate the test statistic and p-value for a one-sample z-test, how the significance level works, how to make the decision, and how to write a conclusion in context that never claims to prove anything.
The test statistic measures how far the sample proportion is from the null value, in standard deviations. Its p-value says how unusual that distance would be if H₀ were true. Compare the p-value with the significance level α, chosen in advance: at or below α, reject H₀ and say there is convincing evidence for Hₐ; above α, fail to reject H₀ and say there is not.
1The test statistic
The test statistic for a one-sample z-test for a population proportion is
When the null hypothesis is true, this z-statistic has a standard normal distribution: the null distribution. The p-value is found from the standard normal distribution with a table or technology.
A test assumes H₀ is true, so the standard deviation uses \(p_0\): \(\sqrt{p_0(1-p_0)/n}\). Intervals use \(\hat{p}\) because they assume nothing about \(p\). Mixing the two gives the wrong z.
2The significance level
The significance level \(\alpha\) is the predetermined probability of rejecting the null hypothesis when it is actually true. It is given, or chosen by the researcher before the data are collected; 0.05 is common, with 0.01 and 0.10 also used. A result is statistically significant when its p-value is at or below \(\alpha\).
| Comparison | Decision | What it means |
|---|---|---|
| p-value \(\le \alpha\) | Reject \(H_0\) | There is convincing evidence for \(H_a\) |
| p-value \(\gt \alpha\) | Fail to reject \(H_0\) | There is not convincing evidence for \(H_a\) |
School lunch
A test of H₀: p = 0.60 against Hₐ: p < 0.60 (the proportion of students who eat school lunch) gave p-value 0.0668. What is the decision at α = 0.05? At α = 0.10?
- 1At α = 0.05: 0.0668 > 0.05, so fail to reject H₀.
- 2At α = 0.10: 0.0668 ≤ 0.10, so reject H₀.
- 3This is why α must be chosen before seeing the data: picking it afterward lets you steer the decision.
If the p-value is 0.0668 and you then decide α should be 0.10, you have chosen the standard to fit the answer. Fix α at the start, in the State step.
3A full test, start to finish
College applications
In past years, 70% of seniors at a school applied to college by December 1. This year a counselor takes a random sample of 120 of the school’s 1,400 seniors and finds that 72 have applied. Is there convincing evidence, at α = 0.05, that the proportion this year is different from 70%?
- 1State. \(H_0: p = 0.70\), \(H_a: p \ne 0.70\), where \(p\) = the proportion of all seniors at the school this year who applied to college by December 1. \(\alpha = 0.05\).
- 2Plan. One-sample z-test for a population proportion. Randomization: random sample. 10% condition: \(120 \le 0.10(1{,}400) = 140\). Normality: \(np_0 = 84\) and \(n(1-p_0) = 36\), both at least 10.
- 3Do. \(\hat{p} = 72/120 = 0.60\). \(z = \dfrac{0.60 - 0.70}{\sqrt{0.70(0.30)/120}} = \dfrac{-0.10}{0.0418} \approx -2.39\). Two-sided p-value \(= 2P(z \le -2.39) \approx 0.0168\).
- 4Conclude. Because the p-value of 0.0168 is less than α = 0.05, we reject H₀. There is convincing evidence that the proportion of all seniors at the school this year who applied to college by December 1 is different from 0.70.
STAT, TESTS, 1-PropZTest. Enter p₀ (0.70), x (72), n (120), and choose the alternative (≠ p₀). The output gives z ≈ −2.39 and p ≈ 0.0168. Write the formula and values in your work as well.
The formula gives a number whether or not the conditions hold. If the school in the college example had only 640 seniors, a sample of 120 would be more than 10% of them (64), which breaks the 10% condition. Then the observations are not close enough to independent, the standard deviation formula overstates the variability, and the p-value is off. Check every condition with the actual numbers.
4Writing the conclusion
A formal decision compares the p-value to \(\alpha\) out loud. Rejecting H₀ means there is convincing evidence for Hₐ. Failing to reject H₀ means there is not convincing evidence for Hₐ. A test can never conclude that H₀ is true: a lack of evidence for the alternative is not evidence for the null. The conclusion is stated in context, in terms of the alternative hypothesis, with a reference to the parameter and the population, using non-definitive language.
Reject: “Because the p-value of 0.0168 is less than α = 0.05, we reject H₀. There is convincing evidence that the proportion of all seniors at the school this year who applied to college by December 1 is different from 0.70.”
Fail to reject: “Because the p-value of 0.0668 is greater than α = 0.05, we fail to reject H₀. There is not convincing evidence that the proportion of all students at the school who eat the school lunch is less than 0.60.”
Fail to reject
Write the conclusion for the lunch test at α = 0.05.
- 1Compare the p-value with α explicitly.
- 2State the decision about H₀, then a sentence in terms of Hₐ, with the parameter and population in context.
- 3Use non-definitive language: “convincing evidence,” never “proves.”
Never write that a test accepts H₀, proves Hₐ, or shows that “p = 0.60.” A large p-value says the data are consistent with H₀; it does not confirm it. A small p-value gives convincing evidence, not proof.
The result of a test is the statistical reasoning behind the answer to the investigative question. For the counselor: yes, the data give convincing evidence that this year’s application rate differs from the usual 70%.
5Quick reference
| Step | What to write |
|---|---|
| State | \(H_0\), \(H_a\), the parameter in context, and \(\alpha\) |
| Plan | One-sample z-test for a population proportion; check randomization, 10% condition, \(np_0\) and \(n(1-p_0) \ge 10\) |
| Do | \(z = (\hat{p} - p_0)/\sqrt{p_0(1-p_0)/n}\); p-value from the standard normal, in the direction of \(H_a\) |
| Conclude | Compare p-value with \(\alpha\); decide; state the evidence for \(H_a\) in context |