z-Test for a
Proportion
Learn how to test claims about population proportions using the one-proportion z-test: from hypotheses to conclusions.
What Is a Hypothesis Test?
A hypothesis test is a formal procedure for deciding whether sample data provide enough evidence to reject a claim about a population parameter. We start with a default assumption (the null hypothesis) and ask: "How likely is our observed data if that assumption were true?"
Key Vocabulary
Why a z-Test for Proportions?
When the sample size is large enough, the sampling distribution of \( \hat{p} \) is approximately normal by the Central Limit Theorem. This lets us use a standard normal (z) distribution to measure how far our sample proportion falls from the hypothesized value.
Setting Up the Hypotheses
The population proportion equals the claimed value
\( H_a\!: p \neq p_0 \) (two-tailed)
\( H_a\!: p > p_0 \) (right-tailed)
\( H_a\!: p < p_0 \) (left-tailed)
The z-Test Statistic
Checking the Conditions
One-Tailed vs Two-Tailed Tests
| One-Tailed | Two-Tailed | |
|---|---|---|
| \( H_a \) | \( p > p_0 \) or \( p < p_0 \) | \( p \neq p_0 \) |
| Rejection region | One tail of the curve | Both tails of the curve |
| p-value | Area in one tail | \( 2 \times \) area in one tail |
| Use when | Direction is predicted | Any difference matters |
How to Perform the Test
Example 1: Coin Fairness
A coin is flipped 200 times and lands heads 114 times. At \( \alpha = 0.05 \), test whether the coin is fair.
Example 1: Conclusion
Example 2: Voter Support
A politician claims that more than 60% of voters support a new policy. In a random sample of 500 voters, 320 expressed support. Test at \( \alpha = 0.05 \).
Example 2: Calculation
For a right-tailed test, the p-value is the area to the right of \( z = 1.83 \):
Example 3: Defect Rate
A factory claims its defect rate is at most 3%. An inspector tests 400 items and finds 16 defects. Test at \( \alpha = 0.05 \).
Common Mistakes
Summary Cheat Sheet
| Element | Details |
|---|---|
| Parameter | \( p \) (population proportion) |
| Null | \( H_0\!: p = p_0 \) |
| Test Statistic | \( z = \dfrac{\hat{p} - p_0}{\sqrt{p_0(1 - p_0)/n}} \) |
| Standard Error uses | \( p_0 \) (not \( \hat{p} \)) |
| Conditions | Random, \( n \leq 0.10N \), \( np_0 \geq 10 \), \( n(1-p_0) \geq 10 \) |
| Decision rule | Reject \( H_0 \) if p-value \( \leq \alpha \) |
| Conclusion language | "Reject" or "Fail to reject" \( H_0 \) |
Question 1 of 5
In the one-proportion z-test formula, what do we use in the denominator to compute the standard error?
Question 2 of 5
A researcher tests \( H_0\!: p = 0.40 \) vs \( H_a\!: p > 0.40 \) and obtains \( z = 2.05 \). Using a standard normal table, the p-value is approximately:
Question 3 of 5
Which of the following is a condition that must be checked before performing a one-proportion z-test?
Question 4 of 5
A test yields a p-value of \(0.08\) with \( \alpha = 0.05 \). What is the correct conclusion?
Question 5 of 5
In a sample of 300 students, 171 prefer online classes. To test \( H_0\!: p = 0.50 \) vs \( H_a\!: p \neq 0.50 \) at \( \alpha = 0.01 \), the z-statistic is approximately: