scipy.stats.ansari¶
-
scipy.stats.
ansari
(x, y)[source]¶ Perform the Ansari-Bradley test for equal scale parameters.
The Ansari-Bradley test is a non-parametric test for the equality of the scale parameter of the distributions from which two samples were drawn.
- Parameters
- x, yarray_like
Arrays of sample data.
- Returns
- statisticfloat
The Ansari-Bradley test statistic.
- pvaluefloat
The p-value of the hypothesis test.
See also
Notes
The p-value given is exact when the sample sizes are both less than 55 and there are no ties, otherwise a normal approximation for the p-value is used.
References
- 1
Sprent, Peter and N.C. Smeeton. Applied nonparametric statistical methods. 3rd ed. Chapman and Hall/CRC. 2001. Section 5.8.2.