Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27.

Slides:



Advertisements
Similar presentations
ECON 251 Research Methods 11. Time Series Analysis and Forecasting.
Advertisements

Copyright © 2011 Pearson Education, Inc. Curved Patterns Chapter 20.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 20 Curved Patterns.
Chapter 13 Additional Topics in Regression Analysis
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 5 Time Series Analysis
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.
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
© 2011 Pearson Education, Inc. Statistics for Business and Economics Chapter 13 Time Series: Descriptive Analyses, Models, & Forecasting.
Time Series and Forecasting
Copyright ©2011 Pearson Education 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft Excel 6 th Global Edition.
© 2003 Prentice-Hall, Inc.Chap 12-1 Business Statistics: A First Course (3 rd Edition) Chapter 12 Time-Series Forecasting.
Lecture 4 Time-Series Forecasting
Applied Business Forecasting and Planning
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 16-1 Chapter 16 Time-Series Forecasting and Index Numbers Basic Business Statistics 10 th.
Copyright © 2011 Pearson Education, Inc. Multiple Regression Chapter 23.
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 12-1 Chapter 12 Simple Linear Regression Statistics for Managers Using.
Chapter 15 Time-Series Forecasting and Index Numbers
The Forecast Process Dr. Mohammed Alahmed
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall7-1 Chapter 7: Forecasting.
Regression Method.
Time-Series Analysis and Forecasting – Part V To read at home.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 25 Categorical Explanatory Variables.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft.
Copyright © 2012 Pearson Education, Inc. All rights reserved. Chapter 10 Introduction to Time Series Modeling and Forecasting.
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Chapter 16: Time-Series Analysis
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2011 Pearson Education, Inc. Regression Diagnostics Chapter 22.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 22 Regression Diagnostics.
ESTIMATING & FORECASTING DEMAND Chapter 4 slide 1 Regression Analysis estimates the equation that best fits the data and measures whether the relationship.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 23 Multiple Regression.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
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.
Chap 14-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 14 Additional Topics in Regression Analysis Statistics for Business.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 27 Time Series.
Copyright © 2011 Pearson Education, Inc. Analysis of Variance Chapter 26.
Time Series Analysis and Forecasting
© 2000 Prentice-Hall, Inc. Chap The Least Squares Linear Trend Model Year Coded X Sales
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 19 Linear Patterns.
Copyright © 2011 Pearson Education, Inc. The Simple Regression Model Chapter 21.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Time Series Forecasting and Index Numbers Statistics.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Component Factors of the Time-Series Model Smoothing of Data Series  Moving Averages  Exponential.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 21 The Simple Regression Model.
Chapter 14: Inference for Regression. A brief review of chapter 4... (Regression Analysis: Exploring Association BetweenVariables )  Bi-variate data.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
Copyright © 2011 Pearson Education, Inc. Regression Diagnostics Chapter 22.
Copyright © 2012 Pearson Education. All rights reserved Copyright © 2012 Pearson Education. All rights reserved. Chapter 20 Time Series Analysis.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 24 Building Regression Models.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Multiple Regression Model Building Basic Business Statistics 10 th Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 16-1 Chapter 16 Time-Series Forecasting and Index Numbers Basic Business Statistics 11 th.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 16-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Time Series and Forecasting
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 14 l Time Series: Understanding Changes over Time.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 26 Analysis of Variance.
FORECASTIN G Qualitative Analysis ~ Quantitative Analysis.
Demand Management and Forecasting Chapter 11 Portions Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 7: Time Series Analysis and Forecasting 1 Priyantha.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Chapter 11 – With Woodruff Modications Demand Management and Forecasting Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Time Series Forecasting Trends and Seasons and Time Series Models PBS Chapters 13.1 and 13.2 © 2009 W.H. Freeman and Company.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Statistics for Managers using Microsoft Excel 3rd Edition
John Loucks St. Edward’s University . SLIDES . BY.
Forecasting Qualitative Analysis Quantitative Analysis.
Chapter 13 Additional Topics in Regression Analysis
Presentation transcript:

Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27

