Slides by

68
1 Cengage Learning. All Rights Reserved. May not be scanned, copied duplicated, or posted to a publicly accessible website, in whole or in part. SLIDES BY . . . . . . . . . . . . John Loucks St. Edward’s Univ.

description

Slides by. . . . . . . . . . . . . John Loucks St. Edward’s Univ. Chapter 6 Time Series Analysis and Forecasting. Quantitative Approaches to Forecasting. Time Series Patterns. Forecast Accuracy. Moving Averages and Exponential Smoothing. Forecasting Methods. - PowerPoint PPT Presentation

Transcript of Slides by

Page 1: Slides  by

1 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

SLIDES BY

............

John LoucksSt. Edward’s Univ.

Page 2: Slides  by

2 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Chapter 6Time Series Analysis and Forecasting

Quantitative Approaches to Forecasting Time Series Patterns

Forecast Accuracy Moving Averages and Exponential

Smoothing

Page 3: Slides  by

3 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecasting Methods Forecasting methods can be classified as

qualitative or quantitative.

Such methods are appropriate when historical data on the variable being forecast are either not applicable or unavailable.

Qualitative methods generally involve the use of expert judgment to develop forecasts.

We will focus exclusively on quantitative forecasting methods in this chapter.

Page 4: Slides  by

4 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecasting Methods Quantitative forecasting methods can be

used when: past information about the variable being forecast is available,

the information can be quantified, and it is reasonable to assume that the pattern

of the past will continue into the future.

Page 5: Slides  by

5 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Quantitative Forecasting Methods Quantitative methods are based on an

analysis of historical data concerning one or more time series. A time series is a set of observations measured at successive points in time or over successive periods of time.

If the historical data used are restricted to past values of the series that we are trying to forecast, the procedure is called a time series method. If the historical data used involve other time series that are believed to be related to the time series that we are trying to forecast, the procedure is called a causal method.

Page 6: Slides  by

6 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecasting Methods

ForecastingMethods

Quantitative Qualitative

Causal Time Series

Focus of this chapter

Page 7: Slides  by

7 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns A time series is a sequence of measurements

taken every hour, day, week, month, quarter, year, or at any other regular time interval.

The pattern of the data is an important factor in understanding how the time series has behaved in the past.

If such behavior can be expected to continue in the future, we can use it to guide us in selecting an appropriate forecasting method.

Page 8: Slides  by

8 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Plot

A time series plot is a graphical presentation of the relationship between time and the time series variable.

Time is on the horizontal axis, and the time series values are shown on the vertical axis.

A useful first step in identifying the underlying pattern in the data is to construct a time series plot.

Page 9: Slides  by

9 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example

Time Series Plot

Page 10: Slides  by

10 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns The common types of data patterns that can

be identified when examining a time series plot include:

Horizontal

Trend

Seasonal

Cyclical

Trend & Seasonal

Page 11: Slides  by

11 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Horizontal Pattern• A horizontal pattern exists when the data

fluctuate around a constant mean.• Changes in business conditions can often

result in a time series that has a horizontal pattern shifting to a new level.

• A change in the level of the time series makes it more difficult to choose an appropriate forecasting method.

Time Series Patterns

Page 12: Slides  by

12 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns Trend Pattern

• A time series may show gradual shifts or movements to relatively higher or lower values over a longer period of time.

• Trend is usually the result of long-term factors such as changes in the population, demographics, technology, or consumer preferences.• A systematic increase or decrease might be linear or nonlinear.

• A trend pattern can be identified by analyzing multiyear movements in historical data.

Page 13: Slides  by

13 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns

• Seasonal patterns are recognized by seeing the same repeating pattern of highs and lows over successive periods of time within a year.

Seasonal Pattern

• A seasonal pattern might occur within a day, week, month, quarter, year, or some other interval no greater than a year. [ eg. sale during the weekend; Ice-cream sale during summer] • A seasonal pattern does not necessarily refer to the four seasons of the year (spring, summer, fall, and winter). [ eg. sale in December ]

Page 14: Slides  by

14 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns

