Skip to main content
Calkulon
வழிகாட்டிகள் பக்கத்துக்குத் திரும்பு
3 min read6 படிகள்

How to Perform a Kruskal-Wallis Test: Step-by-Step Guide

Kruskal-Wallis test for comparing groups

கணிதத்தைத் தவிர்க்கவும் - கால்குலேட்டரைப் பயன்படுத்தவும்

படிப்படியான வழிமுறைகள்

1

Gather Your Inputs

First, identify the groups you want to compare and the data for each group. For example, let's say we want to compare the exam scores of students from three different schools. The data is as follows: School A: 75, 80, 90, 70, 85; School B: 80, 75, 95, 85, 80; School C: 90, 85, 80, 75, 95.

2

Combine and Rank the Data

Next, combine the data from all the groups and rank it in ascending order. If there are tied values, assign the average rank. For our example, the combined data is: 70, 75, 75, 80, 80, 80, 85, 85, 85, 90, 90, 95, 95. The ranks are: 1, 2.5, 2.5, 4, 4, 4, 7, 7, 7, 10, 10, 12.5, 12.5.

3

Calculate the Sum of Ranks for Each Group

Now, calculate the sum of ranks for each group. For School A: 1 + 2.5 + 4 + 7 + 10 = 24.5. For School B: 4 + 2.5 + 12.5 + 7 + 4 = 30. For School C: 10 + 7 + 4 + 2.5 + 12.5 = 36.

4

Apply the Kruskal-Wallis Formula

The Kruskal-Wallis formula is: H = (12 / (N * (N + 1))) * (Σ(n_i * (R_i^2 / n_i))) - 3 * (N + 1), where N is the total number of observations, n_i is the number of observations in the i-th group, and R_i is the sum of ranks for the i-th group. Plugging in the numbers, we get: H = (12 / (15 * 16)) * (3 * (24.5^2 / 5) + 5 * (30^2 / 5) + 5 * (36^2 / 5)) - 3 * 16 = 5.44.

5

Determine the Degrees of Freedom and p-value

The degrees of freedom for the Kruskal-Wallis test is k - 1, where k is the number of groups. In our case, the degrees of freedom is 3 - 1 = 2. The p-value can be found using a chi-squared distribution table or calculator. For our example, the p-value is approximately 0.066.

6

Interpret the Results and Avoid Common Mistakes

If the p-value is less than the significance level (usually 0.05), we reject the null hypothesis and conclude that there is a significant difference between the groups. Otherwise, we fail to reject the null hypothesis. Common mistakes to avoid include: using the Kruskal-Wallis test for paired data, not checking for tied values, and not using the correct degrees of freedom. For convenience, you can use a Kruskal-Wallis calculator to perform the test, especially when dealing with large datasets.

Introduction to Kruskal-Wallis Test

The Kruskal-Wallis test is a non-parametric test used to compare three or more groups. It is an extension of the Wilcoxon rank-sum test and is used to determine if there is a significant difference between the medians of the groups.

Prerequisites

Before performing a Kruskal-Wallis test, you should have:

  • Three or more groups of data
  • The data should be continuous or ordinal
  • The data should not be normally distributed or the sample size is small

Step-by-Step Guide

கணக்கிடத் தயாரா?

கைமுறை வேலையைத் தவிர்த்து, உடனடி முடிவுகளைப் பெறுங்கள்.

கால்குலேட்டரைத் திறக்கவும்

அமைப்புகள்