ForecastingModelsWith Trend and Seasonal Effects.

Slides:



Advertisements
Similar presentations
Solve Multi-step Equations
Advertisements

Time Series Analysis -- An Introduction -- AMS 586 Week 2: 2/4,6/2014.
Module 4. Forecasting MGS3100.
Lecture Unit Multiple Regression.
Spreadsheet Modeling & Decision Analysis
Multiple Regression and Model Building
Decomposition Method.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Lesson 12.
ECON 251 Research Methods 11. Time Series Analysis and Forecasting.
Time Series and Forecasting
Guide to Using Excel 2007 For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 8th Ed. Chapter 16: Analyzing.
1 BIS APPLICATION MANAGEMENT INFORMATION SYSTEM Advance forecasting Forecasting by identifying patterns in the past data Chapter outline: 1.Extrapolation.
Ka-fu Wong © 2003 Chap Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Analyzing and Forecasting Time Series Data
Chapter 5 Time Series Analysis
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
ForecastingModelsWith Trend and Seasonal Effects.
1 Forecasting Models CHAPTER Introduction to Time Series Forecasting Forecasting is the process of predicting the future. Forecasting is an integral.
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.
Lecture 4 Time-Series Forecasting
1 1 Slide © 2009 South-Western, a part of Cengage Learning Chapter 6 Forecasting n Quantitative Approaches to Forecasting n Components of a Time Series.
Slides by John Loucks St. Edward’s University.
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
Winter’s Exponential smoothing
LSS Black Belt Training Forecasting. Forecasting Models Forecasting Techniques Qualitative Models Delphi Method Jury of Executive Opinion Sales Force.
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Copyright © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Forecasting and Statistical Process Control MBA Statistics COURSE #5.
Linear Trend Lines Y t = b 0 + b 1 X t Where Y t is the dependent variable being forecasted X t is the independent variable being used to explain Y. In.
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.
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.
DSc 3120 Generalized Modeling Techniques with Applications Part II. 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.
Time Series Analysis and Forecasting
© 2000 Prentice-Hall, Inc. Chap The Least Squares Linear Trend Model Year Coded X Sales
Time series Decomposition Farideh Dehkordi-Vakil.
INTERNAL ACHIEVEMENT STANDARD 3 CREDITS Time Series 1.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 20 Time Series Analysis and Forecasting.
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.
Deseasonalizing Forecasts
T T18-07 Seasonally Adjusted Linear Trend Forecast Purpose Allows the analyst to create and analyze a "Seasonally Adjusted Linear Trend" forecast.
Review Use data table from Quiz #4 to forecast sales using exponential smoothing, α = 0.2 What is α called? We are weighting the error associated with.
ECNE610 Managerial Economics Week 4 MARCH Dr. Mazharul Islam Chapter-5.
Economics 173 Business Statistics Lecture 26 © Fall 2001, Professor J. Petry
COMPLETE BUSINESS STATISTICS
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
TIME SERIES ‘Time series’ data is a bivariate data, where the independent variable is time. We use scatterplot to display the relationship between the.
Time Series and Forecasting Chapter 16 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Time Series and Forecasting Chapter 16.
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 7: Time Series Analysis and Forecasting 1 Priyantha.
Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We.
Chapter 3 Lect 6 Forecasting. Seasonality – Repetition at Fixed Intervals Seasonal variations –Regularly repeating movements in series values that can.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Time Series and Forecasting Chapter 16.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Chapter Nineteen McGraw-Hill/Irwin
Statistics for Managers using Microsoft Excel 3rd Edition
John Loucks St. Edward’s University . SLIDES . BY.
Forecasting Models With Trend and Seasonal Effects
Chapter Nineteen McGraw-Hill/Irwin
Chap 4: Exponential Smoothing
Exponential Smoothing
Presentation transcript:

ForecastingModelsWith Trend and Seasonal Effects

Types of Seasonal Models Two possible models are: Additive Model y t = T t + S t + ε t Multiplicative Model y t = T t S t ε t Trend Effects Seasonal Effects Random Effects

Additive Model Regression Forecasting Procedure Suppose a time series is modeled as having k seasons (Here we illustrate k = 4 quarters) –The following 4 equations represent time series value of 4 seasons Season 1: y t = β 0 + β 1 t + β 2 + ε t TtTt εtεt Season 2: y t = β 0 + β 1 t + β 3 + ε t StSt Season 3: y t = β 0 + β 1 t + β 4 + ε t Season 4: y t = β 0 + β 1 t + β 5 + ε t

