The Kruskal-Wallis test is designed to verify the median equality of several samples . This criterion is a multidimensional generalization of the Wilcoxon – Mann – Whitney criterion . The Kraskel-Wallis criterion is ranked , therefore it is invariant with respect to any monotonic transformation of the measurement scale .
Also known under the names: Kruskal-Wallis H-test, one-way analysis of Kruskal-Wallis analysis ( Kruskal - Wallis one-way analysis of variance ), Kruskal-Wallis test ( English Kruskal - Wallis test ). Named after American mathematicians William Kraskel and Allen Wallis .
Examples of tasks
It takes the World Cup. The first sample is a survey of fans asking “What are the chances of winning the Russian national team?” Before the start of the championship. The second sample is after the first game, the third after the second match, etc. The values in the samples are Russia's chances to win on a ten-point scale (1 - “no prospects”, 10 - “take the cup to Russia is a matter of time” ) It is required to check whether the results of the polls depend on the course of the championship.
Criteria Description
Asked samples:
-
.
The combined sample will look like:
Additional assumptions:
- all samples are simple, the combined sample is independent;
- samples taken from unknown continuous distributions
.
Hypothesis tested with an alternative
.
Arrange everything sample items in ascending order and denote
rank
element -th sample in the obtained variation series .
The statistics of the Kruskal - Wallis criterion for testing the hypothesis of the presence of a shift in the position parameters of the two compared samples has the form:
- ,
Where
- ;
- .
Shift hypothesis deviates at significance level , if a where - critical value, at and calculated by tables. For higher values, various approximations apply.
Kraskel - Wallis approximation
Let be
- ;
- ;
- ;
- .
Then the statistics will have no shift distribution with and degrees of freedom. Thus, the null hypothesis is rejected at the significance level. , if a .
Approximation of Iman - Davenport
In accordance with it, the null hypothesis of a shift is rejected with certainty , if a where ; , and - respectively, the critical values of the Fisher statistics and chi-square with the corresponding degrees of freedom.
This is a more accurate approximation than the Kruskel - Wallis approximation. If there are related ranks (that is, when values from different samples coincide and they are assigned the same average ranks), it is necessary to use modified statistics where ; - the size th group of identical elements; - the number of groups of identical elements. At the approximation of the distribution of statistics is valid ; distribution with degrees of freedom, i.e. the null hypothesis is rejected if .
See also
- Cochren criterion
Literature
- Kruskal WH, Wallis WA Use of ranks in one-criterion variance analysis. // Journal of the American Statistical Association. - 1952, 47 No. 260. - pp. 583-621.
- Likesh I., Lyaga J. Basic tables of mathematical statistics. - M .: Finance and statistics, 1985.
- Kobzar A.I. Applied mathematical statistics. - M .: Fizmatlit, 2006 .-- 466-468 p.