EuraStudy
Notes/Statistics/Hypothesis testing, confidence intervals and power
Notes · StatisticsUK · A-Levels

Hypothesis testing, confidence intervals and power

This topic develops the main body of parametric inference for a mean: the z-test and confidence interval when the variance is known, the t-test and t-interval when it is unknown, and the extension to two-sample and paired designs. It treats the equivalence between a confidence interval and a two-tailed test, and the power of a test and the factors that govern it.

5 sections·~14 min reading time·3 competencies·Level Standard 2 · Advanced 3

T·131313 / 18
Exam profile
AO1 · Carry out z- and t-tests and construct confidence intervals for a meanAO2 · Choose between one-sample, two-sample and paired designs and interpret intervalsAO3 · Reason about the power of a test and the trade-offs in test design
Operators:testcalculateestimatedetermineconcludecomment

basic level

The AS foundation introduces the z-test and confidence interval for a mean with known variance.

higher level

The full A-Level expects the t-test, two-sample and paired tests, the interval-test equivalence and the power of a test.

Depth

Reading depth: In depth

Text

Text size: Standard

Contents · 5 sections▾
  1. Hypothesis testing, confidence intervals and power
    • 01The z-test and z-confidence interval for a mean◐
    • 02The t-distribution and the t-test●
    • 03Two-sample and paired tests●
    • 04Confidence intervals and their interpretation◐
    • 05The power of a test●
§ 01

The z-test and z-confidence interval for a mean#

●●○StandardLPPearson Edexcel 9ST0, Topic 13 (Paper 2)

Two-tailed rejection region

Function graph, (1/sqrt(2*pi))*exp(-x^2/2)Graph, 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.4−1.961.96densityz
Fig. 1Two-tailed 5% test: reject H0 if |z| > 1.96; the shaded tails carry 2.5% each.

Key points

When the population variance σ2\sigma^2σ2 is known and either the population is normal or the sample is large, a hypothesis about the mean is tested with the zzz-statistic z=xˉ−μ0σ/nz = \dfrac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}z=σ/n​xˉ−μ0​​. Under H0H_0H0​: μ=μ0\mu = \mu_0μ=μ0​ this has a standard normal distribution, so it is compared with the standard normal critical values — ±1.96\pm 1.96±1.96 for a two-tailed test at the 5% level, as shown by the shaded rejection tails below.
The test measures how many standard errors the sample mean lies from the hypothesised mean. A value of zzz beyond the critical value falls in a tail so improbable under H0H_0H0​ that H0H_0H0​ is rejected; a value inside the critical values does not. The two-tailed rejection region is the pair of tails whose total area is the significance level, split equally between them.
The corresponding confidence interval is xˉ±zσn\bar{x} \pm z\dfrac{\sigma}{\sqrt{n}}xˉ±zn​σ​, using the same critical value. This is the direct dual of the test: the values of μ0\mu_0μ0​ that would NOT be rejected by a two-tailed test at level α\alphaα are exactly those inside the 100(1−α)%100(1 - \alpha)\%100(1−α)% confidence interval. Computing the interval therefore answers the test and reports the precision in one step.
The conditions must be checked: the variance must genuinely be known (not estimated from the sample), and normality of Xˉ\bar{X}Xˉ must hold, either because the population is normal or because the sample is large enough for the central limit theorem. When σ\sigmaσ is estimated from a small sample, the ttt-procedure of the next section replaces the zzz.
z=xˉ−μ0σ/n,CI:  xˉ±z σnz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}, \qquad \text{CI}: \; \bar{x} \pm z\,\frac{\sigma}{\sqrt{n}}z=σ/n​xˉ−μ0​​,CI:xˉ±zn​σ​

z-test statistic and confidence interval

The number of standard errors from μ0\mu_0μ0​; the interval uses the same critical value.

Worked example

A two-tailed z-test and its interval

Cartons should contain 500 ml with known σ=8\sigma = 8σ=8 ml. A sample of 16 gives mean 496 ml. Test at the 5% level whether the mean differs from 500, and give a 95% confidence interval.

  1. 01Hypotheses

    H0H_0H0​: μ=500\mu = 500μ=500 against H1H_1H1​: μ≠500\mu \neq 500μ=500 (two-tailed).

  2. 02Test statistic

    z=496−5008/16=−42=−2z = \dfrac{496 - 500}{8/\sqrt{16}} = \dfrac{-4}{2} = -2z=8/16​496−500​=2−4​=−2.

    z=496−5008/4=−2z = \frac{496 - 500}{8/4} = -2z=8/4496−500​=−2
  3. 03Compare

    ∣−2∣=2>1.96|{-2}| = 2 > 1.96∣−2∣=2>1.96, so reject H0H_0H0​.

  4. 04Confidence interval

    496±1.96×2=(492.1,499.9)496 \pm 1.96 \times 2 = (492.1, 499.9)496±1.96×2=(492.1,499.9); 500 lies outside, agreeing with the rejection.

