Skip to content
Family Table Math
Auto

Significance Test for a Population Proportion

A youth group thinks teens in its city volunteer more than the national rate. A sample shows a higher rate, but is it high enough to be convincing, or could it just be sampling variability? A significance test answers that question with a probability. This page applies the general ideas from the introduction to hypothesis testing to a single population proportion, using the one-sample z-test that AP Statistics expects you to carry out in full.

A test for a proportion is about the population proportion pp, never the sample proportion p^\hat{p}. Start by defining pp in context: what proportion, of which population, with what characteristic.

  • The null hypothesis H0:p=p0H_0: p = p_0 is the “status quo” claim, assumed true unless there’s convincing evidence against it. p0p_0 is the hypothesized value.
  • The alternative hypothesis HaH_a is the claim you’re collecting evidence for. It is one of
Ha:p>p0Ha:p<p0Ha:p≠p0H_a: p \gt p_0 \qquad H_a: p \lt p_0 \qquad H_a: p \ne p_0

The first two are one-sided; p≠p0p \ne p_0 is two-sided. The alternative comes from the research question (“higher”, “less than”, “different from”), decided before you look at the data.

AP Statistics writes the alternative as HaH_a. You’ll also see H1H_1 in other courses, including the introduction page; they mean the same thing.

The procedure is a one-sample z-test for a population proportion. It needs:

ConditionWhat to check
RandomThe data come from a random sample.
10%When sampling without replacement, n≤10%n \le 10\% of the population.
Large CountsThe expected successes and failures, np0np_0 and n(1−p0)n(1 - p_0), are both at least 1010.

Large Counts uses p0p_0, not p^\hat{p}. A test asks “what would happen if H0H_0 were true?”, so every calculation assumes p=p0p = p_0. (For a confidence interval you use the observed counts instead.)

If H0H_0 is true, p^\hat{p} is approximately normal with mean p0p_0 and standard deviation p0(1−p0)n\sqrt{\dfrac{p_0(1 - p_0)}{n}}. The test statistic measures how many standard deviations p^\hat{p} is from p0p_0:

z=p^−p0p0(1−p0)nz = \frac{\hat{p} - p_0}{\sqrt{\dfrac{p_0(1 - p_0)}{n}}}

This matches the general form on the formula sheet, statistic−parameterstandard error of the statistic\dfrac{\text{statistic} - \text{parameter}}{\text{standard error of the statistic}}. The distribution of zz when H0H_0 is true (here, the standard normal) is called the null distribution.

The p-value is the probability, assuming H0H_0 is true, of getting a test statistic as extreme as the one observed, or more extreme, in the direction of HaH_a:

Alternativep-value
Ha:p>p0H_a: p \gt p_0P(Z≥z)P(Z \ge z), the upper tail
Ha:p<p0H_a: p \lt p_0P(Z≤z)P(Z \le z), the lower tail
Ha:p≠p0H_a: p \ne p_02P(Z≥∣z∣)2P(Z \ge \lvert z \rvert), both tails
Two standard normal curves. Left: a one-sided test with z = 2.28; the area to the right of 2.28 is shaded, a p-value of 0.0113. Right: a two-sided test with z = -1.03; the areas below -1.03 and above 1.03 are shaded, 0.151 each, a p-value of 0.302. One-sided test (Example 2) z = 2.28 0 p‑value = 0.0113 Two-sided test (Example 4) z = −1.03 z = 1.03 0 p‑value = 0.151 + 0.151 = 0.302
The p-value is a tail area of the null distribution. For a two-sided test, add both tails.

A small p-value means the observed result would be unusual if H0H_0 were true, so it’s evidence for HaH_a. The smaller the p-value, the more convincing the evidence. A p-value that isn’t small means the result is the kind of thing that happens by chance when H0H_0 is true: it’s not evidence for HaH_a, and it’s not evidence that H0H_0 is true either.

To interpret a p-value in context, use this pattern:

Assuming that [H0H_0 in context], there is a [p-value] probability of getting a sample proportion of [p^\hat{p}] or [more extreme, in the direction of HaH_a] by chance alone.

