一元配置分散分析のノンパラメトリック代替法。正規分布を仮定せずに3群以上の独立群を比較します。H統計量、p値、対比較を含みます。
The Kruskal-Wallis H test is a rank-based non-parametric test used to determine whether there are statistically significant differences between three or more independent groups. It extends the Mann-Whitney U test to more than two groups and serves as the non-parametric alternative to one-way ANOVA. Developed by William Kruskal and W. Allen Wallis in 1952, it ranks all observations regardless of group membership and tests whether the rank distributions differ across groups.
Use the Kruskal-Wallis H test when you want to compare three or more independent groups and one or more of the following conditions apply: your data are measured on an ordinal scale (e.g., Likert-type items), the assumption of normality is violated, your sample sizes are very small, or your data contain outliers that would distort parametric results. It is commonly used in medical research, psychology, education, and quality control studies.
| Feature | Kruskal-Wallis H | One-Way ANOVA |
|---|---|---|
| Type | Non-parametric | Parametric |
| Data level | Ordinal or continuous | Continuous (interval/ratio) |
| Normality required | No | Yes (or large n) |
| Compares | Rank distributions | Means |
| Effect size | η²H | η² |
| Post-hoc test | Dunn's test | Tukey / Bonferroni |
A researcher compares satisfaction ratings (1-10 scale) across three different training programs. Since the ratings are ordinal and the samples are small, a Kruskal-Wallis H test is appropriate.
Program A (n=7)
12, 15, 18, 14, 16, 13, 17
Mdn = 15.0
Program B (n=7)
22, 25, 20, 28, 24, 26, 21
Mdn = 24.0
Program C (n=7)
8, 11, 9, 13, 10, 7, 12
Mdn = 10.0
Results
H(2) = 16.06, p < .001, η²H = 0.78
There was a significant difference among the three programs, with a large effect size. Dunn's post-hoc test with Bonferroni correction revealed significant differences between all pairs.
While the Kruskal-Wallis H test is less restrictive than ANOVA, it still has assumptions that should be verified:
1. Ordinal or Continuous Data
The dependent variable must be measured on at least an ordinal scale (i.e., values can be meaningfully ranked).
2. Independent Groups
The groups must be independent of each other. Each observation belongs to only one group. For related groups or repeated measures, use the Friedman test instead.
3. Independent Observations
Observations within each group must be independent. Repeated measures, clustered, or paired data violate this assumption.
4. Similar Distribution Shape
For interpreting the result as a comparison of medians, all groups should have similarly shaped distributions. If distributions differ in shape, the test compares rank distributions more broadly.
Eta-squared H (η²H) is the effect size measure for the Kruskal-Wallis test. It estimates the proportion of variance in ranks explained by group membership, analogous to η² in ANOVA.
| η²H | Interpretation | Practical Meaning |
|---|---|---|
| < 0.01 | Negligible | Groups are nearly identical in rank |
| 0.01 - 0.06 | Small | Slight differences in rank distributions |
| 0.06 - 0.14 | Medium | Noticeable separation between groups |
| > 0.14 | Large | Strong separation in rank distributions |
According to APA 7th edition guidelines, report the H statistic, degrees of freedom, p-value, effect size, and descriptive statistics (medians and sample sizes) for each group:
Example Report
A Kruskal-Wallis H test indicated a statistically significant difference in satisfaction ratings across the three programs, H(2) = 16.06, p < .001, η²H = .78. Post-hoc pairwise comparisons using Dunn's test with Bonferroni correction revealed that Program B (Mdn = 24.0) scored significantly higher than both Program A (Mdn = 15.0) and Program C (Mdn = 10.0).
Note: Report H to two decimal places, degrees of freedom as an integer, and p to three decimal places. Use p < .001 when the value is below .001. Always include η²H as the effect size measure and follow up with post-hoc results when the omnibus test is significant.
StatMate's Kruskal-Wallis H test calculations have been validated against R (kruskal.test function) and SPSS output. The implementation uses chi-square approximation for the p-value and the jstat library for probability distributions. Tied ranks are handled using the average rank method. All results match R output to at least 4 decimal places.
t検定
2群の平均値を比較
分散分析
3群以上の平均値を比較
カイ二乗検定
カテゴリ変数の関連を検定
相関分析
関係の強さを測定
記述統計
データを要約
サンプルサイズ
検出力分析・標本計画
1標本t検定
既知の値との比較
マン・ホイットニーU
ノンパラメトリック群間比較
ウィルコクソン検定
ノンパラメトリック対応検定
回帰分析
X-Yの関係をモデル化
重回帰分析
複数の予測変数
クロンバックのα
尺度の信頼性
ロジスティック回帰
二値アウトカムの予測
因子分析
潜在因子構造の探索
反復測定
被験者内分散分析
二元配置分散分析
要因計画の分析
フリードマン検定
ノンパラメトリック反復測定
フィッシャーの正確検定
2×2表の正確検定
マクネマー検定
対応のある名義データの検定
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
データを入力して「計算」をクリックしてください
または「サンプルデータを読み込む」をクリックしてお試しください