# 协整检验

协整检验是一种统计程序，用于判断两个或多个非平稳时间序列是否共享长期均衡关系，也就是说，尽管每个序列单独而言都是非平稳的，但它们的某个线性组合是平稳的。这类检验之所以重要，是因为大多数宏观经济和金融水平数据都是非平稳的，若在没有协整的情况下将一个此类序列对另一个做回归，会产生无意义的所谓伪结果。在恩格尔–格兰杰（Engle–Granger）类型的基于残差的检验中，原假设是序列不存在协整；在约翰森（Johansen）框架中，原假设是协整秩等于某个指定值r。

| 关键事实 | 细节 |
|---|---|
| 定义 | 若存在向量β，使得β′\( Y_{\mathrm{t}} \)为I(0)，即I(1)序列的平稳组合，则称这些序列协整 <sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup> |
| 原假设（恩格尔–格兰杰） | 无协整，等价于协整残差为I(1) <sup>[2](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)</sup> |
| 约翰森统计量 | 迹检验：\( -T \sum_{i=r+1}^{n} \ln(1-\hat{\lambda}_{i}) \)；最大特征值检验：\( LR_{\max}(r_{0}) = -T \ln(1-\hat{\lambda}_{r_{0}+1}) \) <sup>[3](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1987/preprint_1987_-_no_7_johansen__s_ren_-_statistical_analysis_of_cointegration_vectors.pdf)</sup><sup> • </sup><sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup> |
| 最大秩 | 当有n个序列时，长期影响矩阵Π = αβ′的秩为r < n，而r就是协整关系的个数 <sup>[4](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)</sup> |
| 临界值 | 标准迪基–富勒（Dickey–Fuller）表不适用；对恩格尔–格兰杰检验使用麦金农（MacKinnon）响应面，对约翰森检验使用奥斯特瓦尔德-莱努姆（Osterwald-Lenum）表或约翰森–尤塞柳斯（Johansen–Juselius）表 <sup>[2](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)</sup><sup> • </sup><sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup> |
| 主要小样本风险 | 在近单整数据下，名义5%水平上，伪拒绝率可接近20%（最大特征值检验）和40%（迹检验） <sup>[4](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)</sup> |

## 如何运作