• Some time series include a combination of a trend and seasonal pattern.

Trend and Seasonal Pattern

• In such cases we need to use a forecasting method that has the capability to deal with both trend and seasonality.

• Time series decomposition can be used to separate or decompose a time series into trend and seasonal components.

Page 15: Slides  by

15 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Patterns

• A cyclical pattern exists if the time series plot shows an alternating sequence of points below and above the trend line lasting more than one year.

Cyclical Pattern

• Often, the cyclical component of a time series is due to multiyear business cycles.

• Business cycles are extremely difficult, if not impossible, to forecast.

• In this chapter we do not deal with cyclical effects that may be present in the time series.

Page 16: Slides  by

16 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Selecting a Forecasting Method

The underlying pattern in the time series is an important factor in selecting a forecasting method.

Thus, a time series plot should be one of the first things developed when trying to determine what forecasting method to use.

If we see a horizontal pattern, then we need to select a method appropriate for this type of pattern. If we observe a trend in the data, then we need to use a method that has the capability to handle trend effectively.

Page 17: Slides  by

17 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecast Accuracy

Measures of forecast accuracy are used to determine how well a particular forecasting method is able to reproduce the time series data that are already available.

By selecting the method that has the best accuracy for the data already known, we hope to increase the likelihood that we will obtain better forecasts for future time periods.

Measures of forecast accuracy are important factors in comparing different forecasting methods.

Page 18: Slides  by

18 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecast Accuracy

The key concept associated with measuring forecast accuracy is forecast error.

A positive forecast error indicates the forecasting method underestimated the actual value.

Forecast Error = Actual Value - Forecast

A negative forecast error indicates the forecasting method overestimated the actual value.

Page 19: Slides  by

19 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecast Accuracy

A simple measure of forecast accuracy is the mean

or average of the forecast errors. Because positive and

negative forecast errors tend to offset one another, the

mean error is likely to be small. Thus, the mean error

is not a very useful measure. This measure avoids the problem of positive and negative errors offsetting one another. It is the mean of the absolute values of the forecast errors.

Mean Error

Mean Absolute Error (MAE)

Page 20: Slides  by

20 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecast Accuracy

This is another measure that avoids the problemof positive and negative errors offsetting oneanother. It is the average of the squared forecast errors. The size of MAE and MSE depend upon the scale of the data, so it is difficult to make comparisons for different time intervals. To make such comparisons we need to work with relative or percentage error measures. The MAPE is the average of the absolute percentage errors of the forecasts.

Mean Squared Error (MSE)

Mean Absolute Percentage Error (MAPE)

Page 21: Slides  by

21 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Forecast Accuracy

To demonstrate the computation of these measures of forecast accuracy we will introduce the simplest of forecasting methods.

The naïve forecasting method uses the most recent observation in the time series as the forecast for the next time period.

Ft+1 = Actual Value in Period t

Page 22: Slides  by

22 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Sales of Comfort brand headache medicine for the

past 10 weeks at Rosco Drugs are shown below.

Example: Rosco Drugs

12345

6789

10

110115125120125

120130115110130

Week WeekSales Sales

Forecast Accuracy

If Rosco uses the naïve forecast method to forecast sales for

weeks 2 – 10, what are the resulting MAE, MSE, and MAPE values?

Page 23: Slides  by

23 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

12345678910

110115125120125120130115110130

125120130115110

125120

Week SalesNaïve

Forecast

-5 10-15 -5 20

-5 5

Forecast Error

Absolute Error

Squared Error

5 10 15 5 20 80

55

25100125 25400850

2525

Abs.%Error

4.17 7.69 13.04 4.55 15.38 65.35

4.174.00

Forecast Accuracy

110115

510

510 100

25 4.358.00

Total

Page 24: Slides  by

24 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Naive Forecast Accuracy

80MAE 8.899

850MSE 94.449

65.35MAPE 7.26%9

Forecast Accuracy

Page 25: Slides  by

25 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Moving Averages and Exponential Smoothing

Now we discuss three forecasting methods that are appropriate for a time series with a horizontal pattern:

