# 豪斯曼检验

豪斯曼检验是计量经济学中的一种统计设定检验，它将在原假设下有效的估计量与在原假设和备择假设下均一致的估计量进行比较，当两个估计值的差异超出抽样误差所允许的范围时拒绝原假设。其最广为人知的用途是在固定效应与随机效应面板模型之间进行选择，以及在工具变量模型中对回归变量进行内生性检验。<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup><sup> • </sup><sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup> 它属于检验假定模型是否与数据相容的设定检验这一大类，在问世近五十年后仍被常规应用于实证研究。<sup>[3](https://www.mdpi.com/2225-1146/11/4/23)</sup>

| 关键事实 | 详情 |
|---|---|
| 比较对象 | 在\( H_{0} \)下有效的估计量（如随机效应广义最小二乘法（GLS）、普通最小二乘法（OLS））与在两种假设下均一致的估计量（如固定效应、两阶段最小二乘法（2SLS））<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup> |
| 统计量 | \( H = (\hat{\beta}_{c} - \hat{\beta}_{e})^{\top} (V_{c} - V_{e})^{-1} (\hat{\beta}_{c} - \hat{\beta}_{e}) \)<sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup> |
| 原假设分布 | 渐近中心\( \chi^{2} \)分布，自由度等于方差差的秩<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup><sup> • </sup><sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup> |
| 面板假设 | \( H_{0} \)：个体效应与回归变量不相关（随机效应有效）；\( H_{1} \)：随机效应估计量不一致<sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2104.07723)</sup> |
| 关键要求 | 一个估计量必须在\( H_{0} \)下有效；此时差的方差等于方差之差<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup> |
| 主要失效模式 | 方差差非正定、统计量为负、异方差和聚类下失效<sup>[3](https://www.mdpi.com/2225-1146/11/4/23)</sup><sup> • </sup><sup>[6](https://ideas.repec.org/a/jns/jbstat/v228y2008i4p394-405.html)</sup> |
| 面板首选计算方式 | 辅助回归（蒙德拉克式）形式，可完全避免正定性问题<sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup> |

## 原理

其逻辑基于同一系数向量的两个估计量之间的不对称性。在正确设定的原假设下，一个估计量（记为\( \hat{\beta}_{e} \)）是渐近有效的，另一个（\( \hat{\beta}_{c} \)）是一致的但通常无效。在备择假设下，有效估计量不再一致，因此两个估计值出现分歧。豪斯曼的关键引理是：在原假设下，有效估计量与估计量之差具有零渐近协方差，因此差的方差就是方差之差：\( V(q) = V(\hat{\beta}_{c}) - V(\hat{\beta}_{e}) \)，其中\( q = \hat{\beta}_{e} - \hat{\beta}_{c} \)。<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup>

检验统计量为二次型\( m = q^{\top} \hat{V}(q)^{-1} q \)，在原假设下渐近服从中心\( \chi^{2} \)分布，自由度为\( K \)，即被比较的参数个数；局部功效由非中心\( \chi^{2} \)近似。<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup> 自由度等于方差矩阵之差的秩，当该差为正定时即为两个模型中共同系数的个数。<sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup>

## 操作步骤

在Stata等软件中，步骤为：先拟合始终一致的估计量，用`estimates store`储存结果，再拟合在\( H_{0} \)下有效的估计量，然后运行`hausman consistent efficient`。该检验不能用于使用概率权重的估计量或聚类数据，因为聚类违反了方差差恒等式所依赖的有效性假设。<sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup>

面板统计量的计算方式比用户通常以为的更为重要。勒加洛和塞内加斯表明，由普通最小二乘法（OLS）估计的准去均值模型计算出的统计量——这是最常见的软件默认做法——在有限样本中不如基于将可行广义最小二乘法应用于未变换随机效应模型的版本可靠，而且即使横截面维度很大，两者也可能导致相反的结论。<sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup>

## 起源

该检验由J. A. 豪斯曼在《计量经济学中的设定检验》（《计量经济学》，1978年）中提出。<sup>[1](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)</sup> 其基本思想——当模型正确设定时，两个一致估计量应当一致——由J. 德宾在1954年发表的《变量中的误差》中提出。<sup>[7](https://doi.org/10.2307/1401917)</sup> 爱丽丝·中村和中村正夫于1981年在《论德宾、吴和豪斯曼提出的几种设定误差检验之间的关系》（《计量经济学》）中证明，豪斯曼统计量等价于德宾（1954年）和吴（1973年、1974年）提出的统计量。<sup>[8](https://doi.org/10.2307/1911420)</sup> 这种共同的渊源正是该检验常被称为德宾–吴–豪斯曼检验的原因。<sup>[3](https://www.mdpi.com/2225-1146/11/4/23)</sup>

## 变体

带有不可观测个体效应模型的面板扩展，包括检验的回归格式版本，由杰里·A. 豪斯曼和威廉·E. 泰勒在《面板数据与不可观测个体效应》（《计量经济学杂志》，1981年）中提出。<sup>[9](https://doi.org/10.1016/0304-4076%2881%2990085-3)</sup> 在这种形式中，一个等价的检验是在辅助回归中对\( \gamma = 0 \)的沃尔德检验，该辅助回归将回归变量的组均值加入模型，即蒙德拉克式表述；勒加洛和塞内加斯表明，这一辅助回归统计量等价于通过组间和组内估计量表达的豪斯曼统计量，不受正定性问题的影响，并且可以对未知形式的异方差保持稳健。<sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup>

其他有名称的变体包括：李奇和萨纳西斯·斯滕戈斯基于根号N一致半参数估计量提出的半参数版本（《经济学快报》，1992年），<sup>[10](https://doi.org/10.1016/0165-1765%2892%2990213-i)</sup> 安承哲和斯图尔特·洛为混合截面时间序列数据提出的重新表述（《计量经济学杂志》，1996年），<sup>[11](https://doi.org/10.1016/0304-4076%2894%2901707-7)</sup> R. 凯利·佩斯和詹姆斯·P. 勒萨日提出的空间豪斯曼检验（《经济学快报》，2008年），<sup>[12](https://doi.org/10.1016/j.econlet.2008.09.003)</sup> 洪镇勇和杰里·豪斯曼提出的工具变量有效性设定检验（《计量经济学》，2002年），<sup>[13](https://doi.org/10.1111/1468-0262.00272)</sup> 以及克里斯蒂安·汉森、杰里·豪斯曼和惠特尼·纽维提出的多工具变量估计与检验（《商业与经济统计杂志》，2008年）。<sup>[14](https://doi.org/10.1198/073500108000000024)</sup>

## 应用

豪斯曼–麦克法登检验用于多项逻辑模型中无关备择独立性（IIA）假设的检验，由杰里·豪斯曼和丹尼尔·麦克法登在《多项逻辑模型的设定检验》（《计量经济学》，1984年）中提出，它比较来自备择选项子集的参数估计与来自完整选择集的参数估计。<sup>[15](https://doi.org/10.2307/1910997)</sup><sup> • </sup><sup>[16](https://docs.iza.org/dp5826.pdf)</sup> 豪斯曼和哈谢姆·佩萨兰于1983年证明，非嵌套模型的J检验本身就是一个豪斯曼设定检验。<sup>[17](https://doi.org/10.1016/0165-1765%2883%2990049-6)</sup>

## 局限与替代方案

经典统计量的阿喀琉斯之踵是方差差\( V_{c} - V_{e} \)，它常常奇异或非正定，此时需要广义逆；Stata使用穆尔–彭罗斯逆，而广义逆的选择在渐近意义上并不重要。<sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup> “增广回归”方法正是为绕过这一奇异性而发展起来的。<sup>[3](https://www.mdpi.com/2225-1146/11/4/23)</sup>

第二种失效模式是异方差：当误差存在异方差时，差的方差等于方差之差这一便利恒等式不再成立，而异方差在横截面研究中是常见的，因此经典统计量对应的检验水平不正确。<sup>[3](https://www.mdpi.com/2225-1146/11/4/23)</sup>

统计量为负是第三个问题。Stata手册将负卡方视为渐近假设在有限样本中的失效。<sup>[4](https://www.stata.com/manuals14/rhausman.pdf)</sup> 然而，已发表的研究表明，在备择假设下，即使在渐近意义上，统计量也可能为负，因此在大样本中负结果只与备择假设相容。<sup>[6](https://ideas.repec.org/a/jns/jbstat/v228y2008i4p394-405.html)</sup> 补救措施包括取绝对值（不改变原假设分布），以及更可取地，在原假设和备择假设下施加相同的残差方差估计。<sup>[6](https://ideas.repec.org/a/jns/jbstat/v228y2008i4p394-405.html)</sup> 在工具变量应用中，对两个估计量使用特质误差方差的共同估计有助于确保协方差矩阵对称正定。<sup>[2](https://www.mdpi.com/2225-1146/11/4/25)</sup>

在斯泰格–斯托克渐近框架下存在弱工具变量时，标准检验也失效；存在一个在弱工具变量下有效的修正版本，但不具有一致性。<sup>[18](https://ideas.repec.org/a/eee/econom/v160y2011i2p289-299.html)</sup>

蒙德拉克检验是面板工作中最接近的实用替代方案：它检验与豪斯曼检验相同的假设，但只需要随机效应估计量，始终产生正的统计量，与稳健标准误兼容，并通过组均值系数识别内生性的来源。<sup>[19](https://panelbox.readthedocs.io/en/latest/diagnostics/specification/hausman/)</sup> 面板豪斯曼检验的野自助法方法在横截面或时间异方差以及非齐次序列相关下仍然有效，蒙特卡洛证据表明它在小样本中优于基于\( \chi^{2} \)临界值的推断。<sup>[20](https://www.econstor.eu/bitstream/10419/22045/1/EWP-2007-29.pdf)</sup> 面板数据模型中检验的自助法版本由韦利米尔·博莱和彼得·雷贝茨研究（《统计学通讯——模拟与计算》，2012年），<sup>[21](https://doi.org/10.1080/03610918.2011.650261)</sup> 而超越随机截距模型的聚类层面内生性的自助法豪斯曼检验由沃特·塔洛恩、汤姆·洛伊思和贝亚特丽斯·莫尔克克提出（《多变量行为研究》，2019年）。<sup>[22](https://doi.org/10.1080/00273171.2018.1482192)</sup>

## References

1. [Specification Tests in Econometrics (J. A. Hausman, Econometrica, Vol. 46, No. 6, Nov. 1978, pp. 1251-1271)](https://www.jayskaufman.com/uploads/3/0/8/9/30891283/hausman_1978.pdf)
2. [On the Proper Computation of the Hausman Test Statistic in Standard Linear Panel Data Models: Some Clarifications and New Results (Le Gallo & Sénégas, Econometrics, 2023, 11(4):25)](https://www.mdpi.com/2225-1146/11/4/25)
3. [A New Matrix Statistic for the Hausman Endogeneity Test under Heteroskedasticity (Econometrics, MDPI, 2023, 11(4):23)](https://www.mdpi.com/2225-1146/11/4/23)
4. [Stata documentation: hausman, Hausman specification test](https://www.stata.com/manuals14/rhausman.pdf)
5. [A robust specification test in linear panel data models (arXiv preprint)](https://ar5iv.labs.arxiv.org/html/2104.07723)
6. [The Hausman Test Statistic can be Negative even Asymptotically (Journal of Business & Economic Statistics, 2008)](https://ideas.repec.org/a/jns/jbstat/v228y2008i4p394-405.html)
7. [J. Durbin (1954). Errors in Variables. Revue de l Institut International de Statistique / Review of the International Statistical Institute.](https://doi.org/10.2307/1401917)
8. [Alice Nakamura, Masao Nakamura (1981). On the Relationships Among Several Specification Error Tests Presented by Durbin, Wu, and Hausman. Econometrica.](https://doi.org/10.2307/1911420)
9. [Panel data and unobservable individual effects (Journal of Econometrics, 1981)](https://doi.org/10.1016/0304-4076%2881%2990085-3)
10. [A Hausman specification test based on root-N-consistent semiparametric estimators (Economics Letters, 1992)](https://doi.org/10.1016/0165-1765%2892%2990213-i)
11. [A reformulation of the Hausman test for regression models with pooled cross-section-time-series data (Journal of Econometrics, 1996)](https://doi.org/10.1016/0304-4076%2894%2901707-7)
12. [R. Kelley Pace, James P. LeSage (2008). A spatial Hausman test. Economics Letters.](https://doi.org/10.1016/j.econlet.2008.09.003)
13. [Jinyong Hahn, Jerry Hausman (2002). A New Specification Test for the Validity of Instrumental Variables. Econometrica.](https://doi.org/10.1111/1468-0262.00272)
14. [Christian Hansen, Jerry Hausman, Whitney Newey (2008). Estimation With Many Instrumental Variables. Journal of Business and Economic Statistics.](https://doi.org/10.1198/073500108000000024)
15. [Jerry Hausman, Daniel McFadden (1984). Specification Tests for the Multinomial Logit Model. Econometrica.](https://doi.org/10.2307/1910997)
16. [Testing for IIA with the Hausman-McFadden Test (Weesie, IZA Discussion Paper 5826)](https://docs.iza.org/dp5826.pdf)
17. [The J-test as a Hausman specification test (Economics Letters, 1983)](https://doi.org/10.1016/0165-1765%2883%2990049-6)
18. [The Hausman test and weak instruments (Journal of Econometrics, vol. 160, issue 2, 2011)](https://ideas.repec.org/a/eee/econom/v160y2011i2p289-299.html)
19. [PanelBox documentation: Hausman Test](https://panelbox.readthedocs.io/en/latest/diagnostics/specification/hausman/)
20. [A robust bootstrap approach to the Hausman test in stationary panel data models (Economics Working Paper 2007-29)](https://www.econstor.eu/bitstream/10419/22045/1/EWP-2007-29.pdf)
21. [Velimir Bole, Peter Rebec (2012). Bootstrapping the Hausman Test in Panel Data Models. Communications in Statistics - Simulation and Computation.](https://doi.org/10.1080/03610918.2011.650261)
22. [Wouter Talloen, Tom Loeys, Beatrijs Moerkerke (2019). A bootstrap version of the Hausman test to assess the impact of cluster-level endogeneity beyond the random intercept model. Multivariate Behavioral Research.](https://doi.org/10.1080/00273171.2018.1482192)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 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/hausman-test

English original: https://www.edgepedia.org/hausman-test
