Warm-up
Three quick questions from earlier lessons.
- A coin is tossed 100 times and lands heads 63 times. Test H₀: p = 0.5 against Hₐ: p > 0.5.
- The standard error under H₀:
- The z statistic:
- The proportion of heads needed for :
- The value of p stated by the null hypothesis:
- At α = 0.05 (one-sided, z* = 1.645), what is the smallest number of heads that leads to rejecting H₀?
- At significance level α = 0.05, a test gives P-value 0.04. What do you conclude?
- Reject H₀: there is convincing evidence for Hₐ
- Accept H₀
- Hₐ is proven true
- A test of a new drug (sample of 388) has H₀: the drug has no effect. What is a Type I error?
- Concluding the drug works when it really has no effect
- Concluding there is no effect when the drug really works
- Making a mistake in the data
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.
Worked example
Die: observed 14 sixes, expected 10.
Your turn, guided
Your turn: a 3 × 4 two-way table. Degrees of freedom.
Practice ★
- A die is rolled 60 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.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
- A chi-square test of independence uses a table with 5 rows and 5 columns. How many degrees of freedom does it have?