Presentation is loading. Please wait.

Presentation is loading. Please wait.

Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.

Similar presentations


Presentation on theme: "Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material."— Presentation transcript:

1 slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material based on: Bowerman-O’Connell-Koehler, Brooks/Cole

2 slide 2 DSCI 5340 FORECASTING Page 438 Ex 9.2, Ex 9.3, Ex 9.4 Homework in Textbook

3 slide 3 DSCI 5340 FORECASTING Ex 9.2 Page 438

4 slide 4 DSCI 5340 FORECASTING Ex 9.3 Page 438 Part a Autocorrelations Dies Down Slowly – Series is Not Stationary

5 slide 5 DSCI 5340 FORECASTING Ex 9.3b Page 438

6 slide 6 DSCI 5340 FORECASTING Ex 9.3c Page 438

7 slide 7 DSCI 5340 FORECASTING Ex 9.3d Page 438 Autocorrelations Cut off Quickly – Series is Stationary

8 slide 8 DSCI 5340 FORECASTING Ex 9.3e Page 438 Interpret SAC & SPAC

9 slide 9 DSCI 5340 FORECASTING Ex 9.3e Page 438 Interpret SAC & SPAC SAC dies exponentially and SPAC cuts off after Lag 1, therefore…

10 slide 10 DSCI 5340 FORECASTING Ex 9.4a Page 438 …the series is AR(1)

11 slide 11 DSCI 5340 FORECASTING Ex 9.4b Page 438

12 slide 12 DSCI 5340 FORECASTING Ex 9.4c Page 439

13 slide 13 DSCI 5340 FORECASTING Ex 9.4d Page 439 part 1 y 3 hat = 3.06464 + (.64774 + 1)y 2 –.64774y 1 y 3 hat = 3.06464 + (.64774 + 1)*239 -.64774*235 y 3 hat = 244.6556 y 3 - y 3 hat =244.090 - 244.6556 = -.5656

14 slide 14 DSCI 5340 FORECASTING Ex 9.4d Page 439 part 2 At time origin 90, Y 91 hat = 3.06464 + (.64774 + 1)y 90 –.64774y 89 Y 91 hat = 3.06464 + (.64774 + 1)*1029.480 -.64774*1018.420 Y 91 hat = 1039.708 Y 92 hat = 3.06464 + (.64774 + 1)y 91 hat–.64774y 90 Y 92 hat = 3.06464 + (.64774 + 1)*1039.708 -.64774*1029.480 Y 92 hat = 1049.398 Y 93 hat = 3.06464 + (.64774 + 1)y 92 hat -.64774y 91 hat Y 93 hat = 3.06464 + (.64774 + 1)* 1049.398 -.64774*1039.708 Y 93 hat = 1058.739

15 slide 15 DSCI 5340 FORECASTING Ex 9.4d Page 439 part 3

16 slide 16 DSCI 5340 FORECASTING Chapter 9 General Nonseasonal Models

17 slide 17 DSCI 5340 FORECASTING Autoregressive Moving Average Models A time series that is a linear function of p past values plus a linear combination of q past errors is called an autoregressive moving average process of order (p,q), denoted ARMA(p,q). Also, denoted ARIMA(p,0,q)

18 slide 18 DSCI 5340 FORECASTING Box-Jenkins ARIMAX Models n ARIMAX: AutoRegressive Integrated Moving Average with eXogenous variables n AR: Autoregressive  Time series is a function of its own past. n MA: Moving Average  Time series is a function of past shocks (deviations, innovations, errors, and so on). n I: Integrated  Differencing provides stochastic trend and seasonal components, so forecasting requires integration (undifferencing). n X: Exogenous  Time series is influenced by external factors. (These input variables can actually be endogenous or exogenous.)

19 slide 19 DSCI 5340 FORECASTING Formulas for TACs

20 slide 20 DSCI 5340 FORECASTING Formulas for TACs

21 slide 21 DSCI 5340 FORECASTING Determine Whether the SAC or the SPAC is Cutting Off More Abruptly

22 slide 22 DSCI 5340 FORECASTING What if SAC and SPAC Are Not Significant for any Lags? n This could happen if the time series is white noise:

23 slide 23 DSCI 5340 FORECASTING 23 The Backshift Operator The backshift operator B k (sometimes L k is used) shifts a time series by k time units. Shift 1 time unit Shift 2 time units Shift k time units The backshift operator notation is a convenient way to write ARMA models.

24 slide 24 DSCI 5340 FORECASTING ACF and PACF after 1-Lag Differencing Indication of MA(1) or MA(2) with sharp cut-off after lag 2 Damping pattern eliminates AR possibility

