反復測定分散分析のノンパラメトリック代替法。同じ被験者で測定された3条件以上の順位を比較します。
The Friedman test is a non-parametric statistical test used to detect differences across three or more related groups (repeated measures). It is the non-parametric alternative to repeated measures ANOVA. Developed by Milton Friedman in 1937, the test ranks observations within each subject across conditions and tests whether the mean ranks differ significantly among conditions. It is widely used in medicine, psychology, and education for pre-post-follow-up designs and within- subject experiments.
Use the Friedman test when you have a repeated measures or matched design with three or more conditions and one or more of the following apply: your data are measured on an ordinal scale, the assumption of normality is violated, your sample sizes are small, or your data contain outliers. Common applications include comparing treatment effects over time, evaluating product preferences from the same judges, and analyzing questionnaire responses measured at multiple time points.
| Feature | Friedman Test | RM ANOVA |
|---|---|---|
| Type | Non-parametric | Parametric |
| Data level | Ordinal or continuous | Continuous (interval/ratio) |
| Normality required | No | Yes (or large n) |
| Design | Repeated measures / matched | Repeated measures / matched |
| Effect size | Kendall's W | Partial η² |
| Post-hoc test | Nemenyi / Bonferroni | Bonferroni pairwise |
A researcher measures pain levels of 10 patients at three time points: before treatment, 1 week after, and 4 weeks after. Since pain ratings are ordinal and the design is repeated measures, a Friedman test is appropriate.
Baseline (n=10)
72, 85, 91, 68, 77, 83, 95, 88, 74, 79
Mdn = 80.5
1 Week (n=10)
78, 89, 95, 73, 82, 87, 98, 92, 79, 83
Mdn = 85.0
4 Weeks (n=10)
82, 93, 99, 78, 86, 91, 102, 96, 84, 88
Mdn = 89.5
Results
χ²(2) = 20.00, p < .001, W = 1.00
There was a significant difference across time points, with a large effect size. Post-hoc comparisons revealed significant improvement from baseline to both follow-up time points.
While the Friedman test is less restrictive than repeated measures ANOVA, it still has assumptions:
1. Ordinal or Continuous Data
The dependent variable must be measured on at least an ordinal scale so that values can be meaningfully ranked within each subject.
2. Related Groups (Repeated Measures)
The same subjects must be measured under all conditions. For independent groups, use the Kruskal-Wallis H test instead.
3. Equal Sample Sizes
Each condition must have the same number of observations since each subject provides one observation per condition.
4. Random Sample
Subjects should be randomly selected from the population of interest. Non-random selection may limit the generalizability of results.
Kendall's W (coefficient of concordance) is the effect size for the Friedman test. It ranges from 0 to 1, where 0 indicates no agreement in rankings and 1 indicates complete agreement.
| W | Interpretation | Practical Meaning |
|---|---|---|
| < 0.1 | Negligible | Conditions are nearly identical |
| 0.1 - 0.3 | Small | Slight consistent difference across conditions |
| 0.3 - 0.5 | Medium | Noticeable and consistent pattern |
| > 0.5 | Large | Strong consistent difference across conditions |
According to APA 7th edition guidelines, report the chi-square statistic, degrees of freedom, p-value, and Kendall's W:
Example Report
A Friedman test indicated a statistically significant difference in pain levels across the three time points, χ²(2) = 20.00, p < .001, W = 1.00. Post-hoc pairwise comparisons with Bonferroni correction revealed significant improvement from baseline (Mdn = 80.5) to both 1 week (Mdn = 85.0) and 4 weeks (Mdn = 89.5).
Note: Report χ² 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 Kendall's W as the effect size measure.
StatMate's Friedman test calculations have been validated against R (friedman.test function) and SPSS output. The implementation uses chi-square approximation for the p-value and the jstat library for probability distributions. Tied ranks within subjects 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の関係をモデル化
重回帰分析
複数の予測変数
クロンバックのα
尺度の信頼性
ロジスティック回帰
二値アウトカムの予測
因子分析
潜在因子構造の探索
クラスカル・ウォリス
ノンパラメトリック3群以上比較
反復測定
被験者内分散分析
二元配置分散分析
要因計画の分析
フィッシャーの正確検定
2×2表の正確検定
マクネマー検定
対応のある名義データの検定
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
Excel/スプレッドシートから貼り付け、またはCSVファイルをドロップ
friedman.pairedNote
データを入力して「計算」をクリックしてください
または「サンプルデータを読み込む」をクリックしてお試しください