Lecture 7: Forecasting: Putting it ALL together. The full model The model with seasonality, quadratic trend, and ARMA components can be written: Ummmm,

Slides:



Advertisements
Similar presentations
Autocorrelation Functions and ARIMA Modelling
Advertisements

DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Decomposition Method.
Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
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.
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.
CHAPTER 5 TIME SERIES AND THEIR COMPONENTS (Page 165)
Lecture 8: Review: Forecasting methods Understanding Markets and Industry Changes.
Non-Seasonal Box-Jenkins Models
Time series analysis - lecture 2 A general forecasting principle Set up probability models for which we can derive analytical expressions for and estimate.
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 Ka-fu Wong University of Hong Kong Forecasting with Regression Models.
Prediction and model selection
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Financial Econometrics
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Non-Seasonal Box-Jenkins Models
Business Forecasting Chapter 5 Forecasting with Smoothing Techniques.
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
Winter’s Exponential smoothing
Chapter 15 Demand Management & Forecasting
Time-Series Analysis and Forecasting – Part V To read at home.
STAT 497 LECTURE NOTES 2.
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Lecture 6: Simple pricing review. Summary of main points Aggregate demand or market demand is the total number of units that will be purchased by a group.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 8: Estimation & Diagnostic Checking in Box-Jenkins.
#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.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Time Series Forecasting Chapter 16.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Time Series Forecasting Chapter 13.
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
Time Series Analysis and Forecasting
© 2000 Prentice-Hall, Inc. Chap The Least Squares Linear Trend Model Year Coded X Sales
Forecasting Operations Management For Competitive Advantage.
Autocorrelation, Box Jenkins or ARIMA Forecasting.
Lecture 6: Topic #1 Forecasting trend and seasonality.
LINREG linreg(options) depvar start end residuals # list where: depvar The dependent variable. start endThe range to use in the regression. The default.
MULTIVARIATE TIME SERIES & FORECASTING 1. 2 : autocovariance function of the individual time series.
Time Series Analysis Lecture 11
Dynamic Models, Autocorrelation and Forecasting ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
The Box-Jenkins (ARIMA) Methodology
Module 4 Forecasting Multiple Variables from their own Histories EC 827.
Seasonal ARIMA FPP Chapter 8.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 14 l Time Series: Understanding Changes over Time.
Univariate Time series - 2 Methods of Economic Investigation Lecture 19.
FORECASTIN G Qualitative Analysis ~ Quantitative Analysis.
Introduction to stochastic processes
Time Series Analysis PART II. Econometric Forecasting Forecasting is an important part of econometric analysis, for some people probably the most important.
Times Series Forecasting and Index Numbers Chapter 16 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Econometric methods of analysis and forecasting of financial markets Lecture 3. Time series modeling and forecasting.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
Demand Management and Forecasting Chapter 11 Portions Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Chapter 15 Forecasting. Forecasting Methods n Forecasting methods can be classified as qualitative or quantitative. n Such methods are appropriate when.
MODEL DIAGNOSTICS By Eni Sumarminingsih, Ssi, MM.
EC 827 Module 2 Forecasting a Single Variable from its own History.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Time Series Analysis By Tyler Moore.
Financial Econometrics Lecture Notes 2
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
CHAPTER 16 ECONOMIC FORECASTING Damodar Gujarati
Forecasting Qualitative Analysis Quantitative Analysis.
BOX JENKINS (ARIMA) METHODOLOGY
Presentation transcript:

Lecture 7: Forecasting: Putting it ALL together

The full model The model with seasonality, quadratic trend, and ARMA components can be written: Ummmm, say what???? The autoregressive components allow us to control for the fact that data is directly related to itself over time. The moving average components, which are often less important, can be used in instances where past errors are expected to be useful in forecasting. 2

Model selection Autocorrelation (AC) can be used to choose a model. The autocorrelations measure any correlation or persistence. For ARMA(p,q) models, autocorrelations begin behaving like an AR(p) process after lag q. Partial autocorrelations (PAC) only analyze direct correlations. For ARMA(p,q) processes, PACs begin behaving like an MA(q) process after lag p. For AR(p) process, the autocorrelation is never theoretically zero, but PAC cuts off after lag p. For MA(q) process, the PAC is never theoretically zero, but AC cuts off after lag q. 3

