Skip to main content icon/video/no-internet

The choice of an appropriate statistical test depends on the type of research questions being asked and the type of hypothesis being tested, and is closely contingent on key factors such as the type of outcome data being analyzed and the number of experimental groups to be compared. For example, if a researcher is interested in testing whether there is a significant difference between unpaired or independent groups for quantitative or numeric data, when there are only two groups involved in the comparison, parametric Student’s t-test is generally used if data are normally distributed. Alternatively, nonparametric Wilcoxon–Mann–Whitney rank sum test is widely applied if data are not normal. To check the normality of numeric data, a graphical method can be used in which the histogram of the data is compared to a normal probability curve (bell-shaped), or formal statistical tests such as the Shapiro–Wilk test and Kolmogorov–Smirnov test can be applied.

In the situation where it is of particular interest to compare numeric data from three or more independent groups, if data are normally distributed, parametric one-way analysis of variance (ANOVA) method is generally used. On the contrary, if data are not normal (e.g., scales, ranks), nonparametric Kruskal–Wallis analysis of variance of ranks, or the Kruskal–Wallis test, is used.

This entry focuses on discussing the statistical issues regarding how to compare non-normal numeric data sampled from multiple (three or more) groups using the nonparametric Kruskal–Wallis test. The remainder of the entry is organized as follows: First, a brief introduction of the Kruskal–Wallis test is provided, followed by some instructions on how to perform the Kruskal–Wallis test using various statistical software packages, including SAS, Stata, SPSS, and R. Finally, this entry concludes by clarifying a misconception about the Kruskal–Wallis test, as well as discussing the inapplicability of the method in certain settings.

Introduction of Kruskal–Wallis Test

The Kruskal–Wallis test, named after William Kruskal and W. Allen Wallis, is a nonparametric method generalized from the two-sample Wilcoxon–Mann–Whitney rank sum test. The null hypothesis of Kruskal–Wallis test is that several independent samples are from the same population. And the rejection of the null hypothesis indicates that those samples come from different populations.

Suppose that there were m independent groups, each with a different sample size ni (i = 1,…, m), the Kruskal–Wallis test statistic formula is defined as

K = ( N 1 ) i = 1 m n i ( r i ¯ r ¯ ) 2 i = 1 m j = 1 n i ( r i j r ¯ ) 2

N=i=1mj=1ninih, total number of observations in m

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading