Chi-Square Goodness-of-Fit Test