The significance level α\alpha (often 0.050.05) is chosen before collecting the data. Then:

  • If p-value ≤α\le \alpha: reject H0H_0. There is convincing evidence for HaH_a.
  • If p-value >α\gt \alpha: fail to reject H0H_0. There is not convincing evidence for HaH_a.

Write the conclusion in context and in terms of HaH_a, with the parameter and the population: “Because the p-value of 0.01130.0113 is less than α=0.05\alpha = 0.05, we reject H0H_0. There is convincing evidence that the proportion of all Halifax teens who volunteer is greater than 0.260.26.” Never write “accept H0H_0” or “this proves”.

A two-sided test at α=0.05\alpha = 0.05 and a 95%95\% confidence interval usually agree: if p0p_0 is outside the interval, the test rejects H0H_0; if it’s inside, the test doesn’t. (They can disagree in borderline cases, because the interval’s standard error uses p^\hat{p} and the test’s uses p0p_0.) The interval tells you more: not just “is p0p_0 plausible?” but which values are.

A complete test has four parts:

  1. State: hypotheses, with pp defined in context, and α\alpha.
  2. Plan: name the procedure (one-sample z-test for pp) and check the conditions with numbers, using p0p_0.
  3. Do: the test statistic (formula with numbers substituted) and the p-value. 1-PropZTest on a TI-84 is a good check.
  4. Conclude: compare the p-value with α\alpha, make a decision, and state the conclusion in context in terms of HaH_a.

The p-values on this page come from technology using the unrounded test statistic, so the normal table can differ slightly in the last digit.

Define the parameter and write the hypotheses.

  • (a) A national survey found that 26%26\% of Canadian teens volunteer regularly. A youth group in Halifax thinks the proportion is higher among Halifax teens.
  • (b) A school board says 40%40\% of its students take the bus. A consultant wants to check whether that’s still right.
  • (c) A phone maker claims that no more than 5%5\% of its phones need a repair in the first year. A consumer group suspects the rate is higher.

Solution.

(a) pp = the proportion of all Halifax teens who volunteer regularly. H0:p=0.26H_0: p = 0.26, Ha:p>0.26H_a: p \gt 0.26 (one-sided: “higher”).

(b) pp = the proportion of all the board’s students who take the bus. H0:p=0.40H_0: p = 0.40, Ha:p≠0.40H_a: p \ne 0.40 (two-sided: “still right” has no direction).

(c) pp = the proportion of all the maker’s phones that need a repair in the first year. H0:p=0.05H_0: p = 0.05, Ha:p>0.05H_a: p \gt 0.05. (The claim “no more than 5%5\%” is the status quo, tested at its boundary p=0.05p = 0.05; the consumer group’s suspicion goes in HaH_a.)

In a random sample of 400400 Halifax teens, 124124 volunteer regularly. Do these data give convincing evidence at α=0.05\alpha = 0.05 that more than 26%26\% of Halifax teens volunteer regularly?

Solution.

State. pp = the proportion of all Halifax teens who volunteer regularly.

H0:p=0.26Ha:p>0.26α=0.05H_0: p = 0.26 \qquad H_a: p \gt 0.26 \qquad \alpha = 0.05

Plan. One-sample z-test for pp.

  • Random: random sample of Halifax teens.
  • 10%: 400400 is less than 10%10\% of all Halifax teens (there are more than 40004000).
  • Large Counts: 400(0.26)=104≥10400(0.26) = 104 \ge 10 and 400(0.74)=296≥10400(0.74) = 296 \ge 10.

Do. p^=124400=0.31\hat{p} = \dfrac{124}{400} = 0.31.

z=0.31−0.260.26(0.74)400=0.050.0219=2.28p-value=P(Z≥2.28)=0.0113\begin{aligned} z &= \frac{0.31 - 0.26}{\sqrt{\dfrac{0.26(0.74)}{400}}} = \frac{0.05}{0.0219} = 2.28 \\ \text{p-value} &= P(Z \ge 2.28) = 0.0113 \end{aligned}

Conclude. Because the p-value of 0.01130.0113 is less than α=0.05\alpha = 0.05, we reject H0H_0. There is convincing evidence that the proportion of all Halifax teens who volunteer regularly is greater than 0.260.26.

