© 2011 Pearson Education, Inc. Statistics for Business and Economics Chapter 13 Time Series: Descriptive Analyses, Models, & Forecasting.

Slides:



Advertisements
Similar presentations
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Lesson 12.
Advertisements

Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
ECON 251 Research Methods 11. Time Series Analysis and Forecasting.
Time Series and Forecasting
Chapter 11: Forecasting Models
Time Series Analysis Autocorrelation Naive & Simple Averaging
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
Chapter 13 Additional Topics in Regression Analysis
Qualitative Forecasting Methods
Statistics for Managers Using Microsoft® Excel 5th Edition
CD-ROM Chapter 15 Analyzing and Forecasting Time-Series Data
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.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Chapter 3 Forecasting McGraw-Hill/Irwin
Chapter 13 Forecasting.
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Forecasting McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Basic Business Statistics (9th Edition)
Statistical Forecasting Models
Chapter 19 Time-Series Analysis and Forecasting
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Time Series and Forecasting Chapter 16.
Time Series and Forecasting
Slides 13b: Time-Series Models; Measuring Forecast Error
CHAPTER 18 Models for Time Series and Forecasting
© 2003 Prentice-Hall, Inc.Chap 12-1 Business Statistics: A First Course (3 rd Edition) Chapter 12 Time-Series Forecasting.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 16-1 Chapter 16 Time-Series Forecasting and Index Numbers Basic Business Statistics 10 th.
© 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
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall7-1 Chapter 7: Forecasting.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Chapter 5 Demand Forecasting.
Statistics for Business and Economics Chapter 13 Time Series: Descriptive Analyses, Models, & Forecasting Lyn Noble Revisions by Peter Jurkat.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter 17 Time Series Analysis and Forecasting ©.
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.
MBA.782.ForecastingCAJ Demand Management Qualitative Methods of Forecasting Quantitative Methods of Forecasting Causal Relationship Forecasting Focus.
Operations Research II Course,, September Part 6: Forecasting Operations Research II Dr. Aref Rashad.
Time Series Analysis and Forecasting
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 15-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
© 2000 Prentice-Hall, Inc. Chap The Least Squares Linear Trend Model Year Coded X Sales
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Time Series Forecasting and Index Numbers Statistics.
Time-Series Forecasting Overview Moving Averages Exponential Smoothing Seasonality.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 20 Time Series Analysis and Forecasting.
10B11PD311 Economics. Process of predicting a future event on the basis of past as well as present knowledge and experience Underlying basis of all business.
15-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Forecasting Chapter 15.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Component Factors of the Time-Series Model Smoothing of Data Series  Moving Averages  Exponential.
Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27.
Welcome to MM305 Unit 5 Seminar Prof Greg Forecasting.
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
MGS3100_03.ppt/Feb 11, 2016/Page 1 Georgia State University - Confidential MGS 3100 Business Analysis Time Series Forecasting Feb 11, 2016.
Forecasting is the art and science of predicting future events.
Time Series and Forecasting Chapter 16 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Times Series Forecasting and Index Numbers Chapter 16 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Time Series and Forecasting Chapter 16.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
Chapter 15 Forecasting. Forecasting Methods n Forecasting methods can be classified as qualitative or quantitative. n Such methods are appropriate when.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Lecture 9 Forecasting. Introduction to Forecasting * * * * * * * * o o o o o o o o Model 1Model 2 Which model performs better? There are many forecasting.
Chapter 9 Forecasting Techniques
Index Numbers INDEX NUMBER: A number that measures the relative change in price, quantity, value, or some other item of interest from one time period.
Statistics for Managers using Microsoft Excel 3rd Edition
Presentation transcript:

© 2011 Pearson Education, Inc

Statistics for Business and Economics Chapter 13 Time Series: Descriptive Analyses, Models, & Forecasting

