Warm-up
Three quick questions from earlier lessons.
Discover
A die is rolled 60 times. If it is fair, how many times do you expect each face?
- 10
- 60
Key idea
Compare observed counts with expected counts.
. Goodness of fit: , df (categories ). Two-way table (independence or homogeneity): , df . Large (small P-value) is evidence against H₀. Condition: all expected counts at least 5.
Worked example
Die: observed 14 sixes, expected 10.
Contribution
(14 − 10)²/10.
df
Six faces.
is the sum
Add all six contributions.
Your turn, guided
Your turn: a 3 × 4 two-way table. Degrees of freedom.
(3 − 1)(4 − 1).
Practice ★
- A die is rolled 114 times to test whether it is fair. What is the expected count for each face?
- In a chi-square test, one category has observed count 39 and expected count 21. Find its contribution to χ².
- In a chi-square test, one category has observed count 16 and expected count 27. Find its contribution to χ².
Watch out!
Practice ★★
- In a two-way table with grand total 158, a row total is 55 and a column total is 41. Find the expected count in that cell under independence.
- In a two-way table with grand total 134, a row total is 53 and a column total is 40. Find the expected count in that cell under independence.
Exit ticket
Three questions to check you have got it.
- In a chi-square test, one category has observed count 39 and expected count 21. Find its contribution to χ².
- In a chi-square test, one category has observed count 16 and expected count 27. Find its contribution to χ².
- In a chi-square test, one category has observed count 20 and expected count 16. Find its contribution to χ².
Summary card
Chi-square tests
; GOF: ; two-way: row × column / total.
Watch out: divide by ; use counts, not percentages.