Result: z=−2z = -2z=−2, so reject H0H_0H0​ at the 5% level; the 95% interval (492.1, 499.9) excludes 500, confirming the mean has changed.

Exam focus

  • Compute the zzz-statistic and compare it with the correct critical value.
  • Construct the confidence interval and relate it to the two-tailed test.

Typical mistakes

  • Using σ\sigmaσ rather than the standard error σn\frac{\sigma}{\sqrt{n}}n​σ​ in the denominator.
  • Comparing ∣z∣|z|∣z∣ with 1.645 (one-tailed) when a two-tailed test needs 1.96.

Active revision

A machine should fill cartons to 500 ml with σ=8\sigma = 8σ=8. A sample of 16 has mean 496 ml. Test at the 5% level whether the mean has changed.

Active recall

Recall the key points — then reveal.

Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)

§ 02

The t-distribution and the t-test#

●●●AdvancedLPPearson Edexcel 9ST0, Topic 13 (Paper 2)

The t-distribution compared with the normal

Function graph, normal = (1/sqrt(2*pi))*exp(-x^2/2); t (5 df) = 0.3796*(1+x^2/5)^(-3)Graph of normal, maximum at (0, 0.399), y-intercept at y = 0.399, on the interval x from -5 to 5, Graph of t (5 df), maximum at (0, 0.38), y-intercept at y = 0.38, on the interval x from -5 to 5−4−2240.10.20.30.4normalt (5 df)densityt
Fig. 2The t-distribution (5 df) has a lower peak and heavier tails than the standard normal.

Key points

When the population variance is unknown — the usual case — it is estimated by the sample variance s2s^2s2, and the extra uncertainty this introduces means the standardised mean no longer follows a normal distribution but a ttt-distribution with n−1n - 1n−1 degrees of freedom. The test statistic is t=xˉ−μ0s/nt = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}}t=s/n​xˉ−μ0​​, identical in form to the zzz but using the estimated standard error.
The ttt-distribution is symmetric and bell-shaped like the normal but with heavier tails and a slightly lower peak, as the comparison below shows, because estimating σ\sigmaσ adds variability. The fewer the degrees of freedom, the heavier the tails; as nnn increases the ttt-distribution approaches the standard normal, and for large samples the two are practically indistinguishable.
Critical values come from ttt-tables (or a calculator) indexed by the degrees of freedom n−1n - 1n−1, and they are always slightly larger in magnitude than the corresponding zzz-values, reflecting the heavier tails. This makes the ttt-test more conservative than a zzz-test would be, correctly demanding stronger evidence when the variance is only estimated.
The ttt-procedure requires the population to be approximately normal, an assumption that matters most for small samples where the central limit theorem cannot rescue a skewed population. The corresponding confidence interval xˉ±tsn\bar{x} \pm t\dfrac{s}{\sqrt{n}}xˉ±tn​s​ uses the ttt critical value, and is the interval to quote whenever σ\sigmaσ has been estimated from the data.
t=xˉ−μ0s/n,df=n−1;CI:  xˉ±t snt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}, \quad \text{df} = n - 1; \qquad \text{CI}: \; \bar{x} \pm t\,\frac{s}{\sqrt{n}}t=s/n​xˉ−μ0​​,df=n−1;CI:xˉ±tn​s​

t-test statistic and interval

Uses the estimated standard error; ttt has heavier tails than the normal, indexed by n−1n - 1n−1.

Worked example

A one-tailed t-test

A random sample of 10 measurements from a normal population has mean 52 and sample standard deviation 4. Test at the 5% level whether the population mean exceeds 50 (t-critical for 9 df, one-tailed, is 1.833).

  1. 01Hypotheses

    H0H_0H0​: μ=50\mu = 50μ=50 against H1H_1H1​: μ>50\mu > 50μ>50 (one-tailed).

  2. 02Test statistic

    t=52−504/10=21.2649=1.581t = \dfrac{52 - 50}{4/\sqrt{10}} = \dfrac{2}{1.2649} = 1.581t=4/10​52−50​=1.26492​=1.581.

    t=52−504/10=1.581t = \frac{52 - 50}{4/\sqrt{10}} = 1.581t=4/10​52−50​=1.581
  3. 03Compare

    With 9 degrees of freedom the critical value is 1.833; since 1.581<1.8331.581 < 1.8331.581<1.833, do not reject H0H_0H0​.

  4. 04Conclude

    There is insufficient evidence at the 5% level that the population mean exceeds 50.

