Professional Documents
Culture Documents
Arima Modelling and Diagnostic Test
Arima Modelling and Diagnostic Test
What is Arima?
Arima stands for AutoRegressive Integrated Moving Average, a class of models that can capture the
dynamics of a time series. Arima models are specified by three parameters: p, d, and q, which
represent the order of the autoregressive, differencing, and moving average components,
respectively. Arima models can be used to forecast future values of a time series, as well as to
analyze the patterns and relationships in the data.
• Identify the appropriate values of p, d, and q by examining the autocorrelation and partial
autocorrelation functions of the time series.
• Estimate the parameters of the model using a method such as maximum likelihood or least
squares.
• Check the adequacy of the model by performing diagnostic tests on the residuals, such as
the Ljung-Box test, the Jarque-Bera test, and the Durbin-Watson test.
• Use the model to make predictions and evaluate the accuracy of the forecasts.
• The Ljung-Box test, which tests the null hypothesis that the residuals are uncorrelated up to
a certain lag. A low p-value indicates that the residuals exhibit significant autocorrelation,
which suggests that the model is misspecified or underfitted. For example, the following
table shows the results of the Ljung-Box test for the Arima(0,1,1) model fitted to the
monthly U.S. unemployment rate. The p-values are all above 0.05, which indicates that the
residuals are not autocorrelated.
Test Statistic
1.98
• Arima(0,1,1) model for the monthly U.S. unemployment rate from 1948 to 2020. This model
captures the trend and seasonality of the data, and produces accurate forecasts for the
future values.
• Arima(1,0,0) model for the quarterly U.S. real GDP growth rate from 1947 to 2020. This
model captures the persistence and volatility of the data, and provides a simple way to
measure the business cycle.
• Arima(2,1,2) model for the daily closing price of the S&P 500 index from 1950 to 2020. This
model captures the non-stationarity and heteroskedasticity of the data, and allows for
testing the efficiency and predictability of the stock market.