Topic contents

Lesson 8

Hypothesis tests for a population proportion

From counts meeting a condition to a complete understanding of the z-test for a population proportion

Test settings

Try it

Choose a research question

What does a test for a population proportion test?

Unlike a test for a population mean, this test concerns the proportion of individuals in the population with a particular characteristic. For example: how many survey respondents are satisfied, how many orders arrive on time, or how many products are defective.

Does the population proportion satisfied with a service differ from 60%?

A random survey or inspection gives a sample of size 200 (people); the number satisfied is 134. The sample proportion is 0.670, or 67.0%.

0%20%40%60%80%100%Sample · Meets the condition: 67%Sample · Does not meet the condition: 33%Sample
  • Meets the condition
  • Does not meet the condition
Blue = sample proportion meeting the condition; the remainder = not meeting the condition

First convert the count into a sample proportion

p^=Xn\hat p=\frac Xn

p̂ = 134 / 200 = 0.670 = 67.0%

H₀: p = 0.60

H₁: p ≠ 0.60

Remember: p denotes the population proportion; p̂ denotes the sample proportion. A difference between the sample proportion and the hypothesized proportion does not by itself justify rejecting the null hypothesis.
Conditions: random, mutually independent 0/1 observations (or a reasonable approximation to independence), with sample size conditions sufficient for a normal approximation. If these conditions fail, consider an exact binomial test.

Test settings

Try it

Choose a research question

Population proportion Z statistic: formula first, then numerical substitution

We have already studied the z-test for a population mean. We can also construct a Z statistic for a population proportion, but its standard error must be calculated using the null proportion p₀.

  1. Original formula
    Z=p^−p0p0(1−p0)/nZ=\frac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}
  2. Calculate the sample proportion and null standard error (SE) first
    p^=134200=0.670,SE=0.6(1−0.6)200=0.03464\hat p=\frac{134}{200}=0.670,\quad SE=\sqrt{\frac{0.6(1-0.6)}{200}}=0.03464
  3. Substitute the values and calculate Z
    Z=0.670−0.600.60×0.40/200=0.0700.03464≈2.021Z=\frac{0.670-0.60}{\sqrt{0.60\times 0.40/200}}=\frac{0.070}{0.03464}\approx 2.021
−4−3−2−101234ZZ = 2.021
  • Standard normal distribution
  • Sample Z position
How does Z change with the sample proportion?
Sample proportion p̂
0.670
Standard error under H₀
0.03464
Z statistic
2.021
Normal approximation check: n p₀ = 120.0, n(1 − p₀) = 80.0; both are at least 10 in this example.

Test settings

Try it

Choose a research question
Significance level α

Critical-value method: which region contains Z?

The research question and alternative hypothesis determine the test direction; the significance level α determines the critical value. We now only need to decide whether this Z falls in the rejection region.

Does the population proportion satisfied with a service differ from 60%?

H₀: p = 0.60

H₁: p ≠ 0.60

p̂ = 67.0%

−4−3−2−101234Z−1.9601.960Z = 2.021
  • Standard normal distribution
  • Sample Z position
  • Rejection region
  • Critical value
The blue shading is the rejection region; the dotted line marks this Z; the solid blue lines are the critical values.
Z statistic
2.021
Critical value
±1.960
Significance level
0.05

Reject H₀. Z = 2.021, critical value ±1.960; this Z falls in the rejection region.

The critical-value method and the p-value method on the next page should give the same statistical conclusion.

Test settings

Try it

Choose a research question
Significance level α

p-value method: how large is the shaded area?

The hatched area under the normal curve is the p-value for this test: when the null hypothesis holds at its boundary, the probability of a statistic at least as extreme as the current one.

Does the population proportion satisfied with a service differ from 60%?

H₀: p = 0.60

H₁: p ≠ 0.60

p̂ = 67.0%

−4−3−2−101234ZZ = 2.021
  • Standard normal distribution
  • Sample Z position
  • Tail area corresponding to the p-value
For a two-sided test, use the areas at least as extreme in both tails; for a right-tailed test, use the right tail; for a left-tailed test, use the left tail.
Z statistic
2.021
p-value
0.04331
Significance level
0.05

P ≤ α: 0.04331 ≤ 0.05. Reject H₀.

Decision rule: P ≤ α, reject H₀; P > α, fail to reject H₀. The p-value is not the probability that the null hypothesis is true.

Test settings

Try it

Choose a research question
Significance level α

A complete z-test for a population proportion

Choose any applied question and adjust the number of sample observations meeting the condition and the significance level. Observe how the formula, plot, p-value, and final conclusion agree.

Does the population proportion satisfied with a service differ from 60%?

H₀: p = 0.60

H₁: p ≠ 0.60

p̂ = 67.0%

−4−3−2−101234Z−1.9601.960Z = 2.021
  • Standard normal distribution
  • Sample Z position
  • Critical value
  • Tail area corresponding to the p-value
The plot marks this Z value, the hatched p-value area, and the critical values together.
Z statistic
2.021
p-value
0.04331
Significance level
0.05
  1. Research question and hypotheses
    Does the population proportion satisfied with a service differ from 60%?

    H₀: p = 0.60

    H₁: p ≠ 0.60

  2. Calculate the sample proportion, standard error, and Z
    Z=0.670−0.600.60×0.40/200=0.0700.03464≈2.021Z=\frac{0.670-0.60}{\sqrt{0.60\times 0.40/200}}=\frac{0.070}{0.03464}\approx 2.021
    First calculate p̂ = 134/200 = 0.670; at the boundary of H₀, p₀=0.60, SE = 0.03464.
  3. Calculate the p-value and compare with α
    P ≤ α: 0.04331 ≤ 0.05. Reject H₀.
  4. State the statistical conclusion
    Reject H₀. The sample provides statistical evidence for the alternative hypothesis, supporting the conclusion that there is a statistically significant difference between the population proportion satisfied and 60%.
This lesson uses the normal-approximation z-test for a population proportion. For proportions very close to 0 or 1, small samples, and similar cases, separately assess whether the approximation is appropriate.

Test settings

X = 134/200 · α = 5%