© 2011 Pearson Education, Inc Content 13.1Descriptive Analysis: Index Numbers 13.2Descriptive Analysis: Exponential Smoothing 13.3Time Series Components 13.4Forecasting: Exponential Smoothing 13.5Forecasting Trends: Holt’s Method 13.6Measuring Forecast Accuracy: MAD and RMSE

© 2011 Pearson Education, Inc Content 13.7Forecasting Trends: Simple Linear Regression 13.8Seasonal Regression Models 13.9Autocorrelation and the Durbin-Watson Test

© 2011 Pearson Education, Inc Learning Objectives Focus on methods for analyzing data generated by a process over time (i.e., time series data). Present descriptive methods for characterizing time series data. Present inferential methods for forecasting future values of time series data.

© 2011 Pearson Education, Inc Time Series Data generated by processes over time Describe and predict output of processes Descriptive analysis –Understanding patterns Inferential analysis –Forecast future values

© 2011 Pearson Education, Inc 13.1 Descriptive Analysis: Index Numbers

© 2011 Pearson Education, Inc Index Number Measures change over time relative to a base period Price Index measures changes in price –e.g. Consumer Price Index (CPI) Quantity Index measures changes in quantity –e.g. Number of cell phones produced annually

© 2011 Pearson Education, Inc Steps for Calculating a Simple Index Number 1.Obtain the prices or quantities for the commodity over the time period of interest. 2.Select a base period. 3.Calculate the index number for each period according to the formula Index number at time t

© 2011 Pearson Education, Inc Steps for Calculating a Simple Index Number Symbolically, where I t is the index number at time t, Y t is the time series value at time t, and Y 0 is the time series value at the base period.

© 2011 Pearson Education, Inc Simple Index Number Example The table shows the price per gallon of regular gasoline in the U.S for the years 1990 – Use 1990 as the base year (prior to the Gulf War). Calculate the simple index number for 1990, 1998, and Year $

© 2011 Pearson Education, Inc Simple Index Number Solution 1990 Index Number (base period) 1998 Index Number Indicates price had dropped by 20.7% (100 – 79.3) between 1990 and 1998.

© 2011 Pearson Education, Inc Simple Index Number Solution 2006 Index Number Indicates price had risen by 98% (100 – 198) between 1990 and 2006.

© 2011 Pearson Education, Inc Simple Index Numbers 1990–2006

© 2011 Pearson Education, Inc Simple Index Numbers 1990–2006

© 2011 Pearson Education, Inc Composite Index Number Made up of two or more commodities A simple index using the total price or total quantity of all the series (commodities) Disadvantage: Quantity of each commodity purchased is not considered

© 2011 Pearson Education, Inc Composite Index Number Example The table on the next slide shows the closing stock prices on the last day of the month for Daimler–Chrysler, Ford, and GM between 2005 and Construct the simple composite index using January 2005 as the base period. (Source: Nasdaq.com)

© 2011 Pearson Education, Inc Simple Composite Index Solution First compute the total for the three stocks for each date.

© 2011 Pearson Education, Inc Simple Composite Index Solution Now compute the simple composite index by dividing each total by the January 2005 total. For example, December 2006:

© 2011 Pearson Education, Inc Simple Composite Index Solution

© 2011 Pearson Education, Inc Simple Composite Index Solution

© 2011 Pearson Education, Inc Weighted Composite Price Index A weighted composite price index weights the prices by quantities purchased prior to calculating totals for each time period. The weighted totals are then used to compute the index in the same way that the unweighted totals are used for simple composite indexes.

© 2011 Pearson Education, Inc Laspeyres Index Uses base period quantities as weights –Appropriate when quantities remain approximately constant over time period Example: Consumer Price Index (CPI)

© 2011 Pearson Education, Inc Steps for Calculating a Laspeyres Index 1.Collect price information for each of the k price series to be used in the composite index. Denote these series by P 1t, P 2t, …, P kt. 2.Select a base period. Call this time period t 0. 3.Collect purchase quantity information for the base period. Denote the k quantities by 4.Calculate the weighted totals for each time period according to the formula

