What the exam asks
- Calculate expected counts for cells in a two-way table assuming the null hypothesis () is true.
- Calculate the chi-square test statistic (), degrees of freedom (), and p-value using technology or Table C.
- Identify which cell contributes the most to the statistic and explain the direction of the discrepancy.
- Interpret the p-value of a chi-square test in context.
- Justify a conclusion in context by comparing the p-value to the significance level .
Core ideas
Expected counts
Although a chi-square test for homogeneity and a chi-square test for independence answer different investigative questions, their mechanics are identical. Assuming is true, the expected count for any interior cell in a two-way table is:
Do not round expected counts to whole numbers; keep at least two decimal places so you can verify the large counts condition (all expected counts , or ) and compute the test statistic accurately.
The chi-square statistic and degrees of freedom
The chi-square test statistic measures how far the observed counts fall from the counts expected under , scaled by the expected counts:
Each term is a cell’s component (or contribution) to the statistic. Larger discrepancies between observed and expected counts produce larger components and a larger overall value.
When conditions are met, follows a chi-square distribution with degrees of freedom based on the number of rows () and columns () of categorical categories (excluding total rows and columns):
Finding and interpreting the p-value
Because any departure from expected counts—whether observed counts are higher or lower than expected—makes positive, chi-square tests are always upper-tail tests.
- P-value calculation: with , found via graphing calculator ( or a matrix test) or approximated as an interval using Table C.