1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.

Slides:



Advertisements
Similar presentations
Decomposition Method.
Advertisements

Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Time Series Building 1. Model Identification
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.
CHAPTER 5 TIME SERIES AND THEIR COMPONENTS (Page 165)
Exponential Smoothing Methods
Time Series Analysis Autocorrelation Naive & Simple Averaging
BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.
Moving Averages Ft(1) is average of last m observations
1 Pulp Price Analysis Prepared by Professor Martin L. Puterman for BABS 502 Sauder School of Business March 24, 2004.
Forecasting using simple models
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.
1 BABS 502 Lecture 10 March 23, 2011 (C) Martin L. Puterman.
Forecasting  Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9  How many.
MOVING AVERAGES AND EXPONENTIAL SMOOTHING
Chapter 3 Forecasting McGraw-Hill/Irwin
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Judgment in Forecasting, Forecast Accuracy, Moving Averages and Decomposition Lecture 2 February 23, 2010.
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.
Statistical Forecasting Models
Finance 30210: Managerial Economics Demand Forecasting.
Business Forecasting Chapter 5 Forecasting with Smoothing Techniques.
Slides 13b: Time-Series Models; Measuring Forecast Error
Constant process Separate signal & noise Smooth the data: Backward smoother: At any give T, replace the observation yt by a combination of observations.
Diane Stockton Trend analysis. Introduction Why do we want to look at trends over time? –To see how things have changed What is the information used for?
(c) Martin L. Puterman1 BABS 502 Regression Based Forecasting February 28, 2011.
Winter’s Exponential smoothing
1 Demand Planning: Part 2 Collaboration requires shared information.
STAT 497 LECTURE NOTES 7 FORECASTING.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall7-1 Chapter 7: Forecasting.
Time-Series Analysis and Forecasting – Part V To read at home.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
McGraw-Hill/Irwin Copyright © 2002 by The McGraw-Hill Companies, Inc. All rights reserved. 3-2 Business Forecasting with Accompanying Excel-Based ForecastX™
(c) Martin L. Puterman1 BABS 502 Regression Based Forecasting March 4, 2014.
Holt’s exponential smoothing
Example 16.7 Exponential Smoothing | 16.1a | 16.2 | 16.3 | 16.4 | 16.5 | 16.6 | 16.2a | 16.7a | 16.7b16.1a a16.7a16.7b.
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.
Forecasting Models Decomposition and Exponential Smoothing.
DAVIS AQUILANO CHASE PowerPoint Presentation by Charlie Cook F O U R T H E D I T I O N Forecasting © The McGraw-Hill Companies, Inc., 2003 chapter 9.
Time Series Analysis and Forecasting
Time series Decomposition Farideh Dehkordi-Vakil.
Exponential Smoothing All statistical fitting methods involve some type of smoothing e.g., in regression, a trend line is fitter to the data points Consider.
Simple Exponential Smoothing The forecast value is a weighted average of all the available previous values The weights decline geometrically Gives more.
Time-Series Forecasting Overview Moving Averages Exponential Smoothing Seasonality.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 5: Exponential Smoothing (Ch. 8) Material.
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.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
Forecasting is the art and science of predicting future events.
MBF1413 | Quantitative Methods Prepared by Dr Khairul Anuar 8: Time Series Analysis & Forecasting – Part 1
Times Series Forecasting and Index Numbers Chapter 16 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
1 Exponential smoothing in the telecommunications data Everette S. Gardner, Jr.
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.
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 MODELS. Definitions Forecast is a prediction of future events used for planning process. Time Series is the repeated observations of demand.
Forecasting Methods Dr. T. T. Kachwala.
Lecture 8 ARIMA Forecasting II
Chapter 4: Seasonal Series: Forecasting and Decomposition
Cycles and Exponential Smoothing Models
MBF1413 | Quantitative Methods Prepared by Dr Khairul Anuar
Exponential Smoothing
Presentation transcript:

1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011

© Martin L. Puterman – Sauder School of Business 2 Single Exponential Smoothing  One-step ahead forecast is the weighted average of current value and past forecast  F t (1) =  Current Value)+ (1-  ) Past Forecast =  X t + (1-  ) F t-1 (1)  Alternative representation  F t (1) = F t-1 (1) +  X t - F t-1 (1) ] This is previous forecast plus a constant times previous forecast error  To apply this we need to choose the smoothing weight   The closer  is to 1, the more reactive the forecast is to changes

