SciPy

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:

statistic : float

The test statistic.

pvalue : float

The p-value of the test.

References

[R299]http://www.itl.nist.gov/div898/handbook/eda/section3/eda357.htm
[R300]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