BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.

Slides:



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

Time series modelling and statistical trends
Autocorrelation Functions and ARIMA Modelling
DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Part II – TIME SERIES ANALYSIS C4 Autocorrelation Analysis © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Model Building For ARIMA time series
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
Analysis of Sales of Food Services & Drinking Places Julianne Shan Ho-Jung Hsiao Christian Treubig Lindsey Aspel Brooks Allen Edmund Becdach.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Applied Business Forecasting and Planning
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.
Business Forecasting Chapter 10 The Box–Jenkins Method of Forecasting.
Tutorial for solution of Assignment week 40 “Forecasting monthly values of Consumer Price Index Data set: Swedish Consumer Price Index” sparetime.
13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving.
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” behaviour.
Moving Averages Ft(1) is average of last m observations
Forecasting JY Le Boudec 1. Contents 1.What is forecasting ? 2.Linear Regression 3.Avoiding Overfitting 4.Differencing 5.ARMA models 6.Sparse ARMA models.
ARIMA-models for non-stationary time series
Modeling Cycles By ARMA
Data Sources The most sophisticated forecasting model will fail if it is applied to unreliable data Data should be reliable and accurate Data should be.
1 BABS 502 Lecture 10 March 23, 2011 (C) Martin L. Puterman.
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
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
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.
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.
Chapter 15 Forecasting Copyright © 2011 Pearson Addison-Wesley. All rights reserved. Slides by Niels-Hugo Blunch Washington and Lee University.
(c) Martin L. Puterman1 BABS 502 Regression Based Forecasting February 28, 2011.
AR- MA- och ARMA-.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
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.
TIME SERIES ANALYSIS Time Domain Models: Red Noise; AR and ARMA models LECTURE 7 Supplementary Readings: Wilks, chapters 8.
(c) Martin L. Puterman1 BABS 502 Regression Based Forecasting March 4, 2014.
#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.
Tutorial for solution of Assignment week 39 “A. Time series without seasonal variation Use the data in the file 'dollar.txt'. “
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
John G. Zhang, Ph.D. Harper College
Autocorrelation, Box Jenkins or ARIMA Forecasting.
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
LINREG linreg(options) depvar start end residuals # list where: depvar The dependent variable. start endThe range to use in the regression. The default.
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS 1. After identifying and estimating a time series model, the goodness-of-fit of the model and validity of the.
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.
Forecasting (prediction) limits Example Linear deterministic trend estimated by least-squares Note! The average of the numbers 1, 2, …, t is.
Seasonal ARMA forecasting and Fitting the bivariate data to GARCH John DOE.
Case 2 Review Brad Barker, Benjamin Milroy, Matt Sonnycalb, Kristofer Still, Chandhrika Venkataraman Time Series - February 2013.
1 Chapter 5 : Volatility Models Similar to linear regression analysis, many time series exhibit a non-constant variance (heteroscedasticity). In a regression.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
The Box-Jenkins (ARIMA) Methodology
Module 4 Forecasting Multiple Variables from their own Histories EC 827.
Seasonal ARIMA FPP Chapter 8.
Ch16: Time Series 24 Nov 2011 BUSI275 Dr. Sean Ho HW8 due tonight Please download: 22-TheFed.xls 22-TheFed.xls.
Subodh Kant. Auto-Regressive Integrated Moving Average Also known as Box-Jenkins methodology A type of linear model Capable of representing stationary.
Analysis of financial data Anders Lundquist Spring 2010.
MODEL DIAGNOSTICS By Eni Sumarminingsih, Ssi, MM.
Case study 4: Multiplicative Seasonal ARIMA Model
Lecture 8 ARIMA Forecasting II
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
BOX JENKINS (ARIMA) METHODOLOGY
Chap 7: Seasonal ARIMA Models
Presentation transcript:

BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009

© Martin L. Puterman Content The Box-Jenkins Modeling Process Seasonal ARIMA Models Concluding comments on ARIMA models

© Martin L. Puterman The Box Jenkins Approach to forecasting with ARIMA models Identification Fitting Diagnostics Refitting if necessary Forecasting

© Martin L. Puterman Identification What does the data look like? What patterns exist? –Is the data stationary? Tools –Plots of data –PACF –ACF

© Martin L. Puterman Model Fitting Trial model is proposed –e.g. ARIMA(0,1,2) Model parameters are estimated using statistical software –Output includes Parameter estimates Test statistics Goodness of fit measures Residuals Diagnostics

