7 - 1 9 - 1 chapter 9: short-term forecasting powerpoint slides prepared by: alan olinsky bryant...

40
7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with Spreadsheets, 2e S.G. Powell K.R. Baker © John Wiley and Sons, Inc.

Upload: antony-weaver

Post on 13-Dec-2015

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

7 - 19 - 1

Chapter 9: Short-Term Forecasting

PowerPoint Slides Prepared By:Alan Olinsky Bryant University

Management Science: The Art of Modeling with Spreadsheets, 2e

S.G. Powell

K.R. Baker

© John Wiley and Sons, Inc.

Page 2: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 2

Introduction

Regression analysis can sometimes be useful in short-term forecasting.

A better approach is to base the forecast of a variable on its own history, thereby avoiding the need to specify a causal relationship and to predict the values of explanatory variables.

Our focus in this chapter is on time series methods for forecasting.

Page 3: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 3

Forecasting with Time-Series Models

We make use of historical data for the phenomenon we wish to forecast.

We seek a routine calculation that may be applied to a large number of cases and that may be automated, without relying on any qualitative information about the underlying phenomena.

Short-term forecasts are often used in situations that involve forecasting many different variables at frequent intervals.

Page 4: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 4

Hypothesized Models

The major components of such a model are usually the following: a base level a trend cyclic fluctuations

Page 5: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 5

Three Components of Time Series Behavior

Page 6: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 6

The Moving Average Model

The n-period moving average builds a forecast by averaging the observations in the most recent n periods:

where xt represents the observation made in period t, and At denotes the moving average calculated after making the observation in period t.

At = (xt + xt–1 + … + xt–n+1) / n

Page 7: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 7

Convention

We adopt the following convention for the steps in forecasting: Make the observation in period t Carry out the necessary calculations Use the calculations to forecast period (t + 1)

Page 8: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 8

Worksheet for Calculating Moving Averages

Page 9: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 9

Number of Periods to Include in Moving Average

There is no definitive answer to this question, but there is a trade-off to consider.

Suppose the mean of the underlying process remains stable: If we include very few data points, then the moving average

exhibits more variability than if we include a larger number of data points. In that sense, we get more stability from including more points.

Suppose there is an unanticipated change in the mean of the underlying process:If we include very few data points, our moving average will tend to track the changed process more closely than if we include a larger number of data points. In that case, we get more responsiveness from including fewer points.

Page 10: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 10

Moving Average Calculations in a Stylized Example

Page 11: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 11

Comparison of 4-week and 6-week Moving Averages

Page 12: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 12

Measures of Forecast Accuracy

MSE: the Mean Squared Error between forecast and actual

MAD: the Mean Absolute Deviation between forecast and actual

MAPE: the Mean Absolute Percent Error between forecast and actual

