ARIMA Models in R
David Stoffer
Professor of Statistics at the University of Pittsburgh
Wold proved that any stationary time series may be represented as a linear combination of white noise:
$$X_t = W_t + a_1 W_{t-1} + a_2 W_{t-2} + ...$$
For constants $ \ a_1,a_2,...$
Any ARMA model has this form, which means they are suited to modeling time series.
Note: Special case of MA(q) is already of this form, where constants are 0 after q-th term.
arima.sim(model, n, ...)
model
is a list with order of the model asc(p, d, q)
and the coefficientsn
is the length of the seriesx <- 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)
ARIMA Models in R