© Martin L. Puterman Diagnostics Determines whether model fits data adequately. –The goal is to extract all information and ensure that residuals are white noise Key measures –ACF of Residuals –PACF of Residuals –Ljung-Box-Pierce Q Statistic (Portmanteau Test) Tests whether a set of residual autocorrelations is significantly different than zero. See next slide for details If model deemed adequate, proceed with forecasting, otherwise try a new model.

© Martin L. Puterman Comments on Model Adequacy Testing (NCSS Documentation) The Portmanteau Test (sometimes called the Box-Pierce-Ljung statistic) is used to determine if there is any pattern left in the residuals that may be modeled. This is accomplished by testing the significance of the autocorrelations up to a certain lag. In a private communication with Dr. Greta Ljung, we have learned that this test should only be used for lags between 13 and 24. The test is computed as : where r j is the jth residual autocorrelation. Under H 0 : All residual autocorrelations equal zero; Q(k) is distributed as a Chi-square with (K-p-q-P-Q) degrees of freedom where p,q,P and Q are the model orders.

© Martin L. Puterman Forecasting with ARIMA models ARIMA forecasting is done automatically in any statistical program. You should try to figure out how this works in terms of the equation for the model. –It helps to write out model equation This is complicated with seasonal models Using the Backshift operator B k x t = x t-k helps. –In AR portion of models use past values in forecasts –In MA portion of models use past residuals in forecasts. Prediction intervals are usually very wide; out of sample forecast errors might be more reliable.

© Martin L. Puterman Google Share Price Forecasting SeriesMonthly price (Jan 23, 2006 – March 3, 2008) ModelRegular(1,1,0) Seasonal (No seasonal parameters) Observations111 Root Mean Square Model Estimation Section ParameterParameterStandardProb NameEstimateErrorT-ValueLevel AR(1) Forecast of price RowDateForecastLower Upper 95% Limit Fitted Model X t+1 -X t =.238 (X t – X t-1 ) or X t+1 = X t (X t – X t-1 ) One Step Ahead Forecast = * (432.7 – 471.2) = 423.5

© Martin L. Puterman Seasonal ARIMA Models Basic concept is to add extra terms to model that take into account a persistent seasonal pattern For example, a AR model for monthly data may contain information from lag 12, lag 24, etc. –i.e. Y t = A 1 Y t-12 +A 2 Y t-24 + e t –This is referred to as an ARIMA(0,0,0)x(2,0,0) 12 model General form is ARIMA(p,d,q)x(ps,ds,qs) s –This combines both non-seasonal and seasonal terms This provides a broader class of models so the challenge is to select a model from a larger class.

© Martin L. Puterman Wages Data Observe data is non-stationary

© Martin L. Puterman Differenced Wages Data Autocorrelations of Wages (1,0,12,0,0) LagCorrelationLagCorrelationLagCorrelation LagCorrelation Significant if |Correlation|>

© Martin L. Puterman Model Fitting ARIMA(0,1,3)x(0,0,1) 12 Model Estimation Section ParameterStandardProb NameEstimateErrorT-ValueLevel MA(1) MA(2) E MA(3) SMA(1) Ljung-Box Inadequate Model

© Martin L. Puterman Model Fitting ARIMA(0,1,3)x(0,0,2) 12 Model Estimation Section ParameterStandardProb NameEstimateErrorT-ValueLevel MA(1) MA(2) E MA(3) SMA(1) SMA(2) E

© Martin L. Puterman Model Fitting ARIMA(0,1,0)x(1,1,0) 12 Model Estimation Section ParameterParameterStandardProb NameEstimateErrorT-ValueLevel SAR(1) E

© Martin L. Puterman Model Comparison ModelRMSELjung- Box (24) Residual ACF (0,1,3)x(0,0,1) (0,1,3)x(0,0,2) (0,1,0)x(1,1,0) But we are concerned about forecasting and should compare models out of sample (usually simpler models are better). Also – forecasts from the last model looks most reasonable.

© Martin L. Puterman Concluding Comments The ARIMA models are not designed for models with multiplicative seasonality. In such cases; –Use log transforms. –De-seasonalize and use ARIMA on de-seasonalized data. Models with persistent trends can be de-trended and ARIMA applied to the de- trended series. Several automatic fitting programs do a good job fitting ARIMA models Parsimony is desirable – use models with as few as terms as possible –AIC and BIC criterion penalize number of terms in the model –Theoretical result – any high order MA model can be written as a low order AR model and vice versa; e.g. an MA(6) can be closely represented by an AR(1) or AR(2) model Key point – Above approach to model selection is based on in sample fitting Need to compare all models on the basis of out-of sample forecasts on holdout data. –Simpler ARIMA models seem to work better out of sample even though they may not give the best fit. –Recall from early slides that fitting is different than forecasting. ARIMA models forecast can be pooled with those from other models.