Hypothesis test for a binomial proportion
Studying this course? Keep your progress in one place.
Key facts
- Follow four steps: hypotheses, distribution under , -value or critical region, conclusion in context.
- Use the value of in , never the sample proportion .
- -value for is ; for it is . Reject if it is .
- In a two-tailed test at 5%, compare the relevant tail with .
- A test gives evidence, not proof; conclusions are cautious and in context.
Setting up the test
A test uses a sample to make an inference about the population value of . Follow the same four steps every time.
The significance level is the probability of incorrectly rejecting (rejecting it when it is true).
The sample gives the inference; the value of you use in the distribution always comes from .
- 1
Hypotheses
Define in words and write and .
- 2
Distribution
State the distribution under , such as .
- 3
Method
Use the -value or a critical region at the stated significance level.
- 4
Conclusion
Decide about , then state the conclusion in context.
A coin is claimed to be fair. In 20 tosses there are 14 heads. Which distribution is used for the test?
The p-value method
Find the probability, under , of a result at least as extreme as the observed value in the direction of , then compare it with .
If the -value is , reject .
Write the probability you are calculating, such as , before using the calculator.
- -value
- Lower tail
- -value
- Upper tail
Worked example
Historically 25% of buses are late. In 12 journeys 1 is late. Test at the 5% level whether the proportion of late buses has decreased.
- 1
Hypotheses: , .
- 2
Under , .
- 3
The direction of is lower, so -value .
- 4
Compare: , so do not reject .
For and an observed value , which probability is the -value?
The critical region method
Find the critical region for the significance level first, then see whether the observed value lies in it.
The critical region is the set of values that lead to rejecting .
The actual significance level is the true probability of landing in the critical region under . It is usually lower than the stated level because is discrete.
Worked example
, , , 5% level. Find the critical region and the actual significance level. Is an observed value of 17 significant?
- 1
Try : , which is more than .
- 2
Try : , which is at most .
- 3
So the critical region is .
- 4
The actual significance level is , lower than because is discrete.
- 5
17 is not in the critical region.
The critical region is and the observed value is 18. What is the decision?
Two-tailed tests
When , split the significance level equally between the two tails. At 5%, compare the relevant tail with .
Use the tail in the direction of the observed result: the lower tail if is below the expected value , the upper tail if it is above.
| One-tailed | Two-tailed | |
|---|---|---|
| or | ||
| Compare a tail with (5% level) | 0.05 | 0.025 |
| Tail to use | The direction of | The direction of the observed result |
One-tailed
- :
- or
- Compare a tail with (5% level):
- 0.05
- Tail to use:
- The direction of
Two-tailed
- :
- Compare a tail with (5% level):
- 0.025
- Tail to use:
- The direction of the observed result
Worked example
A coin gives 9 heads in 10 tosses. Test at the 5% level whether it is biased.
- 1
Hypotheses: , .
- 2
Under , . The observed is above , so use the upper tail.
- 3
.
- 4
Compare with : , so reject .
In a two-tailed test at the 5% level, a tail probability is 0.04. What is the decision?
Interpreting the result
The conclusion has two parts: the decision about , then a sentence in context, in cautious wording.
The result can depend on the significance level: a -value of rejects at 5% but not at 1%.
Because a sample is used, the test can reach the wrong decision. The probability of incorrectly rejecting is the significance level. A larger sample gives a more reliable estimate of .
Reject H₀
- There is sufficient evidence, at the 5% level, that the proportion of defective items is higher than 8%
Do not reject H₀
- There is insufficient evidence that the cure rate is higher
- This does not prove H₀ true
A -value of is found. At which significance levels is rejected?
Try an exam question
A manufacturer claims that of its items are defective. A manager thinks the true proportion is higher. In a random sample of items, are defective. Test the manager's belief at the 5% significance level.
[5 marks]
- [1] and , where is the probability an item is defective.
- [1]Under , .
- [1]-value .
- [1], so reject .
- [1]There is sufficient evidence, at the 5% level, that the proportion of defective items is higher than 8%.
That's the notes covered.
Carry on to the next subtopic.
Try a question
Which expression gives the -value for this test?
1 mark, marked against the mark scheme
Which expression gives the -value for this test?
1 mark, marked against the mark scheme