Exponential Smoothing

Weighted Moving AveragesMoving Averages

They are called smoothing methods because their objective is to smooth out the random fluctuations in the time series.

They are most appropriate for short-range forecasts.

Page 26: Slides  by

26 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Moving Averages

The moving averages method uses the average of the most recent k data values in the time series. As the forecast for the next period.

- -

1 1

1(most recent data values) t t t k

t

k Y Y YFk k

where: Ft+1= forecast of the time series for period t + 1

Each observation in the moving average calculation receives the same weight.

Page 27: Slides  by

27 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Moving Averages

The term moving is used because every time a new observation becomes available for the time series, it replaces the oldest observation in the equation. As a result, the average will change, or move, as new observations become available.

Page 28: Slides  by

28 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Moving Averages

If more past observations are considered relevant, then a larger value of k is better.

A smaller value of k will track shifts in a time series more quickly than a larger value of k.

To use moving averages to forecast, we must first select the order k, or number of time series values, to be included in the moving average.

Page 29: Slides  by

29 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

If Rosco Drugs uses a 3-period moving average to

forecast sales, what are the forecasts for weeks 4-11?

Example: Rosco Drugs

Example: Moving Average

12345

678910

110115125120125

120130115110130

Week WeekSales Sales

Page 30: Slides  by

30 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

1234567891011

110115125120125120130115110130

Week Sales

Example: Moving Average

123.3121.7125.0121.7118.3118.3

116.7120.0

3MA Forecast

(110 + 115 + 125)/3

Page 31: Slides  by

31 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Moving Average

123456789

10

110115125120125120130115110130

123.3121.7125.0121.7118.3

116.7120.0

Week Sales3MA

Forecast

-3.3 8.3-10.0-11.7 11.7 6.6

3.35.0

Forecast Error

Absolute Error

Squared Error

3.3 8.3 10.0 11.7 11.7 53.3

3.35.0

10.89 68.89100.00136.89136.89489.45

10.8925.00

Abs.%Error

2.75 6.38 8.7010.64 9.0044.22

2.754.00

Total

Page 32: Slides  by

32 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Moving Average

3-MA Forecast Accuracy

53.3MAE 7.617

489.45MSE 69.927

44.22MAPE 6.32%7

The 3-week moving average approach provided more accurate forecasts than the naïve approach.

Page 33: Slides  by

33 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Weighted Moving Averages

Weighted Moving Averages

• The more recent observations are typically given more weight than older observations.• For convenience, the weights should sum to

1.

• To use this method we must first select the number of data values to be included in the average.• Next, we must choose the weight for each of the data values.

Page 34: Slides  by

34 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Weighted Moving Averages• An example of a 3-period weighted moving

average (3WMA) is:

3WMA = .2(110) + .3(115) + .5(125) = 119

125 is the most recent

observationWeights (.2, .3,and .5) sum to

1

Weighted Moving Averages

Page 35: Slides  by

35 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Weighted Moving Average

12345678910

110115125120125120130115110130

123.5121.5126.0120.5115.5

119.0120.5

Week Sales3WMA

Forecast

-3.5 8.5-11.0-10.5 14.5 3.5

1.04.5

Forecast Error

Absolute Error

Squared Error

3.5 8.5 11.0 10.5 14.5 53.5

1.04.5

12.25 72.25121.00110.25210.25547.25

1.0020.25

Abs.%Error

2.75 6.38 8.7010.64 9.0044.15

2.754.00

Total

Page 36: Slides  by

36 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Weighted Moving Average

3-WMA Forecast Accuracy53.5MAE 7.647

547.25MSE 78.187

44.15MAPE 6.31%7

The 3-WMA approach (with weights of .2, .3, and .5) provided accuracy very close to that of the 3-MA approach for this data.

Page 37: Slides  by

37 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Exponential Smoothing

• This method is a special case of a weighted moving averages method; we select only the weight for the most recent observation.

• The weights for the other data values are computed automatically and become smaller as the observations grow older.

