# 事后分析

在实验设计中，事后分析是指在数据收集并查看之后才选择的处理均值之间的比较，通常用于定位哪些组间差异驱动了显著的总体结果（如方差分析的F检验）。该术语与先验（计划）比较相对，后者是在数据收集之前选定的；而事后比较是在实验者收集数据并查看均值之后才计划的。<sup>[1](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup> 在临床研究中，同样的词还带有第二层贬义：一种在检查数据之后才构思的非计划分析，它可能产生新的假设，但也可能识别出仅存在于所检查数据集中的假阳性发现。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10964884/)</sup>

| 关键事实 | 详情 |
|---|---|
| 它回答什么 | 在显著的总体检验之后，哪些组均值配对（或对比）存在差异<sup>[3](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Introduction_to_Applied_Statistics_for_Psychology_Students_%28Sarty%29/12%3A_ANOVA/12.02%3A_Post_hoc_Comparisons)</sup> |
| Alpha膨胀 | 六次未加保护的0.05水平配对检验会将真实的族系alpha提高到约0.2649<sup>[4](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)</sup> |
| 基本修正 | Bonferroni法：将alpha除以比较次数，例如4次比较在族系0.05水平下每次检验为0.0125<sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup> |
| 报告使用情况 | 在20年的环境与生物学文献中，Tukey HSD出现在30.04%的文章中，Duncan检验为25.41%，Fisher LSD为18.15%；Games-Howell（1.13%）、Holm-Bonferroni（1.25%）和Scheffé（2.25%）使用最少<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> |
| 不等样本量 | Tukey–Kramer修正，由克莱德·扬·克莱默（Clyde Young Kramer）在1956年《Biometrics》论文中描述<sup>[7](https://doi.org/10.2307/3001469)</sup> |
| 不等方差 | SPSS 24中18种程序中仅有四种——Dunnett's C、Dunnett's T3、Games-Howell和Tamhane's T2——在等方差和等样本量假设被违反时能控制第一类错误<sup>[8](https://journals.sagepub.com/doi/full/10.1177/2515245918808784)</sup> |
| 主要替代方案 | 通过Benjamini–Hochberg程序（1995）控制错误发现率<sup>[9](https://doi.org/10.1111/j.2517-6161.1995.tb02031.x)</sup> |

## 工作原理

每次以水平\( \alpha' \)进行的配对检验都会增加至少一次错误拒绝的概率。在完全零假设下，对于c次独立比较，族系错误率（FWER）——即所有比较中至少出现一次第一类错误的概率——为\( 1-(1-\alpha')^{c} \)：三次0.05水平的比较给出\( 1-(1-0.05)^{3} = 0.142625 \)，<sup>[10](https://statacumen.com/book/S4R/post-hoc-tests.html)</sup>六次独立的0.05水平检验给出约0.2649；然而四个均值之间的六次配对LSD检验共享组数据和共同的误差估计，因此这一计算仅是示意性的，其真实族系错误率更低。<sup>[4](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)</sup> 对于四次非计划对比，FWER接近0.20。<sup>[1](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup> 在选择比较之前先查看均值，会使完全零假设下的第一类错误几乎必然发生。<sup>[1](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup>

存在两族控制方法：p值调整（Bonferroni、Holm、Hochberg、Benjamini-Hochberg）和极差检验（Tukey HSD、Dunnett、Newman-Keuls、Duncan、Scheffé、Dunn）。<sup>[11](https://tjmurphy.github.io/jabstb/posthoc.html)</sup> Bonferroni不等式将FWER界定为\( \mathrm{FW} \le c\alpha' \)，因此设定\( \alpha' = \alpha/c \)可将其控制在\( \alpha \)水平；<sup>[1](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup> 1967年的Šidák校正略微不那么保守，通常更具效力。<sup>[12](https://doi.org/10.1080/01621459.1967.10482935)</sup> 极差检验则使用学生化极差统计量\( q = (\bar{X}_{l} - \bar{X}_{s})/\sqrt{MS_{\mathrm{within}}/n} \)，该统计量假设各组样本量相等；对于不等样本量，Tukey–Kramer统计量使用配对特定的分母\( \sqrt{MS_{\mathrm{error}}(1/n_i+1/n_j)/2} \)。其临界值随组数增加而增大，因为极端均值之间的差距会增大。<sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup> 另一个不同的目标——错误发现率——控制的是错误拒绝的期望比例而非任何错误拒绝的概率；1995年的Benjamini–Hochberg程序是标准工具，广泛用于大规模组学数据集中的命中筛选。<sup>[9](https://doi.org/10.1111/j.2517-6161.1995.tb02031.x)</sup><sup>[11](https://tjmurphy.github.io/jabstb/posthoc.html)</sup>

## 如何操作

传统工作流程先运行总体方差分析；如果\( H_{0} \)未被拒绝，则停止检验，只有拒绝\( H_{0} \)后才进行配对比较。<sup>[3](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Introduction_to_Applied_Statistics_for_Psychology_Students_%28Sarty%29/12%3A_ANOVA/12.02%3A_Post_hoc_Comparisons)</sup> 在选择程序之前，实践者需检查正态性、方差齐性和组样本量，因为一篇批判性综述发现这些假设在应用文献中常常未被验证。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> 选择至关重要：在SPSS 24中可用的18种配对程序的模拟研究中，只有四种专为假设违反设计的程序（Dunnett's C、Dunnett's T3、Games-Howell、Tamhane's T2）在等样本量和等方差被违反时能充分控制第一类错误，甚至保守的Bonferroni和Scheffé检验在最小组的方差最大时也会出现错误率膨胀。<sup>[8](https://journals.sagepub.com/doi/full/10.1177/2515245918808784)</sup>

结果应报告为调整后的p值及同时置信区间。调整后的p值可能超过1，但以1为上限；R的emmeans包直接报告可与alpha比较的FWER校正p值。<sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup> 报告应说明FWER是如何控制的，例如在方差分析之后注明所用的事后检验名称，图例中注明“经多重比较调整”。<sup>[11](https://tjmurphy.github.io/jabstb/posthoc.html)</sup>

## 起源

常用程序中最古老的是Fisher LSD，本质上是一系列使用跨所有组的合并标准差的多重t检验；文献将其归于1935年——当时被称为第一种配对比较技术<sup>[13](https://statoberrypapaya.github.io/TextbookofAgstat/multipleComparison.html)</sup>——或1940年<sup>[14](https://schmidtpaul.github.io/dsfair_quarto/ch/summaryarticles/multiplicityadj.html)</sup>。Tukey HSD的年份同样存在争议：一篇教程将其归于约翰·图基（John Tukey）1949年的工作，<sup>[14](https://schmidtpaul.github.io/dsfair_quarto/ch/summaryarticles/multiplicityadj.html)</sup>而一篇综述将该程序和族系错误率术语追溯到图基1953年未发表的普林斯顿手稿《多重比较问题》。<sup>[15](https://journals.sagepub.com/doi/10.3102/00346543066003269)</sup> 不等样本量的修正出现在1956年《Biometrics》论文中。<sup>[7](https://doi.org/10.2307/3001469)</sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> Scheffé用于判断所有对比的方法出现在他1953年《Biometrika》论文中，<sup>[16](https://doi.org/10.1093/biomet/40.1-2.87)</sup>处理组与对照组比较的程序出现在查尔斯·W·邓尼特（Charles W. Dunnett）1955年《美国统计协会杂志》论文中。<sup>[17](https://doi.org/10.1080/01621459.1955.10501294)</sup> 用于选定对比的同时置信区间的Bonferroni t检验出现在奥利夫·琼·邓恩（Olive Jean Dunn）1961年论文中，<sup>[18](https://doi.org/10.1080/01621459.1961.10482090)</sup>斯图雷·霍尔姆（Sture Holm）1979年论文提出了序贯拒绝Bonferroni检验，其中假设被逐一拒绝直到无法进一步拒绝为止。<sup>[19](https://doi.org/10.2307/4615733)</sup>

## 变体

**Tukey HSD**比较所有均值配对，当需要比较所有配对时是首选程序。<sup>[4](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)</sup> 其临界差为\( \mathrm{HSD} = q \cdot \sqrt{MSE/n^{*}} \)，其中q为学生化极差临界值；更强的校正使区间相比LSD更宽，而对于配对比较，Tukey区间通常比Scheffé区间更窄，后者是最保守的。<sup>[4](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)</sup> 有k组时存在\( k(k-1)/2 \)个配对比较，标准误使用两组样本量的调和平均数。<sup>[20](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Mikes_Biostatistics_Book_%28Dohm%29/12%3A_One-way_Analysis_of_Variance/12.6%3A_ANOVA_post-hoc_tests)</sup> Tukey–Kramer方法针对不平衡设计修正了q统计量；<sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup>安东尼·J·海特（Anthony J. Hayter）1984年的论文证明了该程序的保守性。<sup>[21](https://doi.org/10.1214/aos/1176346392)</sup>

**Scheffé**覆盖所有对比（均值的线性组合），而不仅是配对，临界值为方差分析临界F的\( (k-1) \)倍；它不要求等组样本量，但是常用程序中最保守、效力最低的。<sup>[16](https://doi.org/10.1093/biomet/40.1-2.87)</sup><sup>[3](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Introduction_to_Applied_Statistics_for_Psychology_Students_%28Sarty%29/12%3A_ANOVA/12.02%3A_Post_hoc_Comparisons)</sup><sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup> **Dunnett**仅将多个处理组与一个对照组比较，给出更少的比较和更窄的区间，标准误通过将\( MS_{\mathrm{error}} \)乘以2来改变。<sup>[17](https://doi.org/10.1080/01621459.1955.10501294)</sup><sup>[20](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Mikes_Biostatistics_Book_%28Dohm%29/12%3A_One-way_Analysis_of_Variance/12.6%3A_ANOVA_post-hoc_tests)</sup> 三者呈嵌套关系：Dunnett（一个参照均值对其余）嵌套于Tukey（所有配对）之内，Tukey嵌套于Scheffé（所有对比）之内，应使用与问题一致的最有效力检验。<sup>[5](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)</sup>

**效力排序。** 根据卡默（Carmer）和斯旺森（Swanson）1973年的比较，Fisher LSD是常用程序中效力最高的，但仅在恰好有三个处理均值时才能保持实验整体错误率，且仅应在小规模三组实验中方差分析结果为阳性后使用。<sup>[1](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)</sup><sup>[13](https://statoberrypapaya.github.io/TextbookofAgstat/multipleComparison.html)</sup><sup>[11](https://tjmurphy.github.io/jabstb/posthoc.html)</sup> Holm的逐步程序在强意义上将FWER保持在指定水平的同时，一致地比经典Bonferroni更具效力。<sup>[19](https://doi.org/10.2307/4615733)</sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup>

**不等方差。** Games-Howell程序来自保罗·A·盖姆斯（Paul A. Games）和约翰·F·豪厄尔（John F. Howell）1976年的论文，纳入Welch自由度解和加权合并方差而非MSE，在假设被违反时比多种检验更具效力。<sup>[22](https://doi.org/10.3102/10769986001002113)</sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> 四种稳健程序（Games-Howell、阿吉特·C·塔姆哈内（Ajit C. Tamhane）1979年论文中的Tamhane's T2，以及邓尼特1980年论文中的Dunnett's T3和C）仅对正在比较的两组使用样本量加权的合并方差并修正自由度；四种程序效力相似，但Games-Howell略高。<sup>[23](https://doi.org/10.1080/01621459.1979.10482541)</sup><sup>[24](https://doi.org/10.1080/01621459.1980.10477552)</sup><sup>[8](https://journals.sagepub.com/doi/full/10.1177/2515245918808784)</sup> 非参数事后选项包括Dunn、Steel、Nemenyi和Steel-Dwass检验。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup> Duncan多重极差检验和Newman-Keuls检验因对alpha偏移保护不足而受到批评。<sup>[4](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)</sup>

## 应用

各领域的使用情况不均衡。除了环境与生物学调查（Tukey 30.04%、Duncan 25.41%、LSD 18.15%、Scheffé 2.25%）之外，<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)</sup>一篇对生态学期刊的综述发现60年间超过40,000份多重比较检验使用的报告，<sup>[25](https://pubmed.ncbi.nlm.nih.gov/33335808/)</sup>而Duncan检验在植物科学中因处理数量多而特别流行。<sup>[13](https://statoberrypapaya.github.io/TextbookofAgstat/multipleComparison.html)</sup>

在R中，TukeyHSD(aov(...))报告95%族系置信水平和调整p值，<sup>[10](https://statacumen.com/book/S4R/post-hoc-tests.html)</sup>multcomp包的glht配合mcp(Label = "Tukey")执行Tukey对比并给出单步调整p值，其默认mcp检验为Dunnett。<sup>[20](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Mikes_Biostatistics_Book_%28Dohm%29/12%3A_One-way_Analysis_of_Variance/12.6%3A_ANOVA_post-hoc_tests)</sup> SPSS提供18种配对程序。<sup>[8](https://journals.sagepub.com/doi/full/10.1177/2515245918808784)</sup> 两个陷阱：pairwise.t.test产生调整p值但不产生调整置信区间，对此使用TukeyHSD等程序更好；重复测量分析比较相关测量之间的均值并考虑被试内依赖性，因此不能在没有适当依赖性调整的情况下应用普通的独立组极差检验。<sup>[11](https://tjmurphy.github.io/jabstb/posthoc.html)</sup>

## 局限与替代方案

校正以效力为代价，而最廉价的替代方案是计划更少的比较：计划（先验）对比比事后检验更具效力，因为它们仅针对计划的检验数量进行校正。<sup>[20](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Mikes_Biostatistics_Book_%28Dohm%29/12%3A_One-way_Analysis_of_Variance/12.6%3A_ANOVA_post-hoc_tests)</sup> 在筛选而非确认大量假设的场景中，FWER控制可以放宽为错误发现率控制。<sup>[9](https://doi.org/10.1111/j.2517-6161.1995.tb02031.x)</sup>

在临床试验中，“事后”指的是非计划分析，带有HARKing、挑选、p值操纵、钓鱼式探索和数据挖掘的风险，而预先指定的分析可以减少这些风险。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10964884/)</sup> 一种相关的受批评做法是事后效力计算：效力分析应在一项研究之前用于选择样本量，而绝不应用于解释已完成的研究，因为观测效力与所获得的p值直接相关，不提供额外信息；推荐的做法是用效应量的95%置信区间来解释已完成的研究。<sup>[26](https://www.jrheum.org/content/49/8/867)</sup> 张毅然及其同事2019年的论文《事后效力分析：它是有信息量且有意义的分析吗？》探讨了同一问题。<sup>[27](https://doi.org/10.1136/gpsych-2019-100069)</sup>

近期工作扩展了经典工具箱。Holm和Hochberg程序的成组序贯版本出现在阿吉特·C·塔姆哈内（Ajit C. Tamhane）、席东（Dong Xi）和苟江涛（Jiangtao Gou）2021年的论文中，其中逐步上升的成组序贯Hochberg程序更紧密地控制FWER且更具效力。<sup>[28](https://doi.org/10.1002/sim.9128)</sup>

## References

1. [Chapter 12: Multiple Comparisons Among Treatment Means (Howell, Statistical Methods for Psychology supplement)](https://www.uvm.edu/~statdhtx/methods8/Supplements/OldChapter12.pdf)
2. [Types of Analysis: Planned (prespecified) vs Post Hoc, Primary vs Secondary, Hypothesis-driven vs Exploratory, Subgroup and Sensitivity, and Others (Andrade, Indian Journal of Psychological Medicine, 2023)](https://pmc.ncbi.nlm.nih.gov/articles/PMC10964884/)
3. [12.02: Post hoc Comparisons (stats.libretexts.org)](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Introduction_to_Applied_Statistics_for_Psychology_Students_%28Sarty%29/12%3A_ANOVA/12.02%3A_Post_hoc_Comparisons)
4. [Post Hoc Tests in ANOVA (Stevens, 1999 handout)](https://pages.uoregon.edu/stevensj/papers/posthoc.pdf)
5. [Chapter 17: A Priori and Post-Hoc Comparisons (University of Washington course text)](https://courses.washington.edu/psy524a/_book/apriori-and-post-hoc-comparisons.html)
6. [On the use of post-hoc tests in environmental and biological sciences: A critical review](https://pmc.ncbi.nlm.nih.gov/articles/PMC11637079/)
7. [Clyde Young Kramer (1956). Extension of Multiple Range Tests to Group Means with Unequal Numbers of Replications. Biometrics.](https://doi.org/10.2307/3001469)
8. [An Updated Recommendation for Multiple Comparisons (Advances in Methods and Practices in Psychological Science)](https://journals.sagepub.com/doi/full/10.1177/2515245918808784)
9. [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)
10. [11.5 Post Hoc Tests | Statistical Acumen: Statistics for Research (S4R)](https://statacumen.com/book/S4R/post-hoc-tests.html)
11. [Chapter 35 ANOVA Posthoc Comparisons | JABSTB (Murphy)](https://tjmurphy.github.io/jabstb/posthoc.html)
12. [Zbyněk Šidák (1967). Rectangular Confidence Regions for the Means of Multivariate Normal Distributions. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1967.10482935)
13. [Multiple comparison tests – Textbook of Agricultural Statistics](https://statoberrypapaya.github.io/TextbookofAgstat/multipleComparison.html)
14. [Multiplicity Adjustments: Understanding the Nuance of Post hoc Tests (Paul Schmidt, BioMath GmbH, December 13, 2023)](https://schmidtpaul.github.io/dsfair_quarto/ch/summaryarticles/multiplicityadj.html)
15. [The Quest for α: Developments in Multiple Comparison Procedures in the Quarter Century Since Games (1971) (Review of Educational Research)](https://journals.sagepub.com/doi/10.3102/00346543066003269)
16. [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)
17. [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)
18. [Olive Jean Dunn (1961). Multiple Comparisons among Means. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1961.10482090)
19. [Sture Holm (1979). A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics.](https://doi.org/10.2307/4615733)
20. [12.6: ANOVA post hoc tests (stats.libretexts.org)](https://stats.libretexts.org/Bookshelves/Applied_Statistics/Mikes_Biostatistics_Book_%28Dohm%29/12%3A_One-way_Analysis_of_Variance/12.6%3A_ANOVA_post-hoc_tests)
21. [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)
22. [Paul A. Games, John F. Howell (1976). Pairwise Multiple Comparison Procedures with Unequal N’s and/or Variances: A Monte Carlo Study. Journal of Educational Statistics.](https://doi.org/10.3102/10769986001002113)
23. [Ajit C. Tamhane (1979). A Comparison of Procedures for Multiple Comparisons of Means with Unequal Variances. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1979.10482541)
24. [Charles W. Dunnett (1980). Pairwise Multiple Comparisons in the Unequal Variance Case. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1980.10477552)
25. [Comparing multiple comparisons: practical guidance for choosing the best multiple comparisons test (PeerJ, 2020)](https://pubmed.ncbi.nlm.nih.gov/33335808/)
26. [Post Hoc Power Calculations: An Inappropriate Method for Interpreting the Findings of a Research Study (Journal of Rheumatology)](https://www.jrheum.org/content/49/8/867)
27. [Yiran Zhang and colleagues (2019). Post hoc power analysis: is it an informative and meaningful analysis?. General Psychiatry.](https://doi.org/10.1136/gpsych-2019-100069)
28. [Ajit C. Tamhane, Dong Xi, Jiangtao Gou (2021). Group sequential Holm and Hochberg procedures. Statistics in Medicine.](https://doi.org/10.1002/sim.9128)

---
*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/post-hoc-analysis

English original: https://www.edgepedia.org/post-hoc-analysis
