bayesplain.frequentist.goodness_of_fit

bayesplain.frequentist.goodness_of_fit(counts, expected_shares)[source]

Pearson chi-square goodness-of-fit test for one categorical variable.

Parameters:
counts : array_like

Observed count in each category.

expected_shares : array_like

The share each category should hold under the null. Normalised to sum to one.

Returns:

The conventional result. estimate carries Cohen’s w, the sample effect size, as a point estimate with no uncertainty attached.

Return type:

FrequentistTwin