• The exponential smoothing forecast is a weighted average of all the observations in the time series.• The term exponential smoothing comes from the exponential nature of the weighting scheme for the historical values.

Page 38: Slides  by

38 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Exponential Smoothing Exponential Smoothing Forecast

Ft+1 = aYt + (1 – a)Ft

where:Ft+1 = forecast of the time series for period t + 1

Yt = actual value of the time series in period tFt = forecast of the time series for period ta = smoothing constant (0 < a < 1)

and let:F2 = Y1 (to initiate the computations)

Page 39: Slides  by

39 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

• With some algebraic manipulation, we can rewrite Ft+1 = aYt + (1 – a)Ft as:

Exponential Smoothing Exponential Smoothing Forecast

Ft+1 = Ft + a(Yt – Ft)

• We see that the new forecast Ft+1 is equal to the previous forecast Ft plus an adjustment, which is a times the most recent forecast error, Yt – Ft.

Page 40: Slides  by

40 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Exponential Smoothing Desirable Value for the Smoothing Constant

a. If the time series contains substantial

random variability, a smaller value (nearer to zero) is preferred.

If there is little random variability present, forecast errors are more likely to represent a change in the level of the time series …. and a larger value for a is preferred.

Page 41: Slides  by

41 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

If Rosco Drugs uses exponential smoothing

to forecast sales, which value for the smoothing constant a, .1 or .8, gives better forecasts?

Example: Rosco Drugs

Example: Exponential Smoothing

12345

678910

110115125120125

120130115110130

Week WeekSales Sales

Page 42: Slides  by

42 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Exponential Smoothing Using Smoothing Constant Value a = .1

F2 = Y1 = 110 F3 = .1Y2 + .9F2 = .1(115) + .9(110) = 110.50F4 = .1Y3 + .9F3 = .1(125) + .9(110.5) = 111.95F5 = .1Y4 + .9F4 = .1(120) + .9(111.95) = 112.76F6 = .1Y5 + .9F5 = .1(125) + .9(112.76) = 113.98F7 = .1Y6 + .9F6 = .1(120) + .9(113.98) = 114.58F8 = .1Y7 + .9F7 = .1(130) + .9(114.58) = 116.12F9 = .1Y8 + .9F8 = .1(115) + .9(116.12) = 116.01F10= .1Y9 + .9F9 = .1(110) + .9(116.01) = 115.41

Page 43: Slides  by

43 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Exponential Smoothing Using Smoothing Constant Value a = .8

F2 = = 110 F3 = .8(115) + .2(110) = 114.00 F4 = .8(125) + .2(114) = 122.80 F5 = .8(120) + .2(122.80) = 120.56 F6 = .8(125) + .2(120.56) = 124.11 F7 = .8(120) + .2(124.11) = 120.82 F8 = .8(130) + .2(120.82) = 128.16 F9 = .8(115) + .2(128.16) = 117.63 F10= .8(110) + .2(117.63) = 111.53

Page 44: Slides  by

44 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

12345678910

110115125120125120130115110130

Week Sales

113.98114.58116.12116.01115.41

111.95112.76

a = .1Forecast

110.00110.50

Example: Exponential Smoothing (a = .1)

6.02 15.42 -1.12 -6.01 14.59

8.05 12.24

Forecast Error

Absolute Error

Squared Error

6.02 15.42 1.12 6.01 14.59 82.95

8.0512.24

36.25237.73 1.26 36.12212.87974.22

64.80149.94

Abs.%Error

5.02 11.86 0.97 5.46 11.22 66.98

6.719.79

5.0014.50

5.0014.50 210.25

25.00 4.3511.60

Total

Page 45: Slides  by

45 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Exponential Smoothing (a = .1)

Forecast Accuracy

82.95MAE 9.229

974.22MSE 108.259

66.98MAPE 7.44%9

Exponential smoothing (with a = .1) provided less accurate forecasts than the 3-MA approach.

Page 46: Slides  by

46 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

12345678910

110115125120125120130115110130

124.11120.82128.16117.63111.53

122.80120.56

Week Salesa = .8

Forecast

110.00114.00

Example: Exponential Smoothing (a = .8)