MSE = 2)()1(

1t

v

utt xF

vu

MAD =

v

uttt xF

vu )1(

1

MAPE =

v

ut t

tt

x

xF

vu )1(

1

Page 13: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 13

Comparison of Measures of Forecast Accuracy

The MAD calculation and the MAPE calculation are similar: one is absolute, the other is relative.

We usually reserve the MAPE for comparisons in which the magnitudes of two cases are different.

Page 14: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 14

Excel Tip: Moving Average Calculations

Excel’s Data Analysis tool (Tools►Data Analysis►Moving Average) contains an option for calculating moving averages.

Excel assumes that the data appear in a single column, and the tool provides an option of recognizing a title for this column, if it is included in the data range.

Other options include a graphical display of the actual and forecast data and a calculation of the standard error after each forecast.

Page 15: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 15

The Exponential Smoothing Model

Exponential smoothing weighs recent observations more than older ones.

The parameter a is some number between zero and one, called the smoothing constant.

We refer to St as the smoothed value of the observations, and we can think of it as our “best guess” as to the value of the mean.

Our forecasting procedure sets the forecast Ft+1 = St.

St = xt + (1 – )St–1

Page 16: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 16

Comparison of Weights Placed on k-year-old Data

Page 17: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 17

Worksheet for Exponential Smoothing Calculations

Page 18: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 18

Comparison of Smoothed and Averaged Forecasts

Page 19: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 19

Exponential Smoothing Calculations in a Stylized Example

Page 20: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 20

Excel Tip: Implementing Exponential Smoothing

Excel’s Data Analysis tool contains an option for calculating forecasts using exponential smoothing.

The Exponential Smoothing module resembles the Moving Average module, but instead of asking for the number of periods, it asks for the damping factor, which is the complement of the smoothing factor, or (1 – a).

Again, there is an option for chart output and an option for a calculation of the standard error.

Page 21: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 21

Exponential Smoothing with a Trend

St = xt + (1 – )St–1

Tt = (St – St–1) + (1 – )Tt–1

where St is the smoothed value after the observation has been made in period t, and Tt is the estimated trend.

Page 22: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 22

Trend Model Calculations with a Trend in the Data

Page 23: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 23

Holt’s Method

This more flexible procedure uses two smoothing constants, as shown in the following formulas:

St = xt + (1 – )(St–1 + Tt–1)

Tt = (St – St–1) + (1 – )Tt–1

Ft+1 = St + Tt

Page 24: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 24

Holt's Method with a Trend in the Data

Page 25: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 25

Exponential Smoothing with Trend and Cyclic Factors

We can take the exponential smoothing model further and include a cyclical (or seasonal) factor.

For a cyclical effect, there are two types of models: an additive model and a multiplicative model.

See text for formulas.

Page 26: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 26

*Using CB Predictor

CB Predictor is an alternative to constructing spreadsheet formulas for the specific purposes of short-term forecasting.

CB Predictor also provides a number of analyses and reports automatically, whereas we might view the time required to add such reports to our own spreadsheet models counterproductive.

Thus, for certain kinds of applications, it may make sense to rely on CB Predictor rather than our own custom spreadsheet models.

Page 27: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 27

*CB Predictor:Alternative Forecasting Procedures

Nonseasonal data with no trend Single Moving Average Single Exponential Smoothing

Nonseasonal data with a trend Double Moving Average Double Exponential Smoothing

Seasonal data with no trend Seasonal Additive Seasonal Multiplicative

Seasonal data with a trend Holt-Winters’ Additive Holt-Winters’ Multiplicative

Page 28: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 28

*CB Preditor:Single Moving Average

Data for the Curtis Distributors example

Page 29: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 29

CB Predictor Window: Input Data Tab

Page 30: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 30

CB Predictor Window: Data Attributes Tab

Page 31: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 31

CB Predictor Window: Method Gallery Tab

Page 32: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 32

Single Moving Average Window in CB Predictor

Page 33: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 33

CB Predictor: Results Tab

Page 34: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 34

CB Predictor:Single Exponential Smoothing

Page 35: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 35

Advanced Options Window in CB Predictor

Page 36: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 36

Preferences Window in CB Predictor

Page 37: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 37

A Portion of the Report from CB Predictor

Page 38: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 38

Summary

Moving averages and exponential smoothing are widely used for routine short-term forecasting.

By making projections from past data, these methods assume that the future will resemble the past.

However, the exponential smoothing procedure is sophisticated enough to permit representations of a linear trend and a cyclical factor in its calculations.

Exponential smoothing procedures are adaptive.

Page 39: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 39

Summary

Implementing an exponential smoothing procedure requires that initial values be specified and a smoothing factor be chosen.

The smoothing factor should be chosen to trade off stability and responsiveness in an appropriate manner.

Although Excel contains a Data Analysis tool for calculating moving-average forecasts and exponentially-smoothed forecasts, the tool does not accommodate the most powerful version of exponential smoothing, which includes trend and cyclical components.

Page 40: 7 - 1 9 - 1 Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with

8 - 40

Copyright 2008 John Wiley & Sons, Inc.

All rights reserved. Reproduction or translation of this work beyond that permitted in section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information herein.