The calculations for our test statistic in χ² tests combine our information from our observed frequencies ( O ) and our expected frequencies ( E ) for each level of our categorical variable. For eac...The calculations for our test statistic in χ² tests combine our information from our observed frequencies ( O ) and our expected frequencies ( E ) for each level of our categorical variable. For each cell (category) we find the difference between the observed and expected values, square them, and divide by the expected values. We then sum this value across cells for our test statistic.
The calculations for our test statistic in χ² tests combine our information from our observed frequencies ( O ) and our expected frequencies ( E ) for each level of our categorical variable. For eac...The calculations for our test statistic in χ² tests combine our information from our observed frequencies ( O ) and our expected frequencies ( E ) for each level of our categorical variable. For each cell (category) we find the difference between the observed and expected values, square them, and divide by the expected values. We then sum this value across cells for our test statistic.