6.5 Hypothesis tests

Syllabus
9709–2028–2029
Topic
6.5
Level
A2

Learning objectives

The alternative hypothesis chooses the evidence tail

Term Role in the test
null hypothesis H0H_0 parameter claim used to calculate the reference distribution
alternative H1H_1 upper, lower or two-sided claim that selects the tail(s)
test statistic sample evidence compared with the null distribution
significance level α\alpha maximum/target long-run Type I error rate
rejection (critical) region values sufficiently extreme to reject H0H_0
acceptance region values for which H0H_0 is not rejected
Alternative Test form
parameter >> null value upper-tailed
parameter << null value lower-tailed
parameter \ne null value two-tailed

Calculate a null tail probability (p-value) or compare the statistic with a pre-set rejection region. Reject H0H_0 when the p-value is at most α\alpha or the statistic lies in the rejection region; otherwise do not reject H0H_0.

A two-sided p-value of 0.04 gives sufficient evidence against H0H_0 at 5% but not at 1%. The final statement must name the contextual claim in H1H_1, such as evidence that a mean has changed.

A p-value is not P(H0 is true)P(H_0\text{ is true}). Failure to reject means the evidence is insufficient at the chosen level; it does not prove H0H_0 or justify saying ‘accept H0H_0’ as certainty.

Test a binomial or Poisson count under its null model

Step Discrete-count test
hypotheses state H0:p=p0H_0:p=p_0 or H0:λ=λ0H_0:\lambda=\lambda_0 and a contextual one/two-sided H1H_1
null model use B(n,p0)B(n,p_0) or Po(λ0)Po(\lambda_0), not an observed estimate
extremity include the observed value and outcomes at least as extreme in the H1H_1 direction
calculation evaluate directly, or use a suitable normal approximation with continuity correction
decision compare tail probability/critical region with α\alpha and conclude in context

To test whether a coin has probability greater than 0.50.5 of heads, use H0:p=0.5H_0:p=0.5, H1:p>0.5H_1:p>0.5. If 15 heads occur in 20 tosses, the direct p-value is P(X15XB(20,0.5))=r=1520(20r)(0.5)20.P(X\ge15\mid X\sim B(20,0.5))=\sum_{r=15}^{20}\binom{20}{r}(0.5)^{20}. Compare this value with the stated significance level.

For a suitable binomial null model use N(np0,np0(1p0))N(np_0,np_0(1-p_0)); for a suitable Poisson null model use N(λ0,λ0)N(\lambda_0,\lambda_0). Apply continuity correction to the observed/critical integer boundary before standardising.

For a two-tailed discrete test, construct both extreme regions under H0H_0 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^\hat 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.

Test a population mean with the null standard error

Syllabus case Null standard error
normal population, known σ2\sigma^2 σ/n\sigma/\sqrt n
large sample, σ\sigma unknown s/ns/\sqrt 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\sigma=10. Test H0:μ=50H_0:\mu=50 against H1:μ>50H_1:\mu>50 using n=100n=100 and xˉ=51.8\bar x=51.8. Then SE=1SE=1 and z=1.8z=1.8, giving upper-tail p-value P(Z1.8)0.0359P(Z\ge1.8)\approx0.0359. Reject at 5% and conclude there is evidence that the population mean exceeds 50.

The same z=1.8z=1.8 would not reject a two-sided test at 5%, because the two-sided 5% critical values are approximately ±1.96\pm1.96. Always formulate H1H_1 before using the data.

Divide by the standard error, not by σ\sigma itself. This syllabus objective uses the stated normal-known-variance or large-sample normal method; do not introduce a t distribution.

Type I rejects a true null; Type II misses a false null

True state Reject H0H_0 Do not reject H0H_0
H0H_0 true Type I error correct decision
H0H_0 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.

Keep the rejection rule fixed, then change the true model

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,,X25X_1,\ldots,X_{25} are normal with known σ=10\sigma=10, and a 5% upper-tail test of H0:μ=50H_0:\mu=50 rejects when Xˉ>53.29\bar X>53.29 (since 50+1.645(10/5)=53.2950+1.645(10/5)=53.29). Under H0H_0, P(Type I)=P(Xˉ>53.29μ=50)0.05.P(\text{Type I})=P(\bar X>53.29\mid\mu=50)\approx0.05.

If the true mean is instead 54, the same fixed rule makes a Type II error when Xˉ53.29\bar X\le53.29. Hence P(Type II at μ=54)=P(Z53.29542)=P(Z0.355)0.361.P(\text{Type II at }\mu=54)=P\left(Z\le\frac{53.29-54}{2}\right)=P(Z\le-0.355)\approx0.361.

For a binomial rule ‘reject H0:p=p0H_0:p=p_0 when XcX\ge c’, Type I is Pp0(Xc)P_{p_0}(X\ge c) and Type II at p=p1p=p_1 is Pp1(X<c)P_{p_1}(X<c). For a Poisson test, use the same regions with Po(λ0)Po(\lambda_0) and the stated alternative Po(λ1)Po(\lambda_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.