Study Guide

Hypothesis Testing

CIE A-Level MathematicsΒ· Unit 4: Probability & Statistics 1Β· 15 min read

1. Core Terminology & Hypothesis Setupβ˜…β˜…β˜†β˜†β˜†β± 4 min

πŸ“˜ Definition

Null Hypothesis

The statement of no effect or no difference from the hypothesized population value. We assume is true unless we find sufficient evidence to reject it.

Example:

For testing if a coin is biased, where is the true probability of heads.

πŸ“˜ Definition

Alternative Hypothesis

The alternative claim we accept if we reject . Can be one-tailed ( or ) or two-tailed ().

Example:

For testing if the coin is biased towards heads, .

The first step of any hypothesis test is to define the population parameter you are testing, then write and in terms of that parameter. Hypotheses are always about population parameters, never sample statistics.

βœ“ Quick check

Check your understanding:

  1. A bakery claims 10% of their pastries are undercooked. An inspector thinks the proportion is higher. What is the correct ?

2. Hypothesis Tests for Proportionsβ˜…β˜…β˜…β˜†β˜†β± 5 min

For large samples, we approximate the binomial distribution of the number of successes with a normal distribution, then calculate a p-value to compare to our significance level. We follow a standard 5-step process for every test:

    1. Define the parameter and write hypotheses
    1. State the significance level
    1. State the distribution of the test statistic under
    1. Calculate the p-value (or compare test statistic to critical value)
    1. Draw a conclusion in context
πŸ“ Worked Example

A machine produces components, 10% of which are normally defective. After a service, a sample of 100 components finds 14 defective. Test at the 5% significance level if the proportion defective has increased.

  1. 1
    1. Define parameter and hypotheses: Let true proportion of defective components after the service.
  2. 2
    H0:p=0.10H1:p>0.10H_0: p = 0.10 \newline H_1: p > 0.10
  3. 3
    1. State significance level:
  4. 4
    1. Under , the number of defective . Approximate with normal, mean = , variance = , so .
  5. 5
    1. Calculate p-value for , apply continuity correction:
  6. 6
    z=13.5βˆ’103=1.167,p-value=1βˆ’Ξ¦(1.167)=0.1216z = \frac{13.5 - 10}{3} = 1.167, \quad p\text{-value} = 1 - \Phi(1.167) = 0.1216
  7. 7
    1. Compare: , so we do not reject .
  8. 8

    Conclusion: There is insufficient evidence at the 5% significance level to conclude the proportion defective has increased.

3. Hypothesis Tests for Population Meansβ˜…β˜…β˜…β˜†β˜†β± 5 min

When the population is normally distributed with known variance, we use a z-test for the population mean . The test statistic follows a standard normal distribution when is true.

πŸ“˜ Definition

Z-test Statistic for Means

For a sample of size , sample mean , hypothesized mean and known population standard deviation : . This measures how many standard errors the sample mean is from the hypothesized value.

Example:

Sample size 25, mean 12, , gives .

πŸ“ Worked Example

A bottling machine fills bottles with a known population standard deviation of 5 ml. The mean fill volume is supposed to be 500 ml. A sample of 10 bottles has a mean of 497 ml. Test at the 1% significance level if the mean fill volume is different from 500 ml.

  1. 1
    1. Define parameter and hypotheses: Let true mean fill volume.
  2. 2
    H0:ΞΌ=500H1:ΞΌβ‰ 500H_0: \mu = 500 \newline H_1: \mu \neq 500
  3. 3
    1. This is a two-tailed test, total significance level .
  4. 4
    1. Calculate the z-test statistic:
  5. 5
    z=497βˆ’5005/10β‰ˆβˆ’1.898z = \frac{497 - 500}{5/\sqrt{10}} \approx -1.898
  6. 6
    1. Calculate two-tailed p-value:
  7. 7
    p-value=2Γ—P(Z<βˆ’1.898)=2Γ—0.0287=0.0574p\text{-value} = 2 \times P(Z < -1.898) = 2 \times 0.0287 = 0.0574
  8. 8
    1. Compare: , so do not reject .
  9. 9

    Conclusion: There is insufficient evidence at 1% significance that the mean fill volume is different from 500 ml.

