Fligner Killeen test - mauriceling/mauriceling.github.io GitHub Wiki

Purpose: To test whether the variances of 2 or more samples are equal.

Null hypothesis: Variances of all samples are equal.

Alternate hypothesis: At least one sample variance is not equal to the rest.

Note: Fligner-Killeen's test caters to non-normal samples.

Code:

>>> from scipy import stats
>>> X1 = [9.07, 8.97, 6.41, 3.03, 1.19, 2.67, 2.81, 9.2]
>>> X2 = [3.82, 8.26, 5.99, 3.81, 1.07, 5.06, 5.66, 4.47]
>>> X3 = [8.46, 7.46, 4.48, 1.41, 3.16, 1.77, 5.33, 6.61]
>>> result = stats.fligner(X1, X2, X3)
>>> print("Statistic = %.3f" % result[0])
Statistic = 5.581
>>> print("p-value = %.3f" % result[1])
p-value = 0.061

Reference

  1. Fligner MA, Killeen TJ. 1976. Distribution-free two-sample tests for scale. Journal of the American Statistical Association 71(353), 210-213.