© 2011 Pearson Education, Inc Steps for Calculating a Laspeyres Index 5.Calculate the Laspeyres index, I t, at time t by taking the ratio of the weighted total at time t to the base period weighted total and multiplying by 100–that is,

© 2011 Pearson Education, Inc Laspeyres Index Number Example The table shows the closing stock prices on 1/31/2005 and 12/29/2006 for Daimler– Chrysler, Ford, and GM. On 1/31/2005 an investor purchased the indicated number of shares of each stock. Construct the Laspeyres Index using 1/31/2005 as the base period. Daimler–ChryslerGMFord Shares Purchased /31/2005 Price /29/2006 Price

© 2011 Pearson Education, Inc Laspeyres Index Solution Weighted total for base period (1/31/2005): Weighted total for 12/29/2006:

© 2011 Pearson Education, Inc Laspeyres Index Solution Indicates portfolio value had decreased by 13.3% (100–86.7) between 1/31/2005 and 12/29/2006.

© 2011 Pearson Education, Inc Paasche Index Uses quantities for each period as weights –Appropriate when quantities change over time Compare current prices to base period prices at current purchase levels Disadvantages –Must know purchase quantities for each time period –Difficult to interpret a change in index when base period is not used

© 2011 Pearson Education, Inc Steps for Calculating a Paasche Index 1.Collect price information for each of the k price series to be used in the composite index. Denote these series by P 1t, P 2t, …, P kt. 2.Select a base period. Call this time period t 0. 3.Collect purchase quantity information for the base period. Denote the k quantities by

© 2011 Pearson Education, Inc Steps for Calculating a Paasche Index 4.Calculate the Paasche index for time t by multiplying the ratio of the weighted total at time t to the weighted total at time t 0 (base period) by 100, where the weights used are the purchase quantities for time period t. Thus,

© 2011 Pearson Education, Inc Paasche Index Number Example The table shows the 1/31/2005 and 12/29/2006 prices and volumes in millions of shares for Daimler–Chrysler, Ford, and GM. Calculate the Paasche Index using 1/31/2005 as the base period. (Source: Nasdaq.com) Daimler–ChryslerFordGM PriceVolumePriceVolumePriceVolume 1/31/ /29/

© 2011 Pearson Education, Inc Paasche Index Solution

© 2011 Pearson Education, Inc Paasche Index Solution 12/29/2006 prices represent a 24.8% (100 – 75.2) decrease from 1/31/2005 (assuming quantities were at 12/29/2006 levels for both periods)

© 2011 Pearson Education, Inc 13.2 Descriptive Analysis: Exponential Smoothing

© 2011 Pearson Education, Inc Exponential Smoothing Type of weighted average Removes rapid fluctuations in time series (less sensitive to short–term changes in prices) Allows overall trend to be identified Used for forecasting future values Exponential smoothing constant (w) affects “smoothness” of series

© 2011 Pearson Education, Inc Exponential Smoothing Constant Exponential smoothing constant, 0 < w < 1 w close to 0 –More weight given to previous values of time series –Smoother series w close to 1 –More weight given to current value of time series –Series looks similar to original (more variable)

© 2011 Pearson Education, Inc Steps for Calculating an Exponentially Smoothed Series 1. Select an exponential smoothing constant, w, between 0 and 1. Remember that small values of w give less weight to the current value of the series and yield a smoother series. Larger choices of w assign more weight to the current value of the series and yield a more variable series.

© 2011 Pearson Education, Inc Steps for Calculating an Exponentially Smoothed Series 2. Calculate the exponentially smoothed series E t from the original time series Y t as follows: E 1 = Y 1 E 2 = wY 2 + (1 – w)E 1 E 3 = wY 3 + (1 – w)E 2 E t = wY t + (1 – w)E t–1 …

