Calculate the chi-square statistic between observed and expected frequency counts.
Category: Statistics.