Model selection An important statistic that can used in choosing a model is the Schwarz Bayesian Information Criteria. It rewards models that reduce the sum of squared errors, while penalizing models with too many regressors. SIC=log(SSE/T)+(k/T)log(T), where k is the number of regressors. The first part is our reward for reducing the sum of squared errors. The second part is our penalty for adding regressors. We prefer smaller numbers to larger number (-17 is smaller than -10). 4

Important commands in EViews ar(1): Includes a single autoregressive lag ar(2): Includes a second autoregressive lag Note, if you include only ar(2), EViews will not include a first order autoregressive lag ma(1): Includes a first order moving average term. This is not the same as forecasting using an average of recent values 5

Selecting an appropriate time series model, concluded Determine if trend/seasonality is important If it is, include it in your model Estimate the model with necessary trend/seasonal components. Look at the correlogram of the residuals: From the equation dialogue box: View => Residual Tests => Correlogram Q-statistics If ACs decay slowly with abrupt cutoff in PAC, this is indicative of AR components. If the PAC doesn’t cutoff, you may need to include MA components as well. Re-estimate the full model with trend/seasonality included with necessary ARMA components. You will likely have several models to choose from. 6

Selecting an appropriate model, cont. After you estimate each model, record SIC/AIC values Use the SIC/AIC values to select an appropriate model. Finally, investigate the final set of residuals. There should be no correlation in your residuals. Evidenced by individual correlation coefficients within 95% confidence intervals about zero. Ljung-Box Q-statistics should be small with probability values typically in excess of

Exponential smoothing Very useful when we have only a handful of observations Exponential smoothing can be modified to account for trend and seasonality. If you suspect your data does not contain trend/seasonality, simply use single exponential smoothing: The forecast h periods into the future is constant and given by: 8

Exponential smoothing with trend Obtain the smoothed level series, L t : L t =  y t +(1-  )(L t-1 +T t-1 ) The trend series, T t is formed as: T t =  L t -L t-1 )+(1-  )(T t-1 ) The forecasted series: 9

Example: Suppose the first three observations of a series are 500, 350, and 250. Suppose  =0.30,  =0.10. Suppose the trend and level are initialized such that T 1 =0, L 1 =500. L 2 =0.30 (350) +(1-0.30)(500-0) = 455 T 2 =0.10( ) (0) = The forecasted value for the third period then becomes: 10

Exponential smoothing: Trend and seasonality Eviews also allows for exponential smoothing with trend and seasonality. With seasonality we use a smoothed series along with estimates based on trends and seasonality. Which option should I select? If you believe your series lacks either seasonality or trend, single smoothing works perfectly. From visual inspection of your series, if only trend appears to be present, you will need either “double smoothing” or “Holt- Winters” with “no seasonal.” If seasonality and trend are expected, you will need to use “Holt-Winters” with the allowance of multiplicative or additive seasonality. 11

HUH? Eviews provides five options when you ask it, no tell it, to provide exponential smoothing: Single: (no seasonality/no trend) Double: (trend – value of  =  ). Holt-Winters – No seasonal (Trend,  and  are not equal, but are estimated in the data). Holt-Winters – Additive (Trend and Seasonality. The seasonal component is estimated with an additive filter). Holt-Winters - Multiplicative 12

Breaks? Uh oh? My data appears to have a break. The developed time series methods assume the black box generating the data is constant. Not necessarily true: Learning curves may cause cost curves to decrease Acquisition of companies or new technologies may alter sales/costs 13

Dealing with breaks? Solutions: Limit the sample to the post break period Sometimes taking logs and/or differencing can help mitigate the effects of breaks/outliers. Include variables that help identify the breaks Model the breaks directly: The most obvious way is to include a break in mean and/or a break in trend. We should make sure that the included break is modeled in a sensible way A negative linear trend, for example, will imply the data may eventually turn negative. 14

Break in mean 15

Break in trend 16

Statistics useful in comparing the out of sample forecasting accuracy Mean squared error: For an h-step extrapolation forecast: Root mean squared error is the square root of this number. Mean absolute error 17

In Eviews: If you have a forecasted series, say xf, and an original series x, you can calculate the mean squared error as: genr To calculate the moving average forecasts: Suppose you use the most recent four periods Limit your data set to include only the last four observations A variable called “maf_4” is calculated by: genr 18