Interpret the p-value from Example 2 in context.

Solution. Assuming that 26%26\% of all Halifax teens volunteer regularly, there is a 0.01130.0113 probability of getting a sample proportion of 0.310.31 or higher in a random sample of 400400 teens, by chance alone.

That’s about 11 sample in 9090: rare enough that we doubt the "26%26\%" assumption.

Example 4: A two-sided test that fails to reject

Section titled “Example 4: A two-sided test that fails to reject”

A school board says 40%40\% of its 30 00030\,000 students take the bus. A consultant surveys a random sample of 250250 students and finds that 9292 take the bus. Test the board’s figure at α=0.05\alpha = 0.05, then compare with a 95%95\% confidence interval.

Solution.

State. pp = the proportion of all the board’s students who take the bus.

H0:p=0.40Ha:p≠0.40α=0.05H_0: p = 0.40 \qquad H_a: p \ne 0.40 \qquad \alpha = 0.05

Plan. One-sample z-test for pp. Random: random sample. 10%: 250≤0.10(30 000)=3000250 \le 0.10(30\,000) = 3000. Large Counts: 250(0.40)=100250(0.40) = 100 and 250(0.60)=150250(0.60) = 150, both at least 1010.

Do. p^=92250=0.368\hat{p} = \dfrac{92}{250} = 0.368.

z=0.368−0.400.40(0.60)250=−0.0320.0310=−1.03p-value=2P(Z≥1.03)=0.302\begin{aligned} z &= \frac{0.368 - 0.40}{\sqrt{\dfrac{0.40(0.60)}{250}}} = \frac{-0.032}{0.0310} = -1.03 \\ \text{p-value} &= 2P(Z \ge 1.03) = 0.302 \end{aligned}

Conclude. Because the p-value of 0.3020.302 is greater than α=0.05\alpha = 0.05, we fail to reject H0H_0. There is not convincing evidence that the proportion of all the board’s students who take the bus is different from 0.400.40.

Compare. The 95%95\% interval is 0.368±1.960.368(0.632)250=0.368±0.0600.368 \pm 1.96\sqrt{\dfrac{0.368(0.632)}{250}} = 0.368 \pm 0.060, or (0.308, 0.428)(0.308,\ 0.428). It contains 0.400.40, so 0.400.40 is plausible, which agrees with the test. But so is 0.320.32: failing to reject doesn’t show that pp is 0.400.40.

Writing hypotheses about p̂. "H0:p^=0.26H_0: \hat{p} = 0.26" is wrong: you already know p^\hat{p}. Hypotheses are always about the population parameter pp, and pp should be defined in context.

Using p̂ in the standard deviation or in Large Counts. In a test, everything is calculated assuming H0H_0 is true, so use p0p_0: p0(1−p0)n\sqrt{\dfrac{p_0(1 - p_0)}{n}} and np0np_0, n(1−p0)n(1 - p_0). (Using p^\hat{p} is right for an interval, not a test.)

Forgetting to double for a two-sided test. For Ha:p≠p0H_a: p \ne p_0, results far from p0p_0 in either direction count as evidence, so the p-value includes both tails.

Reading the p-value as the probability that H₀ is true. The p-value is calculated assuming H0H_0 is true; it’s the probability of data like yours, not of the hypothesis. Example 2 does not mean “there’s a 1.1%1.1\% chance that 26%26\% is right”.

Accepting H₀. A large p-value means the data are consistent with H0H_0, not that H0H_0 is true. Write “fail to reject H0H_0; there is not convincing evidence that…”.

Choosing the alternative after looking at the data. If the sample proportion happens to be high and you then choose Ha:p>p0H_a: p \gt p_0, you’ve halved the p-value after the fact. The direction must come from the research question.

1. (Warm-up) Define the parameter and write the hypotheses.

  • (a) A survey 1010 years ago found 35%35\% of Manitoba households had a landline. A researcher believes the proportion is now lower.
  • (b) A game designer wants to check whether a digital spinner lands on “bonus” 20%20\% of the time, as intended.
Solution