© 2011 Pearson Education, Inc Exponential Smoothing Example The closing stock prices on the last day of the month for Daimler– Chrysler in 2005 and 2006 are given in the table. Create an exponentially smoothed series using w =.2.

© 2011 Pearson Education, Inc Exponential Smoothing Solution E 1 = E 2 =.2(46.10) +.8(45.51) = E 3 =.2(44.72) +.8(45.63) = E 24 =.2(61.41) +.8(53.92) = …

© 2011 Pearson Education, Inc Exponential Smoothing Solution E 1 = E 2 =.2(46.10) +.8(45.51) = E 3 =.2(44.72) +.8(45.63) = E 24 =.2(61.41) +.8(53.92) = …

© 2011 Pearson Education, Inc Exponential Smoothing Solution Actual Series Smoothed Series (w =.2)

© 2011 Pearson Education, Inc Exponential Smoothing Thinking Challenge The closing stock prices on the last day of the month for Daimler– Chrysler in 2005 and 2006 are given in the table. Create an exponentially smoothed series using w =.8.

© 2011 Pearson Education, Inc Exponential Smoothing Solution E 1 = E 2 =.8(46.10) +.2(45.51) = E 3 =.8(44.72) +.2(45.98) = E 24 =.8(61.41) +.2(57.75) = …

© 2011 Pearson Education, Inc Exponential Smoothing Solution Actual Series Smoothed Series (w =.2) Smoothed Series (w =.8)

© 2011 Pearson Education, Inc 13.3 Time Series Components

© 2011 Pearson Education, Inc Descriptive v. Inferential Analysis Descriptive Analysis –Picture of the behavior of the time series –e.g. Index numbers, exponential smoothing –No measure of reliability Inferential Analysis –Goal: Forecasting future values –Measure of reliability

© 2011 Pearson Education, Inc Time Series Components Additive Time Series Model Y t = T t + C t + S t + R t T t = secular trend (describes long–term movements of Y t ) C t = cyclical effect (describes fluctuations about the secular trend attributable to business and economic conditions) S t = seasonal effect (describes fluctuations that recur during specific time periods) R t = residual effect (what remains after other components have been removed)

© 2011 Pearson Education, Inc 13.4 Forecasting: Exponential Smoothing

© 2011 Pearson Education, Inc Exponentially Smoothed Forecasts Assumes the trend and seasonal component are relatively insignificant Exponentially smoothed forecast is constant for all future values F t+1 = E t F t+2 = F t+1 F t+3 = F t+1 Use for short–term forecasting only

© 2011 Pearson Education, Inc Calculation of Exponentially Smoothed Forecasts 1.Given the observed time series Y 1, Y 2, …, Y t, first calculate the exponentially smoothed values E 1, E 2, …, E t, using E 1 = Y 1 E 2 = wY 2 + (1 – w)E 1 E t = wY t + (1 – w)E t –1

© 2011 Pearson Education, Inc Calculation of Exponentially Smoothed Forecasts 2.Use the last smoothed value to forecast the next time series value: F t +1 = E t 3.Assuming that Y t is relatively free of trend and seasonal components, use the same forecast for all future values of Y t : F t+2 = F t+1 F t+3 = F t+1

© 2011 Pearson Education, Inc Exponential Smoothing Forecasting Example The closing stock prices on the last day of the month for Daimler–Chrysler in 2005 and 2006 are given in the table along with the exponentially smoothed values using w =.2. Forecast the closing price for the January 31, 2007.

© 2011 Pearson Education, Inc Exponential Smoothing Forecasting Solution F 1/31/2007 = E 12/29/2006 = The actual closing price on 1/31/2007 for Daimler–Chrysler was Forecast Error = Y 1/31/2007 – F 1/31/2007 = – = 7.07

© 2011 Pearson Education, Inc 13.5 Forecasting Trends: Holt’s Method

