EuraStudy
Notes/Mathematics/Statistical hypothesis testing
Notes · MathematicsUK · A-Levels

Statistical hypothesis testing

Hypothesis testing decides, from sample evidence, between two competing claims about a population. The A-Level covers the logic of testing (null and alternative hypotheses, significance levels, one- and two-tailed tests) and three specific tests: for a binomial proportion, for a correlation coefficient, and for the mean of a normal distribution with known variance.

4 sections·~11 min reading time·3 competencies·Level Standard 1 · Advanced 3

T·161616 / 20
Exam profile
AO1 · Carry out hypothesis tests and find critical regionsAO2 · Interpret and communicate conclusions in contextAO3 · Formulate hypotheses appropriate to a stated question
Operators:testfindstateconcludedetermineshow that

basic level

AS-Level covers the language of hypothesis testing and the test for a binomial proportion.

higher level

The full A-Level adds tests for a correlation coefficient and for the mean of a normal distribution with known variance.

Depth

Reading depth: In depth

Text

Text size: Standard

Contents · 4 sections▾
  1. Statistical hypothesis testing
    • 01The logic of hypothesis testing◐
    • 02Testing a binomial proportion●
    • 03Correlation hypothesis tests●
    • 04Testing a normal mean●
§ 01

The logic of hypothesis testing#

●●○StandardLPDfE GCE Mathematics — testingLPAQA 7357 (Statistics)

Two-tailed critical regions

Critical regions (two-tailed, 5%)Number line, -1.96, 1.96, reject, reject−4−3−2−101234rejectreject
Fig. 1For a two-tailed test the significance level is split between the two tails; a test statistic in either tail rejects H0H_0H0​.

Key points

A hypothesis test weighs sample evidence against a default claim. The null hypothesis H0H_0H0​ states the status quo (a specific value of a parameter, such as p=0.5p = 0.5p=0.5), and the alternative hypothesis H1H_1H1​ states what you suspect instead. The test asks: if H0H_0H0​ were true, how likely is the observed data? If the data would be very unlikely under H0H_0H0​, we reject H0H_0H0​ in favour of H1H_1H1​; otherwise we do not.
'Very unlikely' is made precise by the significance level, usually 5% or 1%. This is the probability, chosen in advance, of rejecting H0H_0H0​ when it is in fact true (a Type I error). A smaller significance level demands stronger evidence to reject H0H_0H0​. The corresponding critical region is the set of outcomes so extreme that observing one leads to rejection.
The direction of the alternative determines whether the test is one- or two-tailed. If H1H_1H1​ specifies a direction (p>0.5p > 0.5p>0.5 or p<0.5p < 0.5p<0.5) the test is one-tailed and the critical region sits in one tail; if H1H_1H1​ is 'not equal' (p≠0.5p \neq 0.5p=0.5) the test is two-tailed and the significance level is split between both tails. Choosing the correct type from the wording of the question is essential and frequently examined.
There are two equivalent methods. The critical-region method finds the extreme outcomes in advance and checks whether the data fall in them; the ppp-value method computes the probability of a result at least as extreme as observed and compares it with the significance level. Either way, the conclusion must be stated in context and never as certainty — a test provides evidence, not proof.
reject H0  ⟺  p-value<significance level\text{reject } H_0 \iff p\text{-value} < \text{significance level}reject H0​⟺p-value<significance level

The decision rule

If a result this extreme is too unlikely under H0H_0H0​, reject it; otherwise there is insufficient evidence.

Worked example

Setting up a test

A coin is suspected of being biased towards heads. It is tossed 20 times. Write suitable hypotheses and state the type of test.

  1. 01Define the parameter

    Let ppp be the probability of a head.

  2. 02State the hypotheses

    H0:p=0.5H_0: p = 0.5H0​:p=0.5 (fair) against H1:p>0.5H_1: p > 0.5H1​:p>0.5 (biased towards heads).

  3. 03Type of test

    The alternative gives a direction, so the test is one-tailed (upper tail).

Result: H0:p=0.5H_0: p = 0.5H0​:p=0.5, H1:p>0.5H_1: p > 0.5H1​:p>0.5; a one-tailed test.

Exam focus

  • State H0H_0H0​ and H1H_1H1​ precisely, and decide one- or two-tailed from the wording.
  • State the conclusion in context, describing evidence, not proof, and referring back to the original claim.

Typical mistakes

  • Using a one-tailed test when the alternative is 'not equal' (which needs two tails), or vice versa.
  • Stating the conclusion as certainty ('the coin is fair') rather than as evidence.

Active revision

A manufacturer claims 20% of chocolates are dark. A researcher suspects the proportion is different. State suitable hypotheses and say whether the test is one- or two-tailed.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 02

Testing a binomial proportion#

●●●AdvancedLPDfE GCE Mathematics — testingLPAQA 7357 (Statistics)