© Martin L. Puterman – Sauder School of Business 3 Single Exponential Smoothing Recursive function:  F t (1) =  X t + (1-  ) F t-1 (1),  F t-1 (1) =  X t-1 + (1-  ) F t-2 (1), etc Backward substitute:  F t (1) =  X t + (1-  )  X t-1 + (1-  ) 2  X t-2 + (1-  ) 3  X t-3 +… When  0.3 this becomes  F t (1) =.3X t +.7*.3 X t-1 + (.7) 2 *  X t-2 + (.7) 3  X t-3 + … =.3X t +.21 X t X t X t-3 + … This is the justification for the name “exponential” smoothing. “Age” of data is about 1/  which is the mean of the geometric distribution.

© Martin L. Puterman – Sauder School of Business 4 Single Exponential Smoothing Example

© Martin L. Puterman – Sauder School of Business 5 Single Exponential Smoothing Today’s level =  Today’s value + (1-  )  Yesterday’s Level Tomorrow’s forecast = Today’s level L t =  X t + (1-  ) L t-1 F t (k) = L t for all k The level represents the systematic part of the series

© Martin L. Puterman – Sauder School of Business 6 Simple Exponential Smoothing Spreadsheet Example Easy to use excel optimizer to choose alpha to minimize mean absolute percentage out of sample forecast error.

© Martin L. Puterman – Sauder School of Business 7 Single Exponential Smoothing NCSS Output VariablePulp_Price Number of Rows84 Mean Pseudo R-Squared Mean Square Error Mean |Error| Mean |Percent Error| Alpha SearchMean |Percent Error| Alpha1 Forecast540

© Martin L. Puterman – Sauder School of Business 8 Some Comments on Exponential Smoothing (Gardner, 1985)  Starting Values - need F 0 (1) to start process. Possible Choices  Data Mean  Backcasting  Simple exponential smoothing is identical to ARIMA(0,1,1) model.  Parameter is chosen to minimize either the root mean square, mean absolute or mean absolute percentage one step ahead forecast error.

© Martin L. Puterman – Sauder School of Business 9 Some Comments on Out of Sample Testing  When comparing methods out of sample be sure to check how the out of sample forecast is computed and what information is assumed known.  In some automatic programs – exponential smoothing is applied one step ahead out of sample so that it uses more data than other methods.

© Martin L. Puterman – Sauder School of Business 10 Double Exponential Smoothing In a trending series, single exponential smoothing lags behind the series

© Martin L. Puterman – Sauder School of Business 11 Double Exponential Smoothing Double Exponential Smoothing tracks trending data better; but forecasts may not be good after a few periods

© Martin L. Puterman – Sauder School of Business 12 Double Exponential Smoothing  Linear Trend Model Y t =  0 +  1 t is inflexible. Assumes a constant trend  1 per period throughout the data.  Basic idea - introduce a trend estimate that changes over time.  Similar to single exponential smoothing but two equations.  Issue is to choose two smoothing rates,  and   Referred to as Holt’s Linear Trend Model in NCSS  Trend dominates after a few periods in forecasts so forecasts are only good for a short term.

© Martin L. Puterman – Sauder School of Business 13 Double Exponential Smoothing  The model: Separate smoothing equations for level and trend  Level Equation  L t =  (Current Value) + (1 -  ) (Level + Trend Adjustment) t-1 L t =  X t + (1 -  ) (L t-1 + T t-1 )  Trend Equation  T t =  (L t - L t-1 ) + (1 -  ) T t-1  Forecasting Equation F t (k) = L t + k T t

© Martin L. Puterman – Sauder School of Business 14 Double Exponential Smoothing Example  =  =0.020L 72 = T 72 = F 72 (1) = = F 72 (2) = *2 = 5.942

© Martin L. Puterman – Sauder School of Business 15 Damped Trend Models  Problem with a trend model is that trend dominates forecast in a couple of periods.  Approach - introduce trend damping parameter   Level Equation L t =  X t + (1 -  ) (L t-1 +  T t-1 )  Trend Equation  T t =  (L t - L t-1 ) + (1 -  )  T t-1  Forecasting Equation  Available in SAS ETS, R, Hyndman’s forecast package for Excel Phicast and

© Martin L. Puterman – Sauder School of Business 16 Seasonality  A persistent pattern that occurs at regularly spaced time intervals  quarterly, monthly, weekly, daily  Data may exhibit several levels of seasonality simultaneously  May be modeled as multiplicative or additive  Should be included in systematic part of forecasting model  Detected visually or through ACF

© Martin L. Puterman – Sauder School of Business 17 Seasonal Data Example Monthly US Electric Power Consumption