27.1 Decomposing a Time Series Based on monthly shipments of computers and electronics in the US from 1992 through 2007, what would you forecast for the future?  Use methods for modeling time series, including regression.  Remember that forecasts are always extrapolations in time. Copyright © 2011 Pearson Education, Inc. 3 of 55

27.1 Decomposing a Time Series  The analysis of a time series begins with a timeplot, such as that of monthly shipments of computers and electronics shown below. Copyright © 2011 Pearson Education, Inc. 4 of 55

27.1 Decomposing a Time Series  Forecast: a prediction of a future value of a time series that extrapolates historical patterns.  Components of a time series are:  Trend: smooth, slow meandering pattern.  Seasonal: cyclical oscillations related to seasons.  Irregular: random variation. Copyright © 2011 Pearson Education, Inc. 5 of 55

27.1 Decomposing a Time Series Smoothing  Smoothing: removing irregular and seasonal components of a time series to enhance the visibility of the trend.  Moving average: a weighted average of adjacent values of a time series; the more terms that are averaged, the smoother the estimate of the trend. Copyright © 2011 Pearson Education, Inc. 6 of 55

27.1 Decomposing a Time Series Smoothing  Seasonally adjusted: removing the seasonal component of a time series.  Many government reported series are seasonally adjusted, for example, unemployment rates. Copyright © 2011 Pearson Education, Inc. 7 of 55

27.1 Decomposing a Time Series Smoothing: Monthly Shipments Example Red: 13 month moving average Green: seasonally adjusted. Copyright © 2011 Pearson Education, Inc. 8 of 55

27.1 Decomposing a Time Series Smoothing: Monthly Shipments Example Strong seasonal component (three-month cycle). Copyright © 2011 Pearson Education, Inc. 9 of 55

27.1 Decomposing a Time Series Exponential Smoothing  Exponentially weighted moving average (EWMA): a weighted average of past observations with geometrically declining weights.  EWMA can be written as. Hence, the current smoothed value is the weighted average of the current observation and the prior smoothed value. Copyright © 2011 Pearson Education, Inc. 10 of 55

27.1 Decomposing a Time Series Exponential Smoothing  The choice of w affects the level of smoothing. The larger w is, the smoother s t becomes.  The larger w is, the more the smoothed values trail behind the observations. Copyright © 2011 Pearson Education, Inc. 11 of 55

27.1 Decomposing a Time Series Exponential Smoothing Monthly Shipments Example (w = 0.5) Copyright © 2011 Pearson Education, Inc. 12 of 55

27.1 Decomposing a Time Series Exponential Smoothing Monthly Shipments Example (w = 0.8) Copyright © 2011 Pearson Education, Inc. 13 of 55

27.2 Regression Models  Leading indicator: an explanatory variable that anticipates coming changes in a time series.  Leading indicators are hard to find.  Predictor: an ad hoc explanatory variable in a regression model used to forecast a time series (e.g., time index, t) Copyright © 2011 Pearson Education, Inc. 14 of 55

27.2 Regression Models Polynomial Trends  Polynomial trend: a regression model for a time series that uses powers of t as explanatory variables.  Example: the third-degree or cubic polynomial. Copyright © 2011 Pearson Education, Inc. 15 of 55

27.2 Regression Models Polynomial Trends Monthly shipments: Six-degree polynomial The high R 2 indicates a great fit to historical data. Copyright © 2011 Pearson Education, Inc. 16 of 55

27.2 Regression Models Polynomial Trends Monthly shipments: Six-degree polynomial The model has serious problems forecasting. Copyright © 2011 Pearson Education, Inc. 17 of 55