(a) pp = the proportion of all Manitoba households that now have a landline. H0:p=0.35H_0: p = 0.35, Ha:p<0.35H_a: p \lt 0.35.

(b) pp = the true proportion of all spins that land on “bonus”. H0:p=0.20H_0: p = 0.20, Ha:p≠0.20H_a: p \ne 0.20.

2. (Warm-up) A test of H0:p=0.10H_0: p = 0.10 uses a random sample of 6060 from a large population. Check the Large Counts condition.

Solution

np0=60(0.10)=6np_0 = 60(0.10) = 6, which is less than 1010, so the Large Counts condition fails. (n(1−p0)=54n(1 - p_0) = 54 is fine, but both must be at least 1010.) A z-test isn’t appropriate here.

3. (Warm-up) For H0:p=0.5H_0: p = 0.5 against Ha:p>0.5H_a: p \gt 0.5, a random sample of 200200 gives p^=0.56\hat{p} = 0.56. Find the test statistic and the p-value. (Assume the conditions are met.)

Solutionz=0.56−0.50.5(0.5)200=0.060.0354=1.70p-value=P(Z≥1.70)=0.0448z = \frac{0.56 - 0.5}{\sqrt{\dfrac{0.5(0.5)}{200}}} = \frac{0.06}{0.0354} = 1.70 \qquad \text{p-value} = P(Z \ge 1.70) = 0.0448

(Technology with the unrounded z=1.697z = 1.697 gives 0.04480.0448.)

4. (Core) A test of H0:p=0.75H_0: p = 0.75 against Ha:p≠0.75H_a: p \ne 0.75 gives a p-value of 0.0310.031.

  • (a) What is the decision at α=0.05\alpha = 0.05? At α=0.01\alpha = 0.01?
  • (b) Explain why the decision can be different for the two significance levels.
Solution

(a) At α=0.05\alpha = 0.05: 0.031≤0.050.031 \le 0.05, so reject H0H_0. At α=0.01\alpha = 0.01: 0.031>0.010.031 \gt 0.01, so fail to reject H0H_0.

(b) α\alpha sets how unusual a result must be before you reject H0H_0. A p-value of 0.0310.031 is unusual enough to meet a 5%5\% standard but not the stricter 1%1\% standard. That’s why α\alpha must be chosen before seeing the data.

5. (Core) A manufacturer claims that 95%95\% of its LED bulbs last at least 10 00010\,000 hours. A consumer group tests a random sample of 300300 bulbs from a large shipment, and 276276 last that long. Do the data give convincing evidence at α=0.01\alpha = 0.01 that fewer than 95%95\% of the bulbs last at least 10 00010\,000 hours?

Solution

State. pp = the proportion of all the manufacturer’s LED bulbs (in the shipment) that last at least 10 00010\,000 hours. H0:p=0.95H_0: p = 0.95, Ha:p<0.95H_a: p \lt 0.95, α=0.01\alpha = 0.01.

Plan. One-sample z-test for pp. Random: random sample. 10%: 300300 is less than 10%10\% of a large shipment. Large Counts: 300(0.95)=285300(0.95) = 285 and 300(0.05)=15300(0.05) = 15, both at least 1010.

Do. p^=276300=0.92\hat{p} = \dfrac{276}{300} = 0.92.

z=0.92−0.950.95(0.05)300=−0.030.0126=−2.38p-value=P(Z≤−2.38)=0.0086z = \frac{0.92 - 0.95}{\sqrt{\dfrac{0.95(0.05)}{300}}} = \frac{-0.03}{0.0126} = -2.38 \qquad \text{p-value} = P(Z \le -2.38) = 0.0086

Conclude. Because 0.0086<0.010.0086 \lt 0.01, reject H0H_0. There is convincing evidence that fewer than 95%95\% of the manufacturer’s bulbs last at least 10 00010\,000 hours.

6. (Core) About 10%10\% of people are left-handed. A researcher takes a random sample of 500500 students from a large school board and finds that 6262 are left-handed. At α=0.05\alpha = 0.05, is there convincing evidence that the proportion of left-handed students in this board is different from 10%10\%?

Solution

