Different procedures are used to determine expected frequencies for the Chi-square test for independence versus the Chi-square test for goodness of fit.