# 成对比较

成对比较是一种统计评估方法，每次评估一对处理、组或项目，在一组内的所有配对上进行，目的是检验组均值之间的差异，或引出偏好并对项目进行排序。这一术语涵盖两种不同的实践：实验后的多重比较检验，产出决策、校正后的 p 值或诸如 \( \mu_{i} - \mu_{j} \) 之类差异的联立置信区间；以及配对偏好建模，从胜负数据中产出强度估计和排名。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup><sup> • </sup><sup>[2](https://biostatisticsjdreeve.com/wp-content/uploads/2023/11/chapter-13-multiple-comparisons.pdf)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1210.1016)</sup> 偏好这一分支如今支撑着聊天机器人竞技场（Chatbot Arena）等大规模系统，后者根据众包成对投票对语言模型进行排名。<sup>[4](https://proceedings.mlr.press/v235/chiang24b.html)</sup>

| 关键事实 | 数值 |
|---|---|
| n 个项目中的配对数量 | \( n(n-1)/2 \)：5 组 → 10 对，10 组 → 45 对，20 组 → 190 对<sup>[5](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)</sup> |
| 第一类错误，15 次未校正检验（6 组） | 超过 50%<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup> |
| 族错误率，独立检验 | \( \alpha_{f} = 1 - (1 - \alpha)^{C} \)；\( \alpha = 0.05 \)，\( C = 10 \) 时为 0.401<sup>[5](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)</sup> |
| 图基 HSD 联立置信系数 | 样本量相等时恰为 \( 1 - \alpha \)；样本量不等时（图基–克莱默法）大于 \( 1 - \alpha \)<sup>[6](https://www.itl.nist.gov/div898/handbook/prc/section4/prc471.htm)</sup> |
| 错误发现率 | 所有拒绝中错误拒绝的期望比例<sup>[7](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)</sup> |
| 默认参数非计划检验 | 图基 HSD；样本量不同时使用图基–克莱默变体<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup> |
| 基于模型的获胜概率 | 逻辑斯蒂连接给出布拉德利–特里模型；正态连接给出瑟斯顿模型<sup>[3](https://ar5iv.labs.arxiv.org/html/1210.1016)</sup> |

## 工作原理

有 \( n \) 组时存在 \( n(n-1)/2 \) 对，因此比较次数呈二次增长：5 组设计有 10 对，10 组设计有 45 对，20 组设计有 190 对。<sup>[5](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)</sup> 每次在 0.05 水平上的单独检验都有 5% 的假阳性概率，这些概率在整个族中累积。对于独立检验，族错误率为 \( \alpha_{f} = 1 - (1 - \alpha)^{C} \)，当 \( \alpha = 0.05 \) 且 \( C = 10 \) 时为 0.401；对于来自同一数据集的相关的成对检验，该公式是一个上界。<sup>[5](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)</sup> 在六组之间不经校正地运行全部 15 次成对比较，第一类错误概率超过 50%。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup>

两种错误率界定了设计空间。族错误率（FWER）是族中至少出现一次错误拒绝的概率；错误发现率（FDR）由本雅明（Benjamini）和霍赫贝格（Hochberg）提出，是全部拒绝中错误拒绝的期望比例。<sup>[7](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)</sup> 检验效能也一分为二：任一对效能是检测到至少一个真实配对差异的概率，全对效能是检测到所有真实配对差异的概率，这些定义由拉姆齐（Ramsey）推荐。<sup>[5](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)</sup>

## 操作方法

典型的分析检验所有 \( a(a-1)/2 \) 个形如 \( \mu_{i} - \mu_{j} \) 的比较。对于图基（Tukey）HSD，检验统计量与来自学生化极差分布 \( q_{(r,\nu)} = w/s \) 的临界值比较，其中 w 是 r 个独立正态观测值的极差，s 是它们标准误的独立估计，自由度为 ν，由误差均方的平方根导出；决策规则在 \( |\hat{D}_{ij}| \ge \frac{q_{(\alpha,\, a,\, N-a)}}{\sqrt{2}} \cdot \mathrm{se}(\hat{D}_{ij}) \) 时拒绝 \( H_{0}: \mu_{i} = \mu_{j} \)。<sup>[8](https://math.montana.edu/jobo/st541/sec2c.pdf)</sup><sup> • </sup><sup>[6](https://www.itl.nist.gov/div898/handbook/prc/section4/prc471.htm)</sup> 所得区间是联立的：样本量相等时，所有区间包含真实 \( \mu_{i} - \mu_{j} \) 的总体概率恰为 \( 1 - \alpha \)；而样本量不等时，图基–克莱默（Tukey–Kramer）区间是保守的，覆盖率至少为 \( 1 - \alpha \)。<sup>[2](https://biostatisticsjdreeve.com/wp-content/uploads/2023/11/chapter-13-multiple-comparisons.pdf)</sup>

校正方法的选择取决于比较族。邦费罗尼（Bonferroni）法在每次比较的 p 值低于 \( \alpha/k \) 时拒绝，对于 5 组而言意味着在 \( \alpha = 0.005 \) 水平上检验每一对。<sup>[2](https://biostatisticsjdreeve.com/wp-content/uploads/2023/11/chapter-13-multiple-comparisons.pdf)</sup> 霍尔姆（Holm）的多阶段检验根据剩余待检验的零假设数量调整分母。<sup>[9](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup> 假设条件与独立组 t 检验相同：正态性、方差齐性和独立观测。<sup>[10](https://onlinestatbook.com/lms/tests_of_means/pairwise.html)</sup>

## 起源

在假设检验方面，图基的全配对程序在一篇广泛使用的综述中被定年为 1949 年<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup>；两种定年说法至今仍在使用。<sup>[7](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)</sup> 谢费（Scheffé）用于判断所有对比的方法于 1953 年发表于《生物计量学》（Biometrika），<sup>[11](https://doi.org/10.1093/biomet/40.1-2.87)</sup> 邓尼特（Dunnett）用于比较多个处理与一个对照的程序于 1955 年发表于《美国统计协会杂志》（Journal of the American Statistical Association），<sup>[12](https://doi.org/10.1080/01621459.1955.10501294)</sup> 克莱默（Kramer）将多重极差检验扩展到不等重复数的研究于 1956 年发表于《生物统计学》（Biometrics）。<sup>[13](https://doi.org/10.2307/3001469)</sup> 海特（Hayter）于 1984 年证明了图基–克莱默程序是保守的。<sup>[14](https://doi.org/10.1214/aos/1176346392)</sup> 霍尔姆的序贯拒绝程序随后于 1979 年提出<sup>[15](https://doi.org/10.2307/4615733)</sup>，本雅明和霍赫贝格的 FDR 控制于 1995 年提出。<sup>[16](https://doi.org/10.1111/j.2517-6161.1995.tb02031.x)</sup>

在偏好方面，历史综述将瑟斯顿（Thurstone）比较判断模型归于心理测量学，费希纳（Fechner）被视为心理测量学的先驱。<sup>[17](https://pure.manchester.ac.uk/ws/files/50395219/Koczkodaj_LM_et_al_2015.pdf)</sup> 用于配对比较的布拉德利–特里（Bradley–Terry）模型由拉尔夫·艾伦·布拉德利（Ralph Allan Bradley）和米尔顿·E·特里（Milton E. Terry）于 1952 年发表于《生物计量学》，<sup>[18](https://doi.org/10.2307/2334029)</sup> 拉奥（Rao）和库珀（Kupper）于 1967 年将其推广以处理平局。<sup>[19](https://doi.org/10.1080/01621459.1967.10482901)</sup> 蒋（Chiang）及其同事于 2024 年推出了聊天机器人竞技场，一个通过人类偏好评估大语言模型的开放平台。<sup>[4](https://proceedings.mlr.press/v235/chiang24b.html)</sup>

## 变体

**假设检验程序**在范围和严格程度上各有不同。图基 HSD 覆盖所有配对，且当仅进行成对比较时，产生最窄的联立置信区间。<sup>[20](https://online.stat.psu.edu/stat502/book/export/html/841)</sup> 费舍尔（Fisher）LSD 是一种保护性 t 检验，仅在方差分析 F 显著后才运行；它具有高效能但对实验错误率控制不佳，通常不推荐用于非计划比较。<sup>[8](https://math.montana.edu/jobo/st541/sec2c.pdf)</sup> 谢费法覆盖所有对比，能防止数据窥探，是最保守的选择，效能最低。<sup>[20](https://online.stat.psu.edu/stat502/book/export/html/841)</sup><sup> • </sup><sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> 邓尼特程序将 \( a-1 \) 个处理与一个对照进行比较，通过检验更少的比较来获得效能。<sup>[8](https://math.montana.edu/jobo/st541/sec2c.pdf)</sup><sup> • </sup><sup>[20](https://online.stat.psu.edu/stat502/book/export/html/841)</sup> 当方差不相等时，只有四种为此情形设计的程序——邓尼特 C、邓尼特 T3、盖姆斯–豪厄尔（Games–Howell）和塔姆海恩（Tamhane）T2——在模拟中充分控制了第一类错误，其中盖姆斯–豪厄尔效能略高。<sup>[22](https://journals.sagepub.com/doi/10.1177/2515245918808784)</sup> 谢弗（Shaffer）的修正序贯拒绝程序（1986 年）改进了逐步拒绝检验这一类方法。<sup>[23](https://doi.org/10.1080/01621459.1986.10478341)</sup>

**基于模型的方法**估计项目强度而非检验差异。获胜概率为 \( P(i \succ j) = F(\lambda_{i} - \lambda_{j}) \) 的配对比较模型，当 F 为正态累积分布函数时成为瑟斯顿模型，当 F 为逻辑斯蒂函数时成为布拉德利–特里模型。<sup>[3](https://ar5iv.labs.arxiv.org/html/1210.1016)</sup> 布拉德利–特里模型是国际象棋及其他重复竞赛中使用的埃洛（Elo）评级系统的基础。<sup>[24](https://betanalpha.github.io/assets/chapters_pdf/pairwise_comparison_modeling.pdf)</sup>

## 应用

多重比较检验是生物学和心理学中的主力工具：一项对过去 20 年环境与生物学文献的调查发现，图基 HSD 在 30.04% 的报告中使用，而盖姆斯–豪厄尔（1.13%）、霍尔姆–邦费罗尼（1.25%）和谢费（2.25%）使用最少。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> 配对比较模型服务于感官与音频评估、期刊排名、遗传学和风险评估。<sup>[3](https://ar5iv.labs.arxiv.org/html/1210.1016)</sup> 近期最大的应用是大语言模型评估：聊天机器人竞技场收集众包成对人类偏好；到 2026 年，该平台（现已更名为“竞技场”，网址 arena.ai）已积累数百万票，2026 年版文本（总体，风格控制）排行榜报告了 393 个模型共计 7,874,713 票。<sup>[4](https://proceedings.mlr.press/v235/chiang24b.html)</sup>

## 局限性与替代方案

**错误膨胀与效能损失。** 未校正的成对检验会膨胀假阳性，甚至名义上受保护的程序也可能失效：在非完全零假设配置下，费舍尔 LSD 的族错误率在 \( \alpha = 0.05 \) 时，4 组达到 0.1222，8 组达到 0.9044。<sup>[7](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)</sup> 当所有配对都受关注时，图基法比邦费罗尼或希达克（Šidák）法更有效能，但其临界值取决于处理数 a 而非比较数 C，因此当只有少数配对重要时会损失效能。<sup>[8](https://math.montana.edu/jobo/st541/sec2c.pdf)</sup>

**非传递性与替代方案。** 非传递性决策——即 A 胜 B、B 胜 C，但 C 胜 A——在传统程序中极为常见；有人提出一种基于 AIC 的模型检验方法来避免此类情况，其全对效能优于图基 HSD。<sup>[7](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)</sup> 对于秩数据存在非参数选项：计划比较使用曼–惠特尼–威尔科克森（Mann-Whitney-Wilcoxon）U 检验，非计划比较使用邓恩（Dunn）、内梅尼（Nemenyi）和斯蒂尔–德瓦斯（Steel-Dwass）程序；在方差不相等时使用的参数盖姆斯–豪厄尔程序并非基于秩的替代方案。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)</sup>

## References

1. [Comparing multiple comparisons: practical guidance for choosing the best multiple comparisons test (Midway et al., 2020, PeerJ)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7720730/)
2. [Chapter 13: Multiple Comparisons (biostatistics text, J.D. Reeve)](https://biostatisticsjdreeve.com/wp-content/uploads/2023/11/chapter-13-multiple-comparisons.pdf)
3. [Models for Paired Comparison Data: A Review with Emphasis on Dependent Data (Cattelan)](https://ar5iv.labs.arxiv.org/html/1210.1016)
4. [Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (ICML 2024)](https://proceedings.mlr.press/v235/chiang24b.html)
5. [Pair-Wise Multiple Comparisons (Simulation), PASS/NCSS documentation](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Pair-Wise_Multiple_Comparisons-Simulation.pdf)
6. [7.4.7.1. Tukey's method, NIST/SEMATECH e-Handbook of Statistical Methods](https://www.itl.nist.gov/div898/handbook/prc/section4/prc471.htm)
7. [Pairwise Multiple Comparison Test Procedures (Keselman et al., book chapter)](https://home.cc.umanitoba.ca/~kesel/bookchap.pdf)
8. [ST 541 course notes: Multiple Comparison Procedures (Montana State University)](https://math.montana.edu/jobo/st541/sec2c.pdf)
9. [Chapter 12: Multiple Comparisons Among Treatment Means (Howell, textbook chapter)](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)
10. [All Pairwise Comparisons Among Means (Lane, OnlineStatBook)](https://onlinestatbook.com/lms/tests_of_means/pairwise.html)
11. [HENRY SCHEFFÉ (1953). A METHOD FOR JUDGING ALL CONTRASTS IN THE ANALYSIS OF VARIANCE *. Biometrika.](https://doi.org/10.1093/biomet/40.1-2.87)
12. [Charles W. Dunnett (1955). A Multiple Comparison Procedure for Comparing Several Treatments with a Control. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1955.10501294)
13. [Clyde Young Kramer (1956). Extension of Multiple Range Tests to Group Means with Unequal Numbers of Replications. Biometrics.](https://doi.org/10.2307/3001469)
14. [Anthony J. Hayter (1984). A Proof of the Conjecture that the Tukey-Kramer Multiple Comparisons Procedure is Conservative. The Annals of Statistics.](https://doi.org/10.1214/aos/1176346392)
15. [Sture Holm (1979). A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics.](https://doi.org/10.2307/4615733)
16. [Yoav Benjamini, Yosef Hochberg (1995). Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1995.tb02031.x)
17. [Important Facts and Observations about Pairwise Comparisons (Koczkodaj et al., 2015)](https://pure.manchester.ac.uk/ws/files/50395219/Koczkodaj_LM_et_al_2015.pdf)
18. [Ralph Allan Bradley, Milton E. Terry (1952). Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons. Biometrika.](https://doi.org/10.2307/2334029)
19. [P. V. Rao, L. L. Kupper (1967). Ties in Paired-Comparison Experiments: A Generalization of the Bradley-Terry Model. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1967.10482901)
20. [2.4 - Other Pairwise Mean Comparison Methods (STAT 502, Penn State)](https://online.stat.psu.edu/stat502/book/export/html/841)
21. [On the use of post-hoc tests in environmental and biological sciences: A critical review (2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)
22. [An Updated Recommendation for Multiple Comparisons (2019, AMPPS)](https://journals.sagepub.com/doi/10.1177/2515245918808784)
23. [Juliet Popper Shaffer (1986). Modified Sequentially Rejective Multiple Test Procedures. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1986.10478341)
24. [Pairwise Comparison Modeling (Betancourt)](https://betanalpha.github.io/assets/chapters_pdf/pairwise_comparison_modeling.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Hypothesis testing › False discovery rate and error-rate control

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pairwise-comparison

English original: https://www.edgepedia.org/pairwise-comparison
