Perform Levene test for equal variances.
The Levene test tests the null hypothesis that all input samples are from populations with equal variances. Levene’s test is an alternative to Bartlett’s test bartlett in the case where there are significant deviations from normality.
Parameters : | sample1, sample2, ... : array_like
center : {‘mean’, ‘median’, ‘trimmed’}, optional
proportiontocut : float, optional
|
---|---|
Returns : | W : float
p-value : float
|
Notes
Three variations of Levene’s test are possible. The possibilities and their recommended usages are:
- ‘median’ : Recommended for skewed (non-normal) distributions>
- ‘mean’ : Recommended for symmetric, moderate-tailed distributions.
- ‘trimmed’ : Recommended for heavy-tailed distributions.
References
[R137] | http://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.htm |
[R138] | Levene, H. (1960). In Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling, I. Olkin et al. eds., Stanford University Press, pp. 278-292. |
[R139] | Brown, M. B. and Forsythe, A. B. (1974), Journal of the American Statistical Association, 69, 364-367 |