Kruskal-Wallis One-way Analysis of Variance

The **Kruskal-Wallis test** by ranks, **Kruskal-Wallis H test**

Since it is a non-parametric method, the Kruskal-Wallis test does not assume a normal distribution of the residuals, unlike the analogous one-way analysis of variance. If the researcher can make the less stringent assumptions of an identically shaped and scaled distribution for all groups, except for any difference in medians, then the null hypothesis is that the medians of all groups are equal, and the alternative hypothesis is that at least one population median of one group is different from the population median of at least one other group.

- Rank all data from all groups together; i.e., rank the data from 1 to
*N*ignoring group membership. Assign any tied values the average of the ranks they would have received had they not been tied. - The test statistic is given by:
- where:

- is the number of observations in group
- is the rank (among all observations) of observation from group
- is the total number of observations across all groups
- is the average rank of all observations in group
- is the average of all the .

- If the data contain no ties the denominator of the expression for is exactly and . Thus

The last formula only contains the squares of the average ranks.

- A correction for ties if using the short-cut formula described in the previous point can be made by dividing by , where
*G*is the number of groupings of different tied ranks, and*t*_{i}is the number of tied values within group*i*that are tied at a particular value. This correction usually makes little difference in the value of*H*unless there are a large number of ties. - Finally, the p-value is approximated by . If some values are small (i.e., less than 5) the probability distribution of
*H*can be quite different from this chi-squared distribution. If a table of the chi-squared probability distribution is available, the critical value of chi-squared, , can be found by entering the table at*g*- 1 degrees of freedom and looking under the desired significance or alpha level. - If the statistic is not significant, then there is no evidence of stochastic dominance between the samples. However, if the test is significant then at least one sample stochastically dominates another sample. Therefore, a researcher might use sample contrasts between individual sample pairs, or
*post hoc*tests using Dunn's test, which (1) properly employs the same rankings as the Kruskal-Wallis test, and (2) properly employs the pooled variance implied by the null hypothesis of the Kruskal-Wallis test in order to determine which of the sample pairs are significantly different.^{[5]}When performing multiple sample contrasts or tests, the Type I error rate tends to become inflated, raising concerns about multiple comparisons.

A large amount of computing resources is required to compute exact probabilities for the Kruskal-Wallis test. Existing software only provides exact probabilities for sample sizes less than about 30 participants. These software programs rely on asymptotic approximation for larger sample sizes. Exact probability values for larger sample sizes are available. Spurrier (2003) published exact probability tables for samples as large as 45 participants.^{[7]} Meyer and Seaman (2006) produced exact probability distributions for samples as large as 105 participants.^{[8]}

- ^
^{a}^{b}Kruskal-Wallis H Test using SPSS Statistics, Laerd Statistics **^**Kruskal; Wallis (1952). "Use of ranks in one-criterion variance analysis".*Journal of the American Statistical Association*.**47**(260): 583-621. doi:10.1080/01621459.1952.10483441.**^**Corder, Gregory W.; Foreman, Dale I. (2009).*Nonparametric Statistics for Non-Statisticians*. Hoboken: John Wiley & Sons. pp. 99-105. ISBN 9780470454619.**^**Siegel; Castellan (1988).*Nonparametric Statistics for the Behavioral Sciences*(Second ed.). New York: McGraw-Hill. ISBN 0070573573.- ^
^{a}^{b}Dunn, Olive Jean (1964). "Multiple comparisons using rank sums".*Technometrics*.**6**(3): 241-252. doi:10.2307/1266041. - ^
^{a}^{b}Conover, W. Jay; Iman, Ronald L. (1979). "On multiple-comparisons procedures" (PDF) (Report). Los Alamos Scientific Laboratory. Retrieved . **^**Spurrier, J. D. (2003). "On the null distribution of the Kruskal-Wallis statistic".*Journal of Nonparametric Statistics*.**15**(6): 685-691. doi:10.1080/10485250310001634719.**^**Meyer; Seaman (April 2006). "Expanded tables of critical values for the Kruskal-Wallis H statistic".*Paper presented at the annual meeting of the American Educational Research Association, San Francisco*. Critical value tables and exact probabilities from Meyer and Seaman are available for download at http://faculty.virginia.edu/kruskal-wallis/. A paper describing their work may also be found there.

- Daniel, Wayne W. (1990). "Kruskal-Wallis one-way analysis of variance by ranks".
*Applied Nonparametric Statistics*(2nd ed.). Boston: PWS-Kent. pp. 226-234. ISBN 0-534-91976-6.

This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

What We've Done

Led Digital Marketing Efforts of Top 500 e-Retailers.

Worked with Top Brands at Leading Agencies.

Successfully Managed Over $50 million in Digital Ad Spend.

Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.

Taught Advanced Internet Marketing Strategies at the graduate level.

Manage research, learning and skills at defaultLogic. Create an account using LinkedIn or facebook to manage and organize your Digital Marketing and Technology knowledge. defaultLogic works like a shopping cart for information -- helping you to save, discuss and share.

Visit defaultLogic's partner sites below: