Chi-Square Test Math Example 4

Follow the full solution, then compare it with the other examples linked below.

Example 4

hard
A survey of movie preferences across three age groups produces a 3ร—4 contingency table (3 age groups, 4 movie genres). State H0H_0 and HaH_a, calculate degrees of freedom, and explain what a significant result would mean.

Solution

  1. 1
    H0H_0: age group and movie genre preference are independent
  2. 2
    HaH_a: age group and movie genre preference are associated (not independent)
  3. 3
    Degrees of freedom: (rowsโˆ’1)(colsโˆ’1)=(3โˆ’1)(4โˆ’1)=2ร—3=6(\text{rows}-1)(\text{cols}-1) = (3-1)(4-1) = 2 \times 3 = 6
  4. 4
    Significant result: reject H0H_0; conclude that movie genre preference varies by age group โ€” the distribution of genre preferences is different for different ages

Answer

H0H_0: independence. df=6. Significant result โ†’ age and genre preference are associated.
The chi-square test of independence asks whether two categorical variables are related. Degrees of freedom = (r-1)(c-1). A significant result means the variables are not independent โ€” knowing someone's age provides information about their genre preference.

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