Chi-Square Test of Homogeneity – Learn It 2

  • Complete a chi-square test of homogeneity

Null and Alternative Hypotheses

As usual, the null hypothesis is a statement of no difference or no change, so for a chi-square test of homogeneity, the null hypothesis is always that the distribution of the categorical variable is the same among all the populations.

hypotheses

  • The null hypothesis ([latex]H_0[/latex]) is that the distribution of the categorical variable is the same in every population.
  • The alternative hypothesis ([latex]H_A[/latex]) is that the distribution of the categorical variable is not the same in every population. In other words, at least one population has a different distribution.

Note: Homogeneous means the same in structure or composition. This test gets its name from the null hypothesis, where we claim that the distribution of the responses is the same (homogeneous) across groups. The test looks for evidence that the differences among the samples are larger than the differences you would expect to see from sampling variation alone.

You can use this template to write the hypotheses for any test of homogeneity:

  • [latex]H_0[/latex]: The distribution of [categorical variable] is the same for [population 1], [population 2], and [population 3].
  • [latex]H_A[/latex]: The distribution of [categorical variable] is not the same for [population 1], [population 2], and [population 3].

Writing Hypotheses

Recall Scenario A from the previous activity: we compare the majors chosen by students at public universities and private universities, using a random sample from each. The categorical variable is major, and there are two populations: students at public universities and students at private universities. The hypotheses are:

  • [latex]H_0[/latex]: The distribution of majors is the same for students at public universities and students at private universities.
  • [latex]H_A[/latex]: The distribution of majors is not the same for students at public universities and students at private universities.
Common mistakes to avoid: Write the hypotheses about the populations, not the samples (for example, not “the 837 dogs in 2022”). The alternative hypothesis does not claim that every population is different from every other, only that the distributions are not all the same. Name the categorical variable and the populations in the context of the problem.

Research Question: Do dogs leaving the Long Beach Animal Shelter have the same distribution of outcomes (whether the dog is adopted, returned to its owner, transferred, or euthanized) in 2022, 2023, and 2024?