Additive Model Regression Forecasting Procedure Combining the 4 equations into one, we can use 4 dummy variables, S 1, S 2, S 3 and S 4 corresponding to seasons 1, 2, 3 and 4 respectively: The combination of 0s and 1s for each of the dummy variables at each period indicate the season corresponding to the time series value. –Season 1: S 1 = 1, S 2 = 0, S 3 = 0, S 4 = 0 –Season 2: S 1 = 0, S 2 = 1, S 3 = 0,S 4 = 0 –Season 3: S 1 = 0, S 2 = 0, S 3 = 1, S 4 = 0 –Season 4: S 1 = 0, S 2 = 0, S 3 = 0, S 4 = 0 We can simplified the above equation by removing β 5 S 4 y t = β 0 + β 1 t + β 2 S 1 + β 3 S 2 + β 4 S 3 + β 5 S 4 + ε t TtTt StSt εtεt

Additive Model Regression Forecasting Procedure –Season 1: S 1 = 1, S 2 = 0, S 3 = 0 –Season 2: S 1 = 0, S 2 = 1, S 3 = 0 –Season 3: S 1 = 0, S 2 = 0, S 3 = 1 –Season 4: S 1 = 0, S 2 = 0, S 3 = 0 The combination of 0s and 1s for each of the dummy variables at each period indicate the season corresponding to the time series value. Multiple regression is then done on with t, S 1, S 2, and S 3 as the independent variables and the time series values y t as the dependent variable. y t = β 0 + β 1 t + β 2 S 1 + β 3 S 2 + β 4 S 3 + ε t TtTt StSt εtεt

Example Troys Mobil Station Troy owns a gas station in a vacation resort city that has many spring and summer visitors. –Due to a steady increase in population Troy feels that average sales experience long term trend. –Troy also knows that sales vary by season due to the vacationers. Based on the last 5 years data below with sales in 1000s of gallons per season, Troy needs to predict total sales for next year (periods 21, 22, 23, and 24). YEAR SEASON FALL WINTER SPRING SUMMER

Scatterplot of Time Series Fall Winter Spring Summer General Pattern: General Pattern: Winter less than Fall, Spring more than Winter, Summer more than Spring, Fall less than Summer

The Model There is also apparent long term trend. The form of the model then is: y t = β 0 + β 1 t + β 2 F + β 3 W + β 4 S + ε t SpringWinterFall

The Excel Input

Add Dummy Variables Not Fall, In Winter, not Spring In Fall, not Winter, not Spring Not Fall, not Winter, In Spring Not Fall, not Winter, not Spring Pattern Repeats

Regression Intput

Regression Output Low p-value for F-test Low p-values for all t-tests Conclusion Good model – all factors significant

The forecasting additive model is: F t = t – 155F – 323W – S Forecasts for year 6 are produced as follows: F(Year 6, Fall) = (21) – 155(1) – 323(0) – (0) F(Year 6, Winter) = (22) – 155(0) – 323(1) – (0) F(Year 6, Spring) = (23) – 155(0) – 323(0) – (1) F(Year 6, Summer) = (24) – 155(0) – 323(0) – (0) Troys Mobil Station – Performing the forecast

The Forecasts =$G$17+$G$18*B22+$G$19*C22+$G$20*D22+$G$21*E22 Drag F22 down to F25 =SUM(F22:F25)

What if Some of the p-values are high? Would not just eliminate Spring or Winter A test exists to decide if adding the dummy variables add value to the model H 0 : 2 = 3 = 4 = 0 H A : At least one of these s 0 Run 2 models: –Full: Time + (3) Seasonal Variables –Reduced:Time Only Test --- Reject H 0 (Accept H A ) if F > F,3,DFE(Full) F = ((SSE REDUCED -SSE FULL )/3)/MSE FULL So if F >F,3,DFE(Full) ---Include seasonal variables

Multiplicative Model Classical Decomposition Approach The time series is first decomposed into its components (trend, seasonal variation). After these components have been determined, the series is re-composed by multiplying the components.

