Chi-Square Test Math Example 2
Follow the full solution, then compare it with the other examples linked below.
Example 2
hardA 2×2 table: Men: 30 prefer A, 20 prefer B. Women: 15 prefer A, 35 prefer B. Test independence of gender and preference at .
Solution
- 1 Observed: Men-A=30, Men-B=20, Women-A=15, Women-B=35; Row totals: Men=50, Women=50; Column totals: A=45, B=55; Grand total=100
- 2 Expected: ; ; ; ;
- 3
- 4 df ; critical value ; → Reject
Answer
. Reject . Gender and preference are associated.
Chi-square test of independence tests whether two categorical variables are associated in a contingency table. df = (rows-1)(cols-1). Rejecting H₀ means the variables are not independent — gender and preference are associated here.
About Chi-Square Test
A hypothesis test that compares observed frequencies to expected frequencies using the chi-square statistic to assess independence or goodness of fit.
Learn more about Chi-Square Test →More Chi-Square Test Examples
Example 1 medium
A die is rolled 60 times. Observed: 1→8, 2→12, 3→9, 4→11, 5→13, 6→7. Conduct a chi-square goodness-o
Example 3 easyFor a chi-square test with observed=15, expected=20 for one category, calculate that category's cont
Example 4 hardA survey of movie preferences across three age groups produces a 3×4 contingency table (3 age groups