4. Type I and Type II Errorsβ˜…β˜…β˜…β˜…β˜†β± 4 min

πŸ“˜ Definition

Type I Error

Rejecting when is actually true. The probability of a Type I error is always equal to the significance level of the test.

Example:

Concluding a coin is biased when it is actually fair.

πŸ“˜ Definition

Type II Error

Failing to reject when is actually false. The probability of a Type II error depends on the true value of the population parameter.

Example:

Concluding a coin is fair when it is actually biased.

πŸ“ Worked Example

For a hypothesis test , , carried out at 5% significance level, what is the probability of a Type I error?

  1. 1

    By definition, the probability of a Type I error is the probability that we reject when is true. This equals the significance level of the test:

  2. 2
    P(Type I Error)=0.05P(\text{Type I Error}) = 0.05

5. Common Pitfalls

Wrong move:

Writing hypotheses in terms of sample statistics (e.g. instead of )

Why:

Hypotheses are always claims about unknown population parameters, not observed sample values

Correct move:

Always write hypotheses in terms of the population parameter ( for proportion, for mean)

Wrong move:

Forgetting continuity correction when approximating binomial with normal for proportion tests

Why:

Binomial is discrete and normal is continuous, so the p-value will be incorrect without the correction

Correct move:

Always apply continuity correction when working with counts of successes in proportion tests

Wrong move:

Not doubling the p-value for two-tailed tests

Why:

Two-tailed tests account for difference in either direction, so a one-tailed p-value is half the correct value

Correct move:

Calculate the one-tailed p-value, then double it for two-tailed tests, or use a two-tailed critical value

Wrong move:

Saying 'we accept ' when p-value > significance level

Why:

We never prove is true, we only fail to find sufficient evidence to reject it

Correct move:

Always state 'we do not reject ' or 'there is insufficient evidence to reject '

Wrong move:

Confusing Type I and Type II errors in exam questions

Why:

The order of errors is easy to mix up under pressure

Correct move:

Use the mnemonic First you Reject, Second you Stay to recall which error is which

6. Quick Reference Cheatsheet

Term

Key Fact/Formula

Notes

Null hypothesis: no effect

Assumed true unless proven otherwise

Alternative hypothesis: effect/difference

One-tailed = specific direction; two-tailed = any difference

Proportion test statistic

Always apply continuity correction to count

Mean test statistic (known )

Requires normal population distribution

P(Type I error)

(significance level)

Rejecting true

P(Type II error)

Depends on the true parameter value

7. Frequently Asked

Do I need to define the population parameter in my answer?

Yes, CIE always awards a mark for explicitly defining the population parameter (e.g. Let = true proportion of defective components) so never skip this step.

What is the difference between one-tailed and two-tailed tests?

One-tailed tests check for a difference in a specific direction (increase or decrease only), while two-tailed tests check for any difference from the null value, regardless of direction. You must double the one-tailed p-value for two-tailed tests.

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 Β· 4

    Proportion test, Type I error calculation

  • 2022 Β· 4

    Two-tailed test for population mean

  • 2021 Β· 4

    Interpretation of hypothesis errors

What's Next

Hypothesis testing is the foundation of all statistical inference for CIE A-Level Mathematics, and it is heavily tested in Paper 4, usually as an 8-10 mark longer question. Mastering the structured approach and common exam conventions (like defining parameters and correct conclusion wording) will earn you full marks on these predictable questions. This topic leads directly into more advanced inference topics including Chi-squared tests for categorical data, t-tests for means with unknown variance, and hypothesis testing for correlation and regression coefficients, all of which are core topics for full A-Level Mathematics and Further Mathematics.