Freeman Tukey test - mauriceling/mauriceling.github.io GitHub Wiki

Purpose: To test whether 2 distributions are equal.

Null hypothesis: Observed distribution = Expected distribution

Alternate hypothesis: Observed distribution ≠ Expected distribution

Code:

>>> from scipy import stats
>>> observed = [16, 18, 16, 14, 12, 12]
>>> expected = [16, 16, 16, 16, 16, 8]
>>> result = stats.power_divergence(observed, expected, lambda_="freeman-tukey")
>>> print("statistic = %.2f" % result.statistic)
statistic = 3.27
>>> print("p-value = %.2f" % result.pvalue)
p-value = 0.66

Reference:

  1. Freeman MF., Tukey JW. 1950. Transformations related to the angular and square root. The Annals of Mathematical Statistics 21, 607 – 611.