Presentation is loading. Please wait.

Presentation is loading. Please wait.

Autocorrelation, Box Jenkins or ARIMA Forecasting.

Similar presentations


Presentation on theme: "Autocorrelation, Box Jenkins or ARIMA Forecasting."— Presentation transcript:

1 Autocorrelation, Box Jenkins or ARIMA Forecasting

2 An autocorrelation is a correlation of the values of a variable with values of the same variable lagged one or more periods back. Consequences of autocorrelation include inaccurate estimates of variances and inaccurate predictions. Lagged Residuals i  i  i-1  i-2  i-3  i-4 11.0**** 20.01.0*** 3-1.00.01.0** 42.0-1.00.01.0* 53.02.0-1.00.01.0 6-2.03.02.0-1.00.0 71.0-2.03.02.0-1.0 81.51.0-2.03.02.0 91.01.51.0-2.03.0 10-2.51.01.51.0-2.0 Lagged Residuals i  i  i-1  i-2  i-3  i-4 11.0**** 20.01.0*** 3-1.00.01.0** 42.0-1.00.01.0* 53.02.0-1.00.01.0 6-2.03.02.0-1.00.0 71.0-2.03.02.0-1.0 81.51.0-2.03.02.0 91.01.51.0-2.03.0 10-2.51.01.51.0-2.0 The Durbin-Watson test (first-order autocorrelation): H0:  1 = 0 H1:  0 The Durbin-Watson test statistic: The Durbin-Watson test (first-order autocorrelation): H0:  1 = 0 H1:  0 The Durbin-Watson test statistic: Autocorrelation and the Durbin- Watson Test

3 DW d Test 4 Steps Step 1: Estimate And obtain the residuals Step 2: Compute the DW d test statistic Step 3: Obtain dL and dU: the lower and upper points from the Durbin-Watson tables

4 Step 4: Implement the following decision rule:

5 k = 1 k = 2 k = 3 k = 4 k = 5 ndL dU dL dU dL dU dL dU dL dU 151.081.360.951.540.821.750.691.970.562.21 161.101.370.981.540.861.730.741.930.622.15 171.131.381.021.540.901.710.781.900.672.10 181.161.391.051.530.931.690.821.870.712.06...... 651.571.63 1.541.661.501.701.471.731.441.77 701.581.64 1.551.671.521.701.491.741.461.77 751.601.65 1.571.681.541.711.511.741.491.77 801.611.66 1.591.691.561.721.531.741.511.77 85 1.621.67 1.601.701.571.721.551.751.521.77 901.631.68 1.611.701.591.731.571.751.541.78 951.641.69 1.621.711.601.731.581.751.561.78 1001.651.69 1.631.721.611.741.591.761.571.78 k = 1 k = 2 k = 3 k = 4 k = 5 ndL dU dL dU dL dU dL dU dL dU 151.081.360.951.540.821.750.691.970.562.21 161.101.370.981.540.861.730.741.930.622.15 171.131.381.021.540.901.710.781.900.672.10 181.161.391.051.530.931.690.821.870.712.06...... 651.571.63 1.541.661.501.701.471.731.441.77 701.581.64 1.551.671.521.701.491.741.461.77 751.601.65 1.571.681.541.711.511.741.491.77 801.611.66 1.591.691.561.721.531.741.511.77 85 1.621.67 1.601.701.571.721.551.751.521.77 901.631.68 1.611.701.591.731.571.751.541.78 951.641.69 1.621.711.601.731.581.751.561.78 1001.651.69 1.631.721.611.741.591.761.571.78 Critical Points of the Durbin-Watson Statistic:  =0.05, n= Sample Size, k = Number of Independent Variables

6 Durbin-Watson Test for Autocorrelation: An Example The Banner Rock Company manufactures and markets its own rocking chair. The company developed special rocker for senior citizens which it advertises extensively on TV. Banner’s market for the special chair is the Carolinas, Florida and Arizona, areas where there are many senior citizens and retired people The president of Banner Rocker is studying the association between his advertising expense (X) and the number of rockers sold over the last 20 months (Y). He collected the following data. He would like to use the model to forecast sales, based on the amount spent on advertising, but is concerned that because he gathered these data over consecutive months that there might be problems of autocorrelation. MonthSales (000)Ad ($millions) 11535.5 21565.5 31535.3 41475.5 51595.4 61605.3 71475.5 81475.7 91525.9 101606.2 111696.3 121765.9 131766.1 141796.2 151846.2 161816.5 171926.7 182056.9 192156.5 202096.4

7 Durbin-Watson Test for Autocorrelation: An Example Step 1: Generate the regression equation

8 Durbin-Watson Test for Autocorrelation: An Example The resulting equation is: Ŷ = - 43.802 + 35.95X The coefficient (r) is 0.828 The coefficient of determination (r 2 ) is 68.5% There is a strong, positive association between sales and advertising Is there potential problem with autocorrelation?

9 ∑(e i -e i-1 ) 2 ∑(e i ) 2 =E4^2 =(E4-F4)^2 =-43.802+35.95*C3 =B3-D3 =E3 Durbin-Watson Test for Autocorrelation: An Example

10 Hypothesis Test: H 0 : No residual correlation (ρ = 0) H 1 : Positive residual correlation (ρ > 0) Critical values for d given α=0.5, n=20, k=1 d l =1.20 d u =1.41 dl=1.20 du=1.41 Reject H0 Positive Autocorrelation Inconclusive Fail to reject H0 No Autocorrelation Durbin-Watson Test for Autocorrelation: An Example

11 11 Autoregressive Models

12 Box Jenkins or Arima Forecasting

13 All stationary time series can be modeled as AR or MA or ARMA models A stationary time series is one with constant mean ( ) and constant variance. Stationary time series are often called mean reverting series—that in the long run the mean does not change (cycles will always die out). If a time series is not stationary it is often possible to make it stationary by using fairly simple transformations

14 Nonstationary Time series Linear trend Nonlinear trend Multiplicative seasonality

15 How to make them stationary Linear trend –Take non-seasonal difference. What is left over will be stationary AR, MA or ARMA Nonlinear trend Exponential growth –Take logs – this makes the trend linear –Take non--seasonal difference Non exponential growth ? Take logs Multiplicative seasonality often occurs when growth is exponential.

16 Identification What does it take to make the time series stationary? Is the stationary model AR, MA, ARMA –If AR(p) how big is p? –If MA(q) how big is q? –If ARMA(p,q) what are p and q?

17 ARMA models If you can’t easily tell if the model is an AR or a MA, assume it is an ARMA model.

18 First of all, the analyst identifies a tentative model considering the nature of the past data. This tentative model and the data are entered in the computer. The Box-Jenkins program then gives the values of the parameters included in the model. A diagnostic check is then conducted to find out whether the model gives an adequate description of the data. If the model satisfies the analyst in this respect, then it is used to make the forecast. Box-Jenkins Method


Download ppt "Autocorrelation, Box Jenkins or ARIMA Forecasting."

Similar presentations


Ads by Google