Binomial distribution under the null hypothesis

B(10, 0.5) with an upper critical regionColumn chart: probability by number of successes, Data: P(X = r) · 0: 0.001; P(X = r) · 1: 0.01; P(X = r) · 2: 0.044; P(X = r) · 3: 0.117; P(X = r) · 4: 0.205; P(X = r) · 5: 0.246; P(X = r) · 6: 0.205; P(X = r) · 7: 0.117; P(X = r) · 8: 0.044; P(X = r) · 9: 0.01; P(X = r) · 10: 0.00100.050.10.150.20123456789100.0010.010.0440.1170.2050.2460.2050.1170.0440.010.001probabilitynumber of successes
Fig. 2Under H0:p=0.5H_0: p = 0.5H0​:p=0.5 with n=10n = 10n=10, the upper-tail values (8, 9, 10) make up the critical region for an upper-tailed test.

Key points

A binomial test decides whether a population proportion ppp differs from a claimed value. Under H0H_0H0​ the number of successes XXX in nnn trials follows B(n,p0)B(n, p_0)B(n,p0​), and this known distribution provides the yardstick against which the observed count is judged. The test statistic is simply the observed number of successes.
In the ppp-value method you compute the probability, under H0H_0H0​, of a result at least as extreme as the one observed, and compare it with the significance level. For an upper-tail test with observed value xxx you find P(X≥x)P(X \geq x)P(X≥x); for a lower-tail test, P(X≤x)P(X \leq x)P(X≤x); for a two-tailed test you work in the relevant tail and compare with half the significance level. If this probability is smaller than the level, the result is significant and H0H_0H0​ is rejected.
In the critical-region method you find, before looking at the data, the set of extreme values whose total probability is at most the significance level. Because XXX is discrete, the critical region rarely has probability exactly equal to the level; you take the largest region not exceeding it, and its actual probability is the true significance (or 'actual significance level') of the test.
Whatever the method, the conclusion is a statement in context: 'there is sufficient evidence at the 5% level to reject H0H_0H0​ and conclude the proportion has increased', or 'insufficient evidence to reject H0H_0H0​'. Naming the significance level and referring to the original claim are required for full marks.
Under H0, X∼B(n,p0);reject if P(X≥x)<α\text{Under } H_0,\ X \sim B(n, p_0); \quad \text{reject if } P(X \geq x) < \alphaUnder H0​, X∼B(n,p0​);reject if P(X≥x)<α

Upper-tail binomial test

Compare the tail probability of the observed count with the significance level α\alphaα.

Worked example

A one-tailed binomial test

A treatment is claimed to succeed 40% of the time. In a trial of 20 patients, 13 recover. Test at the 5% level whether the success rate exceeds 40%.

  1. 01Hypotheses

    H0:p=0.4H_0: p = 0.4H0​:p=0.4, H1:p>0.4H_1: p > 0.4H1​:p>0.4; let X∼B(20,0.4)X \sim B(20, 0.4)X∼B(20,0.4) under H0H_0H0​.

  2. 02Tail probability

    P(X≥13)=1−P(X≤12)=1−0.9790=0.0210P(X \geq 13) = 1 - P(X \leq 12) = 1 - 0.9790 = 0.0210P(X≥13)=1−P(X≤12)=1−0.9790=0.0210.

    P(X≥13)=1−0.9790=0.0210P(X \geq 13) = 1 - 0.9790 = 0.0210P(X≥13)=1−0.9790=0.0210
  3. 03Compare and conclude

    0.0210<0.050.0210 < 0.050.0210<0.05, so the result is significant.

Result: Since 0.0210<0.050.0210 < 0.050.0210<0.05, reject H0H_0H0​: there is evidence at the 5% level that the success rate exceeds 40%.

Exam focus

  • Use the cumulative binomial to find the tail probability or the critical region, being careful with the boundary.
  • Quote the actual significance level for a critical-region test, since the discrete distribution rarely matches the nominal level exactly.

Typical mistakes

  • Computing P(X>x)P(X > x)P(X>x) instead of P(X≥x)P(X \geq x)P(X≥x) (missing the observed value itself).
  • For a two-tailed test, comparing the tail probability with the full level instead of half.

Active revision

It is claimed that 30% of customers choose the vegetarian option. In a sample of 25, 12 do. Test at the 5% level whether the proportion is greater than 30%.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 03

Correlation hypothesis tests#

●●●AdvancedLPDfE GCE Mathematics — testingLPAQA 7357 (Statistics)

Comparing r with its critical value

Sample r = 0.7 versus critical value 0.55Number line, 0.55, 0.7, reject H0−1−0.500.51reject H0
Fig. 3If the sample rrr exceeds the critical value (here 0.550.550.55) the result is significant and H0:ρ=0H_0: \rho = 0H0​:ρ=0 is rejected.