Result: t=1.581<1.833t = 1.581 < 1.833t=1.581<1.833, so do not reject H0H_0H0​: insufficient evidence that the mean exceeds 50.

Exam focus

  • Compute the ttt-statistic with sss and use ttt-critical values for n−1n - 1n−1 degrees of freedom.
  • State the normality assumption and know when ttt approaches zzz.

Typical mistakes

  • Using zzz-critical values when σ\sigmaσ has been estimated by sss.
  • Taking the degrees of freedom as nnn rather than n−1n - 1n−1.

Active revision

A sample of 10 gives mean 52 and s=4s = 4s=4. Test at the 5% level whether the population mean exceeds 50.

Active recall

Recall the key points — then reveal.

Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)

§ 03

Two-sample and paired tests#

●●●AdvancedLPPearson Edexcel 9ST0, Topic 13 (Paper 2)

Key points

Comparing two population means uses the difference of the sample means. For independent samples with known variances, the standardised statistic is z=xˉ1−xˉ2σ12/n1+σ22/n2z = \dfrac{\bar{x}_1 - \bar{x}_2}{\sqrt{\sigma_1^2/n_1 + \sigma_2^2/n_2}}z=σ12​/n1​+σ22​/n2​​xˉ1​−xˉ2​​, because the variance of a difference of independent means is the SUM of their variances. With unknown variances estimated from the samples, the corresponding ttt-test is used with a suitable degrees-of-freedom rule.
A paired design is fundamentally different and must be recognised. When each unit provides two measurements — before and after a treatment, or left and right — the two samples are NOT independent, and the correct approach is to reduce each pair to its difference ddd and perform a ONE-sample ttt-test on the differences, testing H0H_0H0​: mean difference =0= 0=0. This removes the between-unit variation and is usually far more powerful than treating the data as two independent samples.
Choosing between a two-sample and a paired test is an examined judgement that depends on the design, not on the data. If the same subjects (or naturally matched pairs) are measured twice, the design is paired; if two separate groups are compared, it is two-sample. Applying an independent two-sample test to paired data throws away the pairing and typically loses sensitivity.
In every case the conclusion is stated in context, and a confidence interval for the difference of means often accompanies the test. An interval for the difference that excludes zero corresponds to a significant two-tailed test, giving both the decision and an estimate of the size of the effect — which is frequently more useful than the test alone.
z=xˉ1−xˉ2σ12n1+σ22n2;paired: one-sample t on the differences dz = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\dfrac{\sigma_1^2}{n_1} + \dfrac{\sigma_2^2}{n_2}}}; \qquad \text{paired: one-sample } t \text{ on the differences } dz=n1​σ12​​+n2​σ22​​​xˉ1​−xˉ2​​;paired: one-sample t on the differences d

Two-sample and paired tests

Independent differences add variances; paired data are reduced to differences first.

Worked example

A paired-sample test

Eight students sit a test before and after a revision course; the differences (after minus before) have mean 3.5 marks and sample standard deviation 4.0. Test at the 5% level whether the course improves marks (t-critical for 7 df, one-tailed, is 1.895).

  1. 01Recognise the design

    Each student is measured twice, so the data are paired; work with the differences ddd.

  2. 02Hypotheses

    H0H_0H0​: mean difference =0= 0=0 against H1H_1H1​: mean difference >0> 0>0.

  3. 03Test statistic

    t=3.5−04.0/8=3.51.414=2.475t = \dfrac{3.5 - 0}{4.0/\sqrt{8}} = \dfrac{3.5}{1.414} = 2.475t=4.0/8​3.5−0​=1.4143.5​=2.475.

    t=3.54.0/8=2.475t = \frac{3.5}{4.0/\sqrt{8}} = 2.475t=4.0/8​3.5​=2.475
  4. 04Conclude

    With 7 df the critical value is 1.895; since 2.475>1.8952.475 > 1.8952.475>1.895, reject H0H_0H0​: the course appears to improve marks.

Result: A paired ttt-test gives t=2.475>1.895t = 2.475 > 1.895t=2.475>1.895, so reject H0H_0H0​: there is evidence the course improves marks.

