Step-by-step solution
Updated as you change the numbers.
- For each cell, work out (observed − expected)² ÷ expected, and add them up.
- χ² = 16.6667 with 1 degrees of freedom gives p = 0.00004.
Method and assumptions
Pearson's chi-square test, without continuity correction. For a table, expected counts are row total × column total ÷ grand total. Expected counts in a goodness-of-fit test are scaled to the observed total.
Questions
How many degrees of freedom does a table have?
(rows − 1) × (columns − 1). A 2 by 2 table has one.
Sources
Method and figures checked on October 31, 2026. Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.