From the free course AP Statistics on Lykke
3.7 Carrying Out a Test for a Population Proportion
Key concepts: Test statistic z — how many standard errors p̂ lies from p₀ · Standard error under H₀ uses p₀, not the sample proportion · p-value read from the standard normal null distribution · Significance level α — the rejection threshold fixed before the data · Decision rule — reject H₀ when the p-value is below α · Conclusion stated in context, in terms of Hₐ, with non-definitive language
The transition from setting up a hypothesis to reaching a statistical conclusion requires a precise execution of the one-sample z-test for a population proportion.
The transition from setting up a hypothesis to reaching a statistical conclusion requires a precise execution of the one-sample z-test for a population proportion. This procedure transforms raw sample data into a standardized test statistic and a corresponding p-value, providing the mathematical weight necessary to support or refute a claim about a population. By assuming the null hypothesis ($H_0$) is true, we create a benchmark to determine if our observed sample proportion ($\hat{p}$) is a common occurrence or a rare anomaly.
The Mechanics of the Test Statistic (Skill 3.E)
To quantify how far our observed data deviates from the null hypothesis, we calculate the z-test statistic. This value represents the number of standard deviations the sample proportion ($\hat{p}$) lies from the hypothesized proportion ($p_0$). Because we perform this calculation under the assumption that $H_0$ is true, we use the null proportion, $p_0$, to calculate the standard deviation of the sampling distribution (Learning Objective 3.7.A).
The One-Sample z-Statistic for Proportions: $$z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}$$ Where:
- $\hat{p}$ is the sample proportion.
- $p_0$ is the hypothesized population proportion from $H_0$.
- $n$ is the sample size.
A positive $z$-score indicates the sample proportion is higher than hypothesized, while a negative $z$-score indicates it is lower. The magnitude of $z$ directly influences the p-value: the further $z$ is from zero, the smaller the p-value becomes, and the stronger the evidence against the null hypothesis (Essential Knowledge 3.6.A.4).
Determining the p-Value
The p-value is the probability of obtaining a test statistic at least as extreme as the one observed, given that the null hypothesis is true. For a population proportion, this probability is found using the standard normal distribution ($N(0, 1)$). The direction of the "extreme" values depends entirely on the alternative hypothesis ($H_a$):
| Alternative Hypothesis ($H_a$) | Direction of p-Value Calculation |
|---|---|
| $p > p_0$ (Upper-tailed) | $P(Z \ge z)$ |
| $p < p_0$ (Lower-tailed) | $P(Z \le z)$ |
| $p \neq p_0$ (Two-tailed) | $2 \times P(Z \ge |
Worked Example: Urban Green Initiatives
A city council claims that 70% of residents support a new bike lane project ($p_0 = 0.70$). A random sample of 150 residents finds that 93 support the project ($\hat{p} = 0.62$). Does this provide evidence that support is actually lower than 70%? Use $\alpha = 0.05$.
- Calculate $z$: $$z = \frac{0.62 - 0.70}{\sqrt{\frac{0.70(0.30)}{150}}} = \frac{-0.08}{0.0374} \approx -2.14$$
- Find p-value: Since $H_a: p < 0.70$, we find $P(Z \le -2.14) \approx 0.0162$.
- Compare to $\alpha$: $0.0162 \le 0.05$.
Justifying the Conclusion (Skill 4.G)
The final stage of the test is the formal conclusion. This is not merely a "yes" or "no" answer but a reasoned justification based on the comparison between the p-value and the significance level ($\alpha$). If the p-value is less than or equal to $\alpha$, we reject the null hypothesis. If the p-value is greater than $\alpha$, we fail to reject the null hypothesis.
A valid conclusion must always be stated in context, referring to the specific parameter and population being studied (Essential Knowledge 3.7.B.6). It should use non-definitive language—statistics allows us to support claims with evidence, but it does not "prove" them with absolute certainty.
Conclusion Template: "Because the p-value ([value]) is [less than/greater than] $\alpha = [value]$, we [reject/fail to reject] the null hypothesis. There is [sufficient/insufficient] evidence to suggest that the true proportion of [population] who [context] is [direction of $H_a$] [hypothesized value]."
Misconception Check: The "Acceptance" Trap
A common error is stating that we "accept the null hypothesis" or that the data "proves the null hypothesis is true." In statistical inference, failing to find convincing evidence against $H_0$ is not the same as proving $H_0$ is correct. It simply means the observed result is plausible under the null assumption (Essential Knowledge 3.6.A.5). Always use the phrase "fail to reject."
Retrieval Check
In a test where $H_0: p = 0.5$ and $H_a: p \neq 0.5$, a researcher calculates a test statistic of $z = 2.05$.
- Is the p-value for this two-tailed test approximately 0.02 or 0.04?
- If $\alpha = 0.05$, what is the formal decision regarding the null hypothesis?
(Check: 1. Approximately 0.04, because $2 \times P(Z \ge 2.05) \approx 2 \times 0.0202$. 2. Reject the null hypothesis, as $0.04 < 0.05$.)
Would you like a summary of the next topic, which covers the potential errors (Type I and Type II) that can occur during this decision-making process?

Source Materials
Study AP Statistics on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every section