fun
stats
distributions
Pearson’s chi-square test.
Test whether the observed frequency distribution differs from the expected frequency distribution.
Returns the chi-square statistic and the p-value.