-4.11 9.18-13.16 -7.63 18.47

-2.20 4.44

Forecast Error

Absolute Error

Squared Error

4.11 9.18 13.16 7.63 18.47 75.19

2.204.44

16.91 84.23173.30 58.26341.27847.52

7.8419.71

Abs.%Error

3.43 7.06 11.44 6.94 14.21 61.61

1.833.55

5.0011.00

5.0011.00 121.00

25.00 4.358.80

Total

Page 47: Slides  by

47 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Example: Exponential Smoothing (a = .8)

Forecast Accuracy

75.19MAE 8.359

847.52MSE 94.179

61.61MAPE 6.85%9

Exponential smoothing (with a = .8) provided more accurate forecasts than ES with a = .1, but less accurate than the 3-MA.

Page 48: Slides  by

48 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Optimal Smoothing Constant Value We choose the value of a that minimizes

the mean squared error (MSE). Determining the value of a that minimizes

MSE is a nonlinear optimization problem. These types of optimization models are

often referred to as curve fitting models.

Page 49: Slides  by

49 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Time Series Analysis and Forecasting

Linear Trend Projection Seasonality

Page 50: Slides  by

50 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

If a time series exhibits a linear trend, the method of least squares may be used to determine a trend line (projection) for future forecasts. Least squares, also used in regression analysis, determines the unique trend line forecast which minimizes the mean square error between the trend line forecasts and the actual observed values for the time series.

The independent variable is the time period and the dependent variable is the actual observed value in the time series.

Page 51: Slides  by

51 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

Using the method of least squares, the formula for the trend projection is:

where: Tt = linear trend forecast in period t

b0 = Y-intercept of the linear trend line

b1 = slope of the linear trend line

t = the time period

Tt = b0 + b1t

Page 52: Slides  by

52 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

For the trend projection equation Tt = b0 + b1t

0 1b Y b t -

t= mean value of tY= average values of the time series

- -

-

1

12

1

( )( )

( )

n

tt

n

t

t t Y Yb

t t

where: Yt = actual value of the time series in period t n = number of periods in the time series

Page 53: Slides  by

53 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

The number of plumbing repair jobs performed byAuger's Plumbing Service in the last nine months is

listed on the right.

Example: Auger’s Plumbing Service

Month JobsMarch 353

May 342April 387

July 396June 374

August 409September 399October 412 November 408

Month JobsForecast the number of

repair jobs Auger's will

perform in December using the least

squares method.

Page 54: Slides  by

54 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

Sum 45 60 3480 444.00(Nov.) 9 4 16 408 21.33 85.32(Oct.) 8 3 9 412 25.33 75.99(Sep.) 7 2 4 399 12.33 24.66(Aug.) 6 1 1 409 22.33 22.33(July) 5 0 0 396 9.33 0(June) 4 -1 1 374 -12.67 12.67(May) 3 -2 4 342 -44.67 89.34(Apr.) 2 -3 9 387 0.33 -0.99(Mar.) 1 -4 16 353 -33.67 134.68

-t t - 2( )t t -( )tY Y - -( )( )tt t Y Y(month) t Yt Example: Auger’s Plumbing

Service

Page 55: Slides  by

55 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Linear Trend Projection

T10 = 351.07 + (7.12)(10) = 422.27

3480/ 9 386.667Y 45/ 9 5t

- - 0 1 386.667 7.12(5) 351.07b Y b t

- -

-

1

12

1

( )( ) 3480 7.1260( )

n

tt

n

t

t t Y Yb

t t

Example: Auger’s Plumbing Service

Page 56: Slides  by

56 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

To the extent that seasonality exists, we need to incorporate it into our forecasting models to ensure accurate forecasts.

We will first look at the case of a seasonal time series with no trend and then discuss how to model seasonality with trend.

Page 57: Slides  by

57 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

Year Quarter 1

Quarter 2

Quarter 3

Quarter 4

1 125 153 106 882 118 161 133 1023 138 144 113 804 109 137 125 1095 130 165 128 96

Example: Umbrella Sales