25 slide 25 DSCI 5340 FORECASTING Autocorrelation Plots for an AR(2) Time Series

26 slide 26 DSCI 5340 FORECASTING Classical Decomposition (Box-Jenkins) Procedure 26 Verify presence of any seasonal or time-based trends Achieve data stationarity using techniques such as “Differencing” where you difference consecutive data points up to N-lag Use sample Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) to see if the data follows Moving Average (MA) or Auto- regressive (AR) process, respectively “Goodness of Fit” tests (e.g., Akaike Information Criterion) on the selected model parameters to find model fits that are statistically significant p – MA order d – Differencing order q – AR order

27 slide 27 DSCI 5340 FORECASTING AIC and SBC/BIC – Information Criteria: Smaller is Better

28 slide 28 DSCI 5340 FORECASTING Stationarity of the AR process If an AR model is not stationary, this implies that previous values of the error term will have a non-declining effect on the current value of the dependent variable. This implies that the coefficients on the MA process would not converge to zero as the lag length increases. For an AR model to be stationary, the coefficients on the corresponding MA process decline with lag length, converging on 0.

29 slide 29 DSCI 5340 FORECASTING Not Stationary

30 slide 30 DSCI 5340 FORECASTING AR Process The test for stationarity in an AR model (with p lags) is that the roots of the characteristic equation lie outside the unit circle (i.e. > 1), where the characteristic equation is:

31 slide 31 DSCI 5340 FORECASTING Unit Root When testing for stationarity for any variable, we describe it as testing for a ‘unit root’, this is based on this same idea. The most basic AR model is the AR(1) model, on which most tests for stationarity are based, such as the Dickey-Fuller test.

32 slide 32 DSCI 5340 FORECASTING Unit Root Test (L is the backshift operator) (This is the characteristic equation)

33 slide 33 DSCI 5340 FORECASTING Unit Root Test With the AR(1) model, the characteristic equation of (1-z)= 0, suggests that it has a root of z = 1. This lies on the unit circle, rather than outside it, so we conclude that it is non- stationary. As we increase the lags in the AR model, so the potential number of roots increases, so for 2 lags, we have a quadratic equation producing 2 roots, for the model to be stationary, they both need to lie outside the unit circle.

34 slide 34 DSCI 5340 FORECASTING 34 One Example: The Dickey-Fuller Single Mean Test Model: Null Hypothesis: Alternative Hypothesis:

35 slide 35 DSCI 5340 FORECASTING Mean of an AR(1) Process The (unconditional mean) for an AR(1) process, with a constant (μ) is given by: For ϕ 1 = 1, the mean drifts to infinity and the process is non-stationary

36 slide 36 DSCI 5340 FORECASTING Variance of an AR(1) Process The (unconditional) variance for an AR process of order 1 (excluding the constant) is: For ϕ 1 = 1, the variance drifts to infinity and the process is non-stationary

37 slide 37 DSCI 5340 FORECASTING ADF – Augmented Dickey Fuller Test for Unit Root proc arima data = TowelSales; identify var = y( 1) nlag=15 stationarity = (adf = (2)); title "ARIMA Stationarity Analysis"; run; Type Lags Rho Pr F Zero Mean 2 -112.754 0.0001 -6.09 <.0001 Single Mean 2 -112.743 0.0001 -6.07 <.0001 18.40 0.0010 Trend 2 -120.735 0.0001 -6.18 <.0001 19.12 0.0010 Reject unit root – conclude AR(2) is stationary.

38 slide 38 DSCI 5340 FORECASTING Scan Procedure – Use for Preliminary Estimate proc arima data = TowelSales; identify var = y( 1) nlag=15 scan; title "ARIMA Analysis"; run; Model notation: In this example, ARIMA(2,2) is the simplest model that yields insignificant terms:

39 slide 39 DSCI 5340 FORECASTING Tentative Model from Output – MA(1) or ARIMA(0,0,1) The simplest model that has a high probability is MA(1):  AR(1) has a low probability  AR(2) is more complex  ARMA(1,1) is more complex

40 slide 40 DSCI 5340 FORECASTING Forecast Model Building: Fit and Holdout samples Fit SampleHoldout Sample Used to estimate model parameters for accuracy evaluation Used to forecast values in holdout sample Used to evaluate model accuracy Simulates retrospective study Full = Fit + Holdout data is used to fit deployment model

41 slide 41 DSCI 5340 FORECASTING Page 443-445 Ex 9.5, Ex 9.6 Ex 9.7 Homework in Textbook


Download ppt "Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material."

Similar presentations


Ads by Google