CB.Stats.VAR-8.F: Calculate the appropriate statistic for the chi-square test for goodness of fit.