# 移动平均模型

移动平均模型是一种时间序列模型，它将当前观测值表示为不可观测的白噪声误差项的当前值与过去值的线性组合，用于描述和预测序列相关的数据。q 阶 MA(q) 模型将观测值写为一个常数加上当前冲击和最近 q 个冲击，每个冲击由一个参数 θ 缩放；它以类似回归的方式使用过去的预测误差，不应与移动平均平滑相混淆，后者通过对过去观测值取平均来去除噪声。<sup>[1](https://otexts.com/fpp3/MA.html)</sup> NIST/SEMATECH 手册给出的形式为 \(X_t = \mu + A_t - \theta_1 A_{t-1} - \cdots - \theta_q A_{t-q}\)，其中 \(A_{t-i}\) 为白噪声项。<sup>[2](https://itl.nist.gov/div898/handbook/pmc/section4/pmc444.htm)</sup> 驱动当前值的是什么，将 MA 与自回归（AR）模型区分开来：AR 模型将观测值对过去观测值做回归，而 MA 模型由过去的随机冲击驱动。两者都是 ARMA 过程的特例<sup>[3](https://encyclopediaofmath.org/wiki/Moving-average_process&oldid=54837)</sup>，当 p = 0 时 ARMA(p, q) 退化为 MA(q)。<sup>[4](https://rainbow.ldeo.columbia.edu/~alexeyk/Papers/AndersonOD1975.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义方程 | \( y_t = c + \varepsilon_t + \theta_1\varepsilon_{t-1} + \cdots + \theta_q\varepsilon_{t-q} \)，其中 \( \varepsilon_t \) 为白噪声<sup>[1](https://otexts.com/fpp3/MA.html)</sup> |
| ACF 特征 | 前 q 个滞后的自相关非零，滞后 q 之后为零；PACF 逐渐衰减<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup> |
| 平稳性 | MA(q) 过程对任意 \( \theta_1, \ldots, \theta_q \) 取值都是平稳的<sup>[6](https://maryclare.github.io/content/courses/timeseries/notes/3arma.pdf)</sup> |
| 可逆性 | \( \theta(z) \) 的根必须位于单位圆之外；MA(1) 要求 \( -1 < \theta_1 < 1 \)<sup>[6](https://maryclare.github.io/content/courses/timeseries/notes/3arma.pdf)</sup><sup> • </sup><sup>[1](https://otexts.com/fpp3/MA.html)</sup> |
| MA(1) 极限 | 可达到的最大 \( |\rho_1| \) 为 0.5，因此 MA(1) 无法描述 \( |\rho_1| > 0.5 \) 的过程<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup> |
| 估计 | 误差不可观测，因此用迭代非线性拟合替代线性最小二乘<sup>[2](https://itl.nist.gov/div898/handbook/pmc/section4/pmc444.htm)</sup> |
| Wold 分解 | 任何协方差平稳过程都可表示为无穷移动平均表示加上可能的确定性部分<sup>[8](https://jrenne.github.io/TimeSeries_Bookdown/Univariate.html)</sup> |

## 工作原理

利用后移算子 B（将一个序列向后移动一个时期），MA 多项式为 \( \Theta(B) = 1 + \theta_1 B + \cdots + \theta_q B^q \)，模型的紧凑形式为 \( x_t - \mu = \Theta(B) w_t \)，其中 \( w_t \) 为白噪声。<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup> 不同软件的符号约定不同；R 对 MA 项使用正号。<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup>

θ 参数直接决定自协方差结构。对于新息方差为 \( \sigma^2 \) 的 MA(q)，令 \( \theta_0 = 1 \)，自协方差为 \( \gamma(h) = \sigma^2 \sum_{j=0}^{q-h} \theta_j \theta_{j+h} \)（\( 0 \le h \le q \)），当 \( h > q \) 时为 0。<sup>[9](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)</sup> 对于 MA(1)，方差为 \( \sigma_w^2(1+\theta_1^2) \)，\( \rho_1 = \theta_1/(1+\theta_1^2) \)，当 \( h \ge 2 \) 时 \( \rho_h = 0 \)。<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup> 由于 \( \theta \) 和 \( 1/\theta \) 给出相同的 \( \rho_1 \)，仅凭自相关无法识别参数；可逆性约束 \( -1 < \theta < 1 \) 在 θ 与 \( \rho_1 \) 之间提供了唯一映射。<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup>

平稳性是自动满足的：有限阶 MA(q) 是白噪声项的固定线性组合，因此其均值和自协方差不依赖于时间，过程对任意参数值都是平稳的。<sup>[6](https://maryclare.github.io/content/courses/timeseries/notes/3arma.pdf)</sup><sup> • </sup><sup>[4](https://rainbow.ldeo.columbia.edu/~alexeyk/Papers/AndersonOD1975.pdf)</sup> 可逆性是 MA 中对应 AR 平稳性的概念：当 MA 模型在代数上等价于一个收敛的无穷阶 AR 模型时，它是可逆的，对于 MA(1) 这要求 \( |\theta_1| < 1 \)。<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup> 形式上，过程可逆当且仅当 \( \theta(z) \ne 0 \) 对所有 \( |z| \le 1 \) 成立，这给出一个系数绝对可和的 AR(∞) 表示。<sup>[9](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)</sup> 任何可逆的 MA(q) 都可写成 AR(∞) 过程，任何平稳的 AR(p) 都可写成 MA(∞) 过程。<sup>[1](https://otexts.com/fpp3/MA.html)</sup>

MA(q) 的自相关函数在滞后 q 之后急剧截断，而偏自相关函数衰减并在无穷多个滞后上非零；这与 AR(p) 过程正好镜像对称，意味着 MA(q) 的最优预测使用了所有过去观测值。<sup>[9](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)</sup><sup> • </sup><sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup>

## 如何实施

识别从样本 ACF 开始：在大约 q 个滞后后截断提示 MA(q)，而 ACF 逐渐衰减且 PACF 截断则提示 AR。<sup>[5](https://online.stat.psu.edu/stat510/Lesson02)</sup> Box 和 Jenkins 构建 ARMA 模型时使 p 和 q 尽可能小，通过样本自相关函数等统计量进行识别。<sup>[4](https://rainbow.ldeo.columbia.edu/~alexeyk/Papers/AndersonOD1975.pdf)</sup> 2025 年的一项研究补充了一个警示：MA(q) 过程所有样本 ACF 之和为常数，等于 \( -1/2 \)，这与通常 \( \pm 1.96/\sqrt{n} \) 显著性带背后的渐近正态性假设相矛盾；调整后的阈值减少了 MA 阶数的误检，基于 ACF 和 EACF 的识别仅在序列足够长时才可靠。<sup>[10](https://pure.iiasa.ac.at/id/eprint/20502/1/stats-08-00019-v2.pdf)</sup>

估计比 AR 模型更困难，因为误差项不可观测，因此用迭代非线性拟合程序替代线性最小二乘。<sup>[2](https://itl.nist.gov/div898/handbook/pmc/section4/pmc444.htm)</sup> 由于 MA 分量不可观测，ARMA 估计通常按照 Hannan 和 Rissanen 的两阶段最小二乘逻辑，将模型拆分为 AR 和 MA 两部分分两步估计。<sup>[11](https://export.arxiv.org/pdf/2208.14824v3.pdf)</sup> ARMA 模型的极大似然常通过状态空间表示配合卡尔曼滤波精确计算；R 的 arima() 即如此。<sup>[12](https://math.montana.edu/ahoegh/teaching/timeseries/lectures/Lecture12.Rmd)</sup> 对于因果、可逆的 ARMA(p, q)，极大似然、无条件最小二乘和条件最小二乘估计量是渐近正态且最优的。<sup>[9](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)</sup> 2025 年的一项研究发现，常用软件在许多例子中未能正确最大化 ARMA 似然，因为似然曲面是多峰的；一种利用这种多峰性的随机初始化算法克服了局部最优并产生更优的置信区间，且由于 AIC 假设似然已最大化，该修正也改变了基于 AIC 的阶数选择。<sup>[13](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0333993)</sup>

阶数选择通常用信息准则比较候选模型。赤池信息准则（AIC）由 H. Akaike 在 1974 年发表于 IEEE Transactions on Automatic Control 的论文中提出<sup>[14](https://doi.org/10.1109/tac.1974.1100705)</sup>，Schwarz 的 BIC 由 Gideon Schwarz 在 1978 年发表于 Annals of Statistics 的论文中提出。<sup>[15](https://doi.org/10.1214/aos/1176344136)</sup> 有限样本校正版本为 \( \mathrm{AICc} = -2\ell + 2(p+q+k+1)n/(n-p-q-k-2) \)，因其更好的有限样本性质而优于 AIC。<sup>[9](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)</sup> 在 R 中，forecast 包的 auto.arima 长期以来是自动阶数识别的标准工具。<sup>[11](https://export.arxiv.org/pdf/2208.14824v3.pdf)</sup> 拟合应以残差诊断检验（如 Ljung–Box 检验）以及样本外验证收尾，因为提高 p 和 q 总会降低训练误差，但可能恶化样本外预测。<sup>[16](https://metricgate.com/blogs/ar-vs-ma-vs-arma-models-time-series/)</sup>

## 起源

Slutsky 和 Yule 观察到，对纯随机数进行求和或差分（加权或不加权），会产生具有许多表面上的周期性质的序列，这些性质曾被认为刻画了经济时间序列。<sup>[17](https://doi.org/10.1007/978-1-349-20865-4_3)</sup>

Herman Wold 结合了 AR 和 MA 方案，并证明 ARMA 过程可以建模所有平稳时间序列<sup>[18](https://autobox.com/makridakis.pdf)</sup>；由 J. N. 和 Herman Wold 撰写的平稳时间序列研究于 1939 年在《皇家统计学会杂志》上受到评论。<sup>[19](https://doi.org/10.2307/2980009)</sup> 其核心结果是 Wold 分解定理，指出任何协方差平稳过程都允许表示 \( y_t = \mu + \sum_{i=0}^{+\infty} \psi_i \varepsilon_{t-i} + \kappa_t \)，其中系数平方可和，\( \kappa_t \) 为确定性分量。<sup>[8](https://jrenne.github.io/TimeSeries_Bookdown/Univariate.html)</sup>

George Box 和 Gwilym Jenkins 的贡献是建立了一套识别和估计兼顾两者的模型的系统方法论，发表于他们 1970 年的著作《时间序列分析：预测与控制》<sup>[2](https://itl.nist.gov/div898/handbook/pmc/section4/pmc444.htm)</sup>，该书于 1971 年由 D. J. Bartholomew 在《运筹学季刊》上评论。<sup>[20](https://doi.org/10.2307/3008255)</sup><sup> • </sup><sup>[27](https://www.publichealth.columbia.edu/research/population-health-methods/box-jenkins-methodology)</sup> 他们识别、估计和诊断检验的流程成为该类模型的经典建模工作流。<sup>[21](https://www.mdpi.com/1099-4300/27/3/279)</sup>

## 变体

ARMA(p, q) 模型结合了 AR 部分（相邻观测值相互影响）与捕捉不可观测冲击的 MA 部分；二者合起来可以描述或紧密近似平稳时间序列的几乎所有特征。<sup>[22](https://smac-group.github.io/ts/the-family-of-autoregressive-moving-average-models.html)</sup> 令 p = 0 得到纯 MA(q)，q = 0 得到纯 AR(p)。<sup>[4](https://rainbow.ldeo.columbia.edu/~alexeyk/Papers/AndersonOD1975.pdf)</sup> ARIMA 模型为线性趋势增加差分，SARIMA 模型将框架扩展到季节模式，拓宽了可描述现象的范围。<sup>[22](https://smac-group.github.io/ts/the-family-of-autoregressive-moving-average-models.html)</sup> 向量自回归将框架扩展到多个相互依赖的序列。<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup>

MA 结构也会从聚合中机械地产生。本身为白噪声的月度收益率会产生重叠的 12 个月收益率，其行为类似 MA(11) 过程，当 \( j < 12 \) 时 \( \mathrm{cov}(R_t(12), R_{t-j}(12)) = (12-j)\sigma^2 \)。<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup> 对于典型的非季节性经济和金融数据，很少需要高于 p = 2 或 q = 2 的阶数。<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup>

## 应用

MA 模型在经济学和金融学中广泛应用，其中移动平均部分捕捉从生物学到金融学等现象中的不可观测冲击。<sup>[22](https://smac-group.github.io/ts/the-family-of-autoregressive-moving-average-models.html)</sup> 在一个关于风速和海表温度数据的示例中，ARMA(4,4) 模型在所考虑的候选模型中取得了最低的 RMSE（2.97）和 MAE（24.43）。<sup>[10](https://pure.iiasa.ac.at/id/eprint/20502/1/stats-08-00019-v2.pdf)</sup>

不可逆 MA 模型虽被标准假设排除，却有自身用途：在非高斯情形下，它们可通过高阶累积量或似然函数与可逆模型区分，并出现在地震反卷积、通信系统、图像去模糊和声道建模中。<sup>[23](https://www3.stat.sinica.edu.tw/statistica/oldpdf/a15n27.pdf)</sup>

## 局限与替代方案

不可逆性是核心的失效模式。没有可逆性，模型无法使用基于二阶矩的估计方法（如高斯似然、最小二乘或谱方法）识别。<sup>[23](https://www3.stat.sinica.edu.tw/statistica/oldpdf/a15n27.pdf)</sup> 从几何结构上看，这一问题尤为突出：对于 MA(2)，从参数到自协方差的映射一般是 8 对 1，而 MA(1) 的极大似然估计量可能以正概率落在不可逆边界 \( |\theta_1| = 1 \) 上，此时通常的渐近理论和标准推断失效。<sup>[24](https://arxiv.org/abs/2607.04046)</sup> 在混合模型中，AR 和 MA 多项式必须没有公共根，因为根的近似相消会产生冗余<sup>[6](https://maryclare.github.io/content/courses/timeseries/notes/3arma.pdf)</sup>；当第 q 个 MA 系数趋近于零时，基于 ACF 的识别可能错误地偏向 ARMA(p, q−1)。<sup>[10](https://pure.iiasa.ac.at/id/eprint/20502/1/stats-08-00019-v2.pdf)</sup> MA(1) 的限制 \( |\rho_1| \le 0.5 \) 也意味着一阶 MA 无法匹配强自相关的数据。<sup>[7](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)</sup>

与替代方案相比，已发表的比较以富有启发的方式呈现混合结果。商业和经济预测中的样本后比较发现，简单方法的准确性不低于甚至高于 Box–Jenkins 程序，差分被确定为一个主要问题。<sup>[18](https://autobox.com/makridakis.pdf)</sup> 然而在 1045 个月度 M3 竞赛序列上，自动 ARIMA（sMAPE 7.19%）优于多层感知机（8.39%），尽管神经网络的样本内拟合更好，这一优势归因于基于 AIC 的选择避免了过拟合；在该研究中，流行的机器学习方法在所有预测期上的精度都被八种传统统计方法（包括自动 ARIMA 和指数平滑）所压制。<sup>[25](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0194889)</sup> 当趋势、季节分量或时变参数重要时，通过预测误差分解和卡尔曼滤波以极大似然估计的状态空间模型是有力的替代方案，而机器学习方法可以在非线性情形中取胜，代价是可解释性和渐近理论。<sup>[21](https://www.mdpi.com/1099-4300/27/3/279)</sup> 由于 MA 冲击只影响少数未来点，MA 项捕捉短期相关性，在具有强季节或自回归结构的小数据集上，ARIMA 和指数平滑等经典方法仍是极具竞争力的基线。<sup>[26](https://arxiv.org/pdf/2606.11746v1.pdf)</sup>

## References

1. [9.4 Moving average models, Forecasting: Principles and Practice (3rd ed.), Hyndman & Athanasopoulos](https://otexts.com/fpp3/MA.html)
2. [6.4.4.4. Common Approaches to Univariate Time Series (NIST/SEMATECH e-Handbook)](https://itl.nist.gov/div898/handbook/pmc/section4/pmc444.htm)
3. [Moving-average process, Encyclopedia of Mathematics (A.M. Yaglom)](https://encyclopediaofmath.org/wiki/Moving-average_process&oldid=54837)
4. [O. D. Anderson, 'Moving Average Processes', The Statistician 24(4), 1975](https://rainbow.ldeo.columbia.edu/~alexeyk/Papers/AndersonOD1975.pdf)
5. [MA Models, Partial Autocorrelation, Notational Conventions, STAT 510 (Penn State)](https://online.stat.psu.edu/stat510/Lesson02)
6. [Introduction to AR, MA, and ARMA Models (lecture notes)](https://maryclare.github.io/content/courses/timeseries/notes/3arma.pdf)
7. [4.3 Time Series Models | Introduction to Computational Finance and Financial Econometrics with R](https://bookdown.org/compfinezbook/introcompfinr/Time-Series-Models.html)
8. [Chapter 2 Univariate processes | Introduction to Time Series](https://jrenne.github.io/TimeSeries_Bookdown/Univariate.html)
9. [Introduction to Time Series Analysis – 11 ARMA Models](https://yanshuo.quarto.pub/nus-ts-book/11-arma.html)
10. [Deviations from Normality in Autocorrelation Functions and Their Implications for MA(q) Modeling (Stats, 2025)](https://pure.iiasa.ac.at/id/eprint/20502/1/stats-08-00019-v2.pdf)
11. [A fully Bayesian ARMA order identification procedure (arXiv)](https://export.arxiv.org/pdf/2208.14824v3.pdf)
12. [STAT 436/536 Lecture 12 (Montana State University)](https://math.montana.edu/ahoegh/teaching/timeseries/lectures/Lecture12.Rmd)
13. [Revisiting inference for ARMA models: Improved fits and superior confidence intervals (PLOS One, 2025)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0333993)
14. [H. Akaike (1974). A new look at the statistical model identification. IEEE Transactions on Automatic Control.](https://doi.org/10.1109/tac.1974.1100705)
15. [Gideon Schwarz (1978). Estimating the Dimension of a Model. The Annals of Statistics.](https://doi.org/10.1214/aos/1176344136)
16. [AR vs MA vs ARMA Models for Time Series | MetricGate (March 2026)](https://metricgate.com/blogs/ar-vs-ma-vs-arma-models-time-series/)
17. [Autoregressive and Moving-Average Time-Series Processes (historical review with bibliography)](https://doi.org/10.1007/978-1-349-20865-4_3)
18. [ARMA Models and the Box-Jenkins Methodology (Makridakis & Hibon, INSEAD working paper)](https://autobox.com/makridakis.pdf)
19. [J. N., Herman Wold (1939). A Study in Analysis of Stationary Time Series.. Journal Of The Royal Statistical Society.](https://doi.org/10.2307/2980009)
20. [D. J. Bartholomew, G. E. P. Box, G. M. Jenkins (1971). Time Series Analysis Forecasting and Control.. Operational Research Quarterly (1970-1977).](https://doi.org/10.2307/3008255)
21. [Selected Topics in Time Series Forecasting: Statistical Models vs. Machine Learning (Entropy, 2025)](https://www.mdpi.com/1099-4300/27/3/279)
22. [Applied Time Series Analysis with R – The family of autoregressive moving average models](https://smac-group.github.io/ts/the-family-of-autoregressive-moving-average-models.html)
23. [Breidt & Hsu, non-invertible moving average processes, Statistica Sinica](https://www3.stat.sinica.edu.tw/statistica/oldpdf/a15n27.pdf)
24. [Likelihood Geometry of Moving Average and Autoregressive Processes](https://arxiv.org/abs/2607.04046)
25. [Statistical and Machine Learning forecasting methods: Concerns and ways forward (Makridakis et al., PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0194889)
26. [Time Series Analysis in Machine Learning (arXiv pedagogical review, 2026)](https://arxiv.org/pdf/2606.11746v1.pdf)
27. [Box-Jenkins Methodology](https://www.publichealth.columbia.edu/research/population-health-methods/box-jenkins-methodology)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 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/moving-average-model

English original: https://www.edgepedia.org/moving-average-model
