scipy.stats.mood

scipy.stats.mood(x, y)[source]

Perform Mood’s test for equal scale parameters.

Mood’s two-sample test for scale parameters is a non-parametric test for the null hypothesis that two samples are drawn from the same distribution with the same scale parameter.

Parameters :

x, y : array_like

Arrays of sample data.

Returns :

p-value : float

The p-value for the hypothesis test.

See also

fligner
A non-parametric test for the equality of k variances
ansari
A non-parametric test for the equality of 2 variances
bartlett
A parametric test for equality of k variances in normal samples
levene
A parametric test for equality of k variances

Notes

The data are assumed to be drawn from probability distributions f(x) and f(x/s)/s respectively, for some probability density function f. The null hypothesis is that s = 1.

Previous topic

scipy.stats.fligner

Next topic

scipy.stats.oneway