# 布罗施–帕甘检验

布罗施–帕甘检验（Breusch–Pagan test）是线性回归模型中异方差性的拉格朗日乘数检验，由特雷弗·布罗施（Trevor Breusch）与阿德里安·帕甘（Adrian Pagan）于1979年9月在《计量经济学》（*Econometrica*）上发表，该检验追问的是回归误差的方差是否依赖于可观测变量，而非保持不变。<sup>[1](https://www.econometricsociety.org/publications/econometrica/1979/09/01/simple-test-heteroscedasticity-and-random-coefficient-variation)</sup> 它考察残差的方差是否依赖于自变量，是应用计量经济学中最广泛使用的异方差检验之一。<sup>[2](https://bookdown.org/mike/data_analysis/heteroskedasticity-tests.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 原假设 | 同方差性：误差方差恒定，表示为 \( E[u^2 \mid X] = \sigma^2 \)；p值很小则拒绝方差恒定，表明存在异方差性<sup>[3](https://faculty.utrgv.edu/diego.escobari/teaching/Econ3341/Handouts/Chapter08.pdf)</sup><sup> • </sup><sup>[4](https://metricgate.com/calculator/breusch-pagan-test)</sup> |
| 检验统计量 | \( LM = n \cdot R^2 \)，来自将OLS残差平方对方差回归元做辅助回归，渐近服从 \( \chi^2 \) 分布，自由度等于方差回归元中除常数项外的个数<sup>[5](https://panelbox.readthedocs.io/en/latest/diagnostics/heteroskedasticity/breusch-pagan/)</sup> |
| 起源 | 拉格朗日乘数检验框架，《计量经济学》，1979年9月<sup>[1](https://www.econometricsociety.org/publications/econometrica/1979/09/01/simple-test-heteroscedasticity-and-random-coefficient-variation)</sup> |
| 首选变体 | 科恩克（1981）的学生化版本，相比原始形式对非正态误差更不敏感，原始形式在重尾下可能过度拒绝<sup>[6](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)</sup> |
| 软件默认 | R的`lmtest::bptest`与`skedastic::breusch_pagan`默认学生化；Python statsmodels默认使用科恩克版本，另提供原始BP选项；Stata的`estat hettest`<sup>[7](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)</sup><sup> • </sup><sup>[8](https://github.com/statsmodels/statsmodels/pull/6508)</sup> |
| 已知弱点 | 只能检测回归元的线性函数；对一般异方差备择假设不一致，功效可能任意低<sup>[9](https://ideas.repec.org/p/wpa/wuwpem/0205001.html)</sup> |
| 典型补救 | 异方差稳健标准误，OLS系数保持不变，仅重新计算标准误、置信区间和p值<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup> |

## 检验的工作原理

该检验建立在一个简单的辅助回归之上。用OLS拟合主模型后，残差平方 \( \hat{u}^2 \) 成为第二次回归的响应变量，该回归的设计矩阵 \( Z \) 由疑似与误差方差相关的变量构成，通常是原始解释变量。<sup>[7](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)</sup> 平方运算将误差不可观测的离散程度转化为辅助回归可以建模的水平；检验回归的是残差平方，而非原始残差。<sup>[11](https://phucnguyenvan.com/econometrics_atlas/concept/efm-heteroskedasticity-tests)</sup>

统计量直接来自该回归。在同方差性的原假设下，\( LM = n \times R^2_{\text{aux}} \) 服从 \( \chi^2(k) \) 分布，其中 \( k \) 是方差方程中除常数项外的回归元个数，检验为右尾检验。<sup>[5](https://panelbox.readthedocs.io/en/latest/diagnostics/heteroskedasticity/breusch-pagan/)</sup><sup> • </sup><sup>[7](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)</sup> 使用 \( K \) 表示含常数项的参数个数的教科书将同一结果写作 \( \chi^2_{K-1} \)。<sup>[3](https://faculty.utrgv.edu/diego.escobari/teaching/Econ3341/Handouts/Chapter08.pdf)</sup> 存在两种等价的计算形式：布罗施–帕甘–戈弗雷准则可由以OLS残差均方标准化的残差平方做辅助回归，取解释平方和（ESS）的一半得到，统计量也写作 \( BP = \tfrac{1}{2} \cdot SSR \)，其中SSR为该辅助回归的回归平方和。<sup>[12](https://www2.cirano.qc.ca/~dufourj/Web_Site/Dufour_Khalaf_Bernard_Genest_2004_JE_HeteroskedasticityTests.pdf)</sup><sup> • </sup><sup>[13](https://www.scirp.org/html/6-1241337_100665.htm)</sup><sup> • </sup><sup>[27](https://users.ssc.wisc.edu/~ewfrees/ActuarialRegression2009/C5VarSelect.html)</sup> 方差模型变量的选择具有实质影响：使用拟合值 \( \hat{y} \) 检验方差是否随 \( y \) 的水平而变化，而使用原始回归元 \( x \) 则检验哪些具体变量驱动了异方差性。<sup>[6](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)</sup>

计算简便正是该检验流行起来的原因。在许多情形下，LM统计量可以通过使用拟合模型残差的OLS回归来计算，对于广泛的异方差和随机系数设定，该准则都是OLS残差的一个易于计算的函数。<sup>[14](https://opus.lib.uts.edu.au/handle/10453/13938)</sup><sup> • </sup><sup>[1](https://www.econometricsociety.org/publications/econometrica/1979/09/01/simple-test-heteroscedasticity-and-random-coefficient-variation)</sup>

## 科恩克学生化变体

1979年的原始检验假定误差服从正态分布。若误差为重尾，原始形式可能过度拒绝，近期文献将布罗施–帕甘检验与科恩克检验描述为对非正态误差缺乏稳健性。<sup>[6](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)</sup><sup> • </sup><sup>[15](https://export.arxiv.org/pdf/2301.07245v1.pdf)</sup> 科恩克（1981）以及科恩克与巴塞特（1982）开发了该检验的修正版本：学生化统计量为 \( nR^2 \)，不将残差平方除以 \( \hat{\sigma}^2 \)，相比原始版本对非正态性更不敏感。<sup>[15](https://export.arxiv.org/pdf/2301.07245v1.pdf)</sup><sup> • </sup><sup>[6](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)</sup> SAS文档将修正的布罗施–帕甘检验描述为比原始检验对正态性假设更不敏感，并引用了格林。<sup>[16](https://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect043.htm)</sup> 在statsmodels源代码中，辅助回归的响应变量是残差平方除以其均值，除非关闭稳健选项，关闭后恢复原始布罗施–帕甘的标准化方式。<sup>[17](https://github.com/statsmodels/statsmodels/blob/main/statsmodels/stats/diagnostic.py)</sup>

学生化实现很简单：它是一个两步程序，从数据生成过程上的OLS出发，使用OLS残差平方和备择假设下指定的一组方差驱动变量。<sup>[18](https://bauer.uh.edu/rsusmel/4397/fec-7-b.pdf)</sup> 在R中，非学生化版本（`bptest`配合`studentize=F`）被描述为已弃用，因为它依赖于正态性假设。<sup>[19](https://klein.uk/teaching/quant1/docs/Lecture7.html)</sup>

## 与其他检验的比较

**布罗施–帕甘与怀特。** 布罗施–帕甘检验方差为回归元的线性函数，自由度为 \( k \)，对线性异方差性功效更高；怀特检验加入所有自变量的平方与交叉乘积，允许更广泛的形式，最多使用 \( k(k+3)/2 \) 个自由度，对某些非线性形式可能功效更大。<sup>[20](https://pspedding.github.io/econ-course-2027/modules/module-06/M06.L02-testing-heteroskedasticity/)</sup><sup> • </sup><sup>[3](https://faculty.utrgv.edu/diego.escobari/teaching/Econ3341/Handouts/Chapter08.pdf)</sup> 怀特检验对异方差性的形式不做假设，也不依赖于正态性假设，因此更稳健；代价是当误差同方差但模型在其他方面设定有误时它可能显著，且其众多自由度在小样本中会损失功效。<sup>[16](https://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect043.htm)</sup><sup> • </sup><sup>[21](https://ebrary.net/1017/economics/statistical_tests)</sup><sup> • </sup><sup>[11](https://phucnguyenvan.com/econometrics_atlas/concept/efm-heteroskedasticity-tests)</sup> 怀特检验实际上是布罗施–帕甘检验的特例，因为它就是同一辅助回归构造，只是 \( Z \) 矩阵更丰富。<sup>[7](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)</sup> 比较结果富有信息量：若布罗施–帕甘拒绝而怀特不拒绝，指向简单的线性方差关系；若怀特拒绝而布罗施–帕甘不拒绝，则指向非线性（平方与交叉乘积）异方差性。<sup>[5](https://panelbox.readthedocs.io/en/latest/diagnostics/heteroskedasticity/breusch-pagan/)</sup>

**戈德菲尔德–匡特与残差图。** 戈德菲尔德–匡特检验通过比较子样本的方差来检测异方差性，这是一种更简单的方法，不直接将方差建模为回归元的函数。<sup>[2](https://bookdown.org/mike/data_analysis/heteroskedasticity-tests.html)</sup> 布罗施–帕甘结果不显著并不等于确认同方差性：该检验在小样本中功效有限，即使通过检验，残差图若显示可见的模式也值得进一步检查。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup>

## 数据一瞥

应用文献中的使用情况已有调查：布罗施–帕甘–戈弗雷–科恩克检验在20.9%的情形中被使用，怀特检验11.3%，戈德菲尔德–匡特6.6%，异方差稳健标准误30.3%。<sup>[12](https://www2.cirano.qc.ca/~dufourj/Web_Site/Dufour_Khalaf_Bernard_Genest_2004_JE_HeteroskedasticityTests.pdf)</sup>

[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)证据限定了拒绝或不拒绝意味着什么。一项在样本量100、250和500下、跨线性、指数、二次和平方根异方差结构的模拟研究发现，对低水平异方差性的检测效果较差，但在较高水平下表现改善，尤其是指数结构；更大样本有帮助，但该检验对线性和平方根结构仍然不足，作者建议在这些情形下使用替代检验。<sup>[22](https://fjs.fudutsinma.edu.ng/index.php/fjs/article/view/2826)</sup> 一项相关模拟研究推荐的配对包括：指数结构在 \( n = 100 \) 时用格莱泽检验，线性结构在 \( n = 100 \) 时用非恒定方差得分检验，指数结构在 \( n = 200 \) 和 \( n = 500 \) 时在0.01水平下用学生化布罗施–帕甘检验。<sup>[13](https://www.scirp.org/html/6-1241337_100665.htm)</sup> 在一项方差函数为线性的 \( g(z,a) = I + a_1 z \) 的简单线性回归研究中，布罗施–帕甘检验始终表现出比怀特检验更好的功效，两者对样本量、污染比例和方差函数幂次的反应相似。<sup>[23](https://repository.ipb.ac.id/handle/123456789/14884)</sup>

这些结果背后有两个结构性局限。第一，该检验只检测回归元的线性函数，对一般备择假设不一致：其功效不随样本量增大而趋于1，且可能任意低。<sup>[9](https://ideas.repec.org/p/wpa/wuwpem/0205001.html)</sup> 第二，\( \chi^2 \) 近似在小样本中可能很差，辅助回归的F检验版本通常更受青睐；格林指出LM检验在小样本或中等偏大的样本中夸大了结果的显著性，此时F统计量更可取。<sup>[6](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)</sup><sup> • </sup><sup>[24](https://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.het_breuschpagan.html)</sup> 渐近LM结果的有限样本有效性仍是一个开放问题，自该检验提出以来一直推动着蒙特卡洛比较研究。<sup>[25](https://openresearch-repository.anu.edu.au/bitstreams/87765a5d-da36-44a4-999a-7a20302c9ed5/download)</sup>

## 软件实现

**R。** `lmtest::bptest(model)`默认运行科恩克的学生化版本；`skedastic`包实现布罗施–帕甘方法，可选择是否做学生化修正，默认`koenker = TRUE`，执行的检验与`bptest`完全相同。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup><sup> • </sup><sup>[7](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)</sup> 怀特检验可通过`bptest`配合包含`x`和`I(x^2)`的公式运行，但被描述为仅适用于回归元较少的大样本。<sup>[19](https://klein.uk/teaching/quant1/docs/Lecture7.html)</sup>

**Stata。** 在`regress`之后使用`estat hettest`运行该检验；加上`, rhs`则在辅助回归中使用右侧预测变量而非拟合值。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup>

**Python。** `statsmodels.stats.diagnostic.het_breuschpagan(residuals, exog)`返回LM统计量和p值；它假定外生回归元包含常数项，用于计算自由度和 \( R^2 \)。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup><sup> • </sup><sup>[24](https://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.het_breuschpagan.html)</sup> 其卡方统计量与R的`bptest`配合`studentize=True`的结果在 \( 10^{-13} \) 以内一致。<sup>[24](https://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.het_breuschpagan.html)</sup> 跨包默认值的差异曾造成实际混乱：statsmodels最初只实现科恩克版本，导致与Stata默认`estat hettest`输出不匹配；一个拉取请求加入了原始布罗施–帕甘选项，同时保留稳健的 \( nR^2 \) 版本作为默认。现有statsmodels实现等价于Stata命令`estat hettest, iid`和`estat hettest, fstat`，设置`iid=False`会使前两个返回值与Stata默认值相同。<sup>[8](https://github.com/statsmodels/statsmodels/pull/6508)</sup>

## 拒绝原假设后的处理

**稳健标准误优先。** 常规补救是用异方差稳健（HC）估计量重新计算标准误：系数本身不变，只有标准误及由其构建的置信区间和p值使用允许方差随观测变化的估计量重新计算。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup> 在各变体中，HC0是怀特的原始估计量，在小样本中倾向于低估标准误；HC1加入自由度修正，是Stata的稳健默认；HC3以每个观测的杠杆值加权其贡献，通常最为保守，推荐用于小样本或影响点。<sup>[10](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)</sup> HC3被描述为保留模型时的常规首选。<sup>[4](https://metricgate.com/calculator/breusch-pagan-test)</sup>

**效率与重新设定。** 如果你对方差如何随回归元变化有较好的猜测，加权最小二乘按 \( 1/ \)估计方差 对观测重新加权；对结果变量做对数变换或完全重新设定是进一步的选择，而重新设定通常更可取，因为异方差性可能暗示遗漏了预测变量或函数形式错误。<sup>[26](https://r-statistics.co/Heteroscedasticity-in-R.html)</sup> 若误差方差关系未知，可使用GMM估计；若已知，加权回归可提高效率。<sup>[16](https://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect043.htm)</sup> 教科书处理列出同样的三种补救：变量变换、加权最小二乘和异方差稳健标准误。<sup>[3](https://faculty.utrgv.edu/diego.escobari/teaching/Econ3341/Handouts/Chapter08.pdf)</sup>

**预检验批评。** 应用计量经济学中的一个常见建议是，在横截面工作中使用稳健标准误而不依赖预检验，因为预检验可能引入预检验偏差；许多实践者无论检验结果如何都报告稳健标准误，因为当检验可能缺乏功效时，不拒绝只是弱证据。<sup>[20](https://pspedding.github.io/econ-course-2027/modules/module-06/M06.L02-testing-heteroskedasticity/)</sup><sup> • </sup><sup>[11](https://phucnguyenvan.com/econometrics_atlas/concept/efm-heteroskedasticity-tests)</sup>

## References

1. [Breusch, T. and Pagan, A. (1979). A Simple Test for Heteroscedasticity and Random Coefficient Variation. Econometrica.](https://www.econometricsociety.org/publications/econometrica/1979/09/01/simple-test-heteroscedasticity-and-random-coefficient-variation)
2. [A Guide on Data Analysis — Heteroskedasticity Tests](https://bookdown.org/mike/data_analysis/heteroskedasticity-tests.html)
3. [Escobari, D. Chapter 8: Heteroscedasticity (undergraduate econometrics handout, UTRGV)](https://faculty.utrgv.edu/diego.escobari/teaching/Econ3341/Handouts/Chapter08.pdf)
4. [Run Breusch–Pagan Test (Heteroskedasticity) Calculator, MetricGate](https://metricgate.com/calculator/breusch-pagan-test)
5. [Breusch-Pagan Test, panelbox documentation](https://panelbox.readthedocs.io/en/latest/diagnostics/heteroskedasticity/breusch-pagan/)
6. [Breusch-Pagan Heteroskedasticity Test, QuantVault](https://quantvault.org/problem-1920-breusch-pagan-heteroskedasticity-test.html)
7. [R: Breusch-Pagan Test for Heteroskedasticity in a Linear Regression Model (skedastic), CRAN](https://search.r-project.org/CRAN/refmans/skedastic/html/breusch_pagan.html)
8. [ENH: Add option for original Breusch-Pagan heteroscedasticity test, statsmodels PR 6508](https://github.com/statsmodels/statsmodels/pull/6508)
9. [The Inconsistency of the Breusch-Pagan Test, RePEc working paper](https://ideas.repec.org/p/wpa/wuwpem/0205001.html)
10. [Breusch-Pagan Test for Heteroscedasticity: Logic, Worked Example, and the Robust-SE Fix, CASRAI](https://www.casrai.org/guides/breusch-pagan-test-heteroscedasticity)
11. [Testing for Heteroskedasticity: Breusch-Pagan and White, Financial Modelling Atlas](https://phucnguyenvan.com/econometrics_atlas/concept/efm-heteroskedasticity-tests)
12. [Dufour, Khalaf, Bernard & Genest (2004). Journal of Econometrics, simulation-based heteroskedasticity tests](https://www2.cirano.qc.ca/~dufourj/Web_Site/Dufour_Khalaf_Bernard_Genest_2004_JE_HeteroskedasticityTests.pdf)
13. [Investigating Performances of Some Statistical Tests for Heteroscedasticity Assumption in Generalized Linear Model, SCIRP](https://www.scirp.org/html/6-1241337_100665.htm)
14. [The Lagrange multiplier test and its applications to model specification in econometrics, UTS OPUS](https://opus.lib.uts.edu.au/handle/10453/13938)
15. [β-score LM tests for heteroscedasticity in linear regression models, arXiv (2023)](https://export.arxiv.org/pdf/2301.07245v1.pdf)
16. [PROC MODEL: Heteroscedasticity, SAS/ETS 9.2 User's Guide](https://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect043.htm)
17. [statsmodels/stats/diagnostic.py source code](https://github.com/statsmodels/statsmodels/blob/main/statsmodels/stats/diagnostic.py)
18. [Susmel, R. Financial Econometrics Lecture 7: Heteroscedasticity, University of Houston](https://bauer.uh.edu/rsusmel/4397/fec-7-b.pdf)
19. [Quant1 Lecture 7 (R demonstration), Klein](https://klein.uk/teaching/quant1/docs/Lecture7.html)
20. [Testing for Heteroskedasticity: BP vs White, econometrics course module](https://pspedding.github.io/econ-course-2027/modules/module-06/M06.L02-testing-heteroskedasticity/)
21. [Statistical tests, Econometrics reference text](https://ebrary.net/1017/economics/statistical_tests)
22. [Breusch-Pagan Test: A Comprehensive Evaluation of Its Performance Using Monte Carlo Simulations, FUDMA Journal of Sciences](https://fjs.fudutsinma.edu.ng/index.php/fjs/article/view/2826)
23. [A Monte Carlo investigation of the power of White and Breusch-Pagan tests, IPB thesis repository](https://repository.ipb.ac.id/handle/123456789/14884)
24. [statsmodels.stats.diagnostic.het_breuschpagan, official documentation](https://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.het_breuschpagan.html)
25. [Properties of the LM test, ANU open research repository](https://openresearch-repository.anu.edu.au/bitstreams/87765a5d-da36-44a4-999a-7a20302c9ed5/download)
26. [Heteroscedasticity in R: Detect It and Fix It, r-statistics.co](https://r-statistics.co/Heteroscedasticity-in-R.html)
27. [Chapter 5 Variable Selection, Regression Modeling with Actuarial and Financial Applications](https://users.ssc.wisc.edu/~ewfrees/ActuarialRegression2009/C5VarSelect.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 19, 2026; Oct 10, 2026 · Edited: Sep 19, 2026; Oct 10, 2026; Oct 11, 2026 · Last review: Oct 10, 2026*

Topic: 社会与历史 › 经济与商业 › 经济学 › Economic theory and methods › Econometrics and quantitative methods › Linear regression and OLS in econometrics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/breusch-pagan-test

English original: https://www.edgepedia.org/breusch-pagan-test