© 2011 Pearson Education, Inc The Holt Forecasting Model Accounts for trends in time series Two components –Exponentially smoothed component, E t Smoothing constant 0 < w < 1 –Trend component, T t Smoothing constant 0 < v < 1 –Close to 0: More weight to past trend –Close to 1: More weight to recent trend

© 2011 Pearson Education, Inc Steps for Calculating Components of the Holt Forecasting Model 1. Select an exponential smoothing constant w between 0 and 1. Small values of w give less weight to the current values of the time series and more weight to the past. Larger choices assign more weight to the current value of the series.

© 2011 Pearson Education, Inc Steps for Calculating Components of the Holt Forecasting Model 2. Select a trend smoothing constant v between 0 and 1. Small values of v give less weight to the current changes in the level of the series and more weight to the past trend. Larger values assign more weight to the most recent trend of the series and less to past trends.

© 2011 Pearson Education, Inc Steps for Calculating Components of the Holt Forecasting Model 3. Calculate the two components, E t and T t, from the time series Y t beginning at time t = 2 : E 2 = Y 2 and T 2 = Y 2 – Y 1 E 3 = wY 3 + (1 – w)(E 2 + T 2 ) T 3 = v(E 3 – E 2 ) + (1 – v)T 2 E t = wY t + (1 – w)(E t–1 + T t–1 ) T t = v(E t – E t–1 ) + (1 – v)T t–1 …

© 2011 Pearson Education, Inc Holt Example The closing stock prices on the last day of the month for Daimler–Chrysler in 2005 and 2006 are given in the table. Calculate the Holt–Winters components using w =.8 and v =.7.

© 2011 Pearson Education, Inc Holt Solution w =.8 v =.7 E 2 = Y 2 and T 2 = Y 2 – Y 1 E 2 = and T 2 = – =.59 E 3 = wY 3 + (1 – w)(E 2 + T 2 ) E 3 =.8(44.72) +.2( ) = T 3 = v(E 3 – E 2 ) + (1 – v)T 2 T 3 =.7( – 46.10) +.3(.59) = –.5132

© 2011 Pearson Education, Inc Holt Solution Completed series: w =.8 v =.7

© 2011 Pearson Education, Inc Holt Solution Holt exponentially smoothed (w =.8 and v =.7) Actual Smoothed

© 2011 Pearson Education, Inc Holt’s Forecasting Methodology 1.Calculate the exponentially smoothed and trend components, E t and T t, for each observed value of Y t (t ≥ 2) using the formulas given in the previous box. 2.Calculate the one-step-ahead forecast using F t+1 = E t + T t 3.Calculate the k-step-ahead forecast using F t+k = E t + kT t

© 2011 Pearson Education, Inc Holt Forecasting Example Use the Holt series to forecast the closing price of Daimler–Chrysler stock on 1/31/2007 and 2/28/2007.

© 2011 Pearson Education, Inc Holt Forecasting Solution 1/31/2007 is one–step–ahead: F 1/31/07 = E 12/29/06 + T 12/29/06 = = /28/2007 is two–steps–ahead: F 2/28/07 = E 12/29/06 + 2T 12/29/06 = (3.00) = 67.39

© 2011 Pearson Education, Inc Holt Thinking Challenge The data shows the average undergraduate tuition at all 4–year institutions for the years 1996–2004 (Source: U.S. Dept. of Education). Calculate the Holt– Winters components using w =.7 and v =.5.

© 2011 Pearson Education, Inc Holt Solution w =.7 v =.5 E 2 = Y 2 and T 2 = Y 2 – Y 1 E 2 = 9206 and T 2 = 9206 – 8800 = 406 E 3 = wY 3 + (1 – w)(E 2 + T 2 ) E 3 =.7(9588) +.3( ) = T 3 = v(E 3 – E 2 ) + (1 – v)T 2 T 3 =.5( – 9206) +.5(406) =