经济水平序列常常是I(1)：只有差分之后才平稳。然而，两个I(1)序列可能如此紧密地共同变动，以至于某个固定加权组合——例如价差，或与汇率一致的价格比率——保持平稳。恩格尔和格兰杰把水平的这种平稳组合称为“均衡误差”，而一个协整系统具有误差修正表示，描述经济如何消除该误差。<sup>[5](https://www.nber.org/system/files/working_papers/w2568/w2568.pdf)</sup>

约翰森方法在一个向量误差修正模型中将其形式化：\( \Delta X_{t} = \mu + \Pi X_{t-1} + \sum C_{i} \Delta X_{t-i} + \varepsilon_{t} \)，其中长期影响矩阵\( \Pi \)承载协整信息。若Π的秩为r < n，则可分解为Π = αβ′，其中β的每一列是一个协整向量，α包含调整参数；r是协整关系的个数。<sup>[4](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)</sup>

## 如何操作

**恩格尔–格兰杰两步法。** 首先用OLS将一个I(1)变量对其余变量做协整回归，得到系数向量，并计算残差。其次，用迪基–富勒型程序检验残差是否为I(1)；无协整的原假设对应于残差为I(1)，拒绝它则支持协整。<sup>[2](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)</sup> 另外，当β未知时，恩格尔–格兰杰两步误差修正估计量先用OLS估计β，然后作为第二步，拟合包含估计出的协整残差的误差修正模型；这一估计程序不同于上文所述的基于残差的迪基–富勒检验。<sup>[6](https://www.eia.gov/analysis/handbook/pdf/Handbook_of_Methods_Part%20B_Cointegration_Analysis.pdf)</sup>

**约翰森程序。** 在将有限阶高斯向量自回归改写为向量误差修正模型后，降秩程序得到的广义特征值\(\hat{\lambda}_{1} > \cdots > \hat{\lambda}_{n}\)，是\(\Delta Y_{t}\)与\(Y_{t-1}\)之间经滞后差分和确定性项校正后的平方典型相关；它们不是\(\Pi\)本身的特征值。<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup> β的最大似然估计来自回归后的\( \Delta X_{t} \)与\( X_{t-k} \)的残差之间的这些典型变量。<sup>[3](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1987/preprint_1987_-_no_7_johansen__s_ren_-_statistical_analysis_of_cointegration_vectors.pdf)</sup> 迹检验考察\( H_{0}(r) \)：\( r = r_{0} \)对\( r > r_{0} \)；最大特征值检验考察\( r_{0} \)对\( r_{0} + 1 \)。<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup><sup> • </sup><sup>[4](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)</sup> 序贯程序从\( H_{0}(r_{0} = 0) \)对\( H_{1}(r_{0} > 0) \)开始，持续到某个原假设未被拒绝为止，从而一致地确定协整向量的个数。<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup>

**临界值。** 这里的恩格尔–格兰杰统计量和迪基–富勒统计量，无论在有限样本还是渐近情形下，都不服从任何标准表列分布。<sup>[2](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)</sup> 麦金农为恩格尔–格兰杰检验提供了响应面临界值，并提供了一个可计算任意水平的渐近和有限样本临界值与P值的程序。<sup>[2](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)</sup><sup> • </sup><sup>[7](https://doi.org/10.1002/%28sici%291099-1255%28199611%2911:6)</sup> 对约翰森检验，奥斯特瓦尔德-莱努姆（1992）给出了五种趋势情形和n − \( r_{0} \) = 1,...,10的临界值表<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup>，后来工作给出了更精确的估计。<sup>[8](http://qed.econ.queensu.ca/pub/faculty/mackinnon/papers/ecm-final.pdf)</sup>

## 起源

协整框架、两步估计量和基于残差的检验，由罗伯特·F·恩格尔（Robert F. Engle）和C. W. J. 格兰杰（C. W. J. Granger）在1987年《计量经济学》（Econometrica）论文《协整与误差修正：表示、估计与检验》（Co-Integration and Error Correction: Representation, Estimation, and Testing）中提出；该文证明了误差修正表述与协整的等价性，提出了两步估计量，并建议了通过蒙特卡洛模拟考察的检验。<sup>[9](https://doi.org/10.2307/1913236)</sup><sup> • </sup><sup>[10](https://web.math.ku.dk/~susanne/Klimamode/OverviewCointegration.pdf)</sup> 误差修正模型本身早于这一术语。<sup>[5](https://www.nber.org/system/files/working_papers/w2568/w2568.pdf)</sup> 最大似然方法用于估计协整向量。<sup>[3](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1987/preprint_1987_-_no_7_johansen__s_ren_-_statistical_analysis_of_cointegration_vectors.pdf)</sup><sup> • </sup><sup>[11](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1988/preprint_1988_-_no._2_johansen__s_ren_and_juselius__katarina_-_hypothesis_testing_for_cointegration_vec---.pdf)</sup>

## 变体

三类一般方法占主导：单方程静态回归（恩格尔–格兰杰）、向量自回归（约翰森），以及菲利普斯–萨根（Phillips–Sargan）传统中的单方程条件误差修正模型。<sup>[8](http://qed.econ.queensu.ca/pub/faculty/mackinnon/papers/ecm-final.pdf)</sup> 基于残差的渐近理论：其Z(α)和Z(t)检验，以及对估计残差应用的ADF检验，其分布是维纳过程的函数，称为菲利普斯–乌利亚里斯（Phillips–Ouliaris）分布。<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup><sup> • </sup><sup>[12](https://users.ssc.wisc.edu/~behansen/papers/joe_92a.pdf)</sup>

格雷戈里和汉森（Gregory and Hansen）提出ADF型、\( Z_{\alpha} \)型和\( Z_{t} \)型残差检验，以无协整为原假设，以存在可能伴随机制转换的协整为备择假设，允许截距和/或斜率发生移动。<sup>[13](https://www.sciencedirect.com/science/article/pii/0304407669416857)</sup> 佩萨兰、申和史密斯（Pesaran, Shin, and Smith）的ARDL边界检验处理回归元是趋势平稳还是一阶差分平稳未知的情形，在一阶差分回归中对滞后水平使用标准F和t统计量。<sup>[14](https://doi.org/10.17863/cam.5093)</sup> 对面板数据，韦斯特伦德（Westerlund）的四个基于误差修正的检验将该思想推广到按截面索引的数据。<sup>[15](https://doi.org/10.1111/j.1468-0084.2007.00477.x)</sup>

## 局限与替代方案

**近单整数据。** 如果数据是近单整的，即根小于1，则增广恩格尔–格兰杰检验会过度拒绝，因为即使不存在协整，残差也不含单位根。<sup>[16](https://www.federalreserve.gov/pubs/ifdp/2007/907/ifdp907.htm)</sup> 在双变量系统中，名义5%水平上，最大特征值检验的伪拒绝率可接近20%，迹检验可接近40%，且拒绝频率随变量个数增加而上升。<sup>[4](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)</sup> 用保守估计替代未知局部单位根的邦费罗尼校正可恢复有效推断，但其功效随误差项持续性的增强而单调下降。<sup>[16](https://www.federalreserve.gov/pubs/ifdp/2007/907/ifdp907.htm)</sup>

**结构突变与误分类。** 在长期关系发生结构变化时，标准基于残差的检验会损失功效并扭曲水平。<sup>[17](https://link.springer.com/article/10.1007/s10260-014-0253-z)</sup> 基于单变量的统计量，如菲利普斯的\( Z_{\alpha} \)和\( Z_{t} \)及其格雷戈里–汉森推广，在用于检验多变量协整假设时会遇到问题，而最大似然系统程序不施加公因子约束，可能具有更合意的性质；如果突变发生在协整向量本身，昆托斯和菲利普斯（Quintos and Phillips）的拉格朗日乘数统计量可能有助于检测它们。<sup>[18](https://ora.ox.ac.uk/objects/uuid:a109c21e-9e60-4438-8aa6-37fbf92e3d3b/files/m00e87cb41f998b962c8e39581417a1e3)</sup> 当单位根检验错误地将平稳序列归类为I(1)时，约翰森LR检验倾向于发现过多伪协整，而恩格尔–格兰杰检验在渐近和有限样本下都更稳健。<sup>[19](https://faculty.ucr.edu/~taelee/paper/fijas.pdf)</sup> 对I(2)数据，需要新的临界值表来控制检验水平。<sup>[20](https://www.cambridge.org/core/journals/econometric-theory/article/abs/stastistical-analysis-of-cointegration-for-i2-variables/5E6F0AF580F599584EE974178F2AD055)</sup>

**选择检验。** 当回归元的单整阶数不确定时，ARDL边界检验是自然选择：它的两组渐近临界值——一组假设所有回归元为I(1)，另一组假设所有回归元为I(0)——形成一个区间，覆盖归入I(0)、I(1)或相互协整的每一种分类；该检验曾在英国财政部（UK Treasury）模型的收入方程上演示，其中失业率的单整阶数不确定。<sup>[14](https://doi.org/10.17863/cam.5093)</sup> 约翰森的系统方法适合多变量秩问题，且不需要预先指定单个协整向量；在一项跨国比较中，恩格尔–格兰杰给出不确定的结果，而约翰森检验除德国（Germany）外对所有国家都发现至少一个协整关系。<sup>[21](https://mpra.ub.uni-muenchen.de/75967/1/MPRA_paper_75967.pdf)</sup> 使用预先指定协整向量的检验，通常比使用估计向量的检验功效高得多。<sup>[1](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)</sup>

## References

1. [Cointegration (lecture notes, Eric Zivot, Econ 584, University of Washington)](https://faculty.washington.edu/ezivot/econ584/notes/cointegration.pdf)
2. [Critical Values for Cointegration Tests (MacKinnon, QED working paper 1227)](http://qed.econ.queensu.ca/working_papers/papers/qed_wp_1227.pdf)
3. [Statistical Analysis of Cointegration Vectors (Johansen, 1987 preprint)](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1987/preprint_1987_-_no_7_johansen__s_ren_-_statistical_analysis_of_cointegration_vectors.pdf)
4. [Testing for Cointegration Using the Johansen Methodology when Variables are Near-Integrated (Federal Reserve Board IFDP 915)](https://www.federalreserve.gov/pubs/ifdp/2007/915/ifdp915.pdf)
5. [NBER Working Paper 2568 (Campbell & Shiller, April 1988)](https://www.nber.org/system/files/working_papers/w2568/w2568.pdf)
6. [Handbook of Methods, Part B: Unit Roots and Cointegration Analysis (U.S. Energy Information Administration)](https://www.eia.gov/analysis/handbook/pdf/Handbook_of_Methods_Part%20B_Cointegration_Analysis.pdf)
7. [(sici)1099 1255(199611)11:6 (doi.org)](https://doi.org/10.1002/%28sici%291099-1255%28199611%2911:6)
8. [Distributions of error correction tests for cointegration (MacKinnon et al., Econometrics Journal)](http://qed.econ.queensu.ca/pub/faculty/mackinnon/papers/ecm-final.pdf)
9. [Robert F. Engle, C. W. J. Granger (1987). Co-Integration and Error Correction: Representation, Estimation, and Testing. Econometrica.](https://doi.org/10.2307/1913236)
10. [Cointegration: an overview (Søren Johansen, University of Copenhagen)](https://web.math.ku.dk/~susanne/Klimamode/OverviewCointegration.pdf)
11. [Hypothesis Testing for Cointegration Vectors, with Application to the Demand for Money in Denmark and Finland (Johansen & Juselius, 1988)](https://www.math.ku.dk/bibliotek/arkivet/preprints-fra-ims/1988/preprint_1988_-_no._2_johansen__s_ren_and_juselius__katarina_-_hypothesis_testing_for_cointegration_vec---.pdf)
12. [Efficient estimation and testing of cointegrating vectors in the presence of deterministic trends (Hansen, Journal of Econometrics 1992)](https://users.ssc.wisc.edu/~behansen/papers/joe_92a.pdf)
13. [Residual-based tests for cointegration in models with regime shifts (Gregory–Hansen, Journal of Econometrics)](https://www.sciencedirect.com/science/article/pii/0304407669416857)
14. [Pesaran, M. Hashem, Shin, Yongcheol, Smith, Richard J. (1999). Bounds Testing Approaches to the Analysis of Long-run Relationships. RePEc: Research Papers in Economics.](https://doi.org/10.17863/cam.5093)
15. [Joakim Westerlund (2007). Testing for Error Correction in Panel Data*. Oxford Bulletin of Economics and Statistics.](https://doi.org/10.1111/j.1468-0084.2007.00477.x)
16. [A Residual-Based Cointegration Test for Near Unit Root Variables (Federal Reserve Board IFDP 907)](https://www.federalreserve.gov/pubs/ifdp/2007/907/ifdp907.htm)
17. [Cointegration testing under structural change: reducing size distortions and improving power of residual based tests (Statistical Methods & Applications)](https://link.springer.com/article/10.1007/s10260-014-0253-z)
18. [Testing for a long-run relationship: a note on breaks and systems versus conditional modeling (Oxford research archive)](https://ora.ox.ac.uk/objects/uuid:a109c21e-9e60-4438-8aa6-37fbf92e3d3b/files/m00e87cb41f998b962c8e39581417a1e3)
19. [Spurious cointegration when tests wrongly indicate I(1): Johansen versus Engle-Granger performance (UC Riverside)](https://faculty.ucr.edu/~taelee/paper/fijas.pdf)
20. [A Statistical Analysis of Cointegration for I(2) Variables (Econometric Theory)](https://www.cambridge.org/core/journals/econometric-theory/article/abs/stastistical-analysis-of-cointegration-for-i2-variables/5E6F0AF580F599584EE974178F2AD055)
21. [Stationarity and cointegration tests: Comparison of Engle-Granger and Johansen methodologies (MPRA)](https://mpra.ub.uni-muenchen.de/75967/1/MPRA_paper_75967.pdf)

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

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