Site icon Pratyush Academy

Hypothesis Testing · IB Maths AI

Free notes, solved questions & past papers for Classes 6-12, JEE and NEETCall +91 91102 73176 · WhatsApp
IB DiplomaMathematics: Applications and InterpretationTopic 12

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.

12 solved questions Step-by-step solutions

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

Q1MCQ1 mark

A test at the 5% significance level gives a p-value of 0.032. State the correct decision.

Show answer & solution
Answer: (C) Reject H₀, since 0.032 < 0.051. The p-value is less than the significance level 0.05. 2. Therefore H₀ is rejected.
Q2MCQ1 mark

State the number of degrees of freedom for a χ² test of independence on a table with 3 rows and 4 columns.

Show answer & solution
Answer: (A) 61. df = (3 − 1)(4 − 1). 2. df = 6.
Q3MCQ1 mark

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
Answer: (B) 20 and 51. Expected frequency = 120/6 = 20. 2. df = 6 − 1 = 5.
Q4MCQ1 mark

[HL] Which of the following describes a Type I error?

Show answer & solution
Answer: (D) Rejecting H₀ when H₀ is true1. A Type I error is a false rejection. 2. It occurs when a true null hypothesis is rejected.
Q5MCQ1 mark

Which assumption is needed for a pooled two-sample t-test?

Show answer & solution
Answer: (A) The two populations are normally distributed with equal variances.1. The pooled t-test assumes normal populations with a common variance. 2. Equal sample sizes are not required.
Q6Short3 marks

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
Answer: χ² = 3.96 < 7.815, so do not reject the hypothesis that the spinner is fair1. Each expected frequency is 50. 2. χ² = (12² + 5² + 2² + 5²)/50 = 198/50 = 3.96. 3. df = 3 and 3.96 < 7.815. 4. There is insufficient evidence that the spinner is unfair.
Q7Short3 marks

[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
Answer: (501, 505) g to 3 significant figures; 500 g lies outside the interval, so the claim is not supported1. σ is known, so use a z-interval: x̄ ± 1.96 × σ/√n. 2. 1.96 × 6/√36 = 1.96. 3. The interval is 501.04 < μ < 504.96. 4. 500 lies below the interval, so there is evidence that the mean mass is not 500 g.
Q8Short3 marks

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
Answer: H₀: μ_new = μ_old, H₁: μ_new > μ_old; reject H₀ at 10% but not at 5%1. H₀ states that the means are equal; H₁ states that the new mean is greater. 2. 0.0821 < 0.10, so reject H₀ at the 10% level. 3. 0.0821 > 0.05, so there is insufficient evidence at the 5% level.
Q9Short3 marks

[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
Answer: p-value ≈ 0.0207 < 0.05, so there is evidence of bias towards heads1. H₀: p = 0.5; H₁: p > 0.5. 2. Under H₀, X ~ B(20, 0.5). 3. p-value = P(X ≥ 15) ≈ 0.0207. 4. Since 0.0207 < 0.05, reject H₀.
Q10Long7 marks

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
Answer: χ² ≈ 4.51 > 3.841 with df = 1, so reject independence: preference is associated with age group1. H₀: preference is independent of age group; H₁: it is not independent. 2. The column totals are 105 online and 95 in store, and each row total is 100. 3. The expected frequencies are 52.5 and 47.5 in each row. 4. Every observed value differs from its expected value by 7.5. 5. χ² = 2 × 56.25/52.5 + 2 × 56.25/47.5 ≈ 4.51. 6. df = (2 − 1)(2 − 1) = 1. 7. Since 4.51 > 3.841 (p ≈ 0.034), reject H₀.
Q11Long7 marks

[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
Answer: (a) x̄ < 498.68 (b) reject H₀; p ≈ 0.0304 (c) ≈ 0.1961. Under H₀, x̄ ~ N(500, 0.8²), since 4/√25 = 0.8. 2. Inverse normal with area 0.05 gives the critical value 498.68. 3. The critical region is x̄ < 498.68. 4. 498.5 lies in this region, so reject H₀. 5. p-value = P(x̄ ≤ 498.5) ≈ 0.0304. 6. If μ = 498, P(Type II) = P(x̄ ≥ 498.68). 7. This is approximately 0.196.
Q12Case6 marks

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
Answer: (a) H₀: μ_A = μ_B, H₁: μ_A > μ_B (b) t ≈ 2.26 > 1.761, so reject H₀ (c) heights are normal with equal variances; use larger randomly allocated samples1. H₀: μ_A = μ_B and H₁: μ_A > μ_B. 2. Pooled variance = (7 × 2.0² + 7 × 2.4²)/14 = 4.88. 3. t = (24.0 − 21.5)/√(4.88 × (1/8 + 1/8)) ≈ 2.26. 4. 2.26 > 1.761, so there is evidence that A gives a greater mean height. 5. The test assumes normally distributed heights with equal population variances. 6. Larger samples with random allocation and controlled light and water would strengthen the study.

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.

Take a free mock test
Exit mobile version