© 2011 Pearson Education, Inc Holt Solution Completed series

© 2011 Pearson Education, Inc Holt Solution ActualSmoothed Holt–Winters exponentially smoothed (w =.7 and v =.5) Tuition

© 2011 Pearson Education, Inc Holt Forecasting Thinking Challenge Use the Holt–Winters series to forecast tuition in 2005 and 2006

© 2011 Pearson Education, Inc Holt Forecasting Solution 2005 is one–step–ahead: F 11 = E 10 + T = $14, is 2–steps–ahead: F 12 = E T 10 = (779.76) = $15,232.24

© 2011 Pearson Education, Inc 13.6 Measuring Forecast Accuracy: MAD and RMSE

© 2011 Pearson Education, Inc Mean Absolute Deviation Mean absolute difference between the forecast and actual values of the time series where m = number of forecasts used

© 2011 Pearson Education, Inc Mean Absolute Percentage Error Mean of the absolute percentage of the difference between the forecast and actual values of the time series where m = number of forecasts used

© 2011 Pearson Education, Inc Root Mean Squared Error Square root of the mean squared difference between the forecast and actual values of the time series where m = number of forecasts used

© 2011 Pearson Education, Inc Forecasting Accuracy Example Using the Daimler–Chrysler data from 1/31/2005 through 8/31/2006, three time series models were constructed and forecasts made for the next four months. Model I: Exponential smoothing (w =.2) Model II: Exponential smoothing (w =.8) Model III: Holt–Winters (w =.8, v =.7)

© 2011 Pearson Education, Inc Forecasting Accuracy Example Model I

© 2011 Pearson Education, Inc Forecasting Accuracy Example Model II

© 2011 Pearson Education, Inc Forecasting Accuracy Example Model III

© 2011 Pearson Education, Inc 13.7 Forecasting Trends: Simple Linear Regression

© 2011 Pearson Education, Inc Simple Linear Regression Model: E(Y t ) = β 0 + β 1 t Relates time series, Y t, to time, t Cautions –Risky to extrapolate (forecast beyond observed data) –Does not account for cyclical effects

© 2011 Pearson Education, Inc Simple Linear Regression Example The data shows the average undergraduate tuition at all 4– year institutions for the years 1996–2004 (Source: U.S. Dept. of Education). Use least– squares regression to fit a linear model. Forecast the tuition for 2005 (t = 11) and compute a 95% prediction interval for the forecast.

© 2011 Pearson Education, Inc Simple Linear Regression Solution From Excel

© 2011 Pearson Education, Inc Simple Linear Regression Solution

© 2011 Pearson Education, Inc Simple Linear Regression Solution Forecast tuition for 2005 (t = 11): 95% prediction interval:

© 2011 Pearson Education, Inc 13.8 Seasonal Regression Models

© 2011 Pearson Education, Inc Seasonal Regression Models Takes into account secular trend and seasonal effects (seasonal component) Uses multiple regression models Dummy variables to model seasonal component E(Y t ) = β 0 + β 1 t + β 2 Q 1 + β 3 Q 2 + β 4 Q 3 where

© 2011 Pearson Education, Inc 13.9 Autocorrelation and the Durbin-Watson Test

© 2011 Pearson Education, Inc Autocorrelation Time series data may have errors that are not independent Time series residuals: Correlation between residuals at different points in time (autocorrelation) 1 st order correlation: Correlation between neighboring residuals (times t and t + 1)

© 2011 Pearson Education, Inc Autocorrelation Plot of residuals v. time for tuition data shows residuals tend to group alternately into positive and negative clusters

© 2011 Pearson Education, Inc Durbin–Watson Test H 0 : No first–order autocorrelation of residuals H a : Positive first–order autocorrelation of residuals Test Statistic