© Martin L. Puterman – Sauder School of Business 18 Exponential Smoothing with Trend and Seasonality Exponential Smoothing with trend does not track or forecast seasonal data well

© Martin L. Puterman – Sauder School of Business 19 The Holt-Winters Model tracks the seasonal pattern Exponential Smoothing with Trend and Seasonality

© Martin L. Puterman – Sauder School of Business 20 Holt-Winters’ Exponential Smoothing Equations Level Equation:  L t =  (Current Value/Seasonal Adjustment t-p ) + (1-  )(Level t-1 + Trend t-1 )  L t =  (Deseasonalized Current Value) + (1-  )(Level t-1 + Trend t-1 )  L t =  (X t /I t-p ) + (1-  )(L t-1 + T t-1 ) where I t-p = Seasonal component

© Martin L. Puterman – Sauder School of Business 21 Holt-Winters’ Exponential Smoothing  Generalizes Double Exponential Smoothing by including (multiplicative) seasonal indicators.  Separate smoothing equations for level, trend and seasonal indicators.  Allows trend and seasonal pattern to change over time  Must estimate three smoothing parameters  Equations more complicated but implemented with software  One of the best methods for short term seasonal forecasts

© Martin L. Puterman – Sauder School of Business 22 Holt-Winters’ Exponential Smoothing Equations Trend Equation:  Same as double exponential smoothing method  T t =  (Change in level in the last period) + (1 -  ) (Trend Adjustment) t-1  T t =  (L t - L t-1 ) + (1 -  ) T t-1

© Martin L. Puterman – Sauder School of Business 23 Holt-Winters’ Exponential Smoothing Equations Seasonal Equation:  I t =  (Current Value/Current Level) + (1-  )(Seasonal Adjustment) t-p  I t =  (X t /L t ) + (1-  )I t-p where p is the length of the seasonality (i.e. p months) so that t-p is the same season in the previous year. Note this model assumes the same  for every season. Forecasting equations:  F t (k) = (L t + kT t )I t-p+k for k=1,2, …, p  F t (k) = (L t + kT t )I t-2p+k for k=p+1,p+2, …, 2p

© Martin L. Puterman – Sauder School of Business 24 Holt-Winters’ Exponential Smoothing Equations Summary  L t =  (X t /I t-p ) + (1-  )(L t-1 + T t-1 ) Level Equation  T t =  (L t - L t-1 ) + (1-  )T t-1 Trend Equation  I t =  (X t /L t ) + (1-  )I t-p Seasonal Factor Equation Forecasting equations:  F t (k) = (L t + kT t )I t-p+k for k=1,2, …, p  F t (k) = (L t + kT t )I t-2p+k for k=p+1,p+2, …, 2p

© Martin L. Puterman – Sauder School of Business 25 Holt-Winters’ Exponential Smoothing Example Forecast Summary Section VariablePulp_Price Number of Rows84 Mean Pseudo R-Squared Mean Square Error Mean |Error| Mean |Percent Error| Forecast MethodWinter's with multiplicative seasonal adjustment. Search Iterations120 Search CriterionMean |Percent Error| Alpha Beta Gamma Intercept (A) Slope (B) Season 1 Factor Season 2 Factor Season 3 Factor Season 4 Factor Initial values for forecasts

© Martin L. Puterman – Sauder School of Business 26 Holt-Winters Further Comments  Can add damped trend to this model too.  Additive version also available but multiplicative model is preferable. Note the HW model combines additive trend with multiplicative seasonality.  Missing values cannot be skipped, they must be estimated.  Outliers have a big impact and could be handled like missing values  This is a special case of a “state space model”.  Different computer packages give different estimates and forecasts.  Early reference: Chatfield and Yar “Holt-Winters forecasting: some practical issues”, The Statistician, 1988,

© Martin L. Puterman – Sauder School of Business 27 Applying Exponential Smoothing Models  Plot data  determine patterns - seasonality, trend, outliers  Fit model  Check residuals  Any information present? - Plots or ACF functions  Adjust  Produce forecasts  Calibrate on hold out sample  Multiple one step ahead  k-step ahead (where is k is the practical forecast horizon)

© Martin L. Puterman – Sauder School of Business 28 Using Exponential Smoothing in Practice  Important issue is how frequently to recalibrate the model  Possible choices - Every period - Quarterly - Annually  The point here is that the model can be determined by analysts, programmed into a forecasting system with fixed parameters and recalibrated as needed.

© Martin L. Puterman – Sauder School of Business Some interesting recent work on exponential smoothing by R. Hyndman  Article Article  Phicast Phicast