Sometimes it is difficult to identify patterns in a time series presented in a table.

Plotting the time series can be very informative.

Page 58: Slides  by

58 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

• Time Series Plot Example: Umbrella Sales

Page 59: Slides  by

59 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

• The time series plot does not indicate any long-term trend in sales.• However, close inspection of the plot does

reveal a seasonal pattern. The first and third quarters have moderate

sales, the second quarter the highest sales, and the fourth quarter tends to be the lowest

quarter in terms of sales.

Example: Umbrella Sales

Page 60: Slides  by

60 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

We will treat the season as a categorical variable. Recall that when a categorical variable has k levels, k – 1 dummy variables are required.

If there are four seasons, we need three dummy variables. Qtr1 = 1 if Quarter 1, 0 otherwise Qtr2 = 1 if Quarter 2, 0 otherwise Qtr3 = 1 if Quarter 3, 0 otherwise

Page 61: Slides  by

61 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

• General Form of the Equation is:

• Optimal Model is:

• The forecasts of quarterly sales in year 6 are: Quarter 1: Sales = 95 + 29(1) + 57(0) +

26(0) = 124 Quarter 2: Sales = 95 + 29(0) + 57(1) +

26(0) = 152 Quarter 3: Sales = 95 + 29(0) + 57(0) +

26(1) = 121 Quarter 4: Sales = 95 + 29(0) + 57(0) +

26(0) = 95

0 1 2 3( 1 ) ( 2 ) ( 3 )t t t tF b b Qtr b Qtr b Qtr

95.0 29.0( 1 ) 57.0( 2 ) 26.0( 3 )t t t tSales Qtr Qtr Qtr

Example: Umbrella Sales

Page 62: Slides  by

62 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality without Trend

Year Quarter 1

Quarter 2

Quarter 3

Quarter 4

1 125 153 106 882 118 161 133 1023 138 144 113 804 109 137 125 1095 130 165 128 96

Average

124 152 121 95

Example: Umbrella Sales

We could have obtained the quarterly forecasts for next year by simply computing the average number of umbrellas sold in each quarter.

Page 63: Slides  by

63 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality and Trend

We will now extend the curve-fitting approach to include situations where the time series contains both a seasonal effect and a linear trend. We will introduce an additional variable to represent time.

Page 64: Slides  by

64 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Business at Terry's Tie Shop can be viewed as

falling into three distinct seasons: (1) Christmas

(November and December); (2) Father's Day (late

May to mid June); and (3) all other times.

Example: Terry’s Tie Shop

Seasonality and Trend

Average weekly sales ($) during each of the

three seasons during the past four years are shown on the next slide.

Page 65: Slides  by

65 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality and Trend

Example: Terry’s Tie Shop

Determine a forecast for the average weeklysales in year 5 for each of the three seasons.

YearSeason

1 2 3 1856 2012 9851995 2168 10722241 2306 11052280 2408 1120

1234

Page 66: Slides  by

66 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality and Trend

There are three seasons, so we will need two dummy variables. Seas1t = 1 if Season 1 in time period t, 0

otherwise Seas2t = 1 if Season 2 in time period t, 0

otherwise General Form of the Equation is:0 1 2 3( ) ( ) ( )t t tF b b Seas1 b Seas2 b t

Example: Terry’s Tie Shop

Optimal Model797.0 1095.43( ) 1189.47( ) 36.47( )t t tSales Seas1 Seas2 t

Page 67: Slides  by

67 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Seasonality and Trend

The forecasts of average weekly sales in the three seasons of year 5 (time periods 13, 14, and 15) are: Seas. 1: Sales13 = 797 + 1095.43(1) + 1189.47(0) + 36.47(13) = 2366.5 Seas. 2: Sales14 = 797 + 1095.43(0) + 1189.47(1) + 36.47(14) = 2497.0 Seas. 3: Sales15 = 797 + 1095.43(0) + 1189.47(0)

+ 36.47(15) = 1344.0

Example: Terry’s Tie Shop

Page 68: Slides  by

68 Slide

© 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

End of Chapter 6, Part B