public class ARIMASim extends SimpleTimeSeries
An AutoRegressive Integrated Moving Average (ARIMA) model is a generalization of an AutoRegressive Moving Average (ARMA) model. They are applied in some cases where data show evidence of non-stationarity, where an initial differencing step (corresponding to the "integrated" part of the model) can be applied to remove the non-stationarity.
Given a time series of data Xt, the ARMA model is a tool for understanding and, perhaps, predicting future values in this series. The model consists of two parts, an autoregressive (AR) part and a moving average (MA) part. The model is usually then referred to as the ARMA(p,q) model where p is the order of the autoregressive part and q is the order of the moving average part.
The notation AR(p) refers to the autoregressive model of order p. The AR(p) model is defined as the weighted sum of the lagged values, a constant, and a white noise.
The notation MA(q) refers to the autoregressive model of order q. The MA(q) model is defined as the weighted sum of the lagged white noises and a drift. That is, a moving average model is conceptually a linear regression of the current value of the series against previous (unobserved) white noise error terms or random shocks. The random shocks are suppose to propagate to future values of the time series.
TimeSeries.Entry| Constructor and Description |
|---|
ARIMASim(int n,
ARIMAModel arima)
Simulate an ARIMA model.
|
ARIMASim(int n,
ARIMAModel arima,
double[] innovations)
Simulate an ARIMA model.
|
| Modifier and Type | Method and Description |
|---|---|
static double[] |
getWhiteNoise(int size) |
diff, drop, equals, get, hashCode, iterator, lag, lag, size, toArray, toStringpublic ARIMASim(int n,
ARIMAModel arima,
double[] innovations)
The innovation length is at least
n + max(AR.length, MA.length) + d
n - the length of the time series to generatearima - an ARIMA modelinnovations - the innovationspublic ARIMASim(int n,
ARIMAModel arima)
n - the length of the time series to generatearima - an ARIMA model