27.2 Regression Models Polynomial Trends  Avoid forecasting with polynomials that have high powers of the time index. Copyright © 2011 Pearson Education, Inc. 18 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Motivation The U.S. auto industry neared collapse in Could it have been anticipated from historical trends? Copyright © 2011 Pearson Education, Inc. 19 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Motivation – Timeplot of quarterly sales (in thousands) Cars in blue; light trucks in red. Copyright © 2011 Pearson Education, Inc. 20 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Method Use regression to model the trend and seasonal components apparent in the timeplot. Use a polynomial for trend and three dummy variables for the four quarters. Let Q1 = 1 if quarter 1, 0 otherwise; Q2 = 1 if quarter 2, 0 otherwise; Q3 = 1 if quarter 3, 0 otherwise. The fourth quarter is the baseline category. Consider the possibility of lurking variables (e.g., gasoline prices). Copyright © 2011 Pearson Education, Inc. 21 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Mechanics Linear and quadratic trend fit to the data. Linear appears more appropriate. Copyright © 2011 Pearson Education, Inc. 22 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Mechanics Estimate the model. Check conditions before proceeding with inference. Copyright © 2011 Pearson Education, Inc. 23 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Mechanics Examine residual plot. This plot, along with the Durbin-Watson statistic D = 0.84, indicates dependence in the residuals. Cannot form confidence or prediction intervals. Copyright © 2011 Pearson Education, Inc. 24 of 55

4M Example 27.1: PREDICTING SALES OF NEW CARS Message A regression model with linear time trend and seasonal factors closely predicts sales of new cars in the first two quarters of 2008, but substantially overpredicts sales in the last two quarters. Copyright © 2011 Pearson Education, Inc. 25 of 55

27.2 Regression Models Autoregression  Autoregression: a regression that uses prior values of the response as predictors.  Lagged variable: a prior value of the response in a time series. Copyright © 2011 Pearson Education, Inc. 26 of 55

27.2 Regression Models Autoregression  Simplest is a simple regression that has one lag:  This model is called a first-order autoregression, denoted as AR(1). Copyright © 2011 Pearson Education, Inc. 27 of 55

27.2 Regression Models Autoregression Example: AR(1) for Monthly Shipments Copyright © 2011 Pearson Education, Inc. 28 of 55

27.2 Regression Models Autoregression Scatterplot of Shipments on the Lag Indicates a strong positive linear association. Copyright © 2011 Pearson Education, Inc. 29 of 55

27.2 Regression Models Forecasting an Autoregression Example: Use AR(1) to forecast shipments. For Jan. 2008, use observed shipment for Dec. 2007: Copyright © 2011 Pearson Education, Inc. 30 of 55

27.2 Regression Models Forecasting an Autoregression For Feb. 2008, there is no observed shipment for Jan Use forecast for Jan. 2008: Once forecasts are used in place of observations, the uncertainty compounds and is hard to quantify. Copyright © 2011 Pearson Education, Inc. 31 of 55

27.3 Checking the Model Autoregression and the Durbin-Watson Statistic Example: Residuals from sixth-degree polynomial trend fit to monthly shipments plotted over time. Copyright © 2011 Pearson Education, Inc. 32 of 55

27.3 Checking the Model Autoregression and the Durbin-Watson Statistic Example: Residuals from sixth-degree polynomial trend fit to monthly shipments plotted over their lag. Copyright © 2011 Pearson Education, Inc. 33 of 55

27.3 Checking the Model Autoregression and the Durbin-Watson Statistic  Residual plots show that the sixth-degree polynomial leaves substantial dependence in the residuals.  This dependence or correlation between adjacent residuals is known as autocorrelation (this first order autocorrelation is denoted as r 1 ). Copyright © 2011 Pearson Education, Inc. 34 of 55

27.3 Checking the Model Autoregression and the Durbin-Watson Statistic  The Durbin-Watson statistic is related to the autocorrelation of the residuals in a regression: Copyright © 2011 Pearson Education, Inc. 35 of 55

27.3 Checking the Model Timeplot of Residuals Useful for identifying outliers (e.g., April 2001). Copyright © 2011 Pearson Education, Inc. 36 of 55