State. pp = the proportion of all students in the board who are left-handed. H0:p=0.10H_0: p = 0.10, Ha:p≠0.10H_a: p \ne 0.10, α=0.05\alpha = 0.05.

Plan. One-sample z-test for pp. Random sample; 500500 is less than 10%10\% of a large board; 500(0.10)=50500(0.10) = 50 and 500(0.90)=450500(0.90) = 450 are both at least 1010.

Do. p^=62500=0.124\hat{p} = \dfrac{62}{500} = 0.124.

z=0.124−0.100.10(0.90)500=0.0240.0134=1.79p-value=2P(Z≥1.79)=0.0736z = \frac{0.124 - 0.10}{\sqrt{\dfrac{0.10(0.90)}{500}}} = \frac{0.024}{0.0134} = 1.79 \qquad \text{p-value} = 2P(Z \ge 1.79) = 0.0736

Conclude. Because 0.0736>0.050.0736 \gt 0.05, fail to reject H0H_0. There is not convincing evidence that the proportion of left-handed students in the board is different from 0.100.10.

7. (Core) Interpret the p-value from Question 6 in context.

Solution

Assuming that 10%10\% of all students in the board are left-handed, there is a 0.07360.0736 probability of getting a sample proportion at least as far from 0.100.10 as 0.1240.124 (in either direction) in a random sample of 500500 students, by chance alone.

8. (Challenge) A survey finds p^=0.54\hat{p} = 0.54 when testing H0:p=0.5H_0: p = 0.5 against Ha:p>0.5H_a: p \gt 0.5 at α=0.05\alpha = 0.05.

  • (a) If n=100n = 100, is the result significant?
  • (b) Find the smallest sample size for which p^=0.54\hat{p} = 0.54 would be significant.
  • (c) What does this tell you about “statistically significant” results from very large samples?
Solution

(a) z=0.040.25/100=0.040.05=0.8z = \dfrac{0.04}{\sqrt{0.25/100}} = \dfrac{0.04}{0.05} = 0.8, and P(Z≥0.8)=0.212>0.05P(Z \ge 0.8) = 0.212 \gt 0.05. Not significant.

(b) Reject when z≥1.645z \ge 1.645:

0.040.5/n≥1.645⇒n≥1.645(0.5)0.04=20.56⇒n≥422.8\frac{0.04}{0.5/\sqrt{n}} \ge 1.645 \quad\Rightarrow\quad \sqrt{n} \ge \frac{1.645(0.5)}{0.04} = 20.56 \quad\Rightarrow\quad n \ge 422.8

So n=423n = 423. (Check: n=423n = 423 gives z=1.6454z = 1.6454; n=422n = 422 gives z=1.6434z = 1.6434, just short.)

(c) The same sample proportion can be significant or not, depending only on nn. With a big enough sample, even a tiny difference from p0p_0 becomes statistically significant, even if it’s too small to matter in practice. Always look at the size of the difference too (a confidence interval helps).

9. (Challenge) From a random sample, a 95%95\% confidence interval for pp is (0.43, 0.51)(0.43,\ 0.51). Without doing a test, predict the decision of a two-sided test at α=0.05\alpha = 0.05 for (a) H0:p=0.5H_0: p = 0.5 and (b) H0:p=0.52H_0: p = 0.52. Why is this only a prediction?

Solution

(a) 0.50.5 is inside the interval, so it’s a plausible value: expect to fail to reject H0H_0.

(b) 0.520.52 is outside the interval: expect to reject H0H_0.

It’s only a prediction because the interval’s standard error uses p^\hat{p}, while the test’s standard deviation uses p0p_0. When p0p_0 is close to an end of the interval, the two methods can occasionally disagree.

Try these independently after the practice questions. Show your setup and explain your reasoning. Check every condition with numbers and in context, and write every conclusion in context in terms of the alternative hypothesis. Homework solutions are not provided on the published site.

All data in these questions are hypothetical.

