In simple terms
A friendly intro before the formal notes — no formulas yet.
Testing Claims with Data
Hypothesis testing is a formal procedure for using sample data to evaluate a claim about a population. We test a 'default' claim (the null hypothesis) against an alternative, and decide if our data provides enough evidence to reject the default.
Imagine a court trial. The defendant is 'innocent until proven guilty'. This 'innocence' is the null hypothesis (). The prosecution presents evidence (our sample data) to convince the jury to reject this default position in favour of 'guilty' (the alternative hypothesis, ). The standard of 'beyond a reasonable doubt' is the significance level; we need very strong evidence to convict (reject ).
- 1
State the null hypothesis H₀ (the default or 'no change' claim) and the alternative H₁ (one-tailed for increase/decrease, two-tailed for 'change').
- 2
A Type I error is rejecting a true H₀. A Type II error is failing to reject a false H₀. The significance level, α, is the probability of a Type I error.
- 3
Calculate the test statistic from your sample data. Compare it to the critical value from tables, or find the p-value and compare it to the significance level α.
- 4
Use a Z-test for the mean (Normal distribution or large sample) or for a proportion. If the test statistic is in the critical region (or p < α), reject H₀.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Tap a symbol — great for exam definitions
Full topic notes
Formal explanation with the rigour you need for the exam.
1. Setting Up the Hypotheses
Every hypothesis test begins with two competing statements about a population parameter (like the mean, , or proportion, ). The null hypothesis, , represents the status quo or a statement of no effect. It is the default position we assume to be true. The alternative hypothesis, , represents the claim we are trying to find evidence for. It's what we will conclude if we find the null hypothesis is unlikely.
Null Hypothesis (): Always includes an equality. E.g., .
Alternative Hypothesis (): Includes an inequality. The form depends on the question.
One-tailed test: Used for directional claims. Keywords: 'increase', 'decrease', 'more than', 'less than'. E.g., or .
Two-tailed test: Used for non-directional claims. Keywords: 'change', 'different from'. E.g., . For a two-tailed test, the significance level is split equally between the two tails ( in each).
2. The Test Procedure and The Test Statistic
Once hypotheses are set, we choose a significance level, . This is our threshold for evidence. A 5% significance level () means we are willing to accept a 5% chance of wrongly rejecting the null hypothesis. We then collect sample data and calculate a test statistic. This standardised value tells us how far our sample result is from the value claimed in .
For a sample mean from a Normal distribution with known population variance (or a large sample by CLT):
Test Statistic:
where is the value from .
We compare our calculated Z-value to a critical value from the Normal distribution tables, determined by . If the test statistic falls into the critical region (the 'tails' of the distribution), we have significant evidence to reject .
3. Type I and Type II Errors
Since our conclusion is based on a sample, not the entire population, there's always a chance we've made a mistake. There are two types of errors we can make in hypothesis testing. It's crucial to understand them, especially when considering the consequences of a wrong decision.
Type I Error: Rejecting when is actually true. This is like convicting an innocent person. The probability of this error is controlled by the significance level: .
Type II Error: Failing to reject when is actually false. This is like acquitting a guilty person. The probability is denoted by .
Relationship: For a fixed sample size, decreasing (making it harder to reject ) will increase . There is a trade-off between the two types of errors.
Always state your final conclusion in the context of the problem. Don't just write 'Reject '. Explain what this means for the scenario. For example: 'There is evidence to suggest the new drug is more effective' or 'There is no evidence that the mean response time has changed'.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
The mass of a certain type of chocolate bar is claimed to be 50g. The masses are known to be normally distributed with a standard deviation of 1.5g. A quality control manager suspects that the machine is producing underweight bars. She takes a random sample of 10 bars and finds their mean mass is 49.2g. Test her suspicion at the 5% significance level.
- 1
Hypotheses:
In the past, 30% of customers at a coffee shop ordered oat milk. After a marketing campaign, the manager wants to know if this proportion has changed. In a random sample of 150 customers, 57 ordered oat milk. Test at the 10% significance level whether the proportion has changed. Also, find the p-value of this test.
- 1
Hypotheses:
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
What is a null hypothesis, ?
The default assumption or statement of 'no effect' or 'no change' about a population parameter. It always contains an equality sign (e.g., , ).
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Null Hypothesis (): Always includes an equality. E.g., .
- ✓
Alternative Hypothesis (): Includes an inequality. The form depends on the question.
- ✓
One-tailed test: Used for directional claims. Keywords: 'increase', 'decrease', 'more than', 'less than'. E.g., or .
- ✓
Two-tailed test: Used for non-directional claims. Keywords: 'change', 'different from'. E.g., . For a two-tailed test, the significance level is split equally between the two tails ( in each).
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Test Your Understanding
Test Your Understanding
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Test Your Understanding on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.