CB.Stats.VAR-8.D: Calculate expected counts for the chi-square test for goodness of fit.