# 统计假设检验

统计假设检验是一种方法，用于判断观测数据是否与原假设相容：计算检验统计量，将其与“若原假设为真该统计量所服从的分布”进行比较，并报告p值和/或接受—拒绝的决定。它本身不产生效应估计，p值也不是假设为真的概率。<sup>[1](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)</sup> 检验产生两样东西：数据与原假设模型之间相容性的度量，以及奈曼–皮尔逊传统下的一种行为规则，用以控制分析者在长期运行中犯错的频率。<sup>[2](https://doi.org/10.1098/rsta.1933.0009)</sup>

| 关键事实 | 细节 |
|---|---|
| 检验产生什么 | 一个p值，即拒绝原假设的最小显著性水平，以及可选的拒绝/接受决定；绝不是假设为真的概率。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/09%3A_Hypothesis_Testing/9.01%3A_Introduction_to_Hypothesis_Testing)</sup> |
| p值定义 | 在原假设模型下，若所有模型假设（包括检验假设）都正确，按照检验指定的极端性度量，得到至少与观测结果一样极端的结果的概率。<sup>[4](https://link.springer.com/content/pdf/10.1007/s10654-016-0149-3.pdf)</sup> |
| 显著性水平 | 在原假设指定的各分布上，第一类错误的最大概率；习惯上取0.1、0.05或0.01。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/09%3A_Hypothesis_Testing/9.01%3A_Introduction_to_Hypothesis_Testing)</sup> |
| 功效 | \( 1-\beta \)，拒绝为假的原假设的概率；80%的规划下限是常见惯例。<sup>[5](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2015.00223/full)</sup> |
| 最优检验 | 对于简单原假设对简单备择假设，似然比检验在任意给定水平上都是最大功效的（奈曼–皮尔逊引理）。<sup>[6](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)</sup> |
| 检验–区间等价 | 在水平 \( \alpha \) 下拒绝原假设，等价于 \( \theta_0 \) 落在 \( 1-\alpha \) 置信集之外。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/09%3A_Hypothesis_Testing/9.01%3A_Introduction_to_Hypothesis_Testing)</sup> |

## 运作机制

其机制依托三个对象。第一，两个假设：原假设 \( H_0 \)，即计算统计量分布时所依据的模型；备择假设 \( H_1 \)，即与原假设相比较的那类模型。只指定一个分布的假设为简单假设；指定多个分布的为复合假设。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/09%3A_Hypothesis_Testing/9.01%3A_Introduction_to_Hypothesis_Testing)</sup> 第二，检验统计量 \( T \)，即对数据的一种概括，其在 \( H_0 \) 下的分布可通过解析或模拟得知。对于简单原假设，p值为 \( p = P(T \geq t(x) \mid H_0) \)；p值小意味着与原假设不一致。<sup>[6](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)</sup>

