# 自回归（统计学）

自回归模型是一种时间序列模型，其中某个变量对其自身的过去值加上白噪声（方差恒定、互不相关的随机误差项）进行回归，用于描述时间依赖性并预测未来值。p 阶自回归模型记作 AR(p)，形式为 \( y_{t} = c + \phi_{1}y_{t-1} + \dots + \phi_{p}y_{t-p} + \varepsilon_{t} \)，其中 \( \varepsilon_{t} \) 为白噪声。<sup>[1](https://otexts.com/fpp3/AR.html)</sup> 自回归构成了自回归移动平均（ARMA）族的一个重要子集，后者被广泛用作时间序列数据的平稳模型。<sup>[2](https://wires.onlinelibrary.wiley.com/doi/10.1002/wics.163)</sup> 对数据拟合 AR 模型会得到系数估计 \( \hat{\phi}_{1}, \dots, \hat{\phi}_{p} \)、一个新息方差估计，以及通过将拟合方程向前迭代而生成的预测。<sup>[3](https://www.mdpi.com/1099-4300/27/3/279)</sup>

| 关键事实 | 细节 |
|---|---|
| 模型方程 | \( y_{t} = c + \phi_{1}y_{t-1} + \dots + \phi_{p}y_{t-p} + \varepsilon_{t} \)，\( \varepsilon_{t} \) 为白噪声<sup>[1](https://otexts.com/fpp3/AR.html)</sup> |
| 平稳性，AR(1) | \( -1 < \phi_{1} < 1 \)；\( \phi_{1} = 1 \) 且 \( c = 0 \) 时为随机游走<sup>[1](https://otexts.com/fpp3/AR.html)</sup> |
| 平稳性，AR(2) | \( -1 < \phi_{2} < 1 \)，\( \phi_{1}+\phi_{2} < 1 \)，\( \phi_{2}-\phi_{1} < 1 \)<sup>[1](https://otexts.com/fpp3/AR.html)</sup> |
| 阶数识别 | 因果 AR(p) 的 PACF 在滞后大于 p 时为零；ACF 呈指数衰减<sup>[4](https://www.stat.cmu.edu/~kass/tspp/08notes/7.pdf)</sup> |
| 尤尔–沃克方程 | \( \phi = \Gamma_{p}^{-1}\gamma_{1:p} \)，\( \sigma^{2} = \gamma(0) - \gamma_{1:p}^{T}\Gamma_{p}^{-1}\gamma_{1:p} \)<sup>[5](https://yanshuo.quarto.pub/nus-ts-book/10-ar.html)</sup> |
| 阶数选择准则 | AIC 惩罚项 \( 2p \)，BIC 惩罚项 \( p\log n \)<sup>[4](https://www.stat.cmu.edu/~kass/tspp/08notes/7.pdf)</sup> |
| 预测 | 含截距模型的一步预测 \( \hat{y}_{t+1} = \hat{c} + a_{1}y_{t} + \dots + a_{p}y_{t-p+1} \)，更高步长通过反复迭代得到<sup>[3](https://www.mdpi.com/1099-4300/27/3/279)</sup> |

## 工作原理

AR(p) 模型假定平稳序列的当前值是它自身最近 p 个值的线性函数，再加上一个方差为 \( \sigma_{w}^{2} \) 的互不相关新息 \( w_{t} \)。<sup>[6](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)</sup> 该模型是因果的，当且仅当 \( \phi(z) \neq 0 \) 对所有 \( |z| \leq 1 \) 成立，其中 \( \phi(z) \) 为滞后多项式。<sup>[6](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)</sup> 等价地，当特征多项式 \( A(z) = 1 - a_{1}z - \dots - a_{p}z^{p} \) 的根位于单位圆之外时，AR(p) 过程存在因果平稳解。<sup>[3](https://www.mdpi.com/1099-4300/27/3/279)</sup>

AR(1) 情形展示了各种状态。当 \( |\beta_{1}| < 1 \) 时，序列随时间回归其均值；\( \beta_{1} = 1 \) 是含单位根的随机游走；\( |\beta_{1}| > 1 \) 则是爆炸性的。<sup>[7](https://donskerclass.github.io/Forecasting/Autoregression.html)</sup> 对于因果 AR(1)，自相关函数为 \( \rho(h) = \phi^{h} \)，呈指数衰减，方差为 \( \sigma_{W}^{2}/(1-\phi^{2}) \)。<sup>[4](https://www.stat.cmu.edu/~kass/tspp/08notes/7.pdf)</sup> 具有复根的 AR(2) 表现为阻尼正弦波。<sup>[8](https://www2.stat.duke.edu/courses/Fall99/sta290/Notes/AR/ar_notes.book.pdf)</sup>

阶数特征来自两张图。样本 ACF 呈指数衰减表明是 AR 模型，阶数则从偏自相关函数读出——它在滞后 \( p+1 \) 及更大处变为零。<sup>[9](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)</sup> PACF 定义为在剔除对中间滞后的线性依赖之后，\( x_{t+h} \) 与 \( x_{t} \) 之间的相关性。<sup>[6](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)</sup> 尤尔–沃克方程将系数与自协方差联系起来：\( \phi = \Gamma_{p}^{-1}\gamma_{1:p} \) 和 \( \sigma^{2} = \gamma(0) - \gamma_{1:p}^{T}\Gamma_{p}^{-1}\gamma_{1:p} \)。<sup>[5](https://yanshuo.quarto.pub/nus-ts-book/10-ar.html)</sup>

## 操作步骤

博克斯–詹金斯式的工作流程如下：绘制数据图，必要时做变换；差分直至平稳；绘制 ACF 和 PACF 图以确定候选的 MA 和 AR 阶数；拟合模型并检查残差是否近似白噪声。<sup>[10](https://www.stat.berkeley.edu/~ryantibs/timeseries-f23/lectures/arima.pdf)</sup> 样本 ACF 的缓慢衰减提示非平稳性，可用差分实现平稳。<sup>[9](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)</sup> 样本自相关以近似 95% 的 \( \pm 2/\sqrt{N} \) 带作为判断基准。<sup>[9](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)</sup>

**估计**有几条标准路径。以最初 p 个值为条件，最大似然退化为将序列对其滞后项做普通最小二乘回归，因此滞后回归在大样本下本质上就是最大似然。<sup>[4](https://www.stat.cmu.edu/~kass/tspp/08notes/7.pdf)</sup> 尤尔–沃克估计从样本自协方差求解 \( \hat{A}_{p}\hat{\phi}_{YW} = \hat{b}_{p} \)，可直接求解或通过杜宾–莱文森算法；所得估计总是平稳的且渐近正态。<sup>[11](https://maryclare.github.io/content/courses/timeseries/notes/5estimationselection.pdf)</sup> 无条件最大似然需要在平稳性约束下进行非线性优化，如琼斯 1980 年对含缺失观测的 ARMA 模型的论述所述。<sup>[12](https://doi.org/10.1080/00401706.1980.10486171)</sup> 在软件中，R 的 `ar()` 可用尤尔–沃克、伯格、OLS 或 MLE 拟合，并默认按 AIC 选择阶数，最大阶数为 \( N-1 \) 与 \( 10\log_{10}(N) \) 中的较小者。<sup>[13](https://search.r-project.org/R/refmans/stats/html/ar.html)</sup>

预测通过迭代拟合方程得到，将未来观测替换为其预测值、未来误差替换为零。<sup>[10](https://www.stat.berkeley.edu/~ryantibs/timeseries-f23/lectures/arima.pdf)</sup>

## 起源

尤尔在其 1927 年发表于《哲学汇刊》的论文中提出了自回归方案，该文研究受扰动序列的周期性，并将其应用于沃尔弗的年度太阳黑子数，作为 AR(2) 处理。<sup>[14](https://doi.org/10.1098/rsta.1927.0007)</sup> 他主张周期图分析假定周期性仅被叠加的随机波动所掩盖，而他否定了这一假定对太阳黑子数据的适用性，转而提出求序列对其自身滞后值的线性回归，并作为有限差分方程求解。<sup>[15](https://royalsocietypublishing.org/doi/10.1098/rsta.1927.0007)</sup> 沃克在 1931 年《皇家学会会刊》的论文中将该方法推广到更高阶，给出了如今所称的尤尔–沃克方程。<sup>[16](https://doi.org/10.1098/rspa.1931.0069)</sup> 惠特尔 1963 年发表于《生物计量学》的论文讨论了多元自回归的拟合<sup>[17](https://doi.org/10.1093/biomet/50.1-2.129)</sup>，而博克斯–詹金斯方法学自 1970 年起推广了 ARIMA 建模<sup>[18](https://autobox.com/makridakis.pdf)</sup><sup> • </sup><sup>[6](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)</sup>，提供了平稳性准则、基于 ACF/PACF 的识别以及残差诊断。<sup>[18](https://autobox.com/makridakis.pdf)</sup>

## 变体

在 AR(p) 方程中加入移动平均项即得 ARMA(p, q) 模型，记作 \( \phi(B)x_{t} = \theta(B)w_{t} \)。<sup>[6](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)</sup> 当序列的 d 阶差分服从 ARMA 模型时，结果为 ARIMA(p, d, q)，即 \( \phi(B)\nabla^{d}x_{t} = \theta(B)w_{t} \)，通过差分处理非平稳性。<sup>[10](https://www.stat.berkeley.edu/~ryantibs/timeseries-f23/lectures/arima.pdf)</sup> 季节 ARIMA 加入季节差分 \( (1 - B^{s})^{D} \) 以及周期为 s 的季节 AR/MA 算子。<sup>[10](https://www.stat.berkeley.edu/~ryantibs/timeseries-f23/lectures/arima.pdf)</sup> 针对波动率，罗伯特·F·恩格尔的 ARCH 模型允许误差方差具有时间依赖性。<sup>[19](https://repub.eur.nl/pub/126706/EI2020-05-report.pdf)</sup>

多元推广需要付出参数代价：p 个序列上的 VAR(L) 有 \( O(p^{2} \cdot L) \) 个参数，高斯 VAR 在 \( \det(I_{p} - A_{1}z - \dots - A_{L}z^{L}) \) 的根位于单位圆之外时稳定。<sup>[20](https://arxiv.org/html/2607.14279v1)</sup> 当非平稳序列存在协整时，适用向量误差修正形式 \( \Delta y_{t} = \alpha\beta' y_{t-1} + \sum \Gamma_{j}\Delta y_{t-j} + \varepsilon_{t} \)。<sup>[20](https://arxiv.org/html/2607.14279v1)</sup> 贝叶斯 AR 模型对系数设正态先验、对 \( \sigma^{2} \) 设逆伽马先验；明尼苏达式先验将 \( \beta_{s} \) 的先验方差设为 \( \lambda^{2}/s^{\alpha} \)，使更高阶滞后的系数向零收缩。<sup>[7](https://donskerclass.github.io/Forecasting/Autoregression.html)</sup> 时变滞后自回归（TVLAR）允许滞后结构随时间在滞后 1 和滞后 2 之间交替，并可用 OLS 估计。<sup>[19](https://repub.eur.nl/pub/126706/EI2020-05-report.pdf)</sup>

## 应用

在实证方面，马克里达基斯和希邦得出结论：AR(1) 和 AR(2) 或其组合，其样本外结果与完整的博克斯–詹金斯方法学一样准确。<sup>[18](https://autobox.com/makridakis.pdf)</sup> 在宏观经济方面，对 132 个美国月度序列，AIC 所选滞后阶数比 BIC 所选阶数高出 3 阶或更多的情况占 61.4%，而预期为 12.0%。<sup>[21](https://www.nber.org/system/files/working_papers/w16714/w16714.pdf)</sup>

神经自回归预测器以学到的非线性动力学扩展了自回归原理。DeepAR（萨利纳斯、弗伦克特、加斯陶斯和亚努绍夫斯基，2019）用自回归循环网络进行概率预测。<sup>[22](https://doi.org/10.1016/j.ijforecast.2019.07.001)</sup> 最初的 Chronos（安萨里及同事，2024）将缩放、量化的序列值做词元化，训练参数量从 8M 到 710M 的 T5 族变换器，从 \( p_{\theta}(z_{C+h+1} \mid z_{1:C+h}) \) 自回归地采样未来路径；<sup>[23](https://arxiv.org/pdf/2403.07815)</sup> 其继任者 Chronos-2 于 2025 年 10 月 20 日发布，是 120M 参数的仅编码器模型，提供对单变量、多变量和含协变量预测的零样本支持，且不是自回归的。<sup>[24](https://github.com/amazon-science/chronos-forecasting?tab=readme-ov-file)</sup> 在合成 AR 过程上，Chronos-T5（Base）在 AR(3) 和 AR(4) 过程上优于 AutoARIMA，与正确设定的拟合 AR 模型表现相当，不过正确设定的 AR 模型对简单 AR(1) 和 AR(2) 过程拟合得更好。<sup>[23](https://arxiv.org/pdf/2403.07815)</sup>

## 局限与替代方案

结构突变是最严重的失效模式：在均值突变下，所有滞后选择准则都表现不佳，即使 SIC 在样本量为 960、最大突变情形下，正确估计概率也仅约 0.10。<sup>[25](https://mpra.ub.uni-muenchen.de/40042/1/MPRA_paper_40042.pdf)</sup> 设定错误的滞后结构还可能制造波动率：对 TVLAR 数据拟合 AR(1) 会产生 ARCH 效应的 LM 检验值 25.030，ARCH 参数为 0.503。<sup>[19](https://repub.eur.nl/pub/126706/EI2020-05-report.pdf)</sup> 经典 AR、MA、ARMA 和 ARIMA 模型是线性的，通常假定 ARMA 分量平稳，ARIMA 通过差分处理某些非平稳序列，这些假定在复杂的现实场景中很少成立<sup>[26](https://link.springer.com/article/10.1186/s40537-025-01318-z)</sup>，一项对 120 项心理学研究的综述发现，50% 未能充分评估平稳性。<sup>[27](https://www.ovid.com/journals/bjms/fulltext/10.1111/bmsp.70012~an-investigation-into-in-sample-and-out-of-sample-model)</sup>

与替代方案相比，经典参数模型对线性过程高度准确，但在非线性过程上可能完全失效，而机器学习预测器是黑箱且缺乏渐近理论。<sup>[3](https://www.mdpi.com/1099-4300/27/3/279)</sup> 对于非平稳多元序列，通过协整——一种平稳的时不变线性组合——仍可进行预测。<sup>[3](https://www.mdpi.com/1099-4300/27/3/279)</sup>

## References

1. [Forecasting: Principles and Practice (3rd ed), Section 9.3 Autoregressive models (Hyndman & Athanasopoulos)](https://otexts.com/fpp3/AR.html)
2. [Autoregressive processes (P. J. Brockwell, WIREs Computational Statistics, 2011)](https://wires.onlinelibrary.wiley.com/doi/10.1002/wics.163)
3. [Selected Topics in Time Series Forecasting: Statistical Models vs. Machine Learning (Entropy, MDPI)](https://www.mdpi.com/1099-4300/27/3/279)
4. [Autoregressive Models (Kass, CMU lecture notes)](https://www.stat.cmu.edu/~kass/tspp/08notes/7.pdf)
5. [Introduction to Time Series Analysis, Chapter 10: Autoregressive Models (NUS)](https://yanshuo.quarto.pub/nus-ts-book/10-ar.html)
6. [Time Series Analysis chapter 3 (Shumway & Stoffer, AR/MA/ARMA chapter)](http://www.stat.ucla.edu/~frederic/221/F22/ch3.pdf)
7. [Autoregression Models (forecasting course notes)](https://donskerclass.github.io/Forecasting/Autoregression.html)
8. [Bayesian analysis of autoregressive models (West/Harrison-style chapter, Duke University course notes)](https://www2.stat.duke.edu/courses/Fall99/sta290/Notes/AR/ar_notes.book.pdf)
9. [NIST/SEMATECH e-Handbook: Box-Jenkins Model Identification](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)
10. [Lecture 6: Autoregressive Integrated Moving Average Models (Tibshirani, Berkeley, Fall 2023)](https://www.stat.berkeley.edu/~ryantibs/timeseries-f23/lectures/arima.pdf)
11. [ARMA(p,q) Estimation and Selection (Mary Clare, course notes based on Shumway & Stoffer Ch. 3)](https://maryclare.github.io/content/courses/timeseries/notes/5estimationselection.pdf)
12. [Richard H. Jones (1980). Maximum Likelihood Fitting of ARMA Models to Time Series With Missing Observations. Technometrics.](https://doi.org/10.1080/00401706.1980.10486171)
13. [R Documentation: ar, Fit Autoregressive Models to Time Series](https://search.r-project.org/R/refmans/stats/html/ar.html)
14. [George Udny Yule (1927). VII. On a method of investigating periodicities disturbed series, with special reference to Wolfer's sunspot numbers. Philosophical Transactions of the Royal Society of London Series A Containing Papers of a Mathematical or Physical Character.](https://doi.org/10.1098/rsta.1927.0007)
15. [Yule (1927), On a method of investigating periodicities in disturbed series, with special reference to Wolfer's sunspot numbers](https://royalsocietypublishing.org/doi/10.1098/rsta.1927.0007)
16. [Gilbert Thomas Walker (1931). On periodicity in series of related terms. Proceedings of the Royal Society of London Series A Containing Papers of a Mathematical and Physical Character.](https://doi.org/10.1098/rspa.1931.0069)
17. [P. WHITTLE (1963). On the fitting of multivariate autoregressions, and the approximate canonical factorization of a spectral density matrix. Biometrika.](https://doi.org/10.1093/biomet/50.1-2.129)
18. [ARMA Models and the Box Jenkins Methodology (Makridakis & Hibon, INSEAD working paper 95/45/TM)](https://autobox.com/makridakis.pdf)
19. [An introduction to time-varying lag autoregression (Franses, Econometric Institute Report EI2020-05)](https://repub.eur.nl/pub/126706/EI2020-05-report.pdf)
20. [From Vector Autoregressions to AI-based Time Series Forecasting: A Review (arXiv preprint)](https://arxiv.org/html/2607.14279v1)
21. [Forecasts in a Slightly Misspecified Finite Order VAR (NBER Working Paper 16714)](https://www.nber.org/system/files/working_papers/w16714/w16714.pdf)
22. [David Salinas and colleagues (2019). DeepAR: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting.](https://doi.org/10.1016/j.ijforecast.2019.07.001)
23. [Chronos: Learning the Language of Time Series (Ansari et al., 2024)](https://arxiv.org/pdf/2403.07815)
24. [amazon-science/chronos-forecasting](https://github.com/amazon-science/chronos-forecasting?tab=readme-ov-file)
25. [Performance of lag length selection criteria in three different situations (MPRA working paper)](https://mpra.ub.uni-muenchen.de/40042/1/MPRA_paper_40042.pdf)
26. [Artificial intelligence and classical statistical models for time series forecasting: a comprehensive review (Journal of Big Data, 2025)](https://link.springer.com/article/10.1186/s40537-025-01318-z)
27. [An investigation into in-sample and out-of-sample model selection for AR(1)-based nonstationary processes (British Journal of Mathematical & Statistical Psychology)](https://www.ovid.com/journals/bjms/fulltext/10.1111/bmsp.70012~an-investigation-into-in-sample-and-out-of-sample-model)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Stochastic processes

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/autoregression-statistics

English original: https://www.edgepedia.org/autoregression-statistics
