# 单位根检验

单位根检验是一种统计假设检验，用于时间序列分析和计量经济学中，以判定一个序列是否包含随机趋势，即是否存在单位自回归根。在标准表述中，原假设为序列包含单位根，备择假设为序列由平稳过程生成。<sup>[1](https://www.stata.com/manuals/tsdfuller.pdf)</sup> 这一区分之所以重要，是因为单位根使冲击具有永久性，改变预测的极限行为，并产生伪回归：在一个长度为100的高斯随机游走模拟中，来自无意义线性拟合的t统计量有近90%的绝对值超过2。<sup>[2](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)</sup> 对需要差分的序列进行差分至关重要；不做处理会导致非平稳序列对时间和其他非平稳序列的虚假显著回归，而不必要的差分则产生低效但仍然无偏且一致的估计。<sup>[3](https://www.tandfonline.com/doi/abs/10.1080/00031305.1986.10475349)</sup>

| 关键事实 | 详情 |
|---|---|
| 原假设 | 序列包含单位根；备择假设为平稳（可能为趋势平稳）过程<sup>[1](https://www.stata.com/manuals/tsdfuller.pdf)</sup> |
| 检验统计量 | 差分回归中滞后水平项的t统计量，与Dickey–Fuller表比较，而非t分布<sup>[2](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)</sup> |
| 临界值 | 列于Fuller（1976，第371–375页）；p值来自MacKinnon（1994）响应面<sup>[4](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2008_C_TS_UnitRootTests.pdf)</sup><sup> • </sup><sup>[5](https://doi.org/10.1080/07350015.1994.10510005)</sup> |
| 主要缺陷 | 对接近I(1)的平稳备择假设功效极低，且当误差具有负MA根时存在严重的水平扭曲<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup> |
| 反向检验 | KPSS以平稳性为原假设，与DF类检验互补<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/030440769290104Y)</sup> |
| 结构突变 | 忽略结构突变会使DF检验偏向于不拒绝<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0165176597000736)</sup> |
| 面板 | 合并N个序列可大幅提高功效；LLC的估计量方差以\( O(N^{-1}T^{-2}) \)的速率下降<sup>[9](https://homepage.ntu.edu.tw/~ntuperc/docs/publication/2002_25_Lin.pdf)</sup> |

## 工作原理

考虑原假设为φ = 1的AR(1)模型。当|φ| < 1时，OLS估计量渐近正态，但在单位根下通常的渐近理论失效：plim √T(φ̂ − 1) = 0，而T(φ̂ − 1)具有一个不依赖于\( \sigma^{2} \)但非正态的渐近分布。<sup>[4](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2008_C_TS_UnitRootTests.pdf)</sup> 等价地，在原假设下φ̂的标准误与1/n而非1/√n成比例。Dickey和Fuller的贡献在于找到并列表了φ = 1时n(φ̂ − 1)的渐近分布，因此通常的t统计量与Dickey–Fuller百分位数而非t分布进行比较。<sup>[2](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)</sup> 正态误差情形的精确临界点见于Fuller的表8.5.1和8.5.2，且对非正态误差渐近有效；联合假设的F型临界值来自1981年的后续论文。<sup>[4](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2008_C_TS_UnitRootTests.pdf)</sup>

增广版本处理序列相关。ADF检验通过纳入滞后差分项来适应一般的ARMA(p, q)误差，滞后差分项的选择使得回归误差序列不相关，检验\( y_{t} \)为I(1)的原假设对I(0)的备择假设。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup> 关键在于，滞后水平项的t统计量的渐近分布不受额外滞后回归元存在的影响，因此同样的Dickey–Fuller表适用。<sup>[4](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2008_C_TS_UnitRootTests.pdf)</sup>

## 操作方式

ADF回归通过OLS拟合\( \Delta y_{t} = \alpha + \beta y_{t-1} + \gamma t + \sum \delta_{i} \Delta y_{t-i} + \varepsilon_{t} \)，检验\( \beta = 0 \)等价于检验单位根。<sup>[1](https://www.stata.com/manuals/tsdfuller.pdf)</sup> 三个实际操作选择最为关键。

**确定性项。** Stata的dfuller通过noconstant、drift和trend选项区分无漂移随机游走、有漂移随机游走和有趋势随机游走；除漂移情形外，统计量不具有标准分布。<sup>[1](https://www.stata.com/manuals/tsdfuller.pdf)</sup> 在R的urca包中，ur.df提供type = 'none'、'drift'或'trend'，检验通常按此顺序进行。<sup>[2](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)</sup> 当备择假设为趋势平稳时遗漏时间趋势会产生渐近功效为零的检验。<sup>[10](https://eml.berkeley.edu/~mjansson/Publications/Haldrup-Jansson_2006_Palgrave.pdf)</sup>

**滞后选择。** 滞后太少会留下序列相关从而使检验产生偏差；滞后太多则损失功效。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup> Ng–Perron自顶向下规则设定上界\( p_{\max} \)，在\( p_{\max} \)处估计ADF回归，然后逐一减少滞后长度，除非最后一个滞后差分项的t统计量绝对值超过1.6。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup> ur.df中可使用AIC和BIC选择，Perron和Qu的修正AIC（MAIC）改善了Ng–Perron检验的有限样本性质。<sup>[2](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)</sup><sup> • </sup><sup>[11](https://doi.org/10.1016/j.econlet.2006.06.009)</sup>

**临界值与检验顺序。** dfuller从Fuller表中插值临界值，并从MacKinnon（1994）回归面计算p值。<sup>[1](https://www.stata.com/manuals/tsdfuller.pdf)</sup> 当检验多个单位根时，从最大合理单位根数开始的“向下”检验程序是一致的，而“向上”程序则不是。<sup>[12](https://economia.uc3m.es/jgonzalo/teaching/PhdTimeSeries/unitrootsjstock.pdf)</sup>

## 起源

该检验由David A. Dickey和Wayne A. Fuller在《具有单位根的自回归时间序列估计量的分布》（《美国统计协会杂志》，1979年）中提出。<sup>[13](https://doi.org/10.1080/01621459.1979.10482531)</sup> 他们1981年的Econometrica论文增加了似然比统计量和联合假设临界值。<sup>[14](https://doi.org/10.2307/1912517)</sup> Said和Dickey于1984年在Biometrika中将该检验扩展到未知阶数的ARMA模型，方法是用阶数随样本量增长的自回归来近似ARMA。<sup>[15](https://doi.org/10.1093/biomet/71.3.599)</sup> Phillips在《具有单位根的时间序列回归》（Econometrica，1987年）中发展了半参数框架，<sup>[16](https://doi.org/10.2307/1913237)</sup> 而Phillips和Perron的非参数检验（1986年以Cowles Foundation讨论论文795R流传）允许一大类弱相依和异质分布的数据。<sup>[17](https://ideas.repec.org/p/cwl/cwldpp/795r.html)</sup>

## 变体

**Phillips–Perron（PP）。** 使用加权估计自协方差和Newey–West方差修正对序列相关进行非参数校正，无需模型设定。<sup>[18](http://rpierse.esy.es/rpierse/files/unitroot.pdf)</sup> ADF和PP渐近等价但在有限样本中有所不同。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup>

**DF-GLS与ERS族。** Elliott、Rothenberg和Stock推导了点最优检验的渐近功效包络，并提出了DF-GLS——一种修正的Dickey–Fuller t检验，在存在未知均值或趋势时功效大幅改善。<sup>[19](https://www.econometricsociety.org/publications/econometrica/1996/07/01/efficient-tests-autoregressive-unit-root)</sup> 采用局部GLS去趋势的Ng–Perron M检验是“近乎有效的”，几乎达到功效包络。<sup>[10](https://eml.berkeley.edu/~mjansson/Publications/Haldrup-Jansson_2006_Palgrave.pdf)</sup>

**KPSS。** 反转假设：原假设为序列围绕确定性趋势平稳，表示为确定性趋势加随机游走加平稳误差，检验为随机游走方差为零的LM检验。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/030440769290104Y)</sup>

**季节性、协变量和分整检验。** Dickey–Hasza–Fuller检验处理季节单位根，HEGY允许分别检验四个季度单位根。<sup>[18](http://rpierse.esy.es/rpierse/files/unitroot.pdf)</sup> Hansen的协变量增广Dickey–Fuller（CADF）检验利用协变量提高功效，但其原假设下的分布是标准正态和Dickey–Fuller分布的凸混合，权重由\( \rho^{2} \)决定，因此常规DF临界值是保守的。<sup>[20](https://users.ssc.wisc.edu/~bhansen/papers/et_95.pdf)</sup> Dolado、Gonzalo和Mayoral的分整Dickey–Fuller（FD-F）检验对分整备择假设具有高功效，而标准DF检验虽然一致但功效通常相当低。<sup>[21](https://www.nottingham.ac.uk/research/groups/grangercentre/documents/confs/paper-harris-may-2007.pdf)</sup>

**面板检验。** 面板单位根检验合并截面时间序列数据，检验每个序列包含单位根的原假设对全部平稳的备择假设；合并t统计量渐近正态，估计量方差以\( O(N^{-1}T^{-2}) \)的速率下降，这是一种“超一致”速率。<sup>[9](https://homepage.ntu.edu.tw/~ntuperc/docs/publication/2002_25_Lin.pdf)</sup> Im–Pesaran–Shin检验是标准化的平均Dickey–Fuller面板统计量；其功效随初始条件幅度的增大而单调递减，对于典型的T和N可能非常低。<sup>[22](https://www.cambridge.org/core/journals/econometric-theory/article/abs/local-asymptotic-power-of-the-impesaranshin-panel-unit-root-test-and-the-impact-of-initial-observations/4DBA4A1094E267D5807BDE2778510834)</sup>

## 应用

Nelson和Plosser对这些检验进行了实证应用，在14个美国年度变量中有13个无法拒绝单位自回归根，其中一些变量跨越一个世纪。<sup>[12](https://economia.uc3m.es/jgonzalo/teaching/PhdTimeSeries/unitrootsjstock.pdf)</sup> 应用于相同数据，KPSS检验对许多序列无法拒绝趋势平稳性。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/030440769290104Y)</sup> 面板检验用于合并提高功效的场合：在没有个体特定效应的情况下，\( N \geq 10 \)个独立序列即可实现高功效，而标准Dickey–Fuller检验在\( T \leq 50 \)时功效较低。<sup>[9](https://homepage.ntu.edu.tw/~ntuperc/docs/publication/2002_25_Lin.pdf)</sup> 单位根检验的价值不在于揭示某种“真实关系”，而在于作为实用工具，对数据施加合理约束，并提示哪种渐近分布理论能最好地近似系数估计和检验统计量的有限样本分布。<sup>[23](https://www.journals.uchicago.edu/doi/10.1086/654163)</sup>

## 局限与替代方法

单位根检验对接近I(1)的I(0)备择假设功效极低，且随着确定性项的加入功效递减。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup> Schwert的蒙特卡洛研究记录了误差序列相关时的显著水平扭曲，尤其是根接近负一的MA误差；扭曲最小的检验是高阶自回归的Said–Dickey t检验，但长自回归会导致不可忽视的功效损失。<sup>[10](https://eml.berkeley.edu/~mjansson/Publications/Haldrup-Jansson_2006_Palgrave.pdf)</sup> 在大的负MA分量下，PP检验比ADF扭曲更严重。<sup>[6](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)</sup><sup> • </sup><sup>[24](https://onlinelibrary.wiley.com/doi/10.1111/1467-9892.00125)</sup> 相对于功效包络，DF t检验的渐近功效曲线在无确定性项情形下功效为二分之一时几乎等于包络，但在存在确定性均值或趋势时，通过修改确定性项的估计可以大幅改善功效。<sup>[19](https://www.econometricsociety.org/publications/econometrica/1996/07/01/efficient-tests-autoregressive-unit-root)</sup>

结构突变是另一个失效模式。Perron表明，当序列围绕含有结构突变的趋势平稳时，单位根检验偏向于接受单位根的错误原假设；平稳性检验则呈镜像，忽略存在的突变时偏向于拒绝平稳性的原假设。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0165176597000736)</sup> 其机制是水平偏移使第一个自回归系数的MLE渐近偏向于1。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0378375811003065)</sup> 将突变日期视为未知时，仅在备择假设下允许突变而在原假设下不允许的常见设计非常严格，可能导致误导性结果。<sup>[26](https://www.mdpi.com/2225-1146/5/1/5)</sup>

KPSS类检验有其自身的失效模式：在强自相关下大量过度拒绝，且判别力远低于最优局部趋近单位根检验。<sup>[27](https://www.princeton.edu/~umueller/stationtestP.pdf)</sup> 此外，基于最优单位根统计量的平稳性检验是相应最优单位根检验p值的一一映射，因此单独计算这样的平稳性检验不会获得额外信息。<sup>[27](https://www.princeton.edu/~umueller/stationtestP.pdf)</sup> 分整增加了模糊性：当真实过程为\( d \in (0.5, 1) \)的分整时，标准检验常常拒绝原假设，导致平稳性的误导性结论。<sup>[26](https://www.mdpi.com/2225-1146/5/1/5)</sup> Blough论证了在有限样本中检验单位根和协整的不可能性。<sup>[23](https://www.journals.uchicago.edu/doi/10.1086/654163)</sup> 直接比较确实存在，例如Diebold和Kilian（2000）以及一份纽约大学工作论文（wpa99063）使用20,000次蒙特卡洛试验比较Dickey–Fuller预检验策略与始终差分（Box–Jenkins）和从不差分，发现预检验策略在不同样本量和1至100期的预测跨度上一致优于常规差分；已发表文献还确立了在检验前预先去除线性或多项式趋势是不可取的，以及正式检验为分析者是否在自回归算子中包含单位根提供了客观指导。<sup>[3](https://www.tandfonline.com/doi/abs/10.1080/00031305.1986.10475349)</sup>

## References

1. [dfuller, Augmented Dickey–Fuller unit-root test (Stata Time-Series Reference Manual)](https://www.stata.com/manuals/tsdfuller.pdf)
2. [Testing for Unit Roots (Wharton Statistics 910 lecture notes)](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_unit_root.pdf)
3. [Unit Roots in Time Series Models: Tests and Implications (Dickey, Bell & Miller, The American Statistician 1986; Census working-paper version RR85-04)](https://www.tandfonline.com/doi/abs/10.1080/00031305.1986.10475349)
4. [Unit root tests (Dufour reference chapter)](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2008_C_TS_UnitRootTests.pdf)
5. [James G. MacKinnon (1994). Approximate Asymptotic Distribution Functions for Unit-Root and Cointegration Tests. Journal of Business and Economic Statistics.](https://doi.org/10.1080/07350015.1994.10510005)
6. [Unit Root Tests (Econ 584 lecture notes, Eric Zivot)](https://faculty.washington.edu/ezivot/econ584/notes/unitroot.pdf)
7. [Testing the null hypothesis of stationarity against the alternative of a unit root (KPSS, Journal of Econometrics 1992)](https://www.sciencedirect.com/science/article/abs/pii/030440769290104Y)
8. [On stationary tests in the presence of structural breaks (Lee, Huang, Shin, Economics Letters 1997)](https://www.sciencedirect.com/science/article/abs/pii/S0165176597000736)
9. [Panel unit root tests: Levin, Lin and Chu (Journal of Econometrics 108, 2002)](https://homepage.ntu.edu.tw/~ntuperc/docs/publication/2002_25_Lin.pdf)
10. [Improving size and power of unit root tests (Haldrup & Jansson, Palgrave Handbook survey)](https://eml.berkeley.edu/~mjansson/Publications/Haldrup-Jansson_2006_Palgrave.pdf)
11. [Pierre Perron, Zhongjun Qu (2006). A simple modification to improve the finite sample properties of Ng and Perron's unit root tests. Economics Letters.](https://doi.org/10.1016/j.econlet.2006.06.009)
12. [Unit Roots, Structural Breaks and Trends (Stock, Handbook of Econometrics chapter)](https://economia.uc3m.es/jgonzalo/teaching/PhdTimeSeries/unitrootsjstock.pdf)
13. [David A. Dickey, Wayne A. Fuller (1979). Distribution of the Estimators for Autoregressive Time Series with a Unit Root. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1979.10482531)
14. [David A. Dickey, Wayne A. Fuller (1981). Likelihood Ratio Statistics for Autoregressive Time Series with a Unit Root. Econometrica.](https://doi.org/10.2307/1912517)
15. [SAID E. SAID, DAVID A. DICKEY (1984). Testing for unit roots in autoregressive-moving average models of unknown order. Biometrika.](https://doi.org/10.1093/biomet/71.3.599)
16. [P. C. B. Phillips (1987). Time Series Regression with a Unit Root. Econometrica.](https://doi.org/10.2307/1913237)
17. [Testing for a Unit Root in Time Series Regression (Phillips & Perron, Cowles Foundation Discussion Paper 795R)](https://ideas.repec.org/p/cwl/cwldpp/795r.html)
18. [Unit Roots (lecture notes, R. Pierse)](http://rpierse.esy.es/rpierse/files/unitroot.pdf)
19. [Efficient Tests for an Autoregressive Unit Root (Elliott, Rothenberg & Stock, Econometrica 1996)](https://www.econometricsociety.org/publications/econometrica/1996/07/01/efficient-tests-autoregressive-unit-root)
20. [Rethinking the Univariate Approach to Unit Root Testing: Using Covariates to Increase Power (Bruce E. Hansen, Econometric Theory 1995)](https://users.ssc.wisc.edu/~bhansen/papers/et_95.pdf)
21. [Fractional Dickey-Fuller tests under heteroskedasticity (Granger Centre working paper)](https://www.nottingham.ac.uk/research/groups/grangercentre/documents/confs/paper-harris-may-2007.pdf)
22. [Local asymptotic power of the Im-Pesaran-Shin panel unit root test (Econometric Theory)](https://www.cambridge.org/core/journals/econometric-theory/article/abs/local-asymptotic-power-of-the-impesaranshin-panel-unit-root-test-and-the-impact-of-initial-observations/4DBA4A1094E267D5807BDE2778510834)
23. [Pitfalls and Opportunities: What Macroeconomists Should Know about Unit Roots](https://www.journals.uchicago.edu/doi/10.1086/654163)
24. [On the Size Properties of Phillips–Perron Tests (Leybourne & Newbold, Journal of Time Series Analysis 1999)](https://onlinelibrary.wiley.com/doi/10.1111/1467-9892.00125)
25. [Structural changes and unit roots in non-stationary time series (Computational Statistics & Data Analysis)](https://www.sciencedirect.com/science/article/abs/pii/S0378375811003065)
26. [Fractional Unit Root Tests Allowing for a Structural Change in Trend (Econometrics 2017)](https://www.mdpi.com/2225-1146/5/1/5)
27. [Size and power of KPSS-type tests of stationarity under high autocorrelation (Müller)](https://www.princeton.edu/~umueller/stationtestP.pdf)

---
*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/unit-root-test

English original: https://www.edgepedia.org/unit-root-test
