Home > Statistical Methods calculators > Kruskal-wallis test example

3. Non parametric test - Kruskal-wallis test example ( Enter your problem )
  1. Example-1
  2. Example-2
Other related methods
  1. Non parametric test - Sign test
  2. Non parametric test - Mann whitney U test
  3. Non parametric test - Kruskal-wallis test
  4. Non parametric test - Chi square test
  5. Non parametric test - Median test
  6. Non parametric test - Mood's Median test
  7. Parametric test - F test
  8. Parametric test - t-test
  9. Parametric test - Standard error

1. Example-1
(Previous example)
4. Non parametric test - Chi square test
(Next method)

2. Example-2





2. Non parametric test - Kruskal-wallis test for the following data
24,32,39,34,30,40,36,38
28,31,35,22,38,28,32,28
34,31,28,24,31,26,28,34, Significance Level `alpha=0.05` and One-tailed test


Solution:
Step-1: Take the hypothesis
Null Hypothesis `H_0` : All groups are equal

Alternative Hypothesis `H_1` : Atleast one group is not equal

Step-2: Ranking all group values
Size in Ascending OrderRankName of related sample
A for sample-1
B for sample-2
C for sample-3
Rank for ARank for BRank for C
221B1
242.5C2.5
242.5A2.5
264C4
287C7
287C7
287B7
287B7
287B7
3010A10
3112C12
3112C12
3112B12
3214.5B14.5
3214.5A14.5
3417C17
3417C17
3417A17
3519B19
3620A20
3821.5B21.5
3821.5A21.5
3923A23
4024A24
Total132.58978.5

The rank total for A is `R_1=132.5`

The rank total for B is `R_2=89`

The rank total for C is `R_3=78.5`

Step-3: Compute test statistic
`sum R_j^2/n_j=(132.5)^2/8+(89)^2/8+(78.5)^2/8=3954.9375`

n = total number of samples = 24

`H=12/(n(n+1)) sum R_j^2/n_j - 3(n+1)`

`=12/(24(24+1)) (3954.9375) - 3(24+1)`

`=12/600 * (3954.9375) - 75`

`=4.0987`

Step-4: `alpha=0.05`

Step-5: Compute the degrees of freedom (df).
`df=(3-1)=2`

Step-6:
The Critical value of chi-square is `chi^2(0.05,2)=5.9915`

Since the computed `H`(4.0987) < critical `chi^2`(5.9915)

So we accept the null hypothesis (`H_0`) and conclude that all groups are identical.


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



1. Example-1
(Previous example)
4. Non parametric test - Chi square test
(Next method)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.