Hypothesis Testing
Hypothesis testing uses sample data to decide whether there is enough evidence against a stated assumption. This chapter covers null and alternative hypotheses, significance levels, p-values, chi-squared tests and the t-test for two means. HL adds confidence intervals, further tests for means, proportions, Poisson means and correlation, critical regions and the two types of error. These methods support evidence-based decisions in science, business and social research.
Key points
- H₀ is the assumption being tested; H₁ is the alternative, which may be one-tailed or two-tailed.
- Reject H₀ if the p-value is less than the significance level; otherwise there is insufficient evidence to reject it.
- χ² = Σ(fₒ − fₑ)²/fₑ; reject H₀ if χ² exceeds the critical value.
- Test of independence: fₑ = (row total × column total)/grand total, with df = (rows − 1)(columns − 1).
- Goodness of fit with no estimated parameters: df = number of categories − 1.
- The pooled two-sample t-test assumes normal populations with equal variances.
- [HL] A Type I error is rejecting a true H₀; a Type II error is failing to reject a false H₀.
- [HL] The critical region is the set of test statistic values that lead to rejection of H₀.
- [HL] Confidence interval for a mean: use the z-distribution if σ is known and the t-distribution if it is unknown; a hypothesised mean outside the interval is evidence against it.
- [HL] Further tests include a Poisson mean, a binomial proportion, paired data, and H₀: ρ = 0 for correlation in a bivariate normal population.
Exam practice
A test at the 5% significance level gives a p-value of 0.032. State the correct decision.
Show answer & solution
State the number of degrees of freedom for a χ² test of independence on a table with 3 rows and 4 columns.
Show answer & solution
A die is rolled 120 times to test whether it is fair. State the expected frequency of each face and the number of degrees of freedom.
Show answer & solution
[HL] Which of the following describes a Type I error?
Show answer & solution
Which assumption is needed for a pooled two-sample t-test?
Show answer & solution
A spinner with four equal sectors is spun 200 times, giving frequencies 62, 45, 48 and 45. Calculate the χ² statistic for a test of fairness and state the conclusion at the 5% level (critical value 7.815).
Show answer & solution
[HL] The masses of bags of rice are normally distributed with known standard deviation 6 g. A random sample of 36 bags has mean mass 503 g. Determine a 95% confidence interval for the population mean, and comment on the claim that the mean mass is 500 g.
Show answer & solution
A one-tailed t-test is used to test whether a new method gives a higher mean score than the old method. The p-value is 0.0821. State the hypotheses, and the conclusion at both the 10% and 5% significance levels.
Show answer & solution
[HL] A coin is tossed 20 times and shows 15 heads. Test at the 5% level whether the coin is biased towards heads.
Show answer & solution
200 shoppers were asked how they prefer to shop. Of those under 30, 60 chose online and 40 chose in store. Of those aged 30 or over, 45 chose online and 55 chose in store. Test at the 5% level whether preference is independent of age group (critical value 3.841). State the hypotheses, the expected frequencies, the test statistic, the degrees of freedom and your conclusion. Do not apply a continuity correction.
Show answer & solution
[HL] A machine should fill bottles with a mean of 500 ml. Fill volumes are normal with known standard deviation 4 ml. A sample of 25 bottles is used to test H₀: μ = 500 against H₁: μ < 500 at the 5% level. (a) Determine the critical region for the sample mean. (b) The sample mean is 498.5 ml. State the conclusion and find the p-value. (c) Find the probability of a Type II error if the true mean is 498 ml.
Show answer & solution
Plant heights (cm) are compared after four weeks. With fertiliser A: n = 8, mean 24.0, sₙ₋₁ = 2.0. With fertiliser B: n = 8, mean 21.5, sₙ₋₁ = 2.4. A researcher tests at the 5% level whether A gives a greater mean height, using a pooled t-test. (a) State the hypotheses. (b) Calculate the t statistic and, using the critical value 1.761 for 14 degrees of freedom, state the conclusion. (c) State one assumption of the test and one way to strengthen the investigation.
Show answer & solution
All questions on this page are original practice questions written by Pratyush Academy for IB Diploma Programme students. They are not past-paper questions, and Pratyush Academy is not affiliated with or endorsed by the International Baccalaureate.
Ready for a real test?
Take a free full-length mock with a timer, score and detailed analysis.