Kruskal Wallis statistics calculation for equal data

版本 1.0.0.0 (2.7 KB) 作者: Sherif Omran
This code calculates the Kruskal Wallis statistics given for 2 datasets with equal length > 5
245.0 次下载
更新时间 2011/8/26

查看许可证

% Kruskal_Wallis
% This is a statistical test to check two datasets if are different.
% Kruskal_Wallis is similar to one way ANOVA but the data is not expected
% to be natrual distribution. It works with any breaked condition of the
% ANOVA.
%
% As a reminder, the assumptions of the one-way ANOVA for independent samples are
% that the scale on which the dependent variable is measured has the properties of an equal interval scale;T
% that the k samples are independently and randomly drawn from the source population(s);T
% that the source population(s) can be reasonably supposed to have a normal distribution; andT
% that the k samples have approximately equal variances.
%
% We noted in the main body of Chapter 14 that we need not worry very much about the first, third, and fourth of these assumptions
% when the samples are all the same size. For in that case the analysis of variance is quite robust, by which we mean relatively
% unperturbed by the violation of its assumptions. But of course, the other side of the coin is that when the samples are not all
% the same size, we do need to worry. In this case, should one or more of assumptions 1, 3, and 4 fail to be met, an appropriate
% non-parametric alternative to the one-way independent-samples ANOVA can be found in the Kruskal-Wallis Test.
%
% see http://faculty.vassar.edu/lowry/ch14a.html
%
% Assumption used in the programming of this code is thatb oth data sets are equal

引用格式

Sherif Omran (2024). Kruskal Wallis statistics calculation for equal data (https://www.mathworks.com/matlabcentral/fileexchange/32691-kruskal-wallis-statistics-calculation-for-equal-data), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0