Chi-Squared Test
Tags
PAS
Cegep/2
Word count
249 words
Reading time
2 minutes
Test to determine whether two qualitative variables are independent
Steps:
- Determine the degrees of freedom
- Construct the table of expected frequencies
- Compute chi-squared
- Use probability table to find p-value of chi-squared
Only valid when $n \ge 30$ and $e_{ij} \ge 5 \forall i, j$
Examples
A randomly selected sample was asked to choose their preferred musical genres from a set of choices. Do the results of the sample indicate (at 𝛼 = 5%) whether musical preferences are dependent of the generation to which belongs the respondents?
Classical/Jazz Hip Hop/Rap Pop Rock/Alternative Total Boomers 32 6 11 18 67 Gen X 18 9 23 31 81 Gen Y 11 21 39 17 88 Gen Z 8 31 25 11 75 Total 69 67 98 77 311
Therefore, we reject