6.5 Hypothesis tests
- Syllabus
- 9709–2028–2029
- Topic
- 6.5
- Level
- A2
| Term | Role in the test |
|---|---|
| null hypothesis H0 | parameter claim used to calculate the reference distribution |
| alternative H1 | upper, lower or two-sided claim that selects the tail(s) |
| test statistic | sample evidence compared with the null distribution |
| significance level α | maximum/target long-run Type I error rate |
| rejection (critical) region | values sufficiently extreme to reject H0 |
| acceptance region | values for which H0 is not rejected |
| Alternative | Test form |
|---|---|
| parameter > null value | upper-tailed |
| parameter < null value | lower-tailed |
| parameter = null value | two-tailed |
Calculate a null tail probability (p-value) or compare the statistic with a pre-set rejection region. Reject H0 when the p-value is at most α or the statistic lies in the rejection region; otherwise do not reject H0.
A two-sided p-value of 0.04 gives sufficient evidence against H0 at 5% but not at 1%. The final statement must name the contextual claim in H1, such as evidence that a mean has changed.
A p-value is not P(H0 is true). Failure to reject means the evidence is insufficient at the chosen level; it does not prove H0 or justify saying ‘accept H0’ as certainty.
| Step | Discrete-count test |
|---|---|
| hypotheses | state H0:p=p0 or H0:λ=λ0 and a contextual one/two-sided H1 |
| null model | use B(n,p0) or Po(λ0), not an observed estimate |
| extremity | include the observed value and outcomes at least as extreme in the H1 direction |
| calculation | evaluate directly, or use a suitable normal approximation with continuity correction |
| decision | compare tail probability/critical region with α and conclude in context |
To test whether a coin has probability greater than 0.5 of heads, use H0:p=0.5, H1:p>0.5. If 15 heads occur in 20 tosses, the direct p-value is P(X≥15∣X∼B(20,0.5))=r=15∑20(r20)(0.5)20. Compare this value with the stated significance level.
For a suitable binomial null model use N(np0,np0(1−p0)); for a suitable Poisson null model use N(λ0,λ0). Apply continuity correction to the observed/critical integer boundary before standardising.
For a two-tailed discrete test, construct both extreme regions under H0 so their combined null probability does not exceed the significance level. Discreteness may make the actual significance smaller than the nominal level.
Do not use p^ or the observed rate inside the null distribution. Exact binomial/Poisson calculations need no continuity correction; the half-unit correction belongs only to a normal approximation.
| Syllabus case | Null standard error |
|---|---|
| normal population, known σ2 | σ/n |
| large sample, σ unknown | s/n using the sample estimate |
For $H_0:\mu=\mu_0$, useZ=\frac{\bar X-\mu_0}{\operatorname{SE}(\bar X)}.The alternative $\mu>\mu_0$, $\mu<\mu_0$ or $\mu\ne\mu_0$ selects the upper, lower or two-tailed probability.
A normal population has known σ=10. Test H0:μ=50 against H1:μ>50 using n=100 and xˉ=51.8. Then SE=1 and z=1.8, giving upper-tail p-value P(Z≥1.8)≈0.0359. Reject at 5% and conclude there is evidence that the population mean exceeds 50.
The same z=1.8 would not reject a two-sided test at 5%, because the two-sided 5% critical values are approximately ±1.96. Always formulate H1 before using the data.
Divide by the standard error, not by σ itself. This syllabus objective uses the stated normal-known-variance or large-sample normal method; do not introduce a t distribution.
| True state | Reject H0 | Do not reject H0 |
|---|---|---|
| H0 true | Type I error | correct decision |
| H0 false | correct decision | Type II error |
\alpha=P(\text{reject }H_0\mid H_0\text{ true}),\beta=P(\text{do not reject }H_0\mid\text{specified alternative is true}).
Type I is a false positive: evidence is declared when the null state is actually true. Type II is a false negative: the test fails to detect a specified departure from the null.
For a fixed test rule, the Type I probability is evaluated under the null parameter. The Type II probability depends on which alternative parameter value is actually true; it is not one universal number.
Do not reverse the labels and do not say a Type II error means ‘accepting a true null’. It means not rejecting a null that is false.
| Error probability | Keep fixed | Evaluate under | Probability region |
|---|---|---|---|
| Type I | rejection rule | null parameter | rejection region |
| Type II at a stated alternative | same rejection rule | stated alternative parameter | acceptance region |
Suppose X1,…,X25 are normal with known σ=10, and a 5% upper-tail test of H0:μ=50 rejects when Xˉ>53.29 (since 50+1.645(10/5)=53.29). Under H0, P(Type I)=P(Xˉ>53.29∣μ=50)≈0.05.
If the true mean is instead 54, the same fixed rule makes a Type II error when Xˉ≤53.29. Hence P(Type II at μ=54)=P(Z≤253.29−54)=P(Z≤−0.355)≈0.361.
For a binomial rule ‘reject H0:p=p0 when X≥c’, Type I is Pp0(X≥c) and Type II at p=p1 is Pp1(X<c). For a Poisson test, use the same regions with Po(λ0) and the stated alternative Po(λ1). Evaluate these discrete probabilities directly when required.
Do not move the critical boundary after switching to the alternative distribution. Type II uses the acceptance region, and its probability must name the alternative parameter value.