Smooth the time series to remove random effects and seasonality and isolate trend. Calculate moving averages to get values for T t for each period t. Determine period factors to isolate the (seasonal) (error) factors. Calculate the ratio y t /T t. Determine the un adjusted seasonal factors to eliminate the random component from the period factors Classical Decomposition Average all the y t /T t that correspond to the same season.

Determine the adjusted seasonal factors. Calculate: [Unadjusted seasonal factor] [Average seasonal factor] Determine Deseasonalized data values. Calculate: y t [Adjusted seasonal factors] t Determine a deseasonalized trend forecast. Classical Decomposition (Contd) Use linear regression on the deseasonalized time series. Calculate: (Desesonalized values) [Adjusted seasonal factors]). Determine an adjusted seasonal forecast.

The CFA is the exclusive bargaining agent for public Canadian college faculty. Membership in the organization has grown over the years, but in the summer months there was always a decline. To prepare the budget for the 2001 fiscal year, a forecast of the average quarterly membership covering the year 2001 was required. CANADIAN FACULTY ASSOCIATION (CFA)

CFA - Solution Membership records from 1997 through 2000 were collected and graphed The graph exhibits long term trend The graph exhibits seasonality pattern

First moving average period is centered at quarter (1+4)/ 2 = 2.5 Centered moving average of the first two moving averages is [ ]/2 = Smooth the time series to remove random effects and seasonality. Calculate moving averages. Step 1: Isolating the Trend Component Average membership for the first 4 periods = [ ]/4 = Second moving average period is centered at quarter (2+5)/ 2 = 3.5 Average membership for periods [2, 5] = [ ]/4 = Centered location is t = 3 Trend value at period 3, T 3

=AVERAGE(C3:C6,C4:C7) Drag down to D16

period factorS t ε t Since y t =T t S t ε t, then the period factor, S t ε t is given by S t t = y t /T t Step 2 Determining the Period Factors Determine period factors to isolate the (Seasonal) (Random error) factor. Calculate the ratio y t / T t. Example: In period 7 (3rd quarter of 1998): S 7 ε 7 = y 7 /T 7 = 7662/ =

=C5/D5 Drag down to E16

This eliminates the random factor from the period factors, S t ε t This leaves us with only the seasonality component for each season. Example: Unadjusted Seasonal Factor for the third quarter. S 3 = {S 3,97 + S 3,98 3,98 + S 3,99 3,99 } / 3 = { } / 3 = Step 3 Unadjusted Seasonal Factors Determine the un adjusted seasonal factors to eliminate the random component from the period factors Average all the y t / T t that correspond to the same season.

= AVERAGE(E3,E7,E11,E15) Drag down to F6 Paste Special(Values) Copy F3:F6

Average seasonal factor = ( )/4= Step 4 Adjusted Seasonal Factors Determine the adjusted seasonal factors so that average adjusted factor is 1 Calculate: Unadjusted seasonal factors Average seasonal factor Quarter Unadjusted Seasonal Factor Adjusted Seasonal Factor Unadjusted Seasonal Factors/

F3/AVERAGE($F$3:$F$6) Drag down to G18

Step 5 The Deseasonalized Time Series Deseasonalized series value for Period 6 (2 nd quarter, 1998) y 6 /(Quarter 2 Adjusted Seasonal Factor) = 7332 / = Determine Deseasonalized data values. Calculate: y t [Adjusted seasonal factors] t

=C3/G3 Drag to cell H18

Step 6 The Time Series Trend Component Regress on the Deseasonalized Time Series Determine a deseasonalized forecast from the resulting regression equation (Unadjusted Forecast) t = t Period (t) Unadjusted Forecast (t)

Run regression Deseason vs. Period =$L$18+$L$19*B19 Drag to cell I22

Step 7 The Forecast Re-seasonalize the forecast by multiplying the unadjusted forecast by the adjusted seasonal factor for each period. Unadjusted Forecast (t) Period Adjusted Forecast (t) Adjusted Seasonal Factor

=I19*G3 Drag down to J22 Seasonally Adjusted Forecasts

Review Additive Model for Time Series with Trend and Seasonal Effects –Use of Dummy Variables 1 less than the number of seasons –Use of Regression Modified F test if all p-values not <.05 Multiplicative Model for Time Series with Trend and Seasonal Effects –Determine a set of adjusted period factors to deseasonalize data –Do regression to obtain unadjusted forecasts –Reseasonalize results to give seasonally adjusted forecasts. Excel