H1. (Foundations) Define the parameter and write the hypotheses.

  • (a) A ski resort in Whistler says 60%60\% of its visitors are from outside British Columbia. A tourism researcher thinks the proportion is different.
  • (b) Last year, 12%12\% of a city’s water meters gave faulty readings. After an upgrade, the city hopes the proportion is lower.
  • (c) A website says that at least 30%30\% of its users visit daily. An advertiser suspects the true proportion is lower.

H2. (Foundations) For H0:p=0.30H_0: p = 0.30 against Ha:p<0.30H_a: p \lt 0.30, a random sample of 150150 from a large population has 3636 successes. Check the conditions, then find the test statistic and the p-value.

H3. (Core) Nationally, about 18%18\% of Canadians cycle at least once a week in summer. A Kelowna council member thinks the proportion is higher in Kelowna. In a random sample of 350350 Kelowna residents, 7777 cycle at least once a week in summer. Do the data give convincing evidence at α=0.05\alpha = 0.05 that the council member is right?

H4. (Core) For your test in H3:

  • (a) Interpret the p-value in context.
  • (b) A classmate says: “The p-value means there’s only about a 2.6%2.6\% chance that 18%18\% is the right figure for Kelowna.” Explain what’s wrong.

H5. (Core) A board-game company wants to check that its six-sided dice are fair. A tester rolls one die 600600 times and gets 120120 sixes.

  • (a) Carry out a test at α=0.01\alpha = 0.01 of whether the proportion of sixes is different from 16\dfrac{1}{6}. (Rolls of a die are independent, so the Random and 10% conditions are replaced by independence.)
  • (b) Would the conclusion change at α=0.05\alpha = 0.05?

H6. (Core) A student tested whether more than half of the students at a large school want a later start time. In a random sample of 120120 students, 6969 said yes. Here is the student’s write-up:

H0:p^=0.5H_0: \hat{p} = 0.5, Ha:p^>0.5H_a: \hat{p} \gt 0.5.

p^=0.575\hat{p} = 0.575, so z=0.575−0.50.575(0.425)/120=1.66z = \dfrac{0.575 - 0.5}{\sqrt{0.575(0.425)/120}} = 1.66. p-value =0.0485= 0.0485.

0.0485<0.050.0485 \lt 0.05, so we accept HaH_a. This proves that more than half the students want a later start.

  • (a) Identify three errors.
  • (b) Find the correct test statistic and p-value, and write a correct conclusion at α=0.05\alpha = 0.05.

H7. (Challenge) A one-sample z-test for a proportion gives z=−1.80z = -1.80. Find the p-value if the alternative is (a) Ha:p<p0H_a: p \lt p_0, (b) Ha:p>p0H_a: p \gt p_0, and (c) Ha:p≠p0H_a: p \ne p_0. Explain why (b) is so large.

H8. (Challenge) A company will test H0:p=0.60H_0: p = 0.60 against Ha:p>0.60H_a: p \gt 0.60 at α=0.05\alpha = 0.05 using a random sample of 200200 customers.

  • (a) Find the smallest number of successes xx that would lead to rejecting H0H_0.
  • (b) Check your answer by finding the p-values for xx and x−1x - 1.

H9. (Challenge) A supplier claims that 2%2\% of its parts are defective. A buyer randomly selects 200200 parts from a large batch and finds 99 defective.

  • (a) Explain why a z-test is not appropriate.
  • (b) Assuming the supplier’s claim is true, the number of defective parts XX in the sample has a binomial distribution with n=200n = 200 and p=0.02p = 0.02. Use it to find the p-value for testing H0:p=0.02H_0: p = 0.02 against Ha:p>0.02H_a: p \gt 0.02.
  • (c) Write a conclusion at α=0.05\alpha = 0.05.

H10. (Challenge) An online platform tests whether a new button changes the proportion of visitors who click “subscribe”. With a huge random sample of 40 00040\,000 visitors, the click rate is p^=0.505\hat{p} = 0.505, compared with the long-run rate of 0.500.50.

  • (a) Carry out a two-sided test at α=0.05\alpha = 0.05.
  • (b) Construct a 95%95\% confidence interval for the new click rate.
  • (c) The platform’s manager says redesigning the button only pays off if the click rate rises by at least 22 percentage points. Is the result statistically significant? Is it practically important? Explain the difference.