Table : TABLE 17-4. The Chi-Square Calculations As with many other statistics, we calculate the chi-square statistic using columns to keep track of our work. We list the observed frequencies, then calculate the expected frequencies, the difference between the observed frequencies and the expected frequencies, then we square the differences and then divide each square by its appropriate expected frequency. Finally, we add up the numbers in the sixth column to find the chi-square statistic.
Column 123456
CategoryObserved (O)Expected (E)OE(OE)2
First 3 months5228  2457620.571
Last 3 months428−2457620.571