Skip to main content icon/video/no-internet

Kruskal-Wallis One-Way Analysis of Variance

Kruskal-Wallis analysis of variance is a statistical technique that is used to test the difference between three or more independent samples when they are of disparate size. Remember that one of the assumptions of analysis of variance (even though the test statistic is fairly robust) is that the size of the various samples must be roughly similar and that the variances must be homogeneous.

In the case that these assumptions are not met, the Kruskal-Wallis analysis of variance technique can be used. This technique is roughly similar in use to one-way ANOVA with two or more levels of one independent variable, except that in the case of Kruskal-Wallis, this nonparametric or distribution-free statistic is very often used to test for differences between ranks.

In the following example, 30 participants are asked to rate three different types of chocolate candies: plain, peanut, and almond. The rating scale is yum, OK, and average. The hypothesis being tested is that there is a difference in ratings across the three different types of candies.

Using SPSS, the data set appears as shown below in Figure 1. As you can see, each of the 30 participants rates one of three types of candies along the three-point rating scale described above.

The procedure is performed and the output is shown in Figure 2.

Chi square is the appropriate distribution against which this test is compared for a test of the significance of the difference between the three average ranks. The output shows that there are 10 observations in each group with mean ranks ranging from 14.75 to 15.9. The chi-square value is .125, and the probability that a value of this magnitude, with 2 degrees of freedom, occurred by chance is .940. In other words, there is not a significant difference between the average ranking in each of the three groups.

Figure 1 The Data Set Where Candies Are Ranked by 30 Participants

None

Figure 2 The Results of the Kruskal-Wallis Test

None
Neil J.Salkind

Further Reading

Smerz, J. M.Cognitive functioning in severe dementia and relationship to need driven behaviors and functional status. Dissertation Abstracts International: Section B: The Sciences and Engineering66 (3B) 1737 (2005).
Woo, J., Ho, S. C., and Wong, E. M. C.Depression is the predominant factor contributing to morale as measured by the Philadelphia Geriatric Morale Scale in elderly Chinese aged 70 years and over. International Journal of Geriatric Psychiatry20 (11) 1052–1059 (2005). http://dx.doi.org/10.1002/gps.1394
  • 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