02- Solution_Tutorial_Forecasting
02- Solution_Tutorial_Forecasting
ii. Problems
- This tutorial includes 3 solved problems and 03 problems for practice at home.
iii. Reference books
• Operations Management (9th Edition) by Jay Heizer and Barry Render
(a) Forecast sales for January this year to January next year using A 3-month weighted moving average using
0.5, 0.3 and 0.2 weights from the latest sales data respectively.
(b) Forecast for November to next year January using exponential smoothing using α = 0.3 and an October
forecast of 18.
(c) Forecast for November to next year January using adjusted exponential smoothing assuming α = β = 0.3,
Solution 1:
Retrieving information from the problem
Monthly sales of a product are given, from which sales forecast for January the next year needs to be made
applying different forecasting tools.
∑ 𝑥𝑦−𝑛𝑥̅ 𝑦̅
𝑏= ∑ 𝑥 2 −𝑛𝑥̅ 2
=0.4
𝑎 = 𝑦̅ − 𝑏𝑥̅
= 18.167 – 0.4x6.5 = 15.56
For the next January, x = 13.
So, F13 = a + bx = 15.56 + (0.4) x (13) = 20.76
We are doing the error analysis for the forecast value of January to December
Actual Forecast Error (A-F) |𝐄𝐫𝐫𝐨𝐫| [|𝐄𝐫𝐫𝐨𝐫|÷Actual]×100
Period
January 20 20 0 0 0.00
February 21 21 0 0 0.00
March 15 15 0 0 0.00
∑|𝐴𝑐𝑡𝑢𝑎𝑙 − 𝐹𝑜𝑟𝑒𝑐𝑎𝑠𝑡| 21
𝑀𝐴𝐷 = = = 1.75
𝑛 12
|𝐴𝑐𝑡𝑢𝑎𝑙𝑖 − 𝐹𝑜𝑟𝑒𝑐𝑎𝑠𝑡𝑖 |
∑ 100 × 124.52
𝐴𝑐𝑡𝑢𝑎𝑙𝑖
𝑀𝐴𝑃𝐸 = = = 10.38%
𝑛 12
From a conceptual standpoint MAD weights all errors evenly whereas MAPE weights according to relative
error.
Problem 2. In order to promote the sales of a certain commodity, TV advertisement is broadcasted. The
following monthly sales and TV advertisement frequency were recorded for the year (2020)
TV advertisement (Times
Month Sales ($ thousand)
per month)
Jan 17 15
Feb 12 10
Mar 16 13
Apr 14 15
May 24 25
Jun 25 27
Jul 26 24
Aug 22 20
Sep 24 27
Oct 30 44
Nov 25 34
Dec 17 17
Calculate
(a) Whether TV advertisements had any considerable influence on the sales?
(b) If yes, what was the expected sale in January 2020 with 40 times of TV advertisement?
(c) What could be expected and why if there was no advertisement in January
Solution 2:
The high value of the coefficient of correlation indicates that the TV advertisement had a significant
influence on the sales of the commodity.
𝑟2 = 0.91672 = 0.84
Comment: This value of the coefficient of determination indicates that 84% of the variation in the sales can
be explained by this regression equation.
Step (2): Solve for (b) and (c): Develop the regression equation and calculate expected sales in January
2020 for 40 and 0 TV ad.
Comment: With no ad in the TV, the sales value is found to be negative which realistically does not carry any
sense. In reality, there might be no sales in January with an expected value of zero.
Problem 3: A computer distributer wants to develop monthly indices for sales. Data from past three years,
by month, are available. What would be the monthly demand for the fourth year?
Solution 3:
Step (2): Calculate the seasonal indices dividing the period or yearly average by the grand average
sales.
Forecast the total sale for the fourth year
This forecasting is user’s choice, it may be moving average, weighted moving average or could be just a
growth rate of the last year and so.
Here we use 3 period (yearly) weighted moving average, such that fourth year total forecast is
𝐹4 =1204×0.5+1130×0.3+1050×0.2=1151
Step (4): Forecast monthly sales multiplying average monthly forecasted sale by the respective
seasonal index
Seasonal Year 4
Month Year Year Year
Indices Monthly Sale
1 2 3
Jan 80 85 105 0.957 (1151/12)x0.957=91.84
Feb 70 85 85 0.851 81.63
Mar 80 93 82 0.904 86.73
Apr 90 95 115 1.064 102.04
May 113 125 131 1.309 125.51
Jun 110 115 120 1.223 117.34
Jul 100 102 113 1.117 107.14
Aug 88 102 110 1.064 102.04
Sep 85 90 95 0.957 91.84
Oct 77 78 85 0.851 81.63
Nov 75 82 83 0.851 81.63
Dec 82 78 80 0.851 81.63
Problem 1: Howard Weiss, owner of a musical instrument distributorship, thinks that demand for bass
drums may be related to the number of television appearances by the popular group Stone Temple Pilots
during the previous month. Weiss has collected the data shown in the following table:
Period 1 2 3 4 5 6
Demand for Bass Drums 3 6 7 5 10 7
Stone Temple Pilot’s TV Appearances 3 4 7 6 8 5
(a) Graph these data to see whether a linear equation might describe the relationship between the group’s
television shows and bass drum sales.
(b) Use the least-square regression method to derive a forecasting equation.
(c) What is your estimate for bass drum sales if the Stone Temple Pilots performed on TV nine times last
month?
(d) Estimate the relationship between the sales variations and TV appearance.
Solution
Solve (a) Graph the demand with respect to the TV show
The observations tend to cluster about a straight line over the range shown and a linear equation might
describe the relationship between the group’s television shows and bass drum sales.
Solve (b) Use Least square regression method to derive a forecasting equation
Period TV Ad (say, x Demand (y) xy X2 Y2
)
1 3 3 9 9 9
2 4 6 24 16 36
3 7 7 49 49 49
4 6 5 30 36 25
5 8 10 80 64 100
6 5 7 35 25 49
Ʃx = 33
Ʃy = 38
Ʃxy = 227
Ʃx2 = 199
Ʃy2 = 268
The regression equation y = 0.665 + 1.03x
Solve (c) what is your estimate for bass drum sales if the Stone Temple Pilots performed on TV
nine times last month?
Solve (d) Estimate the relationship between the sales variations and TV appearance.
r=0.823
𝑟2 = 0.8232 = 0.68. This means that 68% of the bass drum sales variation and TV appearances can be
explained by the derived regression equation.
Problem 2: Consider the following actual (At) and forecast (Ft) demand levels for a product:
Solution:
We need to find the smoothing constant α. We know in general that Ft = Ft–1 + α (At–1 – Ft–1); and t = 2,
3, 4. We choose either t = 3 or t = 4 [t = 2 will not let us find α because F2 = 50 = 50 + α (50 – 50) holds
for any α].
Problem 3: The following two demand sets are to be used to test two different basic exponential smoothing
models. He first model uses α = 0.1, and the second uses α = 0.5. In both cases, the model should be
initialized with a beginning forecast value of 50; that is, the ESF forecast for period 1 made at the end of
period 0 is 50 units. In each of the four cases, (two models on two demand sets), compute the average
forecast error and MAD. What do the results mean?
Demand set I Demand Set II
Period Demand Period Demand
1 51 1 77
2 46 2 83
3 49 3 90
4 55 4 22
5 52 5 10
6 47 6 80
7 51 7 16
8 48 8 19
9 56 9 27
10 51 10 79
11 45 11 73
12 52 12 88
13 49 13 15
14 48 14 21
15 43 15 85
16 46 16 22
17 55 17 88
18 53 18 75
19 54 19 14
20 49 20 16
According to the calculated values of forecast error and MAD values, it is obvious that the data set II exhibit
more spread or fluctuations. The greater average forecast error or MAD for the smoothing constant values
(α =0.1 and 0.5) are in support of the conclusion. The average error values of .06 and 0.09 in data set I indicate
that the forecasts produced by both the exponential smoothing models have very little bias. However, the
forecasts produced by both exponential smoothing models on data set II exceed actual demand by 1 to 2
units per period. Of the two models, use of one with the smoothing constant value of 0.1 would be
appropriate for forecasting the demand for both data sets.
Additional 2 Problems (Try yourself)
Problem 1: As you can see in the following table, demand for heart transplant surgery at a general hospital
has increased steadily in the past few years:
Year 1 2 3 4 5 6
Heart transplant 45 50 52 56 58 ?
The director of medical services predicted 6 years ago that demand in year 1 would be 41 surgeries.
a) Use exponential smoothing, first with smoothing constant of 0.6 and then with one of 0.9 to develop
forecasts for years 2 through 6.
b) Use a 3-year moving average to forecast demand in years 4, 5, and 6.
c) Use the trend projection method to forecast demand in years 1 through 6.
Problem 2: Dr. Jerilyn Ross, a New York City psychologist, specializes in treating patients who are
agoraphobic (afraid to leave their homes). The following table indicates how many patients Dr. Ross has seen
each year for the past 10 years. It also indicates what the robbery rate was in New York City during the same
year.
Year 1 2 3 4 5 6 7 8 9 10
Number of 36 33 40 41 40 55 60 54 58 61
patients
Robbery rate 58.3 61.1 73.4 75.7 81.1 89.0 101.1 94.8 103.3 116.2
per 1,000
population
a) Apply linear regression to study the relationship between the robbery rate and Dr. Ross’s patient load.
a) Using trend analysis, predict the number of patients Dr. Ross will see in years 11, 12, and 13. How well
does the model fit the data?
b) If the robbery rate increases to 131.2 in year 11, how many phobic patients will Dr. Ross treat?
c) If the robbery rate drops to 90.6, what is the patient projection?
d) What is the model’s correlation coefficient? Determine the coefficient of determination and interpret
the value you have obtained. .