Key points

A correlation test decides whether a non-zero correlation observed in a sample is strong enough to be evidence of correlation in the population, or could plausibly have arisen by chance from an uncorrelated population. The population correlation coefficient is denoted ρ\rhoρ, and the sample gives the product moment correlation coefficient rrr. The null hypothesis is always H0:ρ=0H_0: \rho = 0H0​:ρ=0 (no correlation).
The alternative reflects what is being tested: H1:ρ>0H_1: \rho > 0H1​:ρ>0 (positive correlation), H1:ρ<0H_1: \rho < 0H1​:ρ<0 (negative correlation), or H1:ρ≠0H_1: \rho \neq 0H1​:ρ=0 (some correlation), giving a one- or two-tailed test. The choice, as always, comes from the wording of the question and determines how the significance level is applied.
The test compares the sample rrr with a critical value obtained from tables for the given sample size nnn and significance level. If the sample correlation is more extreme than the critical value — ∣r∣|r|∣r∣ larger than the tabulated figure — the result is significant and H0H_0H0​ is rejected. Larger samples require a smaller rrr to be significant, because a given correlation is less likely to arise by chance from more data.
The conclusion is stated in context: 'there is evidence at the 5% level of positive correlation between rainfall and yield'. As with all correlation, significance does not establish causation, and a careful answer says only that the data provide evidence of an association, not that one variable causes the other.
H0:ρ=0;reject if ∣r∣>rcritical(n,α)H_0: \rho = 0; \quad \text{reject if } |r| > r_{\text{critical}}(n, \alpha)H0​:ρ=0;reject if ∣r∣>rcritical​(n,α)

The correlation test

Compare the sample rrr with the tabulated critical value for the sample size and significance level.

Worked example

A correlation significance test

A sample of 10 pairs gives r=0.63r = 0.63r=0.63. Test at the 5% level whether there is positive correlation, given the one-tailed critical value is 0.54940.54940.5494.

  1. 01Hypotheses

    H0:ρ=0H_0: \rho = 0H0​:ρ=0, H1:ρ>0H_1: \rho > 0H1​:ρ>0 (one-tailed).

  2. 02Compare

    r=0.63>0.5494r = 0.63 > 0.5494r=0.63>0.5494, the critical value.

    0.63>0.54940.63 > 0.54940.63>0.5494
  3. 03Conclude

    The sample correlation exceeds the critical value, so the result is significant.

Result: Since 0.63>0.54940.63 > 0.54940.63>0.5494, reject H0H_0H0​: there is evidence at the 5% level of positive correlation.

Exam focus

  • State H0:ρ=0H_0: \rho = 0H0​:ρ=0 and the correct one- or two-tailed alternative, then compare ∣r∣|r|∣r∣ with the tabulated critical value.
  • Conclude in context and explicitly avoid claiming causation.

Typical mistakes

  • Writing the hypotheses in terms of rrr rather than the population parameter ρ\rhoρ.
  • Using the wrong critical value for the sample size or number of tails.

Active revision

For a sample of n=15n = 15n=15 pairs, the correlation is r=0.48r = 0.48r=0.48. The critical value for a one-tailed 5% test is 0.44090.44090.4409. Test at the 5% level for positive correlation.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

§ 04

Testing a normal mean#

●●●AdvancedLPDfE GCE Mathematics — testingLPAQA 7357 (Statistics)

Rejection regions for a two-tailed z-test

Two-tailed 5% rejection regionGraph of N(0, 1), maximum at (0, 0.399), y-intercept at y = 0.399, on the interval x from -4 to 4−4−3−2−112340.10.20.30.4N(0, 1)densityz
Fig. 4For a two-tailed 5% test, reject H0H_0H0​ if the standardised statistic lies beyond ±1.96\pm 1.96±1.96 (shaded tails).

Key points

