# 肯德尔W

肯德尔W是一种非参数协和系数，用于衡量多位评分者在同一组项目上排序时的一致程度，取值从0（完全不一致）到1（完全一致）。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)</sup> 形式上，W是项目秩和方差与其最大可能方差之比的一个估计量，而该最大方差出现在所有评分者完全一致之时。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)</sup> 其显著性检验与弗里德曼检验完全等价，而W的优势在于它可以被解释为一个协和系数。<sup>[2](https://andrisignorell.github.io/DescTools/reference/KendallW.html)</sup>

| 事实 | 详情 |
|---|---|
| W衡量什么 | m位评分者对n个项目排序的协和程度；即项目秩和方差与其最大值之比<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)</sup> |
| 取值范围 | 0（完全不一致）到1（完全一致）<sup>[3](https://support.nag.com/numeric/cl/nagdoc_cl26.2/nagdoc_fl26.2/html/g08/g08daf.html)</sup> |
| 公式 | \( W = 12S / (m^{2} \cdot (n^{3} - n) - m \cdot T) \)，其中结校正项为 \( T = \sum (t_{k}^{3} - t_{k}) \)<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> |
| 与斯皮尔曼相关的关系 | \( W = ((m - 1) \cdot \bar{r}_{S} + 1)/m \)，其中 \( \bar{r}_{S} \) 为两两斯皮尔曼相关系数的均值<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> |
| 显著性检验 | \( \chi^{2} = m \cdot (n - 1) \cdot W \)，渐近服从自由度为 \( n - 1 \) 的卡方分布<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> |
| 起源 | 由M. G. 肯德尔和B. 巴宾顿·史密斯在《m个排序的问题》（《数理统计年刊》，1939年）中提出<sup>[5](https://doi.org/10.1214/aoms/1177732186)</sup> |
| 不完整数据 | 通过两两斯皮尔曼rho均值推广的W可处理随机缺失的评分<sup>[2](https://andrisignorell.github.io/DescTools/reference/KendallW.html)</sup> |

## 工作原理

W建立在秩和之上。m位评分者各自将n个项目排为1到n的次序；每个项目所得的各评分者的秩相加，得到秩和 \( R_{i} \)。如果评分者意见一致，每个项目从所有人那里得到的秩相近，于是秩和彼此拉开差距；如果评分者随机地意见相左，秩和便聚集在期望平均秩和附近。W是观测到的秩的离差平方和按其最大可能值缩放后的结果，这正是它取值于0到1之间的原因。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)</sup><sup> • </sup><sup>[6](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)</sup>

带结校正的计算公式为

\[ W = \frac{12S}{m^{2} \cdot (n^{3} - n) - m \cdot T} \]

其中 \( T = \sum (t_{k}^{3} - t_{k}) \) 对所有m列中的所有结组求和，\( t_{k} \) 为每个结组的大小；当没有并列值时 \( T = 0 \)。<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup>

W本身并不是一个相关系数，但对于完整、无结的排序，它的一个线性变换等于对所有评分者对计算的平均斯皮尔曼秩相关；当存在结时，经结校正的W与基于两两斯皮尔曼相关均值构造的估计量未必一致：<sup>[6](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)</sup>

\[ W = \frac{(m - 1) \cdot \bar{r}_{S} + 1}{m} \qquad \text{等价地} \qquad \bar{\rho}_{s} = \frac{m \cdot W - 1}{m - 1} \]<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup><sup> • </sup><sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup>

这一恒等式确定了该量表的含义：对于无结的完整排序，\( W = 1/m \) 对应两两斯皮尔曼rho均值为0（它是在独立随机排序下W的期望值，而非下界，因为W可以低于 \( 1/m \)，其下界为0，此时两两rho均值为 \( -1/(m - 1) \)）；而当 \( W = 1 \) 时，两两rho均值为1。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup>

W也与弗里德曼检验相联系：弗里德曼卡方统计量由W通过 \( \chi^{2} = m \cdot (n - 1) \cdot W \) 得到，渐近服从自由度为 \( n - 1 \) 的卡方分布。<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> 这就是W的检验与弗里德曼检验完全等价的原因；W只是额外提供了一个可解释的协和量表。<sup>[2](https://andrisignorell.github.io/DescTools/reference/KendallW.html)</sup>

## 计算步骤

从评分者×项目表计算W的步骤如下。<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup><sup> • </sup><sup>[8](https://metricgate.com/blogs/how-to-run-kendall-concordance-in-r/)</sup>

1. 在每位评分者所在的列内对项目排序，对并列值赋予平均秩。<sup>[9](https://quallmer.github.io/quallmer/reference/reliability_kendall_w.html)</sup>
2. 将每个项目在各评分者处的秩相加，得到 \( R_{i} \)。
3. 计算各秩和相对均值 \( \bar{R} = m \cdot (n + 1)/2 \) 的离差 \( R_{i} - \bar{R} \)，并构造 \( S = \sum (R_{i} - \bar{R})^{2} \)。<sup>[8](https://metricgate.com/blogs/how-to-run-kendall-concordance-in-r/)</sup>
4. 计算所有列中所有结组的结校正项。<sup>[6](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)</sup>
5. 应用公式 \( W = 12S / (m^{2} \cdot (n^{3} - n) - m \cdot T) \)，并按下文所述进行显著性检验。<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup>

就显著性而言，标准做法是采用自由度为 \( n - 1 \) 的卡方近似 \( \chi^{2} = m(n - 1)W \)。<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> 对于小样本，宜采用精确方法：西格尔和卡斯特兰建议，当 \( n \le 7 \) 且 \( m \le 20 \) 时，使用他们通过完全排列得到的W临界值表，<sup>[4](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)</sup> 而范德兰和普拉肯（1972）给出了小m和小n下W抽样分布的精确表，并认为对于 \( m \ge 7 \) 位评分者，卡方近似已足够。<sup>[10](https://iris.polito.it/retrieve/e384c432-741c-d4b2-e053-9f05fe0a1d67/RED%20Revised%20Generalized_W%20RIED%20%28FF%20DM%29%20%282020-04-09%29%20No%20Yellow.pdf)</sup> 应至少使用3位评分者；两位评分者之间的一致性应使用其他度量。<sup>[11](https://statstodo.com/KendallW.php)</sup>

## 起源

协和系数W出现在M. G. 肯德尔和B. 巴宾顿·史密斯发表于1939年《数理统计年刊》的论文《m个排序的问题》中；该文给出了取值于0到1的W的公式、一个显著性检验，以及统计量s的分布表——s即观测到的秩和相对均值 \( m \cdot (n + 1)/2 \) 的离差平方和。<sup>[5](https://doi.org/10.1214/aoms/1177732186)</sup><sup> • </sup><sup>[12](https://psycnet.apa.org/record/1941-02882-001)</sup> 它承接了肯德尔1938年发表于《生物计量学》的早期论文《一种新的秩相关度量》。<sup>[13](https://doi.org/10.1093/biomet/30.1-2.81)</sup> 同一对作者的另一篇配套论文《论配对比较法》于1940年发表于《生物计量学》。<sup>[14](https://doi.org/10.1093/biomet/31.3-4.324)</sup> 一篇历史综述还指出，《秩相关方法》一书是对该方法的系统整理。<sup>[15](https://www.opanalytics.ca/OR55-Sep2013.pdf)</sup>

## 变体

**结校正W。** 校正因子T是针对给出相同秩的评分者的经典扩展；若不加校正，当评判者给出相同秩时，W会被低估。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup>

**面向不完整数据的广义W。** 当评分随机缺失时，可将所有两两比较的两两斯皮尔曼rho均值用于形式 \( W = (1 + \bar{\rho} \cdot (k - 1))/k \)，其中k为每个对象平均参与两两评分的次数；该方法已在DescTools和irrNA这两个R包中实现，其中rho均值按泰勒（1987）的方法加权。<sup>[2](https://andrisignorell.github.io/DescTools/reference/KendallW.html)</sup><sup> • </sup><sup>[16](https://search.r-project.org/CRAN/refmans/irrNA/html/kendallNA.html)</sup> 当存在并列秩时，该变体使用斯皮尔曼rho的两两校正，即便数据完整，其结果也与为W明确规定的结校正略有不同。<sup>[16](https://search.r-project.org/CRAN/refmans/irrNA/html/kendallNA.html)</sup>

**区间尺度推广。** 肯德尔协和系数已被推广到区间尺度数据；该推广在秩序数据上等于K。<sup>[17](https://tahanimaturi.com/pdfs/WCC_13092013_website_version.pdf)</sup>

**软件。** 实现包括R包DescTools、irrNA、irr（其kendall()函数在correct = TRUE时自动应用结校正）和quallmer，<sup>[2](https://andrisignorell.github.io/DescTools/reference/KendallW.html)</sup><sup> • </sup><sup>[16](https://search.r-project.org/CRAN/refmans/irrNA/html/kendallNA.html)</sup><sup> • </sup><sup>[8](https://metricgate.com/blogs/how-to-run-kendall-concordance-in-r/)</sup><sup> • </sup><sup>[9](https://quallmer.github.io/quallmer/reference/reliability_kendall_w.html)</sup> 以及NAG库例程g08daf和MetricGate。<sup>[3](https://support.nag.com/numeric/cl/nagdoc_cl26.2/nagdoc_fl26.2/html/g08/g08daf.html)</sup><sup> • </sup><sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup>

## 应用

W广泛用于专家意见征询研究、德尔菲共识小组、竞赛评判和口味测试，以及任何需要多位评分者给出项目共同排序的场合。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup> 由于它基于秩运算，即便评判者使用不同的评分量表，它仍然有效。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup> 在工程设计与失效模式决策情境中，广义W已被应用于不完整的专家排序，此时独立性的原假设意味着秩由每位专家随机分配，因而不存在协和。<sup>[10](https://iris.polito.it/retrieve/e384c432-741c-d4b2-e053-9f05fe0a1d67/RED%20Revised%20Generalized_W%20RIED%20%28FF%20DM%29%20%282020-04-09%29%20No%20Yellow.pdf)</sup>

## 局限与替代方法

**卡方近似。** 关于卡方检验何时足够的模拟证据指向不同方向。勒让德尔的模拟发现，经典卡方检验过于保守：当评分者数m小于20时，对任何n其拒绝率都低于显著性水平；只有评分者达到20位及以上时，第一类错误率才正确。置换检验对所有m和n都具有正确的第一类错误率且功效更高；而统计量 \( F = (m - 1) \cdot W/(1 - W) \) 在自由度 \( \nu_{1} = n - 1 - (2/m) \) 和 \( \nu_{2} = \nu_{1} \cdot (m - 1) \) 下，对任何n和m都保持正确的第一类错误水平。<sup>[1](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)</sup> 软件文档则相反，认为 \( n \ge 7 \) 个项目就足以进行可靠的卡方推断，并建议在约7以下时采用精确或置换方法。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup><sup> • </sup><sup>[3](https://support.nag.com/numeric/cl/nagdoc_cl26.2/nagdoc_fl26.2/html/g08/g08daf.html)</sup> irr包无论样本量大小一律使用卡方，而西格尔和卡斯特兰算法在小样本下有所不同。<sup>[11](https://statstodo.com/KendallW.php)</sup>

**结与缺失数据。** W要求数据完整，每位评分者都要对每个项目排序；缺失的评分需要插补、剔除或采用修正方法。<sup>[8](https://metricgate.com/blogs/how-to-run-kendall-concordance-in-r/)</sup> 当评分者评价不同的项目子集时，一个实用建议是只纳入完整评分或删除项目，或改用格韦特AC2、克里彭多夫alpha或ICC等替代方法。<sup>[6](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)</sup> 若未应用结校正，当评判者给出相同秩时W会被低估。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup>

**与其他系数的比较。** 弗莱斯kappa是为名义分类评分设计的，不考虑评分的次序，因此不适用于秩数据；对于有序评分，可使用ICC、加权弗莱斯kappa或肯德尔W。<sup>[6](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)</sup><sup> • </sup><sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup> W只衡量单调一致性，当评判者在位置上一致但强度不同时，基于原始分数的ICC可能提供更多信息。<sup>[7](https://metricgate.com/docs/kendalls-w-concordance/)</sup> 肯德尔W对结作出校正，最适合评分者使用相同数量可能取值的情形。<sup>[18](https://link.springer.com/content/pdf/10.1007/s00357-021-09386-5.pdf)</sup> 在秩相关方面，有人指出肯德尔tau*b*作为弱序（带结的排序）之间一致性的度量存在缺陷，并为共识排序问题提出了替代系数tau*x*，它对结的处理方式不同。<sup>[19](https://doi.org/10.1002/mcda.313)</sup>

## References

1. [Coefficient of Concordance (Legendre, SAGE Encyclopedia of Research Design, 2022)](http://www.numericalecology.com/Reprints/Legendre_Encyclo_of_Research_Design_SAGE_2022.pdf)
2. [Kendall's Coefficient of Concordance W, KendallW • DescTools](https://andrisignorell.github.io/DescTools/reference/KendallW.html)
3. [NAG Library g08daf, Kendall's coefficient of concordance](https://support.nag.com/numeric/cl/nagdoc_cl26.2/nagdoc_fl26.2/html/g08/g08daf.html)
4. [Species Associations: The Kendall Coefficient of Concordance Revisited (Legendre, 2005)](https://www.dulvy.com/uploads/2/1/0/4/21048414/legendre_2005.pdf)
5. [M. G. Kendall, B. Babington Smith (1939). The Problem of $m$ Rankings. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177732186)
6. [Kendall's Concordance (W) | Real Statistics Using Excel](https://real-statistics.com/reliability/interrater-reliability/kendalls-w/)
7. [Kendall's W Coefficient of Concordance (Judges Agreement), MetricGate documentation](https://metricgate.com/docs/kendalls-w-concordance/)
8. [How to Run Kendall's W Concordance in R, MetricGate](https://metricgate.com/blogs/how-to-run-kendall-concordance-in-r/)
9. [Kendall's W coefficient of concordance, reliability_kendall_w • quallmer](https://quallmer.github.io/quallmer/reference/reliability_kendall_w.html)
10. [Revised Generalized Kendall's W for incomplete rankings (RIED, FF DM, 2020)](https://iris.polito.it/retrieve/e384c432-741c-d4b2-e053-9f05fe0a1d67/RED%20Revised%20Generalized_W%20RIED%20%28FF%20DM%29%20%282020-04-09%29%20No%20Yellow.pdf)
11. [Kendall W](https://statstodo.com/KendallW.php)
12. [The problem of m rankings (Kendall & Smith, 1939, Annals of Mathematical Statistics)](https://psycnet.apa.org/record/1941-02882-001)
13. [M. G. KENDALL (1938). A NEW MEASURE OF RANK CORRELATION. Biometrika.](https://doi.org/10.1093/biomet/30.1-2.81)
14. [M. G. KENDALL, B. BABINGTON SMITH (1940). ON THE METHOD OF PAIRED COMPARISONS. Biometrika.](https://doi.org/10.1093/biomet/31.3-4.324)
15. [A President's Legacy: Kendall's Rank Correlation Methods and Finding Agreement (or Otherwise) in a Problem-Solving Group](https://www.opanalytics.ca/OR55-Sep2013.pdf)
16. [R: Kendall's coefficient of concordance W - generalized for incomplete data (irrNA package)](https://search.r-project.org/CRAN/refmans/irrNA/html/kendallNA.html)
17. [A New Weighted Rank Coefficient of Concordance](https://tahanimaturi.com/pdfs/WCC_13092013_website_version.pdf)
18. [A Comparison of Reliability Coefficients for Ordinal Rating Scales](https://link.springer.com/content/pdf/10.1007/s00357-021-09386-5.pdf)
19. [Edward J. Emond, David W. Mason (2002). A new rank correlation coefficient with application to the consensus ranking problem. Journal of Multi-Criteria Decision Analysis.](https://doi.org/10.1002/mcda.313)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Hypothesis testing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/kendalls-w

English original: https://www.edgepedia.org/kendalls-w
