when calculating the chi-square statistic, the difference in the observed frequency for a particular category and its expected frequency is squared and then divided by what?