A test for the mean of a normal distribution decides whether the population mean μ\muμ differs from a claimed value μ0\mu_0μ0​, based on a sample mean xˉ\bar{x}xˉ. The key theoretical result is that if individual values come from N(μ,σ2)N(\mu, \sigma^2)N(μ,σ2), then the mean of a sample of size nnn is itself normally distributed: Xˉ∼N ⁣(μ,σ2n)\bar{X} \sim N\!\left(\mu, \dfrac{\sigma^2}{n}\right)Xˉ∼N(μ,nσ2​). The spread of the sample mean is smaller than that of individuals by a factor of n\sqrt{n}n​.
Under H0:μ=μ0H_0: \mu = \mu_0H0​:μ=μ0​, the standardised test statistic is Z=Xˉ−μ0σ/nZ = \dfrac{\bar{X} - \mu_0}{\sigma / \sqrt{n}}Z=σ/n​Xˉ−μ0​​, which follows the standard normal N(0,1)N(0, 1)N(0,1). The observed sample mean is converted to a zzz-value, and either its tail probability (ppp-value) is compared with the significance level, or the zzz-value is compared with the critical value (±1.96\pm 1.96±1.96 for a two-tailed 5% test, 1.6451.6451.645 for one tail).
The direction of the alternative again fixes the tail(s): H1:μ>μ0H_1: \mu > \mu_0H1​:μ>μ0​, μ<μ0\mu < \mu_0μ<μ0​ or μ≠μ0\mu \neq \mu_0μ=μ0​. For this test the population variance σ2\sigma^2σ2 is assumed known; the sample provides only the mean xˉ\bar{x}xˉ, and the known standard deviation of the sample mean, σn\dfrac{\sigma}{\sqrt{n}}n​σ​, is the yardstick.
As with every test, the conclusion is a contextual statement about the evidence: 'there is sufficient evidence at the 5% level that the mean fill weight has fallen below 500 g'. Sketching the standard normal curve, shading the rejection region and marking the test statistic makes the comparison unambiguous and guards against tail errors.
Xˉ∼N ⁣(μ,σ2n),Z=Xˉ−μ0σ/n∼N(0,1)\bar{X} \sim N\!\left(\mu, \frac{\sigma^2}{n}\right), \qquad Z = \frac{\bar{X} - \mu_0}{\sigma / \sqrt{n}} \sim N(0, 1)Xˉ∼N(μ,nσ2​),Z=σ/n​Xˉ−μ0​​∼N(0,1)

Distribution of the sample mean and the test statistic

The sample mean is normal with reduced variance; standardising gives the z test statistic.

Worked example

A test for a normal mean

A machine fills bottles to N(500,42)N(500, 4^2)N(500,42) ml. A sample of 25 bottles has mean 498.5 ml. Test at the 5% level whether the mean has decreased.

  1. 01Hypotheses

    H0:μ=500H_0: \mu = 500H0​:μ=500, H1:μ<500H_1: \mu < 500H1​:μ<500 (one-tailed); Xˉ∼N ⁣(500,1625)\bar{X} \sim N\!\left(500, \tfrac{16}{25}\right)Xˉ∼N(500,2516​).

  2. 02Standardise

    Z=498.5−5004/25=−1.50.8=−1.875Z = \dfrac{498.5 - 500}{4/\sqrt{25}} = \dfrac{-1.5}{0.8} = -1.875Z=4/25​498.5−500​=0.8−1.5​=−1.875.

    Z=498.5−5004/5=−1.875Z = \frac{498.5 - 500}{4/5} = -1.875Z=4/5498.5−500​=−1.875
  3. 03Compare with the critical value

    The one-tailed 5% critical value is −1.645-1.645−1.645; since −1.875<−1.645-1.875 < -1.645−1.875<−1.645, the statistic is in the rejection region.

Result: Since −1.875<−1.645-1.875 < -1.645−1.875<−1.645, reject H0H_0H0​: there is evidence at the 5% level that the mean has decreased.

Exam focus

  • Use Xˉ∼N ⁣(μ,σ2n)\bar{X} \sim N\!\left(\mu, \dfrac{\sigma^2}{n}\right)Xˉ∼N(μ,nσ2​) and standardise with σn\dfrac{\sigma}{\sqrt{n}}n​σ​, not σ\sigmaσ.
  • Match the critical value to the number of tails (±1.96\pm 1.96±1.96 two-tailed, 1.6451.6451.645 one-tailed at 5%).

Typical mistakes

  • Dividing by σ\sigmaσ instead of σn\dfrac{\sigma}{\sqrt{n}}n​σ​ when standardising the sample mean.
  • Using the two-tailed critical value for a one-tailed test.

Active revision

The mean mass of a bag of sugar should be 1000 g with standard deviation 8 g. A sample of 16 bags has mean 996 g. Test at the 5% level whether the mean has fallen below 1000 g.

Active recall

Recall the key points — then reveal.

Sources: Mathematics: AS and A level content (GCE subject content) (Department for Education) · AQA A-level Mathematics 7357 specification (AQA)

Contents

Section -- / 04

    • 01The logic of hypothesis testing◐
    • 02Testing a binomial proportion●
    • 03Correlation hypothesis tests●
    • 04Testing a normal mean●

0/4 Read

From notes into training

Statistical hypothesis testing

Reinforce this topic with matching tasks from the question bank.

~11
min
3
Competencies
Practise

References & sources

Sources

Department for Education

  • Mathematics: AS and A level content (GCE subject content)

AQA

  • AQA A-level Mathematics 7357 specification

Previous topic

Statistical distributions

Next topic

Quantities and units in mechanics

EuraStudy·Notes T·16·MMXXVI

Carry on to the next topic — your learning path is kept.