bundles / scipy latest / scipy / stats / _mstats_basic / kruskal
function
scipy.stats._mstats_basic:kruskal
Signature
def kruskal ( * args ) Summary
Compute the Kruskal-Wallis H-test for independent samples
Parameters
sample1, sample2, ...: array_likeTwo or more arrays with the sample measurements can be given as arguments.
Returns
statistic: floatThe Kruskal-Wallis H statistic, corrected for ties
pvalue: floatThe p-value for the test using the assumption that H has a chi square distribution
Notes
For more details on kruskal, see scipy.stats.kruskal.
Examples
from scipy.stats.mstats import kruskal
✓a = [6.3, 5.4, 5.7, 5.2, 5.0] b = [6.9, 7.0, 6.1, 7.9] c = [7.2, 6.9, 6.1, 6.5]✓
kruskal(a, b, c)
✗Aliases
-
scipy.stats._mstats_basic.kruskal