next up previous contents
Next: Examples Up: Nonparametric (Distribution-Free) Inferences Previous: The Wilcoxon Rank-Sum (Mann-Whitney)

The Kruskal-Wallis Test for K Independent Samples

This test is the nonparametric version of one way ANOVA and is a straightforward generalization of the Wilcoxon test for two independent samples. If we have K independent samples of sizes tex2html_wrap_inline3637 , we combine all the samples into one large sample, sort the result from smallest to largest and assign ranks (again assigning the average rank to any observation in a group of tied observations), and then find tex2html_wrap_inline4987 , the average of the ranks of the observations in the ith sample. The test statistic is then

displaymath4991

and reject the null hypothesis that all K distributions are the same if tex2html_wrap_inline4995 . Again, Stataquest will return the p value for the test.



Jan Lethen
Wed Nov 13 16:20:46 CST 1996