Testing a Proportion
Testing a percentage works just like testing a mean: count how many standard errors your sample proportion landed from the claimed one. The one twist is that the standard error comes from the claimed value , because the test pretends is true.
What the symbols mean
- Sample proportion
What the data show.
- Hypothesized proportion
What the null hypothesis claims.
Explanation
A test for a proportion is simply a check of whether a percentage you measured, like 60 heads in 100 flips, is far enough from a claimed percentage to doubt the claim. The formula looks tall, but it's the same "how many standard errors off?" idea: on top, (what you saw minus what was claimed), and on the bottom, (how much sample proportions normally wobble, which you met in the CLT unit). Same structure as the z-test for a mean, with a different standard error.
Why it works. Recall that a sample proportion is just an average of 0s and 1s, so the central limit theorem makes it roughly normal around the true with standard error . The test plugs in the claimed value and asks how far out your landed.
Why in the standard error? The whole test is built on the assumption that is true, and if it is, the true proportion is . So the spread of is computed from , not from your data.
Conditions: and , the same normal-approximation check as before, with in place of .
A common mistake. It's tempting to use in the standard error, since that's what confidence intervals do. In a test, use . Intervals don't assume any value for , so they use the best guess, ; tests assume , so they use .
See it
Worked examples
A coin lands heads 60 times in 100 flips. Is it unfair? Use .
- 1
A fair coin has , and "unfair" could go either way: , .
Practice
Type your answer and check it. Solve them all to complete the lesson.
60 heads in 100 flips. Find the statistic for .
Find the two-tailed p-value.
A company claims 90% customer satisfaction. In a survey, 171 of 200 are satisfied. Find .
For , find the p-value.
At , what is the decision?
A website's old checkout page converted 10% of visitors. A new design converts 130 of 1,000 visitors. Find for .
For 60 heads in 100 flips, the exact binomial probability of 60 or more heads is 0.0284. Approximate it with the normal distribution using a continuity correction: , with mean 50 and standard deviation 5.
The hardest one here. Get it, and you've got this lesson.
A coin lands heads 55% of the time in some number of flips. How many flips would make that significant at (two-tailed, )?
Where it's used
Testing whether a vaccine's efficacy beats a threshold, whether a new design raises the click-through rate, or whether a defect rate exceeds a contract limit.