Kruskal-Wallis Test

From Q
Jump to navigation Jump to search

This is a non-parametric version of the F-Test (ANOVA). The test statistic is:

H=(∑j=1g∑i=1njwij−1)∑j=1g∑i=1njwij(r¯⋅j−r¯)2∑j=1g∑i=1njwij(rij−r¯)2

where:

nj is the number of observations in group j of ggroups,
rij is the rank of the ith observation from group j where the ranking is computed across all the groups with a 1 assigned to the lowest value and the average rank is used for ties,
n=∑j=1gnj,
wij is the Calibrated Weight,
r¯⋅j=∑i=1njwijrij∑i=1njwij,
r¯=∑j=1g∑i=1njwijrij∑j=1g∑i=1njwij,
p≈Pr⁡(χg−12≥H)

See also