© 2011 Pearson Education, Inc Interpretation of Durbin- Watson d-Statistic 1.If the residuals are uncorrelated, then d ≈ 2. 2.If the residuals are positively autocorrelated, then d < 2, and if the autocorrelation is very strong, d ≈ 2. 3.If the residuals are negatively autocorrelated, then d >2, and if the autocorrelation is very strong, d ≈ 4.

© 2011 Pearson Education, Inc Rejection Region for the Durbin– Watson d Test 32 dLdL dUdU 401 d Rejection region: evidence of positive autocorrelation Nonrejection region: insufficient evidence of positive autocorrelation Possibly significant autocorrelation

© 2011 Pearson Education, Inc Durbin–Watson d-Test for Autocorrelation One-tailed Test H 0 : No first–order autocorrelation of residuals H a : Positive first–order autocorrelation of residuals (or H a : Negative first–order autocorrelation) Test Statistic

© 2011 Pearson Education, Inc Durbin–Watson d-Test for Autocorrelation Rejection Region: d < d L,  [or (4 – d) < d L,   If H a : Negative first-order autocorrelation where d L,  is the lower tabled value corresponding to k independent variables and n observations. The corresponding upper value d U,  defines a “possibly significant” region between d L,  and d U, 

© 2011 Pearson Education, Inc Durbin–Watson d-Test for Autocorrelation Two-tailed Test H 0 : No first–order autocorrelation of residuals H a : Positive or Negative first–order autocorrelation of residuals Test Statistic

© 2011 Pearson Education, Inc Durbin–Watson d-Test for Autocorrelation Rejection Region: d < d L,  or (4 – d) < d L,  where d L,  is the lower tabled value corresponding to k independent variables and n observations. The corresponding upper value d U,  defines a “possibly significant” region between d L,  and d U, 

© 2011 Pearson Education, Inc Requirements for the Validity of the d-Test The residuals are normally distributed.

© 2011 Pearson Education, Inc Durbin–Watson Test Example Use the Durbin–Watson test to test for the presence of autocorrelation in the tuition data. Use α =.05.

© 2011 Pearson Education, Inc Durbin–Watson Test Solution H 0 : H a :   n = k = Critical Value(s): No 1 st –order autocorrelation Positive 1st–order autocorrelation d

© 2011 Pearson Education, Inc Durbin–Watson Solution Test Statistic

© 2011 Pearson Education, Inc Durbin–Watson Test Solution H 0 : H a :   n = k = Critical Value(s): Test Statistic: Decision: Conclusion: No 1 st –order autocorrelation Positive 1st–order autocorrelation d d =.51 Reject at  =.05 There is evidence of positive autocorrelation

© 2011 Pearson Education, Inc Key Ideas Time Series Data Data generated by processes over time.

© 2011 Pearson Education, Inc Key Ideas Index Number Measures the change in a variable over time relative to a base period. Types of Index numbers: 1. Simple index number 2. Simple composite index number 3. Weighted composite number (Laspeyers index or Pasche index)

© 2011 Pearson Education, Inc Key Ideas Time Series Components 1.Secular (long-term) trend 2.Cyclical effect 3.Seasonal effect 4.Residual effect

© 2011 Pearson Education, Inc Key Ideas Time Series Forecasting Descriptive methods of forecasting with smoothing: 1. Exponential smoothing 2. Holt’s method

© 2011 Pearson Education, Inc Key Ideas Time Series Forecasting An Inferential forecasting method: least squares regression

© 2011 Pearson Education, Inc Key Ideas Time Series Forecasting Measures of forecast accuracy: 1. mean absolute deviation (MAD) 2. mean absolute percentage error (MAPE) 3. root mean squared error (RMSE)

© 2011 Pearson Education, Inc Key Ideas Time Series Forecasting Problems with least squares regression forecasting: 1. Prediction outside the experimental region 2. Regression errors are autocorrelated

© 2011 Pearson Education, Inc Key Ideas Autocorrelation Correlation between time series residuals at different points in time. A test for first-order autocorrelation: Durbin-Watson test