scipy.stats.bartlett

scipy.stats.bartlett(*args)[source]

Perform Bartlett’s test for equal variances

Bartlett’s test tests the null hypothesis that all input samples are from populations with equal variances. For samples from significantly non-normal populations, Levene’s test `levene`_ is more robust.

Parameters :

sample1, sample2,... : array_like

arrays of sample data. May be different lengths.

Returns :

T : float

The test statistic.

p-value : float

The p-value of the test.

References

[R167]http://www.itl.nist.gov/div898/handbook/eda/section3/eda357.htm
[R168]Snedecor, George W. and Cochran, William G. (1989), Statistical Methods, Eighth Edition, Iowa State University Press.

Previous topic

scipy.stats.ansari

Next topic

scipy.stats.levene