Professional Documents
Culture Documents
Autoregression of Order p
Auto-correlation
X t = ϕ1X t−1 + ϕ2 X t−2 + … + ϕp X t−p + Wt
Use ACF and PACF to detect model
Moving Average of Order q
X t = Zt + θ1Zt−1 + θ2 Zt−2 + … + θq Zt−p arima(): To estimate parameters of an AM or
(Complete) Auto-correlation function: acf() OR: autoplot(forecast(arima_model, level=c(95),
ARMA model, and build model
ARMA (p, q) h=number_to_predict))
acf(data, type=‘correlation’, na.action=na.pass) arima(data, order=c(p, 0, q),method=c(‘ML’))
X t = ϕ1X t−1 + ϕ2 X t−2 + … + ϕp X t−p+
Zt + θ1Zt−1 + θ2 Zt−2 + … + θq Zt−p
RStudio® is a trademark of RStudio, Inc. • CC BY SA Yunjun Xia, Shuyu Huang • yx2569@columbia.edu, sh3967@columbia.edu • Updated: 2019-10