第三，误差结构。第一类错误是拒绝了一个为真的原假设；检验的大小为 \( \sup_{P \in H_0} P(\text{拒绝 } H_0) \)，对于简单原假设，它简化为拒绝概率 \( P(\text{拒绝 } H_0 \mid H_0) \)，而水平为 \( \alpha \) 的检验只需大小至多为 \( \alpha \)。第二类错误是以概率 \( \beta \) 接受一个为假的原假设；功效为 \( 1-\beta \)。<sup>[6](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)</sup> 奈曼–皮尔逊引理指出，在水平 \( \alpha \) 下检验简单原假设对简单备择假设时，最大功效检验在似然比 \( L(\theta_1;x)/L(\theta_0;x) \geq k_{\alpha} \) 时拒绝，其中 \( k_{\alpha} \) 的选取使 \( P(X \in R \mid H_0) = \alpha \)。<sup>[6](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)</sup> 当复合备择假设不存在一致最大功效检验时，广义似然比检验提供了一种易处理且具有良好大样本性质的解决方案；在原假设下，其统计量 \( -2\log\Lambda \) 近似服从 \( \chi^2_p \)，其中 \( p \) 为独立约束的个数，前提是威尔克斯定理的正则条件成立。<sup>[7](https://www.stat.uchicago.edu/~stigler/Stat244/ch6r2-opt-withfigs.pdf)</sup>

## 操作步骤

标准步骤是：陈述原假设与备择假设；选择显著性水平和检验的方向性；通过解析或模拟计算检验统计量及其原假设分布；计算p值；将其与阈值比较以作出决定。<sup>[8](https://data102.org/ds-102-book/content/chapters/01/hypothesis-testing/)</sup> 良好实践是将p值与效应量、不确定性度量和区间一并报告，并在查看数据之前预先定义分析。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC5187603/)</sup>

## 起源

现代框架区分“显著性检验”与“假设检验”。<sup>[10](https://link.springer.com/content/pdf/10.1007/978-1-4614-1412-4_19.pdf)</sup> 奈曼和皮尔逊在1928年《生物计量学》论文中提出了初步的检验准则，其中他们将费希尔的似然（并将该术语归功于费希尔）用作两个假设的比较度量。<sup>[11](https://doi.org/10.1093/biomet/20a.3-4.263)</sup> 他们1933年发表于《皇家学会哲学汇刊A辑》的论文将检验框定为一种行为规则：计算事实的一个特征量 \( x \)，若 \( x > x_0 \) 则拒绝 \( H \)，否则接受，从而在长期运行中，当 \( H \) 为真时，每一百次中被拒绝不超过一次。<sup>[2](https://doi.org/10.1098/rsta.1933.0009)</sup> 1933年的一篇姊妹论文讨论了检验与先验概率的关系。<sup>[12](https://doi.org/10.1017/s030500410001152x)</sup> 0.05阈值的传统可追溯至统计显著性检验的实践。<sup>[13](https://link.springer.com/article/10.1007/s12630-023-02557-5)</sup> 费希尔后来改变了对固定水平的立场，写道：没有哪位科学工作者会有一个固定的显著性水平，使他年复一年、在所有情况下都据此拒绝假设（费希尔，1956年，第42页）。<sup>[14](https://faculty.fiu.edu/~blissl/PearsonFisher.pdf)</sup> 如今最广泛教授的程序——原假设显著性检验——是两种理论的界定不清的混合体，而非其中任何一种。<sup>[5](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2015.00223/full)</sup>

## 变体

检验在若干维度上有所不同。单侧检验只在预先指定的方向上拒绝；双侧p值可通过将两个单侧p值中较小者加倍计算。<sup>[15](https://methods.egap.org/guides/analysis-procedures/hypothesis-testing_en.html)</sup> 精确检验精确计算原假设分布，而渐近检验依赖大样本近似，如似然比统计量的 \( \chi^2 \) 极限。<sup>[16](https://eml.berkeley.edu/~mcfadden/e240a_sp00/ch7.pdf)</sup>

检验的选择取决于数据情形。学生t检验（单样本、双样本和配对形式）适用于连续、近似正态的数据。<sup>[17](https://www.ncbi.nlm.nih.gov/sites/books/NBK553048/)</sup> 对于非配对样本中的二值数据，费希尔精确检验使用2×2表，而卡方检验是一种精度较低的替代方法，其准确性取决于具体情形，且在期望单元格计数较小时会变差。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC2881615/)</sup><sup> • </sup><sup>[27](https://www.biostathandbook.com/small.html)</sup> 方差分析将非配对t检验推广到两组以上，但不识别哪些组不同，因此需要多重检验方法。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC2881615/)</sup> 对于序数或非正态数据，曼–惠特尼U检验（威尔科克森秩和检验）比较两个非配对样本；威尔科克森符号秩检验处理配对非正态样本；克鲁斯卡尔–沃利斯检验将曼–惠特尼推广到两个以上非配对样本。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC2881615/)</sup>

## 应用

假设检验已嵌入临床试验监管：机构通常要求试验审批时采用 \( \alpha = 0.05 \) 的显著性水平并预先指定假设。<sup>[19](https://www.mdpi.com/2227-7390/14/2/300)</sup> 监管实践并非完全属于频率学派。一篇2026年的综述描述了美国食品药品监督管理局指南采用贝叶斯后验概率来论证是否根本需要临床疗效试验，建议基于后验概率预先指定决策标准、记录先验来源，并在包括参考先验在内的多种先验设定下呈现结果。<sup>[20](https://www.frontiersin.org/journals/medicine/articles/10.3389/fmed.2026.1790396/full)</sup>

## 局限与替代方案

已知的失效模式已有充分记载。p值以产生它的整个建模框架和一套分析决策为条件，因此事后调整可能使其作为单一明确检验失效。<sup>[21](https://www.nature.com/articles/s41599-026-08318-1)</sup> 做十次检验而只报告 \( P < 0.05 \) 的那些，无异于挑选报告、数据挖掘或p值操纵，这是虚假显著性的一个主要原因。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC5187603/)</sup> 0.05阈值是约定俗成且任意的：发生率从46%变为46.4%就可能使P值从0.047变为0.054，这就是应当报告精确p值的原因。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC5187603/)</sup> 实践中功效往往偏低：范兹韦特及其同事估计，科克伦数据库中超过20,000项随机试验的中位实际功效仅为0.13。<sup>[13](https://link.springer.com/article/10.1007/s12630-023-02557-5)</sup> 多重比较会放大误差：邦费罗尼不等式将 \( m \) 次检验的族错误率上界设为 \( m \cdot \alpha \)，因此只有当 \( \min_i p_i \leq \alpha/m \) 时才宣布显著，其中 \( \alpha \) 为预先指定的族水平。<sup>[6](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)</sup>

美国统计协会2016年的声明确立了六项原则，包括p值不衡量假设为真的概率，也不衡量效应量或重要性。<sup>[1](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)</sup> 替代方案包括用置信区间进行估计，置信区间对应于检验得到 \( P \geq 0.05 \) 的效应量范围。<sup>[4](https://link.springer.com/content/pdf/10.1007/s10654-016-0149-3.pdf)</sup> 贝叶斯方法通过贝叶斯因子比较假设，这是杰弗里斯于1935年发展的一种方法，将先验几率转换为后验几率；贝叶斯因子比p值提供更连续的证据度量，但对先验分布的选择敏感，而先验分布可能决定性地影响结果。<sup>[22](https://www.ssph-journal.org/journals/international-journal-of-public-health/articles/10.3389/ijph.2025.1608258/full)</sup> 贝叶斯因子也可以由检验统计量本身构建。<sup>[23](https://doi.org/10.1111/j.1467-9868.2005.00521.x)</sup> 图基与琼斯共同发展的三决策表述，断言参数高于或低于原假设值，或不作断言，取代了接受/拒绝的二分法。<sup>[24](https://doi.org/10.1037/1082-989x.5.4.411)</sup> 麦克沙恩、加尔、格尔曼、罗伯特和塔克特主张，p值及类似度量不应被阈值化，也不应优先于先验证据、机制、设计质量和成本。<sup>[25](https://doi.org/10.1080/00031305.2018.1527253)</sup> 从检验转向以效应量、置信区间和元分析进行估计，这一转变被提倡为“新统计学”。<sup>[26](https://doi.org/10.1177/0956797613504966)</sup>

## References

1. [American Statistical Association Releases Statement on Statistical Significance and P-Values](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)
2. [Jerzy Neyman, Egon Sharpe Pearson (1933). IX. On the problem of the most efficient tests of statistical hypotheses. Philosophical Transactions of the Royal Society of London Series A Containing Papers of a Mathematical or Physical Character.](https://doi.org/10.1098/rsta.1933.0009)
3. [9.01: Introduction to Hypothesis Testing (stats.libretexts.org)](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/09%3A_Hypothesis_Testing/9.01%3A_Introduction_to_Hypothesis_Testing)
4. [Statistical tests, P values, confidence intervals, and power: a guide to misinterpretations](https://link.springer.com/content/pdf/10.1007/s10654-016-0149-3.pdf)
5. [Fisher, Neyman-Pearson or NHST? A tutorial for teaching data testing](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2015.00223/full)
6. [3. Hypothesis Testing (Oxford statistical theory lecture notes, G. Reinert)](https://www.stats.ox.ac.uk/~reinert/stattheory/chapter309.pdf)
7. [Chapter 6. Testing Hypotheses (optimal hypothesis testing, Neyman–Pearson lemma with proof)](https://www.stat.uchicago.edu/~stigler/Stat244/ch6r2-opt-withfigs.pdf)
8. [Hypothesis Testing - Data, Inference, and Decisions (Berkeley Data 102 textbook)](https://data102.org/ds-102-book/content/chapters/01/hypothesis-testing/)
9. [The American Statistical Association statement on P-values explained](https://pmc.ncbi.nlm.nih.gov/articles/PMC5187603/)
10. [The Fisher, Neyman-Pearson Theories of Testing (Lehmann, 1993)](https://link.springer.com/content/pdf/10.1007/978-1-4614-1412-4_19.pdf)
11. [J. NEYMAN, E. S. PEARSON (1928). ON THE USE AND INTERPRETATION OF CERTAIN TEST CRITERIA FOR PURPOSES OF STATISTICAL INFERENCE. Biometrika.](https://doi.org/10.1093/biomet/20a.3-4.263)
12. [J. Neyman, E. S. Pearson (1933). The testing of statistical hypotheses in relation to probabilities a priori. Mathematical Proceedings of the Cambridge Philosophical Society.](https://doi.org/10.1017/s030500410001152x)
13. [Interpreting frequentist hypothesis tests: insights from Bayesian inference (Canadian Journal of Anesthesia, 2023)](https://link.springer.com/article/10.1007/s12630-023-02557-5)
14. [Karl Pearson and R. A. Fisher on Statistical Tests: A 1935 Exchange from Nature](https://faculty.fiu.edu/~blissl/PearsonFisher.pdf)
15. [10 Things to Know About Hypothesis Testing (EGAP Methods Guide)](https://methods.egap.org/guides/analysis-procedures/hypothesis-testing_en.html)
16. [Chapter 7. Hypothesis Testing (McFadden, econometrics lecture notes)](https://eml.berkeley.edu/~mcfadden/e240a_sp00/ch7.pdf)
17. [T Test - StatPearls](https://www.ncbi.nlm.nih.gov/sites/books/NBK553048/)
18. [Choosing Statistical Tests](https://pmc.ncbi.nlm.nih.gov/articles/PMC2881615/)
19. [Statistical Hypothesis Testing: A Comprehensive Review of Theory, Methods, and Applications](https://www.mdpi.com/2227-7390/14/2/300)
20. [The FDA's adoption of Bayesian methodology: transforming clinical trial justification from biosimilars to broader drug development (Frontiers in Medicine, 2026)](https://www.frontiersin.org/journals/medicine/articles/10.3389/fmed.2026.1790396/full)
21. [The tyranny of the p: when significance misleads (Humanities and Social Sciences Communications, 2026)](https://www.nature.com/articles/s41599-026-08318-1)
22. [Decision Rules in Frequentist and Bayesian Hypothesis Testing: P-Value and Bayes Factor (IJPH, 2025)](https://www.ssph-journal.org/journals/international-journal-of-public-health/articles/10.3389/ijph.2025.1608258/full)
23. [Valen E. Johnson (2005). Bayes Factors Based on Test Statistics. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2005.00521.x)
24. [Lyle V. Jones, John W. Tukey (2000). A sensible formulation of the significance test.. Psychological Methods.](https://doi.org/10.1037/1082-989x.5.4.411)
25. [Blakeley B. McShane and colleagues (2019). Abandon Statistical Significance. The American Statistician.](https://doi.org/10.1080/00031305.2018.1527253)
26. [Geoff Cumming (2013). The New Statistics. Psychological Science.](https://doi.org/10.1177/0956797613504966)
27. [Small (biostathandbook.com)](https://www.biostathandbook.com/small.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 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/statistical-hypothesis-testing

English original: https://www.edgepedia.org/statistical-hypothesis-testing
