Worked example
A process is tested using H0:p=0.5 against H1:p=0.5. In 20 independent trials there are 5 successes. Given P(X≤5)=0.02069 under X∼B(20,0.5), conduct a two-tailed test at the 5% level.
- 1.The null distribution is symmetric because p0=0.5.
- 2.Outcomes at least as extreme as 5 lie in the two tails, so the p-value is 2P(X≤5)=2(0.02069)=0.04138.
- 3.This is less than 0.05, so reject H0 and infer a difference in the population proportion.
Answer: Two-tailed p-value =2(0.02069)=0.04138.; Reject H0.; There is sufficient evidence that the population success probability differs from 0.5.
Exam tip
State both hypotheses, compare the full p-value with the significance level and phrase the conclusion about evidence, not proof.