Chi-Squared and Hypothesis Testing

Perform chi-squared goodness of fit and independence tests for IB Maths.

Chi-squared tests determine whether observed data differs significantly from expected data. They're central to IB Maths statistics.

Chi-Squared Test Statistic

χ2=(OE)2E\chi^2 = \sum \frac{(O - E)^2}{E}

where OO = observed, EE = expected.

Goodness of Fit Test

Tests whether data follows a particular distribution.

H0H_0: Data follows the expected distribution. H1H_1: It doesn't.

Degrees of freedom: ν=k1\nu = k - 1 (where kk = number of categories).

Test for Independence

Tests whether two categorical variables are independent.

H0H_0: Variables are independent. H1H_1: They are not independent.

Expected frequency: E=row total×column totalgrand totalE = \frac{\text{row total} \times \text{column total}}{\text{grand total}}.

Degrees of freedom: ν=(r1)(c1)\nu = (r-1)(c-1).

Decision Rule

If χ2>χcritical2\chi^2 > \chi^2_{\text{critical}} (from tables at significance level), reject H0H_0.

Or: if pp-value < significance level, reject H0H_0.

Conditions

  • All expected frequencies should be ≥ 5.
  • Data should be frequencies (not percentages).

Practice Problems

    1. A die is rolled 60 times. Expected: 10 per face. Observed: 8, 12, 11, 7, 13, 9. Test at 5%.
    1. A 2×3 table with observed frequencies. Test for independence.

Want to check your answers and get step-by-step solutions?

Get it on Google PlayDownload on the App Store

Key Takeaways

  • χ2=(OE)2E\chi^2 = \sum \frac{(O-E)^2}{E}.

  • GOF: ν=k1\nu = k-1. Independence: ν=(r1)(c1)\nu = (r-1)(c-1).

  • Reject H0H_0 if χ2\chi^2 exceeds critical value.

  • All expected values should be ≥ 5.

Ready to Ace Your IB maths?

Get instant step-by-step solutions to any problem. Snap a photo and learn with Tutor AI — your personal exam prep companion.

Get it on Google PlayDownload on the App Store