Code covered by the BSD License  

Highlights from
KWtest

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3.98 KB File ID: #25860

KWtest

by Giuseppe Cardillo

 

16 Nov 2009 (Updated 23 Dec 2009)

Kruskal-Wallis test for the non parametric analysis of variance.

| Watch this File

File Information
Description

In statistics, the Kruskal–Wallis one-way analysis of variance by ranks (named after William Kruskal and W. Allen Wallis) is a non-parametric method for testing equality of population medians among groups. It is identical to a one-way analysis of variance with the data replaced by their ranks. It is an extension of the Mann–Whitney U test to 3 or more groups. Since it is a
non-parametric method, the Kruskal–Wallis test does not assume a normal population, unlike the analogous one-way analysis of variance. However, the test does assume an identically-shaped and scaled distribution for each group, except for any difference in medians.
The exact distribution of the Kruskal-Wallis statistics is very time, space and memory expensive, so it is approximated using other distribution.
The MatLab function KRUSKALWALLIS only uses the chi-square distribution that is the most conservative (and this means that it accepts the H0 hypothesis more than you want). This function computes also the F, Beta and Gamma approximations (the F distribution is the less conservative and this means that it refuses the H0 more than you want), giving a more informative output (if you want, see.
http://www.jmu.edu/assessment/JPM%20AERA%20SP%2008.pdf). If you believe that the p-value you choose is smaller than your cut-off (usually 0.05), you can use my function Dunn-Sidak to isolate the differences among
groups
(http://www.mathworks.com/matlabcentral/fileexchange/12827).

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

Required Products Statistics Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
18 Nov 2009

change in help section to cite this function

23 Dec 2009

Changes in description

Tag Activity for this File
Tag Applied By Date/Time
statistics Giuseppe Cardillo 16 Nov 2009 11:56:55
non parametric Giuseppe Cardillo 16 Nov 2009 11:56:55
anova Giuseppe Cardillo 16 Nov 2009 11:56:55
kruskalwallis test Giuseppe Cardillo 16 Nov 2009 11:56:55

Contact us at files@mathworks.com