Mathematics: Applications and Interpretation · 4.11 Hypothesis Testing: Chi-Squared and t-Test

Hypothesis Testing: Chi-Squared Test for Independence and Goodness of Fit

Preview

IB DP Mathematics: Applications and Interpretation | SL & HL | Statistics and Probability | Topic 4.11

📋 Learning Intentions

  • State the null and alternative hypotheses for a chi-squared test for independence and goodness of fit using correct statistical language.
  • Calculate expected frequencies from observed data using the formula \( E_{ij} = \frac{R_i \times C_j}{n} \) and verify the minimum expected frequency condition.
  • Determine the degrees of freedom for both chi-squared tests and identify the correct critical value or p-value from GDC output.
  • Interpret the p-value in context, comparing it to the significance level \(\alpha\) to reach a conclusion about the hypotheses.
  • Apply the chi-squared goodness of fit test to determine whether observed data follows a specified theoretical distribution.
  • Justify conclusions in context using correct statistical language, distinguishing between "sufficient evidence" and "proof".

Real-World Introduction

A pharmaceutical company tests whether a new drug's side-effect profile is independent of patient age group. A market researcher asks whether customer satisfaction ratings follow a uniform distribution across product categories. Both questions share a common mathematical structure: comparing what we observe in data against what we would expect if a particular claim were true.

The chi-squared (\(\chi^2\)) test is the standard tool for answering questions about categorical data. Unlike the t-test, which compares means of numerical data, the chi-squared test works with counts in categories — making it one of the most widely used statistical tests in social science, biology, medicine, and market research.

🌍 Why This Matters In genetics, Gregor Mendel's pea plant experiments produced offspring ratios of 3:1 for dominant to recessive traits. The chi-squared goodness of fit test is the formal method used to decide whether observed offspring counts are close enough to the predicted 3:1 ratio — or whether the deviation is too large to be explained by chance alone.

Core Concepts & Definitions

Before performing any chi-squared test, it is essential to understand what kind of question is being asked. There are two distinct chi-squared tests in the IB Math AI syllabus, and choosing the wrong one is a common exam error. The key distinction lies in whether the data involves one categorical variable (goodness of fit) or two categorical variables (test for independence).

📘 Key Definition — Chi-Squared Test for Independence A chi-squared test for independence determines whether two categorical variables are associated (dependent) or unrelated (independent) in a population. Data is arranged in a contingency table (also called a two-way table), with one variable defining the rows and the other defining the columns.

The test compares observed cell frequencies \(O_{ij}\) with expected cell frequencies \(E_{ij}\) — the frequencies that would occur if the two variables were perfectly independent. A large discrepancy between observed and expected values produces a large \(\chi^2\) statistic, which provides evidence against independence.

📘 Key Definition — Chi-Squared Goodness of Fit Test A chi-squared goodness of fit test

Continue reading the full note

In this topic

More notes on 4.11 Hypothesis Testing: Chi-Squared and t-Test

  1. 01Hypothesis Testing: The t-Test for Comparing Two Population Means