goodness function

Evaluate if sample data for a categorical variable is consistent with a hypothesized distribution