# 功效分析

功效分析是对假设检验中样本量、显著性水平α、统计功效和效应量这四个量如何相互决定的统计计算，以便设计一项研究来检测给定大小的效应，或者评估一个固定设计能够检测到什么。知道四个量中的任意三个，就可以求解第四个。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC6701714/)</sup>在实践中，分析沿两个方向进行：样本量确定从值得检测的最小效应出发，求解所需的n；而功效确定或最小可检测效应（MDE）计算则从固定样本量出发，追问它能以多大功效检测到什么效应。<sup>[2](https://chabefer.github.io/STCI/Power.html)</sup><sup> • </sup><sup>[3](https://bookdown.org/danielnettle2/data_analysis/using-power-analysis.html)</sup>效应量输入可以是最小重要差异，<sup>[4](https://www.sciencedirect.com/science/article/pii/S0002916522011777)</sup>一个有根据的猜测，或一组可能值的范围。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>由于每个输入都是关于尚未收集的数据的假设，样本量计算本质上是假设性的，而单个噪声较大的预试验估计是糟糕的计算基础。<sup>[6](https://statmodeling.stat.columbia.edu/wp-content/uploads/2021/01/raos_chapter16.pdf)</sup>

| 关键事实 | 值 |
|---|---|
| 功效的定义 | \( 1 - \beta \)，即拒绝错误原假设（避免第二类错误）的长期概率<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC6701714/)</sup> |
| 决定因素 | α水平、样本量N或每组n，以及通过非中心参数体现的效应量<sup>[4](https://www.sciencedirect.com/science/article/pii/S0002916522011777)</sup> |
| 每组所需n（双侧z或t检验，α = .05，80%功效） | d = 0.2时约393，d = 0.5时63，d = 0.8时25<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7286546/)</sup> |
| 常规效应量（t检验） | d = 0.20小，0.50中，0.80大；功效惯例0.80<sup>[8](https://web.mit.edu/hackl/www/lab/turkshop/readings/cohen1992.pdf)</sup> |
| G*Power中的分析类型 | 先验、折衷、准则、事后和灵敏度分析<sup>[9](https://link.springer.com/content/pdf/10.3758/BRM.41.4.1149.pdf)</sup> |
| 观测（事后）功效 | p值的确定性1:1函数；不增加任何信息<sup>[10](https://bendixcarstensen.com/SDC/CIMT/Hoenig.2001.pdf)</sup> |
| 已发表分析的可复现性 | 经审计的已发表G*Power计算中，仅14%报告了全部六项必要元素<sup>[11](https://doi.org/10.1101/2024.07.15.24310458)</sup> |

## 工作原理

统计功效是检验拒绝原假设的概率；第一类错误（拒绝真原假设）的概率是α，通常低于0.05，第二类错误（未能拒绝假原假设）的概率是β，因此功效 \( = 1 - \beta \)。<sup>[12](https://api.pageplace.de/preview/DT0400.9781483276489_A23883292/preview-9781483276489_A23883292.pdf)</sup><sup> • </sup><sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>科恩围绕三个参数组织计算：显著性准则、样本结果的可靠性，以及效应量，即现象存在的程度。<sup>[12](https://api.pageplace.de/preview/DT0400.9781483276489_A23883292/preview-9781483276489_A23883292.pdf)</sup>

对于样本量为N的渐近正态估计量，单侧功效为 \( \kappa = \Phi(\beta_{A}/\sqrt{\mathrm{var}(\hat{E})} - \Phi^{-1}(1-\alpha)) \)，其中 \( \beta_{A} \) 是最小可检测效应；双侧MDE近似为 \( \beta_{A} = (\Phi^{-1}(\kappa) + \Phi^{-1}(1-\alpha/2))\sqrt{\mathrm{var}(\hat{E})} \)，最小样本量则反解此关系。<sup>[2](https://chabefer.github.io/STCI/Power.html)</sup>精确功效计算使用非中心t、F或卡方分布，其非中心参数与检验统计量形式相同，只是用总体参数替代了估计量。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>在单因素方差分析中，功效是非中心参数λ的单调递增函数；以标准化效应d进行的保守设定给出的最小 \( \lambda \) 为 \( n \cdot d^{2}/2 \)。<sup>[13](https://webpages.uidaho.edu/~chrisw/stat507/sccpow1.pdf)</sup>由于功效和MDE依赖于样本量的平方根，精度翻倍大约需要四倍的观测数，而随机设计的MDE在等分配概率下最小化。<sup>[2](https://chabefer.github.io/STCI/Power.html)</sup>

## 如何操作

实践者固定检验族、α、目标功效和效应量，然后求解缺失的量，通常通过迭代数值方法，因为闭式解很少存在。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>在G*Power中，输入效应量d = 0.5、α = 0.05、功效0.8，对于等分配的两独立组t检验，返回每组64（共128）；对于四组的单因素方差分析，f = 0.25、α = 0.05、功效0.8返回总计180。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC8441096/)</sup>在R的pwr包中，提供效应量、样本量和功效中的任意两个，返回第三个；例如pwr.t.test(n = 50, d = 0.2)对双侧检验返回功效 = 0.168。<sup>[3](https://bookdown.org/danielnettle2/data_analysis/using-power-analysis.html)</sup>对于α = .05、80%功效的双侧z检验，检测小（d = 0.2）、中（0.5）、大（0.8）均值差异每组约需393、63或25个观测；双侧t检验所需样本量几乎相同。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7286546/)</sup>

选择效应量是关键步骤。选项包括最小临床显著效应、对真实效应的有根据猜测，或从预试验数据、文献或理论中得出的一组值。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>对于具体的因变量，推荐的输入是实际或理论上有意义的最小绝对差异，即“最小可觉差”，而非科恩的惯例值。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC6701714/)</sup>在基于模拟的功效计算中，效应量应是一个人会后悔错过的最小相关效应，绝不应采用来自另一项研究的效应量，因为显著性过滤器使已发表的效应量成为高估值。<sup>[15](https://arxiv.org/html/2110.09836v3)</sup>尝试与先前文献一致的一系列效应量值，优于依赖单一估计。<sup>[6](https://statmodeling.stat.columbia.edu/wp-content/uploads/2021/01/raos_chapter16.pdf)</sup>

## 起源

功效框架在行为科学中的复兴和普及归功于雅各布·科恩（Jacob Cohen），他将该方法的被忽视归咎于文献稀少且数学艰深、难以获取。<sup>[8](https://web.mit.edu/hackl/www/lab/turkshop/readings/cohen1992.pdf)</sup>他1962年在《异常与社会心理学杂志》上的调查计算了1960年卷《异常与社会心理学杂志》中70项研究的功效，发现在.05水平、双侧检验下，小效应的平均功效为.18，中效应为.48，大效应为.83，并将效应量表述为一种无度量单位的量，具有小、中、大三个常规水平，建议研究计划应常规接受功效分析。<sup>[16](https://doi.org/10.1037/h0045186)</sup>为使该方法易于使用，撰写了《行为科学统计功效分析》手册；其1977年和1988年版启发了数十项功效和效应量调查，效应量惯例自1977年版以来一直固定不变。<sup>[8](https://web.mit.edu/hackl/www/lab/turkshop/readings/cohen1992.pdf)</sup><sup> • </sup><sup>[17](https://doi.org/10.2307/2529115)</sup>他1992年在《心理学公报》上的入门文章列出了八种标准检验在.80功效下的样本量。<sup>[8](https://web.mit.edu/hackl/www/lab/turkshop/readings/cohen1992.pdf)</sup>这些标准化基准是为一项跨越多种内容领域的调查而设计的，据称科恩后悔创造了它们。<sup>[18](https://psychologicabelgica.com/articles/10.5334/pb.1318)</sup>

## 变体

G*Power实现了五种类型的功效分析。<sup>[9](https://link.springer.com/content/pdf/10.3758/BRM.41.4.1149.pdf)</sup><b>先验</b>分析计算给定α、功效和效应量所需的样本量。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC6701714/)</sup><b>灵敏度</b>分析固定样本量，追问能检测到什么效应量。<sup>[19](https://psyteachr.github.io/quant-fun-v3/10-power.html)</sup><b>折衷</b>分析在给定所需 \( \beta/\alpha \) 比值下联合求解α和β。<sup>[9](https://link.springer.com/content/pdf/10.3758/BRM.41.4.1149.pdf)</sup><b>事后</b>功效分析计算观测数据的功效；它必须与“观测功效”区分开来，后者是检测研究中观测到的效应量的功效，几乎毫无意义。<sup>[20](https://moshagen.github.io/semPower/)</sup>

<b>基于模拟的</b>功效分析用重复数据生成替代公式：从包含所关注效应的模型中模拟响应，对每个重复运行检验，取显著结果的比例作为功效。<sup>[15](https://arxiv.org/html/2110.09836v3)</sup>它始终是一个有效选项，并且在许多重复下，当不存在精确公式时，往往比近似方法更准确。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)</sup>拉肯斯（Lakens）和考德威尔（Caldwell）（2021）的Superpower包计算最多三因素、999水平的析因方差分析设计的功效，<sup>[21](https://doi.org/10.1177/2515245920951503)</sup>格林（Green）和麦克劳德（MacLeod）（2015）的simr包通过对模拟响应重新拟合模型，对广义线性混合模型做同样的事，并用powerCurve探索样本量权衡。<sup>[22](https://doi.org/10.1111/2041-210x.12504)</sup>semPower将先验、事后和折衷分析扩展到结构方程模型，使用 \( F_{0} \)、RMSEA、Mc、GFI和AGFI等效应量度量。<sup>[20](https://moshagen.github.io/semPower/)</sup>近期工具针对闭式功效分析处理不佳的设计：PUMP R包（2024）估计多水平随机试验在多结局下的功效、最小可检测效应量和样本量，考虑Bonferroni或Benjamini-Hochberg等多重检验程序，<sup>[23](https://doi.org/10.18637/jss.v108.i06)</sup>powerNLSEM（2024）为非线性结构方程模型提供模型隐含的基于模拟的功效估计，并自适应搜索最优N，<sup>[24](https://doi.org/10.3758/s13428-024-02476-3)</sup>pwranova（2026）对灵活的组间、组内和混合因素方差分析设计及计划对比进行解析功效分析，使用与G*Power一致的非中心F计算。<sup>[25](https://doi.org/10.21105/joss.10123)</sup>PowerBench通过三种方式验证每个样本量——解析公式、独立蒙特卡洛模拟和外部R工具——并公布检查结果。<sup>[26](https://pypi.org/project/powerbench/)</sup>

## 应用

资助机构不愿批准被判定为统计显著结果概率低于80%的研究，尽管这一阈值是惯例而非数学要求。<sup>[6](https://statmodeling.stat.columbia.edu/wp-content/uploads/2021/01/raos_chapter16.pdf)</sup>报告应包括检验类型、软件、所有输入（α、功效、效应量类型和值、样本量、单侧或双侧）以及输入的理由；巴克（Bakker）及其同事发现，只有20%的功效分析包含足够信息以完全复现。<sup>[19](https://psyteachr.github.io/quant-fun-v3/10-power.html)</sup>对已发表G*Power计算的审计发现，只有14%报告了全部六项元素（α、功效、效应量类型、效应量值、样本量和统计检验），33%未给出所用效应量的理由。G*Power本身被大量使用：据估计2017至2022年间PubMed或PubMed Central索引文章中，有0.65%——超过48,000篇——报告使用了它。经审计的已发表计算中样本量中位数为55，在80%功效下，两组比较中仅能检测d = 0.77（95%功效下d = 0.99）。

## 局限与替代方案

<b>观测功效</b>是记录最充分的失败模式。对于任何检验，观测功效是p值的1:1函数；不显著的p总是对应低于0.5的观测功效，而将较高的观测功效解释为未拒绝原假设的更强证据，就是“功效方法悖论”。<sup>[10](https://bendixcarstensen.com/SDC/CIMT/Hoenig.2001.pdf)</sup>蒙特卡洛模拟证实，事后功效高度可变，可能与真实功效大相径庭，因为它用样本统计量替代了总体参数。<sup>[27](https://gpsych.bmj.com/content/gpsych/32/4/e100069.full.pdf)</sup>功效指未来事件，一旦结果已知便无定义，因此计算属于规划阶段；已完成的研究最好用效应量的95%置信区间来解释。<sup>[28](https://www.jrheum.org/content/49/8/867)</sup>

<b>效应量设定错误</b>加剧了这些问题：估计的科恩d（Cohen's d）的抽样变异性给计算功效带来很大不确定性，而诸如保护功效等经不确定性调整的方法通常需要比经典方法大得多的样本。<sup>[29](https://bpb-us-w2.wpmucdn.com/u.osu.edu/dist/0/91362/files/2022/06/PekPittWegener2022.pdf)</sup><sup> • </sup><sup>[30](https://doi.org/10.1177/1745691614528519)</sup>偏差-不确定性校正样本量（BUCSS）在规划前对预试验估计进行不确定性和发表偏倚调整；在一个示例中，它建议一项计划中的随机对照试验每组300人。<sup>[4](https://www.sciencedirect.com/science/article/pii/S0002916522011777)</sup><b>反保守检验</b>是另一个陷阱：在聚类数很少时，Wald检验可能过于频繁地拒绝，使得用它计算的任何功效数字都不可信，除非校准检查通过。<sup>[31](https://cran.r-project.org/web/packages/mixpower/refman/mixpower.html)</sup><b>工具错误</b>也会发生；2026年对一个功效引擎的审计发现六个解析公式产生错误的样本量，最差的为一个需要约614人的设计推荐了191名参与者，而逻辑回归中3.4倍的跨工具差异源于不同的预测变量参数化。<sup>[26](https://pypi.org/project/powerbench/)</sup>

<b>替代方案</b>重新构建了规划问题。贝叶斯混合样本量推导将真实效应θ视为具有先验密度的随机变量，定义随机功效，并通过 \( \mathrm{PoS}(n) = \mathrm{EP}(n) \cdot \Pr[\theta \geq \theta_{\mathrm{MCID}}] \) 将期望功效（EP）与成功概率联系起来；在一个例子中，80%的期望功效仅对应41%的成功概率，而频率学第一类错误控制不受影响，因为从未调用贝叶斯定理。<sup>[32](https://hbiostat.org/papers/kun21rev.pdf)</sup>“功效谬误”警告说，在假设实验间平均成立的东西未必对观测数据成立；低功效实验可以产生信息极为丰富的数据，反之亦然，因此建议用似然比或贝叶斯因子从观测数据进行推断。<sup>[33](https://ejwagenmakers.com/2015/WagenmakersEtAlAPowerFallacy2015.pdf)</sup>方法学评论还主张，α和目标功效应针对手头研究进行论证，而非由传统设定。<sup>[18](https://psychologicabelgica.com/articles/10.5334/pb.1318)</sup>

## References

1. [Tutorial: Small-N Power Analysis](https://pmc.ncbi.nlm.nih.gov/articles/PMC6701714/)
2. [Chapter 7 Power Analysis | Statistical Tools for Causal Inference](https://chabefer.github.io/STCI/Power.html)
3. [11.5 Using power analysis | From Questions to Knowledge](https://bookdown.org/danielnettle2/data_analysis/using-power-analysis.html)
4. [Best (but oft forgotten) practices: sample size planning for powerful studies](https://www.sciencedirect.com/science/article/pii/S0002916522011777)
5. [Introduction to Power and Sample Size Analysis (SAS/STAT User's Guide)](https://support.sas.com/documentation/onlinedoc/stat/143/intropss.pdf)
6. [Design and sample size decisions (Gelman & Hill / Rao, Regression and Other Stories, Chapter 16)](https://statmodeling.stat.columbia.edu/wp-content/uploads/2021/01/raos_chapter16.pdf)
7. [The Interpretation of Statistical Power after the Data have been Gathered (Dziak et al.)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7286546/)
8. [A Power Primer (Cohen, 1992, Psychological Bulletin)](https://web.mit.edu/hackl/www/lab/turkshop/readings/cohen1992.pdf)
9. [Statistical power analyses using G*Power 3.1: Tests for correlation and regression analyses (Faul, Erdfelder, Buchner & Lang, 2009)](https://link.springer.com/content/pdf/10.3758/BRM.41.4.1149.pdf)
10. [The Abuse of Power: The Pervasive Fallacy of Power Calculations for Data Analysis (Hoenig & Heisey, 2001, The American Statistician)](https://bendixcarstensen.com/SDC/CIMT/Hoenig.2001.pdf)
11. [An evaluation of reproducibility and errors in published sample size calculations performed using G*Power](https://doi.org/10.1101/2024.07.15.24310458)
12. [Statistical Power Analysis for the Behavioral Sciences, 2nd ed. (Cohen, 1988)](https://api.pageplace.de/preview/DT0400.9781483276489_A23883292/preview-9781483276489_A23883292.pdf)
13. [Power and sample size for the ANOVA F test (course notes, University of Idaho STAT 507)](https://webpages.uidaho.edu/~chrisw/stat507/sccpow1.pdf)
14. [Sample size determination and power analysis using the G*Power software](https://pmc.ncbi.nlm.nih.gov/articles/PMC8441096/)
15. [Simulating the Power of Statistical Tests: A Collection of R Examples](https://arxiv.org/html/2110.09836v3)
16. [Jacob Cohen (1962). The statistical power of abnormal-social psychological research: A review.. Journal of Abnormal & Social Psychology.](https://doi.org/10.1037/h0045186)
17. [Sylvia Wassertheil, Jacob Cohen (1970). Statistical Power Analysis for the Behavioral Sciences. Biometrics.](https://doi.org/10.2307/2529115)
18. [A Systematic Review on the Evolution of Power Analysis Practices in Psychological Research (Psychologica Belgica)](https://psychologicabelgica.com/articles/10.5334/pb.1318)
19. [10 Statistical Power and Effect Sizes – Fundamentals of Quantitative Analysis](https://psyteachr.github.io/quant-fun-v3/10-power.html)
20. [Power Analysis for Structural Equation Models: semPower 2 Manual](https://moshagen.github.io/semPower/)
21. [Daniël Lakens, Aaron R. Caldwell (2021). Simulation-Based Power Analysis for Factorial Analysis of Variance Designs. Advances in Methods and Practices in Psychological Science.](https://doi.org/10.1177/2515245920951503)
22. [Peter Green, Catriona J. MacLeod (2015). SIMR : an R package for power analysis of generalized linear mixed models by simulation. Methods in Ecology and Evolution.](https://doi.org/10.1111/2041-210x.12504)
23. [Kristen B. Hunter, Luke Miratrix, Kristin Porter (2024). PUMP: Estimating Power, Minimum Detectable Effect Size, and Sample Size When Adjusting for Multiple Outcomes in Multi-Level Experiments. Journal of Statistical Software.](https://doi.org/10.18637/jss.v108.i06)
24. [Julien P. Irmer, Andreas G. Klein, Karin Schermelleh-Engel (2024). Estimating power in complex nonlinear structural equation modeling including moderation effects: The powerNLSEM R-package. Behavior Research Methods.](https://doi.org/10.3758/s13428-024-02476-3)
25. [Hiroyuki Muto (2026). pwranova: An R package for power analysis of flexible ANOVA designs and related tests. The Journal of Open Source Software.](https://doi.org/10.21105/joss.10123)
26. [powerbench v0.8.2, Assumption-aware statistical power analysis with independent verification (PyPI, 2026)](https://pypi.org/project/powerbench/)
27. [Post hoc power analysis: is it an informative and meaningful analysis?](https://gpsych.bmj.com/content/gpsych/32/4/e100069.full.pdf)
28. [Post Hoc Power Calculations: An Inappropriate Method for Interpreting the Findings of a Research Study (The Journal of Rheumatology)](https://www.jrheum.org/content/49/8/867)
29. [Limits to using power calculations (Pek, Pitt & Wegener)](https://bpb-us-w2.wpmucdn.com/u.osu.edu/dist/0/91362/files/2022/06/PekPittWegener2022.pdf)
30. [Marco Perugini, Marcello Gallucci, Giulio Costantini (2014). Safeguard Power as a Protection Against Imprecise Power Estimates. Perspectives on Psychological Science.](https://doi.org/10.1177/1745691614528519)
31. [mixpower: Simulation-Based Power Analysis for Mixed-Effects Models (CRAN documentation)](https://cran.r-project.org/web/packages/mixpower/refman/mixpower.html)
32. [A Review of Bayesian Perspectives on Sample Size Derivation for Confirmatory Trials](https://hbiostat.org/papers/kun21rev.pdf)
33. [A power fallacy (Wagenmakers et al.)](https://ejwagenmakers.com/2015/WagenmakersEtAlAPowerFallacy2015.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Sep 30, 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/power-analysis

English original: https://www.edgepedia.org/power-analysis
