# 似然比检验

似然比检验（LRT）是一种统计假设检验，它比较两个通过最大似然拟合的模型——其中一个模型是另一个模型的特例——方法是衡量当较一般模型的额外参数被释放后，拟合改善了多少。检验统计量是两个最大化似然之比的一个函数，在标准正则条件下，对于大样本，它服从卡方分布，其自由度等于额外参数的个数。<sup>[1](https://casrai.org/guides/likelihood-ratio-test-nested-models)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由耶吉·内曼（Jerzy Neyman）和埃贡·S·皮尔逊（Egon S. Pearson）于1928年引入，威廉·戈塞特（William Gosset，“Student”）提供了帮助；他们1933年的工作以构造最优检验的一般原则，将假设检验置于坚实的基础之上<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup> |
| 渐近分布 | 由S. S. 威尔克斯（S. S. Wilks）于1938年导出<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup> |
| 检验统计量 | 完整模型与受原假设约束的模型的对数似然之差的两倍；自由度等于参数个数之差<sup>[1](https://casrai.org/guides/likelihood-ratio-test-nested-models)</sup> |
| 嵌套要求 | 标准卡方参考分布适用于嵌套模型；对于非嵌套的模型对，对数似然比没有卡方极限分布<sup>[3](https://www.census.gov/library/working-papers/1989/adrm/rr89-08.html)</sup> |
| 同类检验 | 沃尔德检验和得分检验（拉格朗日乘子检验）从单个拟合模型出发处理同一问题，且与LRT渐近等价；在线性模型中，统计量满足沃尔德 ≥ 似然比 ≥ 得分<sup>[4](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)</sup> |
| 边界注意事项 | 当被检验的参数位于参数空间的边界上时，例如方差分量被设为零，原假设下的分布是卡方分布的混合，例如0.5χ²₀ + 0.5χ²₁<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3129472/)</sup> |

## 定义与统计量

设模型A嵌套于模型B中，意味着A可以通过固定B的一个或多个参数（通常固定为零）从B获得。每个模型都用最大似然对同一数据进行拟合，得到最大化的对数似然。似然比检验统计量为

\[ Q = -2 \cdot (\ell_A - \ell_B) = 2 \cdot (\ell_B - \ell_A), \]

即较简单模型与较完整模型的对数似然之差的两倍。由于较完整模型至少拥有同样多的参数，其最大化似然永远不会更低，因此Q非负。Q值较大意味着额外参数对拟合的改善超出了偶然所能预测的范围，当Q超过参考分布的相应分位数（通常为95%分位数）时，拒绝较简单模型即已足够的原假设。<sup>[6](https://doi.org/10.1111/j.2041-210X.2010.00063.x)</sup>

在正则条件下且对于大样本，Q服从卡方分布，其自由度等于所检验的约束个数，即两个模型之间参数个数的差。<sup>[1](https://casrai.org/guides/likelihood-ratio-test-nested-models)</sup> 这一结果即威尔克斯于1938年导出的渐近分布。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup>

## 与沃尔德检验和得分检验的关系

似然比检验、沃尔德检验和得分检验是最大似然方法中的三种标准程序，它们处理同一个问题：将参数约束为零是否会降低模型的拟合？<sup>[4](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)</sup> 它们的区别在于所需的条件和所衡量的内容：

- **似然比检验**比较约束参数值和自由估计参数值处对数似然的高度，因此两个模型都必须拟合。<sup>[4](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)</sup>
- **沃尔德检验**考察无约束估计值与其假设值之间的距离，以标准误为尺度来衡量，只需要无约束模型。
- **得分检验**（拉奥得分检验，也称拉格朗日乘子检验）考察约束值处对数似然的斜率，只需要受约束模型。<sup>[4](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)</sup>

三种统计量渐近等价：随着样本量增大，它们的值趋于一致。在有限样本中它们有所差异，但通常得出相同结论，当模型为线性时，其统计量满足沃尔德 ≥ 似然比 ≥ 得分的排序。<sup>[4](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)</sup> 三种检验对干扰参数的敏感性也不同，这一比较可以通过它们在原假设和局部备择假设下分布的埃奇沃思展开严格地进行。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003451)</sup>

经验比较证实了这些差异。在一项基于匹配病例对照数据的评估中，似然比统计量在混合参数的合理取值范围内相对稳定，而沃尔德统计量则不稳定。<sup>[8](https://pubmed.ncbi.nlm.nih.gov/6534405/)</sup> 在逻辑回归中检测差异项目功能的模拟研究中，LR检验和得分检验的表现始终优于沃尔德检验，差异在一般DIF检验和非均匀DIF条件下最大。<sup>[9](https://www.ets.org/research/policy_research_reports/publications/report/2009/hxpc.html)</sup>

## 非嵌套模型

标准理论以嵌套为前提。当两个模型之间不存在参数约束关系时，拟合模型对的对数似然比不具有卡方极限分布，因此通常的检验不能直接应用。<sup>[3](https://www.census.gov/library/working-papers/1989/adrm/rr89-08.html)</sup> 存在若干扩展：

- **考克斯修正**（1962）使LRT适用于非嵌套比较，但所需的调整因问题而异，且可能在数学上具有挑战性，在某些应用文献中使用较少。<sup>[6](https://doi.org/10.1111/j.2041-210X.2010.00063.x)</sup>
- **基于模拟的LRT**（威廉姆斯，1970）：如果可以在原假设模型下模拟数据，则统计量的参考分布可以通过蒙特卡洛方法任意好地近似，而无需推导其数学形式。该方法计算密集但直接明了，且不依赖渐近正态性，这使得它在样本较小时比Vuong检验更准确。<sup>[6](https://doi.org/10.1111/j.2041-210X.2010.00063.x)</sup>
- **Vuong检验**（1989）基于Kullback–Leibler准则对非嵌套模型应用似然比检验；似然比统计量的一个缩放版本收敛于标准正态分布，并带有可选的偏差校正项(p_B − p_A) log n。它已被应用于比较非嵌套结构方程模型。<sup>[10](https://arxiv.org/abs/1402.6720)</sup>

## 与信息准则的关系

对于通过最大似然拟合的模型，似然比统计量与AIC和BIC密切相关。两个模型之间AIC的差值等于Q + 2(p_i − p_j)，BIC的差值等于Q + (p_i − p_j) log n，这也正是未归一化的调整Vuong统计量。由于BIC的惩罚随样本量增长，除非n极小，它选择的模型比AIC更简单。在两个嵌套模型的比较中，P = 0.05水平的LRT在参数差异不超过七个时比AIC更为保守。<sup>[6](https://doi.org/10.1111/j.2041-210X.2010.00063.x)</sup>

## 卡方参考失效的情形

威尔克斯的结果依赖于并非总是成立的正则条件。已识别出三类重要的失效情形：边界问题、不确定参数问题（包括不可识别参数和奇异信息矩阵）以及变点问题。<sup>[11](https://research.unipd.it/handle/11577/3441276)</sup>

**边界参数。** 最常见的情形是检验方差分量是否为零。方差必须非负，因此原假设值位于参数空间的边界而非内部，卡方极限背后的正则条件不再成立。弗雷德·哈钦森癌症研究中心的生物统计学家史蒂文·G·塞尔夫（Steven G. Self）和约翰斯·霍普金斯大学生物统计系的梁庚义（Kung-Yee Liang）于1987年证明，在此类非标准条件下，似然比统计量的渐近分布通常是卡方分布的混合。<sup>[12](https://doi.org/10.1080/01621459.1987.10478472)</sup> 对于检验单个方差分量，混合分布为0.5χ²₀ + 0.5χ²₁，其中χ²₀是零点处的点质量。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3129472/)</sup> 在这些情形下使用朴素的卡方分布会产生过大的p值，从而导致过度保守的检验。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3129472/)</sup> 复杂情况还会叠加：当一个未被检验的干扰方差分量本身位于边界上时，参考分布不是纯粹的卡方分布混合。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC6933104/)</sup>

**混合模型。** 检验正态混合模型中的成分个数违反了使−2 log λ在原假设下具有通常渐近分布的正则条件；麦克拉克伦（McLachlan）1987年的工作强调，可以用自助法评估在单一正态密度与两个正态密度的混合之间进行检验时，统计量在原假设下的分布。<sup>[14](https://onlinelibrary.wiley.com/doi/10.2307/2347790)</sup>

**天体物理模型检测。** 在天体物理学中常见的许多统计检验中，LRT及相关的F检验即使渐近地也不遵循其名义上的χ²和F分布，这使某些处于显著性临界水平的谱线或源的检出与未检出结果受到质疑。<sup>[15](https://arxiv.org/abs/astro-ph/0201547)</sup>

## 历史发展

关于检验的第一篇正式且最具影响力的论文是卡尔·皮尔逊（Karl Pearson）1900年的工作，但形式理论的发展并不顺利。在一篇历史综述所描述的许多曲折岁月之后，在威廉·戈塞特（“Student”）的帮助下，内曼和皮尔逊在他们1928年发表于《Biometrika》的论文《关于用于统计推断的某些检验准则的使用与解释》中引入了似然比检验。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup><sup> • </sup><sup>[16](https://academic.oup.com/biomet/article-abstract/20A/3-4/263/362770)</sup> 1933年，同一批作者通过阐明构造最优检验的一般原则，将假设检验置于坚实的基础之上，威尔克斯于1938年导出了LR统计量的渐近分布。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup> 得分检验随后通过拉奥1948年的工作和内曼1959年的C(α)检验发展起来，与沃尔德检验（1941，1943）一起构成了当今使用的渐近等价程序的三驾马车。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)</sup><sup> • </sup><sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003451)</sup>

## References

1. [Likelihood Ratio Test for Nested Models, CASRAI guide](https://casrai.org/guides/likelihood-ratio-test-nested-models)
2. [Bera, A. K. and Bilias, Y. Rao's score, Neyman's C(α) and Silvey's LM tests: an essay on historical developments and some new results. Journal of Statistical Planning and Inference](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003438)
3. [Findley, D. F. and Wei, C. Z. (1989). Likelihood Ratio Procedures for Comparing Non-Nested, Incorrect Regressors. U.S. Census Bureau Working Paper RR89-08](https://www.census.gov/library/working-papers/1989/adrm/rr89-08.html)
4. [FAQ: How are the likelihood ratio, Wald, and Lagrange multiplier (score) tests different and/or similar? UCLA OARC Stats](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqhow-are-the-likelihood-ratio-wald-and-lagrange-multiplier-score-tests-different-andor-similar/)
5. [Statistical Inference in Mixed Models and Analysis of Twin and Family Data, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3129472/)
6. [Lewis, R. J. (2011). A unified approach to model selection using the likelihood ratio test. Methods in Ecology and Evolution](https://doi.org/10.1111/j.2041-210X.2010.00063.x)
7. [Sensitivity of Rao's score test, the Wald test and the likelihood ratio test to nuisance parameters. Journal of Statistical Planning and Inference](https://www.sciencedirect.com/science/article/abs/pii/S0378375800003451)
8. [Tests of the null hypothesis in case-control studies, PubMed](https://pubmed.ncbi.nlm.nih.gov/6534405/)
9. [Paek, I. (2009). Three Statistical Testing Procedures in Logistic Regression: Their Performance in Differential Item Functioning (DIF). ETS Research Report RR-09-35](https://www.ets.org/research/policy_research_reports/publications/report/2009/hxpc.html)
10. [Testing non-nested structural equation models, arXiv](https://arxiv.org/abs/1402.6720)
11. [Likelihood Asymptotics in Nonregular Settings: A Review and Annotated Bibliography with Emphasis on the Likelihood Ratio, University of Padua research repository](https://research.unipd.it/handle/11577/3441276)
12. [Self, S. G. and Liang, K.-Y. (1987). Asymptotic Properties of Maximum Likelihood Estimators and Likelihood Ratio Tests under Nonstandard Conditions. Journal of the American Statistical Association 82, 605–610](https://doi.org/10.1080/01621459.1987.10478472)
13. [Testing variance components in linear mixed modeling using permutation, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6933104/)
14. [McLachlan, G. J. (1987). On Bootstrapping the Likelihood Ratio Test Statistic for the Number of Components in a Normal Mixture. Journal of the Royal Statistical Society: Series C](https://onlinelibrary.wiley.com/doi/10.2307/2347790)
15. [Statistics: Handle with Care, Detecting Multiple Model Components with the Likelihood Ratio Test, arXiv](https://arxiv.org/abs/astro-ph/0201547)
16. [Neyman, J. and Pearson, E. S. (1928). On the Use and Interpretation of Certain Test Criteria for Purposes of Statistical Inference. Biometrika 20A, 263–294](https://academic.oup.com/biomet/article-abstract/20A/3-4/263/362770)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Foundations of statistical inference › Asymptotic theory of statistics › Asymptotics of likelihood-based procedures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/likelihood-ratio-test

English original: https://www.edgepedia.org/likelihood-ratio-test
