R 中的 ARIMA 模型
David Stoffer
Professor of Statistics at the University of Pittsburgh
Wold 证明:任一平稳时间序列都可表示为白噪声的线性组合:
$$X_t = W_t + a_1 W_{t-1} + a_2 W_{t-2} + ...$$
其中常数 $ \ a_1,a_2,...$
任何 ARMA 模型都具此形式,因此适合建模时间序列。
注:MA(q) 为特例,q 项之后常数为 0。
arima.sim(model, n, ...)
model 是包含模型阶数 c(p, d, q) 与系数的列表n 为序列长度

x <- arima.sim(list(order = c(0, 0, 1), ma = 0.9), n = 100)
plot(x)


x <- arima.sim(list(order = c(2, 0, 0), ar = c(0, -0.9)), n = 100)
plot(x)
R 中的 ARIMA 模型