Documente Academic
Documente Profesional
Documente Cultură
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
=
=
=
=
=
=
=
=
=
=
=
.1(2056)
.1(2349)
.1(1895)
.1(1514)
.1(1194)
.1(2268)
.1(2653)
.1(2039)
.1(2399)
.1(2508)
+
+
+
+
+
+
+
+
+
+
.9(1953.50)
.9(1963.75)
.9(2002.20)
.9(1991.48)
.9(1943.73)
.9(1868.76)
.9(1908.00)
.9(1982.50)
.9(1988.15)
.9(2029.24)
Forecast
Error
1953.50
=
1963.75
=
2002.28
=
1991.48
=
1943.73
=
1868.76 -749.73
=
1908.00
399.24
=
1982.50
745.00
=
1988.15
56.50
=
2029.24
410.85
=
2077.12
478.76
Total squared error
Squared
error
562,095.07
159,392.58
555,025.00
3,192.25
168,797.72
229,211.14
1,677,713.76
SF =
Repeating this type of analysis, the following table can be developed. The results
from FORECAST are shown.
73
.01
.05
.1
.2
.5
1.0
SF
528.72
528.42
528.46
528.89
535.55
566.07
Then,
982.11 Y 3,053.51
All values are in thousands.
5
(a) & (b) The solution to this problem was aided by the use of the exponential smoothing
module in FORECAST. Using the first four week's data to initialize the level/trend
version of the exponential smoothing model and setting and equal to 0.2, the
forecast for next week is F11 = 2,024.47, with a standard error of the forecast of S F =
171.28.
(c) Assuming that the forecast errors are normally distributed around F11, a 95 percent
statistical confidence band can be constructed. The confidence band is:
Y = F11 + z S F
= 2,024.47 + 1.96171.28
where z = 1.96 for 2.5 percent of the area under the two tails of a normal distribution.
The range of the actual weekly volume is expected to be:
1,688.76 Y 2,360.18
74
6
(a) The data may be restated as shown below.
Sales, S
27,000
70,000
41,000
13,000
30,000
73,000
48,000
15,000
34,000
82,000
51,000
16,000
500,000
t
1
2
3
4
5
6
7
8
9
10
11
12
78
St
27,000
140,000
123,000
52,000
150,000
438,000
336,000
120,000
306,000
820,000
561,000
192,000
3,265,000
1
4
9
16
25
36
49
64
81
100
121
144
650
Trend
value,a
St
41,087
41,192
41,298
41,403
41,508
41,613
41,719
41,824
41,929
42,035
42,140
42,245
Seasonal
indexb
0.66
1.70
0.99
0.32
0.72
1.75
1.15
0.36
0.81
1.95
1.21
0.38
Computed from the linear trend line. For example, for period 1,
S1 = 40,981.6 + 105.31 = 41,087.
b
The ratio of the actual sales S to the trend line value St.
For example, for period 1, the seasonal index is 27,000/41,087 = 0.66.
Given the values from the above table and that t = 78/12 = 6.5, N = 12, and S =
500,000/12 = 41,666, the coefficients in the regression trend line would be:
b=
S t N S t
t2 N t
and
a = S b t = 41,666 105.3 6.5 = 40,9816
.
(b) The seasonal factors are determined by the ratio of the actual sales in a period to the
trend value for that period. For example, the seasonal factor for period 12 (4th
quarter of last year) would be 16,000/42,245 = 0.38. This and the seasonal factors for
all past quarters are shown in the previous table.
75
(c) The forecasts using the seasonal factors from the last 4 quarters are as follows:
t
13
14
15
16
St
42,351
42,456
42,561
42,666
Seasonal
factors
0.81
1.95
1.21
0.38
Forecast
34,304
82,789
51,499
16,213
7
An exponential smoothing model is used to generate a forecast for period 13 (January of
next year). The sales for January through April are used to initialize the model, and an
= 0.2 is used as the smoothing constant. The FORECAST module is used to generate the
forecast. The results are summarized as follows:
Forecast, F13
Forecast error, SE
Region 1
219.73
26.89
Region 2
407.04
25.50
Region 3
303.30
17.54
Combined
938.26
61.41
Note that the sum of the forecasts by region nearly equals the forecast of the combined
usage. However, whether a by-region forecast is better than an overall forecast that is
disaggregated by region depends on the forecast error. The standard error of the forecast
is the best indicator. A comparison of a bottoms-up forecast developed from regional
forecasts to that of a forecast from combined data can be based on the law of variances.
That is, if the usage rates within the regions are independent of each other, the estimate of
the total error can be built from the individual regions and compared to that of the
combined usage data. The total forecast error (variance) from the individual regions S C2
might be estimated as the weighted average of the variances as follows:
S C2 =
F1 2 F2 2
F
S E1 +
S E2 + 3 S E23
FC
FC
FC
where
Fi = forecasts of each region
FC = forecast based on combined data
S E2 = variance of the forecast in each region
i
2
T
Therefore,
219.73
407.04
30330
.
26.89 2 +
25.502 +
17.542
930.07
930.07
930.07
= 0.236 72307
. + 0.438 650.25 + 0.326 307.65
= 555.74
S T2 =
76
Then,
S T = 555.74 = 2357
.
Since ST < SC, it appears that a bottom-up, or regional, forecast will have a lower error
than a top-down forecast.
9
(a) See the plot in Figure 8-1. It shows that there is a seasonal component with a very
slight trend to the data as well as some random, or unexplained, variation.
FIGURE 8-1 Plot of time series data for Problem 9
300
250
200
150
100
50
Jly
Oct
Apr
Jan
Oct
Jly
Apr
Jan
Oct
Jly
Apr
Jan
Jly
Oct
Apr
Jan
Oct
Jly
Apr
Jan
Time, months
(b) A time series model typically will involve only two components: trend and
seasonality. Using 2 years of data should be sufficient to establish an accurate trend
line and the seasonal indices. We can develop the following table for computing a
regression line and seasonal indices.
77
Prices,
Pt
211
210
214
208
276
269
265
253
244
202
221
210
215
225
230
214
276
261
250
248
229
221
209
214
5,575
Time,
t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
300
Pt
211
420
642
832
1380
1614
1855
2024
2196
2020
2431
2520
2795
3150
3450
3424
4692
4698
4750
4960
4809
4862
4807
5136
69,678
1
4
9
16
25
36
49
64
81
100
121
144
169
196
225
256
289
324
361
400
441
484
529
576
4,900
Trend,a
Tt
232.4
232.4
232.4
232.4
232.2
232.3
232.3
232.3
232.3
232.3
232.3
232.2
232.3
232.2
232.3
232.3
232.2
232.2
232.2
232.2
232.2
232.2
232.2
232.2
Seasonal
indexb
0.91
0.90
0.92
0.90
1.19
1.16
1.14
1.09
1.05
0.87
0.95
0.90
0.93
0.97
0.99
0.92
1.19
1.12
1.08
1.07
0.99
0.95
0.90
0.92
St
0.92
0.93
0.96
0.91
1.19
1.14
1.11
1.08
1.02
0.91
0.92
0.91
Computed from the trend regression line. For example, the period 1 trend is T1 =
232.39 - 0.0081 = 232.4.
b
The seasonal index is the ratio of the actual price to the trend for the same period.
For example, the period 1 seasonal index is 211/232 = 0.91.
and
a = P t b t = 232.29 ( 0.008 )(12.5) = 232.39
78
Tt = 232.29 0.008 t
Note that the trend is negative for the last two years of data, even though the 5-year
trend would appear to be positive.
Now, computing the trend value Tt for each value of t gives the results as shown
in the previous table. The seasonal index is a result of dividing Pt by Tt for each
period t. The indices are averaged for corresponding periods that are one year apart.
Forecasting into the 5th year shows the potential error in the method. That is, for
January of the 5th year, the forecast is Ft = TtSt-12, or F25 = [232.39 0.00825][0.92]
= 213.6. Repeating for each method, we have:
t
25
26
27
28
29
30
31
32
33
34
35
36
a
Actual
price
210
223
204
244
274
246
237
267
212
211
188
188
Forecast Forecast
price
error
213.6
- 3.6
215.6
7.1
222.9
-18.9
211.3
32.7
276.3
- 2.3
264.6
-18.6
257.7
-20.7
250.7
16.3
236.8
-24.8
211.2
- 0.2
213.5
-25.5
211.2
-23.2
Total squared error
Squared
error
13.0
50.4
357.2
1069.3
5.3
345.9
428.5
265.7
615.0
0.0
51.0
538.2
3,739.5
Revised
seasonala
0.91
The seasonal index for period 25 is .90. The average of the seasonal index for period 25 12 = 13,
and this period is (0.92 + 0.90)/2 = 0.91.
The standard error of the forecast is S F = 3,739.5 / (12 2) = 19.34 . Now, the forecast
for period 37 would be:
F37 = ( 232.39 0.008 37 )( 0.91) = 21121
.
(c) Using the exponential smoothing module in the FORECAST software, the forecast
for the coming period is F = 201.26, with SF = 17.27. The smoothing constants given
in the problem are the "best" that FORECAST could find.
(d) Each model should be combined according to its ability to forecast accurately. We
can give each a weight in proportion to its forecast error, or standard error of the
forecast (SF). Hence, the following table can be developed:
79
(1)
Model type
Regression
Exp. smooth.
Total
Forecast error
19.34
17.27
36.61
(2) = (1)/36.61
Proportion of
total error
0.528
0.472
1.000
(3)=1/(2)
Inverse of error
proportion
1.894
2.119
4.013
(4)=(3)/4.013
Model weights
0.472
0.528
1.000
Therefore, each of the model results is weighted according to the model weights.
The weighted forecast for the upcoming January would be:
(1)
Model type
Regression
Exp. smooth.
(2)
(3)=(1)(2)
Weighted
proportion
99.69
106.27
205.96
In a similar fashion, we can weight the forecast error variances to come up with a
weighted forecast error standard deviation SFw. That is,
S Fw = 0.472 19.34 2 + 0.528 17.27 2 = 18.28
A 95 percent confidence band using the combined results might be constructed as:
Y = 205.96 z18.28
where z is 1.96 for 95 percent of the area under the normal distribution.
Y = 205.96 1.9618.28
Hence, we can be 95 percent sure that the actual price Y will be within the following
range:
170.13 Y 241.79
10
The plot of the sales data is shown in Figure 8-2. The plot reveals a high degree of
seasonality with a noticeable downward trend. A level-trend-seasonal model seems
reasonable.
(b) Using the search capability within the FORECAST software, a Level-Trend-Seasonal
form of the exponential smoothing model was found to give the lowest forecast error.
A 14-period initialization and 6 periods to compute error statistics were used. The
respective smoothing constants were = 0.01, = 0.08, and = 0.60. This produced
80
a forecast for the upcoming period (January 2004) of F = 6,327.60 and a standard
error of the forecast of SF = 1,120.81.
FIGURE 8-2 Plot of Time Series Data for Hudson Paper Company
30000
25000
20000
15000
10000
5000
Oct
Jly
Apr
Jan
Oct
Jly
Apr
Jan
Oct
Jly
Apr
Jan
Oct
Jly
Apr
Jan
Oct
Jly
Apr
Jan
T im e , m o n th s
(c) Assuming that the forecast errors are normally distributed around the forecast, a 95
percent confidence band on the forecast is given by:
Y = F + zSF
Y = 6,327.60 1.961,120.81
where z = 1.96 for 95 percent of the area under the normal distribution curve.
Therefore, we can be 95 percent sure that the actual sales Y should fall within the
following limits:
4,130.8 Y 8,524.4
11
(a) For A569, the BIAS = 165,698 and the RMSE = 126,567 when using the 3-month
moving average. However, if a level only exponential smoothing model with an =
0.10, the BIAS drops to 9,556 and the RMSE is 118,689. The model fits the data
better and there is a slight improvement in the forecasting accuracy.
For A366, the BIAS = 18,231 and the RMSE = 144,973 when using the 3-month
moving average. A level-trend-seasonal model offers the best fit, but it is suspect
since the data show a high degree of random variability rather than seasonality.
Overall, a simple level-only model is probably better in practice. The model has an
= 0.08, a BIAS = 3,227, and a RMSE = 136,256. This is an improvement over the
3-month moving average.
81
(b) Using the level-only models, the forecast for October for A569 = 193,230 and for
A366 = 603,671.
(c) The 3-sigma (99.7 percent) confidence band on the forecasts would be:
For A569, Y = 193,230 3(118,689), or 0 Y 549,297.
For A366, Y = 603,671 3(136,256), or 194,903 Y 1,012,439.
The actual October usage falls within the 3-sigma confidence bands for each of
these products. The difference of the actual from the forecast for each product is
attributable to the substantial variability in the data, which is characteristic of
purchasing in the steel processing industry.
82
WORLD OIL
Teaching Note
Strategy
The purpose of this case study is to allow students to develop an appropriate forecasting
model for some time series data. Discussion may begin with the nature of this
productone with which most students should be very familiar. Based on the many
available forecasting approaches, students should be encouraged to select several for
consideration. In this note, both exponential smoothing and time series decomposition
are evaluated. Both are appropriate here because (1) they can project from historical time
series data, (2) they can handle seasonality, which appears to be present in the data, (3)
there is enough data to construct and test the models, and (4) the forecast is for a short
period into the future.
Assistance with the computational aspects of this problem is available with the use of
the FORECAST module in the LOGWARE software.
Answers to Questions
(1) Develop a forecasting procedure for this service station. Why did you select your
method?
Both exponential smoothing and time series decomposition forecasting methods are
tested using the FORECAST module in LOGWARE. For exponential smoothing, an
initialization period of one seasonal cycle (52 weeks) plus two weeks are used for a total
of 54 weeks, a minimum requirement in FORECAST. The last 30 weeks of data is used
for computing the error statistics. This number of periods is arbitrary, but seems
reasonably large so as to give stable statistical values. We wish to minimize the forecast
error over time, and FORECAST computes both MAD and RMSE statistics that can be
used to make comparisons among model types. Testing the various exponential
smoothing model types and the time series gives the following statistics.
Smoothing
constants
Model type
Level only....
Level-trend...
Level-seasonal
Level-trendseasonal......
TS decomp.....
.5
1.0
MAD
37.82
45.85
38.97
BIAS
-5.27
7.13
11.30
RMSE
67.61
67.80
45.71
.01 .2
.4
30.27
59.46
-6.05
37.18
44.17
71.85
.4
.2
.3
Forecast
week 6 of this
year
817.35
860.26
648.75
770.74
731.33
The MAD and RMSE statistics show how well the forecast has been able to track
historical fuel usage rates. They are an indication of the accuracy of the forecasting
process in the future on the average. We favor forecasting methods that can minimize
these statistics. In this case, the Level-Trend-Seasonal version of the exponential
smoothing model seems to do this best. Both MAD and RMSE are the lowest for this
model type among the alternatives.
83
(2) How should the periods of promotions, holidays, or other periods where usage rates
deviate from normal patterns, be handled in the forecast?
If the deviations occur at the same time within the seasonal cycle and with the same
relative intensity, no special procedures are required. The adaptive characteristic of the
exponential smoothing process will automatically incorporate these deviations into the
forecast. However, when the deviations are not regular, as promotions may be timed
irregularly, they may best be handled as outliers in the time series and eliminated from
the time series. The model may be fit without the outliers, and then the effect of them
treated as modifications to the forecast. These modifications can be handled manually.
84
(3) Forecast next Monday's fuel usage and indicate the probable accuracy of the
forecast.
F z ($ F ) Y F + z ($ F )
where $ F is the standard error of the forecast. F is the forecast, and z is the number of
standard deviations for 95 percent of the area under a normal distribution. FORECAST
computes the root mean squared error (RMSE) as:
N
(A
RMSE =
Ft )2
t =1
85
0%
50%
100%
+----+----+----+----+----+----+----+----+----+----+
|
|
|******
|
|***
|
|********
|
|********
|
|*****
|
|********
|
|******
|
|*
|
|*
|
|
|
|
|
+----+----+----+----+----+----+----+----+----+----+
Since RMSE is uncorrected for degrees of freedom lost, we apply a correction factor
(CF) as a multiplier to RMSE to get the unbiased estimate of the standard error of the
forecast ( F ):
CF =
N
N-n
where n is the number of degrees of freedom lost in the model building process. We
estimate n to be the number of smoothing constants in the model, or three in this case.
Hence,
$ F = RMSE CF
30
30 3
= 4417
. 1054
.
= 4417
.
= 46.56
Now, with z@95% = 1.96 from a normal distribution table, we can be 95 percent confident
that the true 87-octane fuel usage Y on Monday of week 6 will be:
771 1.96(46.56) < Y < 771 + 1.96(46.56)
680 < Y < 862 gallons
86
METRO HOSPITAL
You are the materials manager at Metro Hospital. Approximately one year ago, the
hospital began stocking a new drug (Ziloene) that helps the healing process for wounds
and sutures. It is your responsibility to forecast and order the monthly supply of Ziloene.
The goal is to minimize the combined cost of overstocking and understocking the drug.
Orders are placed and received at the beginning of the month and demand occurs
throughout the month. The following demand and cost data have been compiled.
Costs. If more is ordered than is demanded, a monthly holding cost of $1.00 per case
is incurred. If less is ordered than is demanded, a $2.00 per case lost sales cost is
incurred. The drug has a short shelf life, and any overstocked product at the end of the
month is worthless and no longer available to meet demand.
Demand. The demand for the twelve months of last year was:
Month
Cases
1
43
2
36
9
59
10
51
11
77
12
50
87
Decision Worksheet
Month
1 (13)
2 (14)
3 (15)
4 (16)
5 (17)
6 (18)
7 (19)
8 (20)
9 (21)
10 (22)
11 (23)
12 (24)
Total
Month
1 (25)
2 (26)
3 (27)
4 (28)
5 (29)
6 (30)
7 (31)
8 (32)
9 (33)
10 (34)
11 (35)
12 (36)
Total
Cases
ordered
Actual
demand
Over @
$1/case
Short @
$2/case
Cost, $
Cases
ordered
Actual
demand
Over @
$1/case
Short @
$2/case
Cost, $
88
METRO HOSPITAL
Exercise Note
Purpose
Metro Hospital is an in-class exercise designed to illustrate the relationship between good
forecasting and the control of inventory related costs. It shows that accurate forecasting
is a primary factor in minimizing inventory costs. Participants in this exercise use a
variety of methods, often intuition, to forecast demand and to come up with a purchase
quantity. Their performance is measured as over- or understock costs. Using a simple
exponential smoothing forecasting model and an understanding of the standard deviation
of the forecast, an effective purchase plan can be constructed. This process results in
costs that are significantly lower than the majority of the participants are able to achieve
using intuitive methods.
Administration
The descriptive material and the decision worksheet are to be distributed to the class at
the time that the exercise is conducted. To hand out the material ahead of time may take
away much of the drama from the exercise. About one half hour should be scheduled for
running the exercise.
The instructor asks the class to make a decision regarding the size of the order to be
placed in the upcoming period and to record it on the worksheet. The participants are
then informed of the demand for that period from Table 1 after the simulated time of one
month has passed. Given that they now know the actual demand for the period, the
participants are asked to record their costs and then to place an order for the next period.
The pattern is repeated for at least twelve months, a full seasonal cycle. The participants
are asked to sum their costs and to report them to the exercise leader. They are displayed
in a public place, such as a chalkboard, for all to see. Then, the exercise leader
announces his or her cost level that was achieved using a disciplined approach using a
simple forecasting procedure and some basic statistics.
TABLE 1 Actual Demand for Period 13 Through 36
Period
13 14 15 16 17 18 19 20
Demand
47 70 55 38 90 24 65 65
21
23
22
55
23
85
24
66
Period
Demand
33
45
34
70
35
50
36
56
25
53
26
64
27
61
28
63
29
65
30
38
31
80
32
88
Quantitative Analysis
The demand series was generated using a normal distribution with a reasonably high
variance and a very slight upward trend. To illustrate the use of a quantitative approach
to forecasting, an exponential smoothing model was selected, although other methods
such as time series decomposition would also be appropriate. The twelve historical data
points were submitted to the FORECAST module in LOGWARE. A three-month
initialization period and a three-month time period for computing error statistics were
chosen. The smoothing constants for the level, level-trend, and level-trend-seasonal
models were examined. Based on the root mean squared error (RMSE), the best model
89
was the level-trend-seasonal (RMSE = 13.59), but the level model with = 0.19 and
RMSE = 13.89 performed very well and is used here. The model is:
Ft +1 = 0.19 At + 0.81Ft
where
Ft +1 = forecast for next period t + 1
At = actual demand for current period t
Ft = forecast for current period t
LOGWARE gives a forecast value of 58.1 and this is used as the forecast value for
period 13. Applying this simple, level only model to the second year demand as it is
revealed in each period gives the following forecast values:
TABLE 2 Simple Exponential
Smoothing Forecast Values
for the Next Year
Actual
Period
demand
Forecast
13
47
58.1
14
70
56.0
15
55
58.7
16
38
58.0
17
90
54.2
18
24
61.0
19
65
54.0
20
65
56.1
21
23
57.8
22
55
51.2
23
85
51.9
24
66
54.6
Recall the RMSE was 13.89 for this model. To be precise, we calculate z by trial and
error. The following order quantity and cost computations can be made for a z value of
0.8 (Table 3).
90
Cost, $
22
6
15
31
50
48
0
2
46
7
44
0
271
Cost, $
295
290
285
280
275
270
265
0
0.2
0.4
0.6
0.8
Z
91
1.2
1.4
90
80
Cases
70
60
50
Demand
40
Forecast
30
20
10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Time period
Summary
The exercise leader should discuss that one of the problems with intuitively forecasting
demand is overreacting to randomness in the demand pattern. This has the effect of
causing extreme over and short costs in inventories. A model for short term forecasting
that is integrated into the purchasing and inventory control process can help to avoid
these extremes and give lower costs. Several forecasting models may perform well, such
as exponential smoothing, a simple moving average, a regression model, or a times series
decomposition model. One of the most practical for inventory control purposes is the
exponential smoothing model. The results from a simple, level only model were
illustrated above using the same information that was available to the participants.
Recognizing that it is less costly to order too much than to order too little, the
purchase quantity should exceed the forecast by some margin. The astute participant will
likely approximate the standard deviation of demand from the range of the demand
values, that is, = (Max - Min)/6. Then, one or two might be used to add a margin of
safety to the forecast and size of the purchase order. This simple approximation
procedure can lead to reasonable results.
92