# 时间序列回归

时间序列回归是一种统计方法，用于对因变量与一个或多个随时间观测到的预测变量之间的关系进行建模，并明确允许误差在不同时期之间存在相依性。与横截面回归——其观测通常可被视为相互独立——不同，时间序列观测是按时间排序的随机过程的实现，几乎永远不能假定为独立，这正是应用普通最小二乘法（OLS）需要特别谨慎的原因。<sup>[1](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)</sup> 在对时间序列变量进行回归时，误差通常自身带有时间序列结构，违背了标准OLS推断所依赖的独立误差假设。<sup>[2](https://online.stat.psu.edu/stat510/Lesson08)</sup> 时间序列分析与一般多元分析的区别恰恰在于施加于观测之上的时间顺序。<sup>[3](https://public.econ.duke.edu/~boller/Econ.883/dkn_palgrave_08)</sup>

| 关键事实 | 详情 |
|---|---|
| 估计的是什么 | 因变量序列与预测变量之间随时间变化的条件关系，误差具有时间相依性<sup>[1](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)</sup> |
| 对OLS的影响 | 在序列相关下，OLS不再是最佳线性无偏估计（BLUE），其标准误和检验统计量即使在大样本下也无效<sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup> |
| 伪回归警告 | 格兰杰（Granger）和纽博尔德（Newbold）的经验法则是：若 \( R^{2} \) 大于德宾-沃森（Durbin-Watson）统计量，则提示存在伪回归<sup>[5](https://www.montana.edu/cstoddard/562/Time%20series%20notes--old%20Versions.pdf)</sup> |
| 主要修正方法 | HAC（纽维-韦斯特，Newey-West）标准误、FGLS（科克伦-奥克特，Cochrane-Orcutt；普莱斯-温斯顿，Prais-Winsten），以及带ARMA误差的回归<sup>[6](https://eml.berkeley.edu/~powell/e240b_sp06/sernotes.pdf)</sup> |
| 水平扭曲示例 | 在 \( T = 50 \) 时，OLS检验水平从 \( \rho = 0 \) 时的0.051上升至 \( \rho = 0.99 \) 时的0.407；纽维-韦斯特从0.066升至0.263<sup>[7](https://www.nber.org/system/files/working_papers/w32554/w32554.pdf)</sup> |
| 样本量指导 | 中断时间序列研究应使用至少24个数据点；采用REML配合Satterthwaite调整后，覆盖率可接近95%<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC8403376/)</sup> |
| 长期关系 | ARDL边界检验在一阶差分回归中对滞后水平项使用F统计量和t统计量，并针对I(0)和I(1)回归元设置临界值带<sup>[9](https://ideas.repec.org/p/cam/camdae/9907.html)</sup> |

## 工作原理

在序列相关下，OLS仍然无偏但不再有效，抽样方差被低估，因此t检验和F检验的推断无效。<sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup><sup> • </sup><sup>[10](http://support.sas.com/kb/60/774.html)</sup> 在合理的时间序列环境中，OLS参数估计甚至可能不一致，因此将OLS与异方差和自相关稳健（HAC）标准误相结合的推断在大样本下同样失效。<sup>[7](https://www.nber.org/system/files/working_papers/w32554/w32554.pdf)</sup>

伪回归是经典的失败模式。格兰杰和纽博尔德（1974）表明，经济变量回归若残差具有强自相关——等价于较低的德宾-沃森值——则无论观测到的 \( R^{2} \) 如何，模型都是误设的。<sup>[11](https://www.climateaudit.info/pdf/others/granger.1974.pdf)</sup> 对于两个独立的随机游走，将一个对另一个做回归，按通常的t统计量很可能产生一个“显著”的斜率，而R²和斜率估计是随机的，t统计量发散。<sup>[12](https://www.nber.org/system/files/working_papers/w9143/w9143.pdf)</sup><sup> • </sup><sup>[3](https://public.econ.duke.edu/~boller/Econ.883/dkn_palgrave_08)</sup> 非平稳性产生同一类问题：OLS估计变得不一致，自相关可能被引致，将非平稳序列相互回归会导致伪相关。<sup>[5](https://www.montana.edu/cstoddard/562/Time%20series%20notes--old%20Versions.pdf)</sup>

## 如何实施

**平稳性优先。** 在动态回归 \( y_{\mathrm{t}} = \beta_{0} + \beta_{1}x_{1,t} + \cdots + \beta_{k}x_{k,t} + \eta_{t} \) 中，其中 \( \eta_{t} \) 为ARMA过程，模型中的所有变量必须平稳才能使用通常的估计方法；非平稳变量可以改为在差分中建模，或在有效的协整或误差修正设定中建模。<sup>[13](https://math.unm.edu/~lil/Stat581/10-dynamic-regression.pdf)</sup> 格兰杰和纽博尔德建议对所有高度自相关变量取一阶差分作为临时保护措施。<sup>[11](https://www.climateaudit.info/pdf/others/granger.1974.pdf)</sup>

**设定并估计模型**，视情况选择静态、分布滞后或自回归项，滞后阶数通过AIC或BIC等准则选取。<sup>[1](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)</sup><sup> • </sup><sup>[14](https://www.statsmodels.org/stable/examples/notebooks/generated/autoregressive_distributed_lag.html)</sup>

**检验残差的自相关性。** 德宾-沃森统计量为 \( d = 2(1 - r) \)，值接近零表示正自相关，接近4表示负序列相关；德宾和沃森的边界临界值 \( d_{\mathrm{L}} \) 和 \( d_{\mathrm{U}} \) 取决于样本量、回归元个数和显著性水平。<sup>[31](https://www.oreilly.com/library/view/the-six-sigma/9780071410151/9780071410151_durbin-watson_test_bounds.html)</sup><sup> • </sup><sup>[6](https://eml.berkeley.edu/~powell/e240b_sp06/sernotes.pdf)</sup><sup> • </sup><sup>[15](https://pages.stern.nyu.edu/wgreene/Text/Edition8/PDF/M20_GREE1366_08_SE_C20.pdf)</sup> 布罗施-戈弗雷（Breusch-Godfrey）检验将OLS残差对p阶滞后值加上原始回归元做回归，并使用 \( n \cdot R^{2} \) 拉格朗日乘子统计量对AR(p)备择假设进行检验。<sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup> 当存在滞后因变量时，德宾m检验或等价的布罗施-戈弗雷检验更为可取。<sup>[16](https://www.mathworks.com/help/econ/time-series-regression-viii-lagged-variables-and-estimator-bias.html)</sup>

**选择修正方法**并重新检验。德宾-沃森检验本身的功效有限：在48点序列、真实自相关为0.2的模拟中，它在30%的运行中给出不确定结果，在63%的运行中错误地得出无自相关的结论。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC8403376/)</sup>

三类修正方法主导实践。**纽维-韦斯特类型的HAC标准误**对选定最大滞后以内的任意自相关和任意异方差具有稳健性，季度数据滞后长度至少为4、月度数据至少为12通常足够。<sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup> 其弱点是在强自回归误差下的功效和水平：纽维-韦斯特式HAC估计量不适合捕捉经济时间序列典型的自回归自相关，会产生较大的水平扭曲和功效下降。<sup>[7](https://www.nber.org/system/files/working_papers/w32554/w32554.pdf)</sup>

**FGLS方法**对模型进行变换以消除自相关。对于AR(1)误差，三种经典变体是：普莱斯-温斯顿，使用 \( \hat{\rho} = 1 - \mathrm{DW}/2 \) 并单独变换第一个观测；科克伦-奥克特，在 \( \hat{\rho} \) 和 \( \hat{\beta} \) 之间迭代而忽略第一个观测；以及德宾方法，三者具有相同的渐近性质。<sup>[6](https://eml.berkeley.edu/~powell/e240b_sp06/sernotes.pdf)</sup><sup> • </sup><sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup> FGLS点估计不必与OLS一致；当二者相似时，FGLS更可取，因为其标准误是一致的，但含滞后因变量时需要更复杂的技术。<sup>[4](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)</sup>

**带ARMA误差的回归**直接对误差过程建模，如在 \( \eta_{t} \) 为ARMA过程的动态回归中那样<sup>[13](https://math.unm.edu/~lil/Stat581/10-dynamic-regression.pdf)</sup>；迭代估计程序即归功于科克伦和奥克特（1949）的方法，重复直至估计收敛。<sup>[2](https://online.stat.psu.edu/stat510/Lesson08)</sup> 尤尔-沃克（Yule-Walker）方法是另一种对自相关OLS残差的补偿方法。<sup>[10](http://support.sas.com/kb/60/774.html)</sup>

## 起源

对时间序列之间相关性的担忧早于现代计量经济学：G·乌德尼·尤尔（G. Udny Yule）1926年发表于《皇家统计学会杂志》的论文追问为什么我们有时会在时间序列之间得到无意义的相关，这是伪回归文献的前身。<sup>[17](https://doi.org/10.2307/2341482)</sup> FGLS修正方法得名于D·科克伦（D. Cochrane）和G·H·奥克特（G. H. Orcutt）1949年发表于《美国统计学会杂志》的论文《最小二乘回归在含自相关误差项关系中的应用》<sup>[18](https://doi.org/10.1080/01621459.1949.10483290)</sup>，该文表明当时大多数经济关系表述中的误差项具有高度正自相关，并提出了一种恢复所损失的效率的尝试性程序。<sup>[18](https://doi.org/10.1080/01621459.1949.10483290)</sup> 针对计量经济学本身的伪回归警告来自C·W·J·格兰杰（C.W.J. Granger）和P·纽博尔德（P. Newbold）1974年发表于《计量经济学杂志》的论文。<sup>[19](https://doi.org/10.1016/0304-4076%2874%2990034-7)</sup> 长期关系的ARDL边界检验方法由M·哈谢姆·佩萨兰（M. Hashem Pesaran）、申容哲（Yongcheol Shin）和理查德·J·史密斯（Richard J. Smith）于1999年提出。<sup>[20](https://doi.org/10.17863/cam.5093)</sup> 相依数据的重抽样工具——相依野生自助法（dependent wild bootstrap），用于稳健推断工作，由邵晓峰（Xiaofeng Shao）在2010年发表于《美国统计学会杂志》的论文中引入。<sup>[21](https://doi.org/10.1198/jasa.2009.tm08744)</sup> 最新的里程碑是用于时间序列回归稳健推断的DURBIN程序，由理查德·T·贝利（Richard T Baillie）及其同事于2024年在《计量经济学杂志》上报告。<sup>[22](https://doi.org/10.1093/ectj/utae019)</sup>

## 变体

时间序列回归模型可以是静态的，使用同期解释变量；分布滞后的，使用滞后解释变量；自回归的，使用滞后因变量；或这些的组合，并可用于因果推断或预测。<sup>[1](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)</sup> 自回归分布滞后（ARDL）模型以解释变量的滞后项扩展自回归模型，聚焦于外生变量并从两侧选择滞后结构；单个ARDL方程实际上就是向量自回归的一行。<sup>[14](https://www.statsmodels.org/stable/examples/notebooks/generated/autoregressive_distributed_lag.html)</sup>

**ARDL边界检验**解决的是另一个问题：当不知道回归元是趋势平稳还是一阶差分平稳时，是否存在长期水平关系。<sup>[9](https://ideas.repec.org/p/cam/camdae/9907.html)</sup> 该检验在一阶差分回归中对滞后水平项的显著性使用标准F统计量和t统计量，并有两组渐近临界值——一组假定所有回归元为I(1)，一组假定所有为I(0)——形成一个覆盖I(0)、I(1)或相互协整任何分类的区间。<sup>[9](https://ideas.repec.org/p/cam/camdae/9907.html)</sup>

近期变体扩展了工具箱。一种相关的FGLS-D估计量被提出，它是FGLS的变体，使用第一阶段德宾回归。<sup>[7](https://www.nber.org/system/files/working_papers/w32554/w32554.pdf)</sup> 用于时间序列分位数回归的HAC协方差矩阵估计量是纽维-韦斯特和安德鲁斯（Andrews）估计量的分位数类比。<sup>[23](https://kuwpaper.ku.edu/2026Papers/202612.pdf)</sup> RED-LASSO估计量结合了Huber损失、重尾高频观测的截断、 \( l_{1} \) 正则化以及时变系数的去偏，达到接近最优的收敛速度，并应用于高频交易数据。<sup>[24](https://www.cambridge.org/core/journals/econometric-theory/article/robust-highdimensional-timevarying-coefficient-estimation/508DF3AFB068F35BBB401C854CE34A92)</sup>

## 应用

**计量经济学与金融学。** 时间序列分析的应用包括周期分析、季节性与季节调整、预测、动态计量经济建模和结构向量自回归。<sup>[3](https://public.econ.duke.edu/~boller/Econ.883/dkn_palgrave_08)</sup> 在预期收益具有持续性的股票收益预测回归中，以往研究中按传统标准显著的17个t统计量和 \( R^{2} \) 值中有7个在考虑伪回归偏差后不再显著。<sup>[12](https://www.nber.org/system/files/working_papers/w9143/w9143.pdf)</sup>

**气候科学。** 泰尔（Thejll）和施密特（Schmith）（2005，《地球物理研究杂志：大气》）将科克伦-奥克特方法应用于基于代用资料的气候重建，认为它专门纠正了序列相关残差的影响，产生的回归系数比OLS更准确。<sup>[25](https://doi.org/10.1029/2005jd005895)</sup>

**流行病学与政策评估。** 中断时间序列设计依赖同样的工具；模拟证据建议至少24个数据点，REML配合Satterthwaite调整可达到接近名义95%的覆盖率。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC8403376/)</sup> ARDL边界检验已在英国财政部宏观经济计量模型的收入方程上得到演示，其中失业率等变量的单整阶数存疑。<sup>[9](https://ideas.repec.org/p/cam/camdae/9907.html)</sup>

## 局限与替代方法

若干失败模式反复出现。非平稳性使OLS不一致并引致伪相关<sup>[5](https://www.montana.edu/cstoddard/562/Time%20series%20notes--old%20Versions.pdf)</sup>；随机季节性可表现为季节单位根，通过季节差分消除。<sup>[3](https://public.econ.duke.edu/~boller/Econ.883/dkn_palgrave_08)</sup> 小样本对HAC推断不利：在存在较强序列相关时，HAC估计量即使在样本量约为100时也可能表现不佳<sup>[1](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)</sup>，而在预测回归中增加纽维-韦斯特滞后长度并不能消除有限样本伪回归偏差。<sup>[12](https://www.nber.org/system/files/working_papers/w9143/w9143.pdf)</sup> 预测回归中的小样本偏差源于回归误差与滞后回归元新息之间的相关，与众所周知的自相关系数小样本偏差有关。<sup>[12](https://www.nber.org/system/files/working_papers/w9143/w9143.pdf)</sup> 诊断检验本身在伪回归中也会误导：Jarque-Bera正态性检验和Breusch-Pagan-Godfrey同方差检验以速率T发散，因此无论原假设真假，其被拒绝的概率都递增。<sup>[26](https://web.uvic.ca/~dgiles/blog/spurious.pdf)</sup>

作为替代方法，向量自回归（VAR）是数据描述和预测的强大可靠工具，但在结构推断和政策分析方面用处较小<sup>[27](https://ideas.repec.org/a/aea/jecper/v15y2001i4p101-115.html)</sup>；更广泛的工具箱涵盖含单整回归元的VAR推断、协整和结构VAR建模<sup>[28](https://www.princeton.edu/~mwatson/papers/watson_hoe_1994.pdf)</sup>，对于非平稳序列，单位根和协整分析以及向量误差修正模型是应用工作的核心主题。<sup>[29](https://link.springer.com/book/10.1007/978-3-642-33436-8)</sup> 当参数数量很大或模型对参数非线性时，工具箱仍不够完整。<sup>[30](https://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.31.2.59)</sup>

## References

1. [Regression analysis with time series data: Properties of the OLS estimator (ULiège lecture notes)](https://orbi.uliege.be/bitstream/2268/266529/6/Lecture%20Notes%20Ch%2010-11%20-%20RegressionWithTimeSeriesData.pdf)
2. [Regression with ARIMA errors, Cross correlation functions, and Relationships between 2 Time Series – STAT 510 (Penn State)](https://online.stat.psu.edu/stat510/Lesson08)
3. [Time Series Analysis in Economics (Palgrave chapter, Duke)](https://public.econ.duke.edu/~boller/Econ.883/dkn_palgrave_08)
4. [Chapter 12: Serial correlation and heteroskedasticity in time series regressions (Boston College course notes)](http://fmwww.bc.edu/ec-c/F2007/228/EC228.f2005.nn12.pdf)
5. [Chapter 10 notes, Basic Regression Analysis with Time Series Data (Montana State)](https://www.montana.edu/cstoddard/562/Time%20series%20notes--old%20Versions.pdf)
6. [First-Order Serial Correlation (lecture notes, Berkeley, Powell)](https://eml.berkeley.edu/~powell/e240b_sp06/sernotes.pdf)
7. [On Robust Inference in Time Series Regression (NBER Working Paper 32554; Baillie, Diebold, Kapetanios, Kim and Mora)](https://www.nber.org/system/files/working_papers/w32554/w32554.pdf)
8. [Evaluation of statistical methods used in the analysis of interrupted time series studies: a simulation study (BMC Medical Research Methodology)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8403376/)
9. [Bounds Testing Approaches to the Analysis of Long-run Relationships (Pesaran, Shin and Smith; RePEc record)](https://ideas.repec.org/p/cam/camdae/9907.html)
10. [Efficiency Test for Estimators by Simulation (SAS Note 60774)](http://support.sas.com/kb/60/774.html)
11. [Spurious regressions in econometrics (Granger and Newbold, Journal of Econometrics, 1974)](https://www.climateaudit.info/pdf/others/granger.1974.pdf)
12. [Spurious Regressions in Financial Economics (NBER Working Paper 9143)](https://www.nber.org/system/files/working_papers/w9143/w9143.pdf)
13. [STAT481/581: Introduction to Time Series Analysis, dynamic regression (University of New Mexico)](https://math.unm.edu/~lil/Stat581/10-dynamic-regression.pdf)
14. [Autoregressive Distributed Lag (ARDL) models - statsmodels 0.14.6](https://www.statsmodels.org/stable/examples/notebooks/generated/autoregressive_distributed_lag.html)
15. [Serial Correlation (Greene, Econometric Analysis, ch. 20)](https://pages.stern.nyu.edu/wgreene/Text/Edition8/PDF/M20_GREE1366_08_SE_C20.pdf)
16. [Time Series Regression VIII: Lagged Variables and Estimator Bias (MathWorks)](https://www.mathworks.com/help/econ/time-series-regression-viii-lagged-variables-and-estimator-bias.html)
17. [G. Udny Yule (1926). Why do we Sometimes get Nonsense-Correlations between Time-Series?--A Study in Sampling and the Nature of Time-Series. Journal Of The Royal Statistical Society.](https://doi.org/10.2307/2341482)
18. [D. Cochrane, G. H. Orcutt (1949). Application of Least Squares Regression to Relationships Containing Auto-Correlated Error Terms. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1949.10483290)
19. [Spurious regressions in econometrics (Journal of Econometrics, 1974)](https://doi.org/10.1016/0304-4076%2874%2990034-7)
20. [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)
21. [Xiaofeng Shao (2010). The Dependent Wild Bootstrap. Journal of the American Statistical Association.](https://doi.org/10.1198/jasa.2009.tm08744)
22. [Richard T Baillie and colleagues (2024). On robust inference in time-series regression. Econometrics Journal.](https://doi.org/10.1093/ectj/utae019)
23. [Robust Inference for Time Series Quantile Regression (KU working paper, 2026)](https://kuwpaper.ku.edu/2026Papers/202612.pdf)
24. [Robust High-Dimensional Time-Varying Coefficient Estimation (Econometric Theory, Cambridge Core)](https://www.cambridge.org/core/journals/econometric-theory/article/robust-highdimensional-timevarying-coefficient-estimation/508DF3AFB068F35BBB401C854CE34A92)
25. [Limitations on regression analysis due to serially correlated residuals: Application to climate reconstruction from proxies (Thejll and Schmith, Journal of Geophysical Research Atmospheres, 2005)](https://doi.org/10.1029/2005jd005895)
26. [Spurious Regressions with Time-Series Data: Further Asymptotic Results (David E. A. Giles, University of Victoria)](https://web.uvic.ca/~dgiles/blog/spurious.pdf)
27. [Vector Autoregressions (Stock and Watson, Journal of Economic Perspectives 2001)](https://ideas.repec.org/a/aea/jecper/v15y2001i4p101-115.html)
28. [Vector Autoregressions and Cointegration (Watson, Handbook of Econometrics)](https://www.princeton.edu/~mwatson/papers/watson_hoe_1994.pdf)
29. [Introduction to Modern Time Series Analysis (Springer)](https://link.springer.com/book/10.1007/978-3-642-33436-8)
30. [Twenty Years of Time Series Econometrics in Ten Pictures (Stock and Watson, Journal of Economic Perspectives)](https://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.31.2.59)
31. [9780071410151 durbin watson test bounds (oreilly.com)](https://www.oreilly.com/library/view/the-six-sigma/9780071410151/9780071410151_durbin-watson_test_bounds.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis › Time series regression

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/time-series-regression

English original: https://www.edgepedia.org/time-series-regression
