# 博克斯–詹金斯方法

博克斯–詹金斯方法（Box–Jenkins method）是时间序列分析中用于建立自回归积分滑动平均（ARIMA）模型的一种迭代程序：它从数据中识别模型类别，估计其参数，检验残差，并生成预测，在控制和干预分析中还有进一步用途。该方法在旧金山霍尔登–戴出版社出版的《时间序列分析：预测与控制》一书中得到阐述。<sup>[1](https://garfield.library.upenn.edu/classics1989/A1989AV48500001.pdf)</sup> 该方法的输出是一个拟合好的ARIMA模型以及最优预测。<sup>[2](https://www.wiley.com/en-us/Time+Series+Analysis:+Forecasting+and+Control,+5th+Edition-p-9781118675021)</sup>

| 关键事实 | 详情 |
|---|---|
| 产出什么 | 一个拟合好的ARIMA(p,d,q)模型、诊断检验和预测<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup> |
| 核心循环 | 三个迭代阶段：识别、估计、诊断检验<sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup> |
| 模型形式 | \( \phi_{p}(B)(1-B)^{d} X_{t} = \theta_{0} + \theta_{q}(B) a_{t} \)，其中 \( B^{j} x_{t} = x_{t-j} \)<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup> |
| 最少数据 | 一种说法认为至少需要40个观测值，另一种说法认为至少50个；季节模型需要更长序列<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup><sup> • </sup><sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup> |
| 阶数识别 | ACF与PACF的形态可区分AR、MA和混合ARMA模型<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup> |
| 主要诊断 | 残差白噪声检验，将Q统计量与自由度为 \( M - p - q \) 的卡方值比较，\( M \geq 20 \)<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup> |
| 现代实践 | 通过信息准则自动选择阶数（auto.arima及同类工具）<sup>[6](https://www.mdpi.com/1999-5903/15/8/255)</sup> |

## 工作原理

该方法将平稳时间序列建模为ARIMA(p,d,q)过程。一般的非季节形式为

\[ \phi_{p}(B)(1-B)^{d} X_{t} = \theta_{0} + \theta_{q}(B) a_{t} \]

其中 \( p \) 是自回归阶数，\( d \) 是差分阶数，\( q \) 是滑动平均阶数，\( B \) 是后移算子，定义为 \( B^{j} x_{t} = x_{t-j} \)；差分后的序列 \( w_{t} = (1-B)^{d} X_{t} \) 对整数 \( d \) 是平稳的。<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup> 博克斯–詹金斯模型假定序列是平稳的，而对非平稳序列进行一次或多次差分以达到平稳性（即不随时间变化的统计性质），正是产生ARIMA模型的方式，其中“I”代表“积分”（Integrated）。<sup>[7](https://www.itl.nist.gov/div898/handbook/pmc/section4/pmc445.htm)</sup>

当 \( \phi_{p}(B) = 0 \) 和 \( \theta_{q}(B) = 0 \) 的所有根都位于单位圆之外时，平稳性和可逆性得到保证，这确保所指定的模型具有唯一的代表性<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup>；等价地说，对于ARMA类模型，多项式 \( A(z) = 1 - a_{1} z - \cdots - a_{p} z^{p} \) 的根必须位于z平面上的单位圆之外。<sup>[8](https://www.mdpi.com/1099-4300/27/3/279)</sup>

之所以要迭代而不是拟合一个固定模型，是因为正确的阶数 \( p \)、\( d \) 和 \( q \) 事先并不知道。ARIMA过程构成了一类丰富的模型，因此通常有可能找到一个足以描述数据的模型<sup>[9](https://robjhyndman.com/papers/BoxJenkins.pdf)</sup>，但究竟是哪一个，需要经过试探性设定、拟合和检验的循环，直到诊断表明不再有改进。<sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup>

## 操作步骤

原始程序是一个迭代的三阶段过程：模型选择、参数估计和模型检验；晚近的阐述增加了预备的数据准备阶段和最终的模型应用阶段。<sup>[9](https://robjhyndman.com/papers/BoxJenkins.pdf)</sup>

1. **识别。** 如有需要，对序列进行变换（对数或幂变换），并对其进行 \( d \) 次差分以达到平稳。<sup>[10](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2005_C_BoxJenkinsMethod.pdf)</sup><sup> • </sup><sup>[7](https://www.itl.nist.gov/div898/handbook/pmc/section4/pmc445.htm)</sup> 然后考察样本自相关函数（ACF）和偏自相关函数（PACF）。<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup>
2. **解读ACF与PACF。** AR(p)过程的PACF在滞后 \( p+1 \) 及以后变为零，因此将样本PACF与95%置信区间比较，看其是否偏离零。<sup>[11](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)</sup> 如果偏自相关在几个滞后之后截断，则最后一个具有较大值的滞后就是估计的 \( p \)<sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup>；PACF截断表明是AR模型，ACF截断表明是MA(q)模型，若两者都不截断则推断为ARMA模型。<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup> 样本自相关决定MA(q)模型的 \( q \)。<sup>[10](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2005_C_BoxJenkinsMethod.pdf)</sup>
3. **估计。** 参数通过最大似然法估计<sup>[12](https://www.nber.org/system/files/chapters/c4329/c4329.pdf)</sup>，估计中使用回推法。<sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup>
4. **诊断检验。** 残差应表现为白噪声：将Q统计量与自由度为 \( M - p - q \) 的卡方值比较，其中 \( M \geq 20 \)。<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup>
5. **迭代。** 最终选择可在简约性原则下，依据t统计量、德宾–沃森统计量、残差相关行为和预测表现来比较候选模型。<sup>[13](https://estima.com/webhelp/topics/boxjenkins.html)</sup>

对于ARMA类模型，一步向前预测为 \( \hat{y}_{t+1} = a_{1} y_{t} + \cdots + a_{p} y_{t-p+1} \)，更高阶的预测通过反复迭代此方程得到。<sup>[8](https://www.mdpi.com/1099-4300/27/3/279)</sup>

## 起源

该书整合了已有知识，发展出一套连贯而通用的三阶段迭代循环，用于时间序列的识别、估计和验证，被称为博克斯–詹金斯方法<sup>[14](https://robjhyndman.com/papers/ijf25.pdf)</sup>，并推广了ARMA模型的使用。<sup>[15](https://autobox.com/makridakis.pdf)</sup> 它建立在早期工作之上：巴特利特、德宾、汉南、詹金斯、肯德尔、凯努伊和沃尔德等作者在博克斯–詹金斯体系化之前，已经研究了ARMA过程的性质、其自相关函数、拟合方法和模型适合性检验。<sup>[12](https://www.nber.org/system/files/chapters/c4329/c4329.pdf)</sup><sup> • </sup><sup>[14](https://robjhyndman.com/papers/ijf25.pdf)</sup>

## 变体

**季节模型。** SARIMA(p,d,q)(P,D,Q)ₘ在滞后 \( m \) 处增加第二组季节性的AR、I和MA项（月度数据为12，具有周模式的日度数据为7）。<sup>[16](https://www.forecaststudio.com.mx/blog/arima-sarima-models)</sup> 季节模型比非季节情形需要更长的序列。<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup>

**干预分析。** 干预分析扩展了该框架，用以回答这样的问题：在给定一个已知干预的情况下，是否有证据表明序列中确实发生了所预期的那种变化。<sup>[3](https://numdam.org/item/RO_1977__11_2_129_0.pdf)</sup>

**分数差分。** 霍斯金1984年发表于《水资源研究》的论文《利用分数差分建模水文时间序列中的持续性》，提出了分数差分ARIMA过程，作为同时建模时间序列长期和短期行为的更灵活方式，涵盖 \( d > 0 \)（长记忆）和短记忆情形。<sup>[17](https://doi.org/10.1029/wr020i012p01898)</sup>

**自动阶数选择。** R语言中的auto.arima函数是一种流行的启发式方法，基于逐步算法：从一小组基本ARIMA模型开始，选出AIC最小者，并对变体进行迭代，直到找不到更低的AIC。<sup>[6](https://www.mdpi.com/1999-5903/15/8/255)</sup>

## 应用

该书列出的五个应用领域是：预测、确定系统的传递函数、建模干预事件的影响、建立多变量动态模型，以及设计简单的控制方案。<sup>[2](https://www.wiley.com/en-us/Time+Series+Analysis:+Forecasting+and+Control,+5th+Edition-p-9781118675021)</sup> 在水文学中，分数差分ARIMA过程被提出用于建模水文时间序列中的持续性。<sup>[17](https://doi.org/10.1029/wr020i012p01898)</sup>

## 局限与替代方法

**样本量。** 该方法需要中长序列：一种说法将最低要求定为40个观测值，季节模型需要更长<sup>[5](https://numdam.org/item/RO_1977__11_1_3_0.pdf)</sup>，另一种说法认为至少50个<sup>[4](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)</sup>，而格兰杰和纽博尔德建议至少40–50个，并指出该方法比指数平滑需要更多数据。<sup>[13](https://estima.com/webhelp/topics/boxjenkins.html)</sup>

**预测期与数据情形。** ARIMA及其变体（SARIMA、ARIMAX）在短期预测中表现良好，但在长期预测中性能严重下降。<sup>[6](https://www.mdpi.com/1999-5903/15/8/255)</sup> 当数据集的值域范围有限或时间跨度有限时，ARIMA可以胜过机器学习对应方法，因为深度学习模型需要大量数据才能有效训练。<sup>[6](https://www.mdpi.com/1999-5903/15/8/255)</sup>

**竞赛证据。** 在M3竞赛（3003个序列）中，基于博克斯–詹金斯方法选择阶数的ARIMA表现尚可，但未能击败其竞争对手，Theta方法胜过所有其他方法。<sup>[18](https://openforecast.org/2024/03/14/the-role-of-m-competitions-in-forecasting/)</sup> 竞赛的一个关键教训是：ARIMA是有效的，但手工的博克斯–詹金斯方法可能不实用，使用信息准则选择阶数是更好的做法<sup>[18](https://openforecast.org/2024/03/14/the-role-of-m-competitions-in-forecasting/)</sup>；基准研究早已发现，许多客观选择准则能提供与耗时的博克斯–詹金斯方法所得到的结构相当或更优的结构。<sup>[19](https://onlinelibrary.wiley.com/doi/10.1002/for.3980130502)</sup>

**关于信息准则的一点告诫。** 用AIC在不同差分阶数之间做决定在技术上是不成立的，因为每进行一次差分就会丢失一个数据点；因此Auto Arima算法使用单位根检验来选择差分阶数，而仅对AR和MA阶数使用AIC。<sup>[20](https://skforecast.org/latest/user_guides/forecasting-statistical-models)</sup>

**当前工具。** 逐步选择算法在海因德曼和坎达卡尔（2008）中有所概述<sup>[21](https://github.com/sktime/sktime/blob/main/sktime/forecasting/arima/%5Fpmdarima.py)</sup>，R语言forecast包的auto.arima使用该算法，只是选择季节差分的默认方法现在基于季节强度的估计（王、史密斯和海因德曼，2006）。<sup>[22](https://www.rdocumentation.org/packages/forecast/versions/9.0.0/topics/auto.arima)</sup> 已发表的比较并未就该方法与状态空间/卡尔曼或GARCH替代方法的具体比较，以及它与N-BEATS或TFT等深度学习预测器的相对地位，给出定论。

## References

1. [Citation Classic: Box G E P & Jenkins G M. Time series analysis: forecasting and control. San Francisco, CA: Holden-Day. (1970)](https://garfield.library.upenn.edu/classics1989/A1989AV48500001.pdf)
2. [Time Series Analysis: Forecasting and Control, 5th Edition (Wiley)](https://www.wiley.com/en-us/Time+Series+Analysis:+Forecasting+and+Control,+5th+Edition-p-9781118675021)
3. [The Box-Jenkins approach to time series analysis and forecasting: principles and applications (RAIRO 1977)](https://numdam.org/item/RO_1977__11_2_129_0.pdf)
4. [The Box-Jenkins Method (NCSS statistical software documentation)](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/The_Box-Jenkins_Method.pdf)
5. [The Box-Jenkins approach to time series analysis (RAIRO 1977, part 1)](https://numdam.org/item/RO_1977__11_1_3_0.pdf)
6. [A Review of ARIMA vs. Machine Learning Approaches for Time Series Forecasting in Data Driven Networks](https://www.mdpi.com/1999-5903/15/8/255)
7. [6.4.4.5. Box-Jenkins Models (NIST/SEMATECH e-Handbook)](https://www.itl.nist.gov/div898/handbook/pmc/section4/pmc445.htm)
8. [Selected Topics in Time Series Forecasting: Statistical Models vs. Machine Learning](https://www.mdpi.com/1099-4300/27/3/279)
9. [Box-Jenkins modelling (Hyndman)](https://robjhyndman.com/papers/BoxJenkins.pdf)
10. [Specification of ARIMA Models by the Box-Jenkins Method (Dufour)](https://jeanmariedufour.research.mcgill.ca/ResE/Dufour_2005_C_BoxJenkinsMethod.pdf)
11. [6.4.4.6. Box-Jenkins Model Identification (NIST/SEMATECH e-Handbook)](https://itl.nist.gov/div898/handbook/pmc/section4/pmc446.htm)
12. [Analysis and Modeling of Seasonal Time Series (NBER chapter, by Box)](https://www.nber.org/system/files/chapters/c4329/c4329.pdf)
13. [Box-Jenkins (ARIMA) Modeling (Estima/RATS documentation)](https://estima.com/webhelp/topics/boxjenkins.html)
14. [25 Years of Time Series Forecasting (Hyndman, International Journal of Forecasting)](https://robjhyndman.com/papers/ijf25.pdf)
15. [Makridakis et al., The M3-Competition related material (hosted PDF)](https://autobox.com/makridakis.pdf)
16. [ARIMA and SARIMA models: the Box-Jenkins method for time series forecasting | Forecast Studio](https://www.forecaststudio.com.mx/blog/arima-sarima-models)
17. [J. R. M. Hosking (1984). Modeling persistence in hydrological time series using fractional differencing. Water Resources Research.](https://doi.org/10.1029/wr020i012p01898)
18. [The role of M competitions in forecasting (OpenForecast, 2024)](https://openforecast.org/2024/03/14/the-role-of-m-competitions-in-forecasting/)
19. [A Comparison of Box–Jenkins and objective methods for determining the order of a non-seasonal ARMA Model](https://onlinelibrary.wiley.com/doi/10.1002/for.3980130502)
20. [ForecasterStats - Skforecast Docs](https://skforecast.org/latest/user_guides/forecasting-statistical-models)
21. [sktime/forecasting/arima/_pmdarima.py](https://github.com/sktime/sktime/blob/main/sktime/forecasting/arima/%5Fpmdarima.py)
22. [auto.arima function - RDocumentation](https://www.rdocumentation.org/packages/forecast/versions/9.0.0/topics/auto.arima)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026; Oct 21, 2026 · Last review: Sep 30, 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/box-jenkins-method

English original: https://www.edgepedia.org/box-jenkins-method