Exam focus

  • Decide correctly between a two-sample and a paired test from the design.
  • Combine variances for a two-sample statistic, or reduce paired data to differences.

Typical mistakes

  • Treating paired data as two independent samples, discarding the pairing.
  • Subtracting the two variances instead of adding them for a difference of means.

Active revision

Ten athletes have their times measured before and after a training programme. Explain which test is appropriate and outline its steps.

Active recall

Recall the key points — then reveal.

Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)

§ 04

Confidence intervals and their interpretation#

●●○StandardLPPearson Edexcel 9ST0, Topic 13 (Paper 2)

A confidence interval on a number line

95% confidence interval for the meanNumber line, x-bar = 496, mu0 = 500, 95% CI49049449850295% CIx-bar = 496mu0 = 500
Fig. 395% confidence interval (492.1, 499.9) about the sample mean 496; the hypothesised 500 lies outside.

Key points

A confidence interval reports a plausible range for a parameter with a stated confidence level, and it is the natural partner of a hypothesis test. The interval below, 496±3.92496 \pm 3.92496±3.92, is centred on the sample mean 496 and gives the 95% interval (492.1,499.9)(492.1, 499.9)(492.1,499.9); the hypothesised value 500 lies outside it, which is exactly why the two-tailed test at the 5% level rejected H0H_0H0​.
This equivalence is exact and worth stating: a value μ0\mu_0μ0​ is rejected by a two-tailed test at level α\alphaα if and only if it lies outside the 100(1−α)%100(1 - \alpha)\%100(1−α)% confidence interval. The interval therefore does the job of infinitely many tests at once, showing every value that the data are and are not consistent with, and reporting the precision of the estimate through its width.
The confidence LEVEL is a property of the method, not of a single interval. Over many samples, 95%95\%95% of the intervals constructed this way will contain the true parameter; a particular interval either contains it or does not. Saying 'there is a 95% probability the mean is in (492.1, 499.9)' is the classic misinterpretation, because the mean is a fixed (if unknown) number, not a random one.
Confidence intervals are often preferred to bare tests because they convey effect size and uncertainty together. A very narrow interval far from a hypothesised value signals a large, well-estimated effect; a wide interval, even one excluding the value, warns that the estimate is imprecise. Reporting the interval alongside any test is best practice and is rewarded in extended answers.
μ0 rejected (two-tailed, level α)  ⟺  μ0∉100(1−α)% confidence interval\mu_0 \text{ rejected (two-tailed, level } \alpha) \iff \mu_0 \notin 100(1 - \alpha)\% \text{ confidence interval}μ0​ rejected (two-tailed, level α)⟺μ0​∈/100(1−α)% confidence interval

Interval-test equivalence

The interval shows every hypothesised value the data are consistent with.

Worked example

Reading a test from an interval

A 95% confidence interval for a population mean is (492.1, 499.9). State the outcome of a two-tailed test at the 5% level of H0H_0H0​: μ=500\mu = 500μ=500.

  1. 01Locate the hypothesised value

    μ0=500\mu_0 = 500μ0​=500.

  2. 02Check membership

    500 lies outside the interval (492.1, 499.9).

  3. 03Apply the equivalence

    A value outside the 95% interval is rejected by the two-tailed 5% test, so reject H0H_0H0​.

    500∉(492.1,499.9)⇒reject H0500 \notin (492.1, 499.9) \Rightarrow \text{reject } H_0500∈/(492.1,499.9)⇒reject H0​

Result: Since 500 lies outside the 95% interval, the two-tailed 5% test rejects H0H_0H0​: μ=500\mu = 500μ=500.

Exam focus

  • Relate a confidence interval to a two-tailed test via the interval-test equivalence.
  • State the correct long-run interpretation of the confidence level.

Typical mistakes

  • Claiming a 95% probability that the parameter lies in a specific interval.
  • Reporting the interval without linking it to the corresponding test decision.

Active revision

A 99% confidence interval for a mean is (48.2, 55.8). State whether a two-tailed test at the 1% level would reject μ0=50\mu_0 = 50μ0​=50, and why.

Active recall

Recall the key points — then reveal.

Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)

§ 05

The power of a test#

●●●AdvancedLPPearson Edexcel 9ST0, Topic 13 (Paper 2)

Power as an area under the alternative