27.3 Checking the Model Summary Examine these plots of residuals when fitting a time series regression:  Timeplot of residuals;  Scatterplot of residuals versus fitted values; and  Scatterplot of residuals versus lags of the residuals. Copyright © 2011 Pearson Education, Inc. 37 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Motivation Using seasonally adjusted unemployment data from 1980 through 2008, can a time series regression predict the rapid increase in unemployment that came with the recession of 2009? Copyright © 2011 Pearson Education, Inc. 38 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Motivation Copyright © 2011 Pearson Education, Inc. 39 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Method Use a multiple regression of the percentage unemployed on lags of unemployment and a time trend. In other words, use a combination of an autoregression with a polynomial trend. The scatterplot matrix shows linear association and possible collinearity; hopefully the lags will capture the effects of important omitted variables. Copyright © 2011 Pearson Education, Inc. 40 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Mechanics Estimate the model. Copyright © 2011 Pearson Education, Inc. 41 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Mechanics All conditions for the model are satisfied; proceed with inference. Based on the F-statistic, reject H 0. The model explains statistically significant variation. The fitted equation is Copyright © 2011 Pearson Education, Inc. 42 of 55

4M Example 27.2: FORECASTING UNEMPLOYMENT Message A multiple regression fit to monthly unemployment data from 1980 through 2008 predicts that unemployment in January 2009 will be between 7.02% and 7.66%, with 95% probability. Forecasts for February and March call for unemployment to rise further to 7.48% and 7.64%, respectively. Copyright © 2011 Pearson Education, Inc. 43 of 55

4M Example 27.3: FORECASTING PROFITS Motivation Forecast Best Buy’s gross profits for Use their quarterly gross profits from 1995 to Copyright © 2011 Pearson Education, Inc. 44 of 55

4M Example 27.3: FORECASTING PROFITS Method Best Buy’s profits have not only grown nonlinearly (faster and faster), but the growth is seasonal. In addition, the variation in profits appears to be increasing with level. Consequently, transform the data by calculating the percentage change from year to year. Let y i denote these year-over- year percentage changes. Copyright © 2011 Pearson Education, Inc. 45 of 55

4M Example 27.3: FORECASTING PROFITS Method Timeplot of year-over-year percentage change. Copyright © 2011 Pearson Education, Inc. 46 of 55

4M Example 27.3: FORECASTING PROFITS Method Scatterplot of the year-over-year percentage change on its lag. Indicates positive linear association. Copyright © 2011 Pearson Education, Inc. 47 of 55

4M Example 27.3: FORECASTING PROFITS Mechanics Estimate the model. Copyright © 2011 Pearson Education, Inc. 48 of 55

4M Example 27.3: FORECASTING PROFITS Mechanics All conditions for the model are satisfied; proceed with inference. The fitted equation has R 2 = 71.0% with s e = The F-statistic shows that the model is statistically significant. Individual t-statistics show that each slope is statistically significant. Copyright © 2011 Pearson Education, Inc. 49 of 55

4M Example 27.3: FORECASTING PROFITS Mechanics Forecast for the first quarter of 2008: However, with s e = 7.4, the range of the 95% prediction interval includes zero. It is [-6.5% to 25%]. Copyright © 2011 Pearson Education, Inc. 50 of 55

4M Example 27.3: FORECASTING PROFITS Message The time series regression that describes year- over-year percentage changes in gross profits at Best Buy is significant and explains 70% of the historical variation. It predicts profits in the first quarter of 2008 to grow about 9.3% over the previous year; however, the model can’t rule out a much larger increase (25%) or a drop (about 6.5%). Copyright © 2011 Pearson Education, Inc. 51 of 55

Best Practices  Provide a prediction interval for your forecast.  Find a leading indicator.  Use lags in plots so that you can see the autocorrelation. Copyright © 2011 Pearson Education, Inc. 52 of 55

Best Practices (Continued)  Provide a reasonable planning horizon.  Enjoy finding dependence in the residuals of a model.  Check plots of residuals. Copyright © 2011 Pearson Education, Inc. 53 of 55

Pitfalls  Don’t summarize a time series with a histogram unless you’re confident that the data don’t have a pattern.  Avoid polynomials with high powers.  Do not let the high R 2 of a time series regression convince you that predictions from the regression will be accurate. Copyright © 2011 Pearson Education, Inc. 54 of 55

Pitfalls (Continued)  Do not include explanatory variables that also have to be forecast.  Don’t assume that more data is better. Copyright © 2011 Pearson Education, Inc. 55 of 55