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.
Key ideas
Section titled “Key ideas”Hypotheses about p
Section titled “Hypotheses about p”A test for a proportion is about the population proportion , never the sample proportion . Start by defining in context: what proportion, of which population, with what characteristic.
- The null hypothesis is the “status quo” claim, assumed true unless there’s convincing evidence against it. is the hypothesized value.
- The alternative hypothesis is the claim you’re collecting evidence for. It is one of
The first two are one-sided; 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 . You’ll also see in other courses, including the introduction page; they mean the same thing.
The conditions
Section titled “The conditions”The procedure is a one-sample z-test for a population proportion. It needs:
| Condition | What to check |
|---|---|
| Random | The data come from a random sample. |
| 10% | When sampling without replacement, of the population. |
| Large Counts | The expected successes and failures, and , are both at least . |
Large Counts uses , not . A test asks “what would happen if were true?”, so every calculation assumes . (For a confidence interval you use the observed counts instead.)
The test statistic
Section titled “The test statistic”If is true, is approximately normal with mean and standard deviation . The test statistic measures how many standard deviations is from :
This matches the general form on the formula sheet, . The distribution of when is true (here, the standard normal) is called the null distribution.
The p-value
Section titled “The p-value”The p-value is the probability, assuming is true, of getting a test statistic as extreme as the one observed, or more extreme, in the direction of :
| Alternative | p-value |
|---|---|
| , the upper tail | |
| , the lower tail | |
| , both tails |
A small p-value means the observed result would be unusual if were true, so it’s evidence for . 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 is true: it’s not evidence for , and it’s not evidence that is true either.
To interpret a p-value in context, use this pattern:
Assuming that [ in context], there is a [p-value] probability of getting a sample proportion of [] or [more extreme, in the direction of ] by chance alone.
The decision and the conclusion
Section titled “The decision and the conclusion”The significance level (often ) is chosen before collecting the data. Then:
- If p-value : reject . There is convincing evidence for .
- If p-value : fail to reject . There is not convincing evidence for .
Write the conclusion in context and in terms of , with the parameter and the population: “Because the p-value of is less than , we reject . There is convincing evidence that the proportion of all Halifax teens who volunteer is greater than .” Never write “accept ” or “this proves”.
Two-sided tests and confidence intervals
Section titled “Two-sided tests and confidence intervals”A two-sided test at and a confidence interval usually agree: if is outside the interval, the test rejects ; if it’s inside, the test doesn’t. (They can disagree in borderline cases, because the interval’s standard error uses and the test’s uses .) The interval tells you more: not just “is plausible?” but which values are.
On the AP exam
Section titled “On the AP exam”A complete test has four parts:
- State: hypotheses, with defined in context, and .
- Plan: name the procedure (one-sample z-test for ) and check the conditions with numbers, using .
- Do: the test statistic (formula with numbers substituted) and the p-value.
1-PropZTeston a TI-84 is a good check. - Conclude: compare the p-value with , make a decision, and state the conclusion in context in terms of .
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.
Worked examples
Section titled “Worked examples”Example 1: Writing hypotheses
Section titled “Example 1: Writing hypotheses”Define the parameter and write the hypotheses.
- (a) A national survey found that of Canadian teens volunteer regularly. A youth group in Halifax thinks the proportion is higher among Halifax teens.
- (b) A school board says 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 of its phones need a repair in the first year. A consumer group suspects the rate is higher.
Solution.
(a) = the proportion of all Halifax teens who volunteer regularly. , (one-sided: “higher”).
(b) = the proportion of all the board’s students who take the bus. , (two-sided: “still right” has no direction).
(c) = the proportion of all the maker’s phones that need a repair in the first year. , . (The claim “no more than ” is the status quo, tested at its boundary ; the consumer group’s suspicion goes in .)
Example 2: A one-sided test
Section titled “Example 2: A one-sided test”In a random sample of Halifax teens, volunteer regularly. Do these data give convincing evidence at that more than of Halifax teens volunteer regularly?
Solution.
State. = the proportion of all Halifax teens who volunteer regularly.
Plan. One-sample z-test for .
- Random: random sample of Halifax teens.
- 10%: is less than of all Halifax teens (there are more than ).
- Large Counts: and .
Do. .
Conclude. Because the p-value of is less than , we reject . There is convincing evidence that the proportion of all Halifax teens who volunteer regularly is greater than .
Example 3: Interpreting the p-value
Section titled “Example 3: Interpreting the p-value”Interpret the p-value from Example 2 in context.
Solution. Assuming that of all Halifax teens volunteer regularly, there is a probability of getting a sample proportion of or higher in a random sample of teens, by chance alone.
That’s about sample in : rare enough that we doubt the "" 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 of its students take the bus. A consultant surveys a random sample of students and finds that take the bus. Test the board’s figure at , then compare with a confidence interval.
Solution.
State. = the proportion of all the board’s students who take the bus.
Plan. One-sample z-test for . Random: random sample. 10%: . Large Counts: and , both at least .
Do. .
Conclude. Because the p-value of is greater than , we fail to reject . There is not convincing evidence that the proportion of all the board’s students who take the bus is different from .
Compare. The interval is , or . It contains , so is plausible, which agrees with the test. But so is : failing to reject doesn’t show that is .
Common mistakes
Section titled “Common mistakes”Writing hypotheses about p̂. "" is wrong: you already know . Hypotheses are always about the population parameter , and should be defined in context.
Using p̂ in the standard deviation or in Large Counts. In a test, everything is calculated assuming is true, so use : and , . (Using is right for an interval, not a test.)
Forgetting to double for a two-sided test. For , results far from 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 is true; it’s the probability of data like yours, not of the hypothesis. Example 2 does not mean “there’s a chance that is right”.
Accepting H₀. A large p-value means the data are consistent with , not that is true. Write “fail to reject ; 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 , you’ve halved the p-value after the fact. The direction must come from the research question.
Practice
Section titled “Practice”1. (Warm-up) Define the parameter and write the hypotheses.
- (a) A survey years ago found 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” of the time, as intended.
Solution
(a) = the proportion of all Manitoba households that now have a landline. , .
(b) = the true proportion of all spins that land on “bonus”. , .
2. (Warm-up) A test of uses a random sample of from a large population. Check the Large Counts condition.
Solution
, which is less than , so the Large Counts condition fails. ( is fine, but both must be at least .) A z-test isn’t appropriate here.
3. (Warm-up) For against , a random sample of gives . Find the test statistic and the p-value. (Assume the conditions are met.)
Solution
(Technology with the unrounded gives .)
4. (Core) A test of against gives a p-value of .
- (a) What is the decision at ? At ?
- (b) Explain why the decision can be different for the two significance levels.
Solution
(a) At : , so reject . At : , so fail to reject .
(b) sets how unusual a result must be before you reject . A p-value of is unusual enough to meet a standard but not the stricter standard. That’s why must be chosen before seeing the data.
5. (Core) A manufacturer claims that of its LED bulbs last at least hours. A consumer group tests a random sample of bulbs from a large shipment, and last that long. Do the data give convincing evidence at that fewer than of the bulbs last at least hours?
Solution
State. = the proportion of all the manufacturer’s LED bulbs (in the shipment) that last at least hours. , , .
Plan. One-sample z-test for . Random: random sample. 10%: is less than of a large shipment. Large Counts: and , both at least .
Do. .
Conclude. Because , reject . There is convincing evidence that fewer than of the manufacturer’s bulbs last at least hours.
6. (Core) About of people are left-handed. A researcher takes a random sample of students from a large school board and finds that are left-handed. At , is there convincing evidence that the proportion of left-handed students in this board is different from ?
Solution
State. = the proportion of all students in the board who are left-handed. , , .
Plan. One-sample z-test for . Random sample; is less than of a large board; and are both at least .
Do. .
Conclude. Because , fail to reject . There is not convincing evidence that the proportion of left-handed students in the board is different from .
7. (Core) Interpret the p-value from Question 6 in context.
Solution
Assuming that of all students in the board are left-handed, there is a probability of getting a sample proportion at least as far from as (in either direction) in a random sample of students, by chance alone.
8. (Challenge) A survey finds when testing against at .
- (a) If , is the result significant?
- (b) Find the smallest sample size for which would be significant.
- (c) What does this tell you about “statistically significant” results from very large samples?
Solution
(a) , and . Not significant.
(b) Reject when :
So . (Check: gives ; gives , just short.)
(c) The same sample proportion can be significant or not, depending only on . With a big enough sample, even a tiny difference from 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 confidence interval for is . Without doing a test, predict the decision of a two-sided test at for (a) and (b) . Why is this only a prediction?
Solution
(a) is inside the interval, so it’s a plausible value: expect to fail to reject .
(b) is outside the interval: expect to reject .
It’s only a prediction because the interval’s standard error uses , while the test’s standard deviation uses . When is close to an end of the interval, the two methods can occasionally disagree.
Homework
Section titled “Homework”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.
Foundations
Section titled “Foundations”H1. (Foundations) Define the parameter and write the hypotheses.
- (a) A ski resort in Whistler says of its visitors are from outside British Columbia. A tourism researcher thinks the proportion is different.
- (b) Last year, 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 of its users visit daily. An advertiser suspects the true proportion is lower.
H2. (Foundations) For against , a random sample of from a large population has successes. Check the conditions, then find the test statistic and the p-value.
H3. (Core) Nationally, about 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 Kelowna residents, cycle at least once a week in summer. Do the data give convincing evidence at 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 chance that 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 times and gets sixes.
- (a) Carry out a test at of whether the proportion of sixes is different from . (Rolls of a die are independent, so the Random and 10% conditions are replaced by independence.)
- (b) Would the conclusion change at ?
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 students, said yes. Here is the student’s write-up:
, .
, so . p-value .
, so we accept . 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 .
Challenge
Section titled “Challenge”H7. (Challenge) A one-sample z-test for a proportion gives . Find the p-value if the alternative is (a) , (b) , and (c) . Explain why (b) is so large.
H8. (Challenge) A company will test against at using a random sample of customers.
- (a) Find the smallest number of successes that would lead to rejecting .
- (b) Check your answer by finding the p-values for and .
H9. (Challenge) A supplier claims that of its parts are defective. A buyer randomly selects parts from a large batch and finds defective.
- (a) Explain why a z-test is not appropriate.
- (b) Assuming the supplier’s claim is true, the number of defective parts in the sample has a binomial distribution with and . Use it to find the p-value for testing against .
- (c) Write a conclusion at .
H10. (Challenge) An online platform tests whether a new button changes the proportion of visitors who click “subscribe”. With a huge random sample of visitors, the click rate is , compared with the long-run rate of .
- (a) Carry out a two-sided test at .
- (b) Construct a 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 percentage points. Is the result statistically significant? Is it practically important? Explain the difference.