Function graph, H0 = (1/sqrt(2*pi))*exp(-x^2/2); H1 = (1/sqrt(2*pi))*exp(-(x-2)^2/2)Graph of H0, maximum at (0, 0.399), y-intercept at y = 0.399, on the interval x from -4 to 6, Graph of H1, maximum at (2, 0.399), y-intercept at y = 0.054, on the interval x from -4 to 6−4−22460.10.20.30.4critical valueH0H1densitytest statistic
Fig. 4Power is the shaded area of the alternative distribution beyond the critical value 1.645; here about 0.64.

Key points

The power of a test is the probability that it correctly rejects a false null hypothesis, power=P(reject H0∣H1 true)=1−β\text{power} = P(\text{reject } H_0 \mid H_1 \text{ true}) = 1 - \betapower=P(reject H0​∣H1​ true)=1−β, where β\betaβ is the probability of a Type II error. A powerful test is one likely to detect a real effect. Power can only be computed against a SPECIFIC alternative value, because how easy an effect is to detect depends on how large it is.
The figure shows the idea: the left curve is the sampling distribution of the test statistic under H0H_0H0​, the right curve under a specific alternative, and the shaded area is the power — the part of the alternative distribution that falls in the rejection region (beyond the critical value). The further apart the two curves, the more of the alternative lies in the rejection region and the greater the power.
Three levers increase power. A larger true effect (greater separation of the curves) is easier to detect; a larger sample size shrinks both standard errors and separates the standardised curves; and a larger significance level moves the critical value inward, enlarging the rejection region. The first is fixed by nature, but sample size is the designer's main tool for achieving adequate power.
There is an unavoidable tension with the Type I error rate: lowering α\alphaα to reduce false alarms moves the critical value outward and lowers the power, raising β\betaβ. For a fixed sample size the two error rates trade off, so the only way to reduce both is to collect more data. Designing a study with enough power to detect an effect worth finding is a central practical concern, and understanding this trade-off is the key AO3 outcome of the topic.
power=1−β=P(reject H0∣H1 true)\text{power} = 1 - \beta = P(\text{reject } H_0 \mid H_1 \text{ true})power=1−β=P(reject H0​∣H1​ true)

Power of a test

Increases with effect size, sample size and significance level; computed against a specific alternative.

Worked example

Reasoning about power

A one-tailed 5% test uses the critical value 1.645 for the standardised mean. Under a specific alternative the standardised mean is distributed as N(2,1)N(2, 1)N(2,1). Find the power and comment.

  1. 01Power as an area

    Power =P(statistic>1.645∣H1)= P(\text{statistic} > 1.645 \mid H_1)=P(statistic>1.645∣H1​) where the statistic is N(2,1)N(2, 1)N(2,1).

  2. 02Standardise

    P(Z>1.645−2)=P(Z>−0.355)P(Z > 1.645 - 2) = P(Z > -0.355)P(Z>1.645−2)=P(Z>−0.355).

  3. 03Evaluate

    =Φ(0.355)=0.639= \Phi(0.355) = 0.639=Φ(0.355)=0.639 (3 s.f.).

    power=Φ(0.355)=0.639\text{power} = \Phi(0.355) = 0.639power=Φ(0.355)=0.639
  4. 04Comment

    About 64% power: increasing the sample size would separate the curves further and raise this.

Result: The power is about 0.639, so the test would detect this alternative about 64% of the time; a larger sample would increase it.

Exam focus

  • Define power as 1−β1 - \beta1−β and identify it as an area under the alternative distribution.
  • Explain how effect size, sample size and significance level affect power.

Typical mistakes

  • Trying to state a single power without a specific alternative value.
  • Believing power can be raised without cost; lowering α\alphaα reduces power for a fixed nnn.

Active revision

Explain two changes to a study's design that would increase the power of its hypothesis test, and state the cost of each.

Active recall

Recall the key points — then reveal.

Sources: GCE AS and A level subject content (Statistics) (Department for Education / Ofqual)

Contents

Section -- / 05

    • 01The z-test and z-confidence interval for a mean◐
    • 02The t-distribution and the t-test●
    • 03Two-sample and paired tests●
    • 04Confidence intervals and their interpretation◐
    • 05The power of a test●

0/5 Read

From notes into training

Hypothesis testing, confidence intervals and power

Reinforce this topic with matching tasks from the question bank.

~14
min
3
Competencies
Practise

References & sources

Sources

Pearson Edexcel

  • Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification

Department for Education / Ofqual

  • GCE AS and A level subject content (Statistics)

Previous topic

Sampling, estimates and resampling

Next topic

Contingency tables

EuraStudy·Notes T·13·MMXXVI

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