01 / 21

z-Test for a
Proportion

Learn how to test claims about population proportions using the one-proportion z-test: from hypotheses to conclusions.

College Statistics

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

\( p \): Population Proportion
The true fraction of the population with the trait of interest
\( \hat{p} \): Sample Proportion
The observed fraction from your sample: \( \hat{p} = \frac{x}{n} \)
\( p_0 \): Hypothesized Value
The specific proportion claimed by the null hypothesis \( H_0 \)
\( \alpha \): Significance Level
The threshold for "too unlikely," commonly 0.05 or 0.01
p-value
Probability of observing data as extreme as ours, assuming \( H_0 \) is true

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.

\( p_0 \) \( \hat{p} \) z-score

Setting Up the Hypotheses

Null Hypothesis \( H_0 \)
\( H_0\!: p = p_0 \)
The population proportion equals the claimed value
Alternative \( H_a \)
Choose one:
\( 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

1
Numerator: The difference between the observed \( \hat{p} \) and the hypothesized \( p_0 \)
2
Denominator: The standard error of \( \hat{p} \) under \( H_0 \), computed using \( p_0 \) (not \( \hat{p} \))
3
Result: A z-score telling us how many standard errors \( \hat{p} \) falls from \( p_0 \)

Checking the Conditions

1
Random sample: The data must come from a random sampling method or a randomized experiment
2
Independence (10% rule): \( n \leq 0.10N \) : the sample is no more than 10% of the population
3
Large counts (normality): \( n p_0 \geq 10 \) and \( n(1 - p_0) \geq 10 \) so the sampling distribution is approximately normal

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
Right-Tailed p-value Two-Tailed p/2 p/2

How to Perform the Test

1
State hypotheses: Write \( H_0\!: p = p_0 \) and choose \( H_a \) based on the research question
2
Check conditions: Random, Independent (10% rule), Normal (large counts)
3
Compute test statistic: \( z = \dfrac{\hat{p} - p_0}{\sqrt{p_0(1-p_0)/n}} \)
4
Find p-value: Use the standard normal table or calculator based on the direction of \( H_a \)
5
Make a decision: If p-value \( \leq \alpha \), reject \( H_0 \). Otherwise, fail to reject \( H_0 \)
6
State conclusion in context: Interpret the result in terms of the original claim

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

0 z = 1.98 z = -1.98 0.024 0.024 p-value = 2(0.024) = 0.048

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

✕ Using \( \hat{p} \) in the SE
The standard error must use \( p_0 \) (the null value), not the sample proportion \( \hat{p} \). Using \( \hat{p} \) gives the wrong denominator.
✕ Wrong tail direction
The tail is set by \( H_a \), not by whether \( \hat{p} \) is above or below \( p_0 \). Decide the tail from the research question before collecting data.
✕ "Accept \( H_0 \)"
We never "accept" \( H_0 \). We either reject or fail to reject. Failing to reject means insufficient evidence, not proof of \( H_0 \).

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: