# 广义似然比检验

广义似然比检验（GLRT）是一种统计假设检验，它将在原假设下最大化的数据似然与在更大的备择模型下最大化的似然进行比较，用以检验参数模型中的复合假设。它将奈曼-皮尔逊似然比检验的简单对简单比较，替换为各类中最佳拟合模型之间的比较；并且在正则条件下，其统计量在原假设下具有由威尔克斯定理给出的卡方分布。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup><sup> • </sup><sup>[2](https://doi.org/10.1214/aoms/1177732360)</sup>

| 关键事实 | 细节 |
|---|---|
| 统计量 | \( \Lambda = \max_{\theta \in \Omega_0} \mathrm{lik}(\theta) / \max_{\theta \in \Omega} \mathrm{lik}(\theta) \)；\( \Lambda \) 较小时拒绝<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup> |
| 常用形式 | \( -2\log \Lambda = 2\{\ell(\hat\theta) - \ell(\hat\theta_0)\} \)<sup>[3](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture23.pdf)</sup> |
| 原假设下的分布 | \( -2\log \Lambda \) 渐近服从 \( \chi^2 \) 分布，自由度等于全模型与原假设子模型之间的维数差（威尔克斯：\( h - m \)）<sup>[2](https://doi.org/10.1214/aoms/1177732360)</sup> |
| 关键正则条件 | 嵌套假设、真参数位于参数空间内部、最大似然估计（MLE）一致性<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup><sup> • </sup><sup>[4](https://cpb-us-w2.wpmucdn.com/voices.uchicago.edu/dist/9/1193/files/2016/01/05a-CompositeHTests.pdf)</sup> |
| 起源 | 奈曼与皮尔逊建立了简单假设的最优似然比检验（1933）；威尔克斯（1938）建立了复合假设的大样本卡方结果<sup>[5](https://www.stat.ubc.ca/~lang/Stat300/PW99.pdf)</sup><sup> • </sup><sup>[2](https://doi.org/10.1214/aoms/1177732360)</sup> |
| 主要竞争者 | 沃尔德检验与拉奥得分检验，三者在一阶渐近意义上等价<sup>[6](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)</sup> |
| 经典失效模式 | 参数位于边界、冗余参数仅在备择假设下存在、非嵌套假设<sup>[7](https://arxiv.org/html/2206.15178v3)</sup> |

## 工作原理

GLRT 将一个复合检验问题转化为简单问题。它不像奈曼-皮尔逊检验那样在单个备择值处比较似然，而是用在该假设下最能解释数据的参数值来替换每个复合假设，然后在这两个拟合模型之间应用似然比检验。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup><sup> • </sup><sup>[8](https://engineering.purdue.edu/~mrb/resources/LecturesF/Session_18.pdf)</sup> 统计量为

\[ \Lambda = \frac{\max_{\theta \in \Omega_0} \mathrm{lik}(\theta)}{\max_{\theta \in \Omega} \mathrm{lik}(\theta)}, \]

即原假设子模型下的最大化似然除以全参数空间上的最大化似然。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup> 由于原假设参数集是备择假设参数集的子集，恒有 \( \Lambda \le 1 \)。<sup>[9](https://www.artowen.su.domains/courses/200/lec10.pdf)</sup> 等价地，可以使用 \( 2\log \Lambda^* = 2\{\ell(\hat\theta) - \ell(\hat\theta_0)\} \)，即最大化对数似然之差的两倍。<sup>[3](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture23.pdf)</sup>

威尔克斯定理提供了校准：若假设是嵌套的、真参数是参数空间的内点、且最大似然估计的一致性与渐近正态性的通常正则条件成立，则 \( -2\log \Lambda \) 依分布收敛于一个卡方变量，其自由度等于全模型与原假设子模型之间的维数差；威尔克斯（1938）将其写作 \( h - m \)，其中全模型和原假设模型的维数分别为 \( h \) 和 \( m \)。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup><sup> • </sup><sup>[2](https://doi.org/10.1214/aoms/1177732360)</sup><sup> • </sup><sup>[4](https://cpb-us-w2.wpmucdn.com/voices.uchicago.edu/dist/9/1193/files/2016/01/05a-CompositeHTests.pdf)</sup> 维数计算的是自由参数的个数；一个各项概率之和为一的 \( k \) 项多项分布，其维数为 \( k - 1 \)。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup>

## 操作步骤

1. 指定嵌套假设：全模型 \( \Omega \) 内的原假设子模型 \( \Omega_0 \)。<sup>[4](https://cpb-us-w2.wpmucdn.com/voices.uchicago.edu/dist/9/1193/files/2016/01/05a-CompositeHTests.pdf)</sup>
2. 用最大似然拟合两个模型，得到原假设下的 \( \hat\theta_0 \) 和全模型下的 \( \hat\theta \)；复合原假设需要拟合两个模型。<sup>[6](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)</sup>
3. 由两个最大化对数似然计算 \( -2\log \Lambda \)。<sup>[3](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture23.pdf)</sup>
4. 当 \( \Lambda \le c \) 时拒绝 \( H_0 \)，等价地，当 \( -2\log \Lambda \) 超过威尔克斯定理给出的卡方分布的上 \( \alpha \) 分位数时拒绝；p 值为卡方上尾概率。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup>

一个实例检验哈迪-温伯格平衡——二维多项分布的一维子模型——样本为 \( n = 1029 \) 名香港个体，其中 \( N_{AA} = 342 \)、\( N_{Aa} = 500 \)、\( N_{aa} = 187 \)：统计量为 \( -2\log \Lambda = 0.0325 \)，在 \( \chi^2_1 \) 分布下 p 值为 \( 1 - F(0.0325) = 0.86 \)，表明与平衡无显著偏差。<sup>[1](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)</sup>

## 起源

该检验背后的最优性纲领由耶日·奈曼（Jerzy Neyman）和埃贡·夏普·皮尔逊（Egon Sharpe Pearson）在《论统计假设的最有效检验问题》（1933，《伦敦皇家学会哲学汇刊A辑》）中提出，其中证明了简单假设对简单备择假设的似然比检验是最优的，即奈曼-皮尔逊引理。<sup>[10](https://doi.org/10.1098/rsta.1933.0009)</sup><sup> • </sup><sup>[5](https://www.stat.ubc.ca/~lang/Stat300/PW99.pdf)</sup> S. S. 威尔克斯在《检验复合假设的似然比的大样本分布》（1938，《数理统计年鉴》）中建立了使该检验实用的卡方极限。<sup>[2](https://doi.org/10.1214/aoms/1177732360)</sup> 这一路线被推广到估计与检验，而序贯概率比检验的最优性证明（《数理统计年鉴》）将其推广到序贯检验。<sup>[11](https://doi.org/10.1214/aoms/1177732144)</sup><sup> • </sup><sup>[12](https://doi.org/10.1214/aoms/1177730197)</sup>

## 变体

序贯版本用边界穿越取代固定样本规则：广义序贯概率比检验（广义 SPRT）在广义似然比 \( L_n \) 穿越 \( e^A \) 或 \( e^{-B} \) 时停止，并且当两类错误概率趋于零时在期望样本量意义下渐近最优，将简单假设的经典 SPRT 推广到分离的复合族。<sup>[13](https://sites.stat.columbia.edu/jcliu/paper/GSPRT_SQA3.pdf)</sup> 序贯 GLR 检验的非参数推广处理次高斯和指数族设定，其解析边界在无限时间范围内有效。<sup>[14](https://par.nsf.gov/servlets/purl/10251928)</sup> 对于正态混合模型，基于广义最大似然估计（GMLE）的 GLRT 检验诸如所有混合均值均为零的假设，并用大偏差不等式给出原假设下的散度率。<sup>[15](https://www3.stat.sinica.edu.tw/preprint/SS-2015-0086_Preprint.pdf)</sup>

## 应用

在线性高斯模型的信号检测中，GLRT 简化为能量检测器：对 \( (1/2\sigma^2) x^{\top} \cdot P_H \cdot x \) 作阈值判决，其中 \( P_H = H \cdot (H^{\top} \cdot H)^{-1} \cdot H^{\top} \) 投影到信号子空间，原假设下虚警概率为 \( P(\chi^2_k > 2\gamma) \)，因为 \( 2 x^{\top} P_H x / \sigma^2 \sim \chi^2_k \)。<sup>[16](https://nowak.ece.wisc.edu/ece830/ece830_lecture10.pdf)</sup> 威尔克斯定理已被应用于多源互联网层析成像以推断网络拓扑。<sup>[16](https://nowak.ece.wisc.edu/ece830/ece830_lecture10.pdf)</sup> 在粒子物理及其他数据密集型科学中，轮廓似然比检验被用于寻找新现象，通常借助威尔克斯定理假定原假设下的分布为卡方分布，尽管该定理在现代实验中往往不适用。<sup>[17](https://www.nature.com/articles/s42254-020-0169-5)</sup> 序贯 GLR 检验被用于上市后药物和疫苗安全性监测。<sup>[14](https://par.nsf.gov/servlets/purl/10251928)</sup>

## 局限与替代方案

GLRT、沃尔德和拉奥得分统计量构成三大经典基于似然的检验；三者渐近等价，在一阶意义上收敛到相同的卡方极限，并且都渐近地与以信息矩阵加权的 \( \sqrt{n}(\hat\theta - \theta_0) \) 的二次型相关；对于正则模型中的简单原假设，沃尔德统计量为 \( n(\hat\theta - \theta_0)^{\top} I(\theta_0)(\hat\theta - \theta_0) \)，其中 \( n \) 为样本量。<sup>[6](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)</sup><sup> • </sup><sup>[3](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture23.pdf)</sup> 它们的区别在于需要拟合什么：似然比统计量 \( Q_n = 2\{\ell(\hat\theta_n, \hat\phi_n) - \ell(\theta_0, \hat\phi_0)\} \) 需要同时拟合原假设和备择模型，得分检验 \( R_n = \nabla \ln L(\theta^*_n)^{\top} J_n(\theta^*_n)^{-1} \nabla \ln L(\theta^*_n) \) 仅需原假设拟合，而沃尔德统计量仅需全模型拟合。<sup>[6](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)</sup><sup> • </sup><sup>[18](https://www.stat.umn.edu/geyer/8112/notes/tests.pdf)</sup> 在有限样本中三者给出不同数值，且 GLRT 并非一致最强检验：在正态均值问题中，一旦效应符号已知，似然比检验具有最大功效，而沃尔德检验则不然。<sup>[6](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)</sup><sup> • </sup><sup>[16](https://nowak.ece.wisc.edu/ece830/ece830_lecture10.pdf)</sup>

威尔克斯定理要求正则条件，而这些条件在实践中常常不成立。当原假设值位于参数空间边界上时，得分不必为零，极限通常是卡方杠分布，其权重取决于有多少参数位于边界上；塞尔夫（Self）和梁（Liang）利用切尔诺夫（Chernoff）1954年的锥论证推导出该边界极限，而当冗余参数位于边界上时，朴素地使用卡方近似可能给出反保守的推断。<sup>[7](https://arxiv.org/html/2206.15178v3)</sup><sup> • </sup><sup>[19](https://doi.org/10.1214/aoms/1177728725)</sup><sup> • </sup><sup>[20](https://doi.org/10.1080/01621459.1987.10478472)</sup> 当冗余参数仅在备择假设下存在时，如在变点问题和混合问题中，普通渐近理论失效；戴维斯（Davies）为此情形发展了方法。<sup>[21](https://doi.org/10.1093/biomet/74.1.33)</sup> 非嵌套假设、数据不足、不可识别性以及多重比较效应（look-elsewhere effect）是现代物理实验中常见的情形，在这些情形下卡方假定不适用。<sup>[17](https://www.nature.com/articles/s42254-020-0169-5)</sup> 该检验并非普适：存在重要的例子，其中统计量在原假设下的分布依赖于冗余参数，检验完全无法使用。<sup>[22](https://www.stat.purdue.edu/~dasgupta/testing.pdf)</sup> 埃里希·L. 莱曼（Erich L. Lehmann），一位顶尖统计学家和检验经典教材的作者，分析了一大类似然比检验尽管直观上有吸引力却表现极差的情形，并给出了在那里最优的替代方法。<sup>[23](https://projecteuclid.org/ebooks/institute-of-mathematical-statistics-lecture-notes-monograph-series/Optimality/chapter/On-likelihood-ratio-tests/10.1214/074921706000000356)</sup>

由于 \( \chi^2_r \) 变量的均值为 \( r \)，有限样本统计量可以被重新缩放使其均值与渐近均值匹配；巴特利特（Bartlett）校正取 \( W_{nB} = (f / E_{H0}[W_n]) \cdot W_n \)，而缪尔黑德（Muirhead）的 \( W_{n\rho} = -2\rho \log \Lambda_n \) 在 \( p \) 固定且 \( n \) 很大时改善近似速率。<sup>[24](https://pmc.ncbi.nlm.nih.gov/articles/PMC10997343/)</sup><sup> • </sup><sup>[25](https://people.eecs.berkeley.edu/~jordan/courses/210B-spring07/lectures/stat210b_lecture_23.pdf)</sup> GLRT 的性能没有一般的解析公式；渐近最优性仅在样本很大且最大似然估计渐近达到克拉美-拉奥下界时成立。<sup>[26](https://www.mdpi.com/1099-4300/24/12/1785)</sup>

## References

1. [Stanford Stats 200 Lecture 22: The Generalized Likelihood Ratio Test](https://web.stanford.edu/class/archive/stats/stats200/stats200.1172/Lecture22.pdf)
2. [S. S. Wilks (1938). The Large-Sample Distribution of the Likelihood Ratio for Testing Composite Hypotheses. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177732360)
3. [STA732 Lecture 23: Large-Sample Theory for Likelihood Ratio Tests (Duke, Spring 2023)](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture23.pdf)
4. [Composite Hypothesis Tests (UChicago)](https://cpb-us-w2.wpmucdn.com/voices.uchicago.edu/dist/9/1193/files/2016/01/05a-CompositeHTests.pdf)
5. [The Emperor's New Tests (Perlman & Wu, Statistical Science)](https://www.stat.ubc.ca/~lang/Stat300/PW99.pdf)
6. [Likelihood Ratio, Score, and Wald Tests (course notes)](https://math.pku.edu.cn/teachers/mwfy/Teaching/Statistics/asymptotic%20tests.pdf)
7. [Likelihood Asymptotics in Nonregular Settings: A Review with Emphasis on the Likelihood Ratio](https://arxiv.org/html/2206.15178v3)
8. [The Generalized Likelihood Ratio Test (Purdue ECE lecture notes)](https://engineering.purdue.edu/~mrb/resources/LecturesF/Session_18.pdf)
9. [Lecture 10: Generalized likelihood ratio test (Art Owen, Stanford)](https://www.artowen.su.domains/courses/200/lec10.pdf)
10. [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)
11. [Abraham Wald (1939). Contributions to the Theory of Statistical Estimation and Testing Hypotheses. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177732144)
12. [A. Wald, J. Wolfowitz (1948). Optimum Character of the Sequential Probability Ratio Test. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177730197)
13. [Generalized Sequential Probability Ratio Test for Separate Families of Hypotheses](https://sites.stat.columbia.edu/jcliu/paper/GSPRT_SQA3.pdf)
14. [Nonparametric Iterated-Logarithm Extensions of the Sequential Generalized Likelihood Ratio Test](https://par.nsf.gov/servlets/purl/10251928)
15. [Generalized likelihood ratio test for normal mixtures (Statistica Sinica, DOI 10.5705/ss.202015.0086)](https://www3.stat.sinica.edu.tw/preprint/SS-2015-0086_Preprint.pdf)
16. [Lecture 10: The Generalized Likelihood Ratio (Nowak, UW–Madison ECE 830)](https://nowak.ece.wisc.edu/ece830/ece830_lecture10.pdf)
17. [Searching for new phenomena with profile likelihood ratio tests | Nature Reviews Physics](https://www.nature.com/articles/s42254-020-0169-5)
18. [The Wilks, Wald, and Rao Tests (Charles J. Geyer, Stat 8112, 2020)](https://www.stat.umn.edu/geyer/8112/notes/tests.pdf)
19. [Herman Chernoff (1954). On the Distribution of the Likelihood Ratio. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177728725)
20. [Steven G. Self, Kung-Yee Liang (1987). Asymptotic Properties of Maximum Likelihood Estimators and Likelihood Ratio Tests under Nonstandard Conditions. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1987.10478472)
21. [ROBERT B. DAVIES (1987). Hypothesis testing when a nuisance parameter is present only under the alternative. Biometrika.](https://doi.org/10.1093/biomet/74.1.33)
22. [Chapter 21: Likelihood ratio, Wald, and Rao score tests (A. DasGupta)](https://www.stat.purdue.edu/~dasgupta/testing.pdf)
23. [On likelihood ratio tests (Erich L. Lehmann, IMS Lecture Notes Monogr. Ser. Vol. 49)](https://projecteuclid.org/ebooks/institute-of-mathematical-statistics-lecture-notes-monograph-series/Optimality/chapter/On-likelihood-ratio-tests/10.1214/074921706000000356)
24. [A Bartlett-type correction for likelihood ratio tests with application to testing equality of Gaussian graphical models](https://pmc.ncbi.nlm.nih.gov/articles/PMC10997343/)
25. [Stat 210B Lecture 23: Asymptotic Power of the LRT (following van der Vaart 1998, Sec 16.4)](https://people.eecs.berkeley.edu/~jordan/courses/210B-spring07/lectures/stat210b_lecture_23.pdf)
26. [The Geometry of Generalized Likelihood Ratio Test (Entropy 24(12):1785)](https://www.mdpi.com/1099-4300/24/12/1785)

---
*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/generalized-likelihood-ratio-test

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