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

Slides:



Advertisements
Similar presentations
FINANCIAL TIME-SERIES ECONOMETRICS SUN LIJIAN Feb 23,2001.
Advertisements

Cointegration and Error Correction Models
Autocorrelation Functions and ARIMA Modelling
ARIMA Modelling and Forecasting
Time Series Analysis Definition of a Time Series process
Dates for term tests Friday, February 07 Friday, March 07
Nonstationary Time Series Data and Cointegration
DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Use of Business Tendency Survey Results for Forecasting Industry Production in Slovakia Use of Business Tendency Survey Results for Forecasting Industry.
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
STATIONARY AND NONSTATIONARY TIME SERIES
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
Non-stationary data series
Model specification (identification) We already know about the sample autocorrelation function (SAC): Properties: Not unbiased (since a ratio between two.
Unit Roots & Forecasting
Applied Business Forecasting and Planning
Time Series Analysis Materials for this lecture Lecture 5 Lags.XLS Lecture 5 Stationarity.XLS Read Chapter 15 pages Read Chapter 16 Section 15.
Time Series Building 1. Model Identification
R. Werner Solar Terrestrial Influences Institute - BAS Time Series Analysis by means of inference statistical methods.
Economics 310 Lecture 25 Univariate Time-Series Methods of Economic Forecasting Single-equation regression models Simultaneous-equation regression models.
How should these data be modelled?. Identification step: Look at the SAC and SPAC Looks like an AR(1)- process. (Spikes are clearly decreasing in SAC.
Non-Seasonal Box-Jenkins Models
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” behaviour.
BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.
Time series analysis - lecture 2 A general forecasting principle Set up probability models for which we can derive analytical expressions for and estimate.
ARIMA-models for non-stationary time series
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
Prediction and model selection
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Financial Econometrics
Modern methods The classical approach: MethodProsCons Time series regression Easy to implement Fairly easy to interpret Covariates may be added (normalization)
Non-Seasonal Box-Jenkins Models
BOX JENKINS METHODOLOGY
Box Jenkins or Arima Forecasting. H:\My Documents\classes\eco346\Lectures\chap ter 7\Autoregressive Models.docH:\My Documents\classes\eco346\Lectures\chap.
AR- MA- och ARMA-.
ARMA models Gloria González-Rivera University of California, Riverside
STAT 497 LECTURE NOTES 2.
The Box-Jenkins Methodology for ARIMA Models
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 8: Estimation & Diagnostic Checking in Box-Jenkins.
Linear Stationary Processes. ARMA models. This lecture introduces the basic linear models for stationary processes. Considering only stationary processes.
#1 EC 485: Time Series Analysis in a Nut Shell. #2 Data Preparation: 1)Plot data and examine for stationarity 2)Examine ACF for stationarity 3)If not.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 2 review: Quizzes 7-12* (*) Please note that.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 3: Time Series Regression (Ch. 6) Material.
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 5: Exponential Smoothing (Ch. 8) Material.
John G. Zhang, Ph.D. Harper College
Autocorrelation, Box Jenkins or ARIMA Forecasting.
The Properties of Time Series: Lecture 4 Previously introduced AR(1) model X t = φX t-1 + u t (1) (a) White Noise (stationary/no unit root) X t = u t i.e.
Big Data at Home Depot KSU – Big Data Survey Course Steve Einbender Advanced Analytics Architect.
K. Ensor, STAT Spring 2004 Memory characterization of a process How would the ACF behave for a process with no memory? What is a short memory series?
1 Chapter 3:Box-Jenkins Seasonal Modelling 3.1Stationarity Transformation “Pre-differencing transformation” is often used to stablize the seasonal variation.
Time Series Basics Fin250f: Lecture 8.1 Spring 2010 Reading: Brooks, chapter
MULTIVARIATE TIME SERIES & FORECASTING 1. 2 : autocovariance function of the individual time series.
Auto Regressive, Integrated, Moving Average Box-Jenkins models A stationary times series can be modelled on basis of the serial correlations in it. A non-stationary.
Time Series Analysis Lecture 11
1 Chapter 5 : Volatility Models Similar to linear regression analysis, many time series exhibit a non-constant variance (heteroscedasticity). In a regression.
The Box-Jenkins (ARIMA) Methodology
Seasonal ARIMA FPP Chapter 8.
Introduction to stochastic processes
Stationarity and Unit Root Testing Dr. Thomas Kigabo RUSUHUZWA.
STAT 497 LECTURE NOTES 3 STATIONARY TIME SERIES PROCESSES
Review of Unit Root Testing D. A. Dickey North Carolina State University (Previously presented at Purdue Econ Dept.)
Lecture 12 Time Series Model Estimation Materials for lecture 12 Read Chapter 15 pages 30 to 37 Lecture 12 Time Series.XLSX Lecture 12 Vector Autoregression.XLSX.
Financial Econometrics Lecture Notes 2
Applied Econometric Time Series Third Edition
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
CHAPTER 16 ECONOMIC FORECASTING Damodar Gujarati
Time Series introduction in R - Iñaki Puigdollers
BOX JENKINS (ARIMA) METHODOLOGY
Presentation transcript:

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

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

slide 3 DSCI 5340 FORECASTING Ex 9.2 Page 438

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

slide 5 DSCI 5340 FORECASTING Ex 9.3b Page 438

slide 6 DSCI 5340 FORECASTING Ex 9.3c Page 438

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

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

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

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

slide 11 DSCI 5340 FORECASTING Ex 9.4b Page 438

slide 12 DSCI 5340 FORECASTING Ex 9.4c Page 439

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

slide 14 DSCI 5340 FORECASTING Ex 9.4d Page 439 part 2 At time origin 90, Y 91 hat = ( )y 90 –.64774y 89 Y 91 hat = ( )* * Y 91 hat = Y 92 hat = ( )y 91 hat–.64774y 90 Y 92 hat = ( )* * Y 92 hat = Y 93 hat = ( )y 92 hat y 91 hat Y 93 hat = ( )* * Y 93 hat =

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

slide 16 DSCI 5340 FORECASTING Chapter 9 General Nonseasonal Models

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)

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.)

slide 19 DSCI 5340 FORECASTING Formulas for TACs

slide 20 DSCI 5340 FORECASTING Formulas for TACs

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

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:

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.

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

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

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

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

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.

slide 29 DSCI 5340 FORECASTING Not Stationary

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:

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.

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

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.

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

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

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

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 <.0001 Single Mean < Trend < Reject unit root – conclude AR(2) is stationary.

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:

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

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

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