PPC UNIT-2 Forecasting Notes
PPC UNIT-2 Forecasting Notes
FORECASTING
Demand forecasting is the process of making estimations about future customer demand over a
defined period, using historical data and other information.
Purposes of forecasting:
Stages in forecasting:
Setting the Objectives: The purpose for which the demand forecasting is being done
must be clear. Whether it is for short-term or long-term, the market share of the product,
the market share of the organisation, competitors share, etc. By all these aspects, the
objectives for forecasting are framed.
Determining the Time Perspective: The defined objectives are supported by the period
for which the forecasting is being done. The demand for a commodity varies with the
change in its determinants over the period.
There is a negligible change in price, income or other factors in the short run. But, the
organisation may notice a considerable difference in these determinants over a long-term,
affecting the demand of a commodity.
Collecting the Data: Forecasting is based on past experiences and data. This data or
information can be primary or secondary. Primary data comprises of the information
directly collected by the analysts and researchers; whereas secondary data includes the
physical evidence of the past performance, sales trend in the past years, financial reports,
etc.
Estimating the Results: The data so collected is arranged in a systematic and meaningful
manner. The past performance of a product in the market is analyzed on this basis.
Accordingly, future sales prediction and demand estimation are done. The results so drew
must be in a format which is easy to understand and apply by the management.
2.Medium-range forecast
1. Qualitative methods
2. Quantitative methods
Qualitative methods: These types of forecasting methods are based on judgments, opinions,
intuition, emotions, or personal experiences and are subjective in nature. They do not rely on any
rigorous mathematical computations
i. Customer Surveys
ii. Sales Force Composites
iii. Jury of Executive Opinion
iv. The Delphi Method
i. Customer Surveys
Only a few consumers are selected and their views on the probable demand are collected.
Thus, it is a miniature form of Complete Enumeration Survey.
The sample is considered to be a true representation of the entire population.
This method is simple and cheaper.
The results of survey can be obtained quickly and results are good.
ii. Sales Force Composites
In this method sales persons are expected to estimate expected sales in their respective
territories.
The sales force, which has been selling the product to wholesalers / retailers / consumers
over a period of time, is considered to know the product and the demand pattern very
well.
These method does not require intricate mathemathical calculations.
This method 1s based on the first hand knowledge of the salesman.
It is useful to forecast the sales of new products.
This technique of forecasting demand seeks the views of experts on the likely level of
demand in the future. They have a rich experience of the behaviour of demand.
If the forecasting is based on the opinion of several experts, then it is known panel
consensus.
A specialized form of panel opinion is the Delphi Method. This method seeks the opinion
of a group of experts through mail about the expected level of demand.
The responses so received are analyzed by an independent body.
Time Series: The repeated observations of demand for a service or product in their order of
occurrence.
3. Trend pattern :-
4. Cyclical pattern
Naïve method:
– The forecast is equal to the actual value observed during the last period
– good for level patterns
Ft 1 Dt
Moving Average method:
– The average value over a set time period (e.g.: the last three weeks)
– Each new forecast drops the oldest data point & adds a new observation
– More responsive to a trend but still lags behind actual data
Ft1 Dt / n
Weighted Moving Average:
W D t t
M t t 1n
W
t 1
t
e.g. Wt=0 .5, Wt-1 =0.3, Wt-2 =0.2 (weights add to 1.0)
• Allows emphasizing one period over others; above indicates more weight on recent data
(Wt=0.5)
• Differs from the simple moving average that weighs all periods equally - more responsive
to trends
• Assumes the most recent observations have the highest predictive value
– gives more weight to recent time periods
A trend in a time series is a systematic increase or decrease in the average of the series over time.
With this approach, the estimates for both the average and the trend are smoothed,
requiring two smoothing constants. For each period, we calculate the average and the
trend.
Regression Model
y = a + bx
where a = intercept
b = slope of the line
x = Independent variable
y = Dependent variable
• Identify dependent (y) and independent (x) variables
• Solve for the slope of the line
b
XY nXY
X 2 nX
2
a Y bX
• Develop the equation for the trend line
Y=a + bX
FORECASTING QUANTITATIVE TECHNIQUES (PROBLEMS)
Naïve method:
– The forecast is equal to the actual value observed during the last period
– good for level patterns
Ft 1 Dt
Moving Average method:
– The average value over a set time period (e.g.: the last three weeks)
– Each new forecast drops the oldest data point & adds a new observation
– More responsive to a trend but still lags behind actual data
Ft1 Dt / n
Simple Moving Average
F4 = M3
F5 = M4
F6 = M5
F7 = M6
Where
n = number of periods taken to evaluate the moving average
Dt or Di = Actual demand in that period
Example 1: Forecast the order for the month of November by
i. Naive Approach
ii. a three period moving average .
iii. a five period moving average.
Month
Jan Feb Mar Apr May Jun Jul Aug Sep Oct
(t)
Order per
month 120 90 100 75 110 50 75 130 110 90
Dt
Solution:
i. Naive Approach
Order per
Month Forecast Ft
S. No. month
(t)
Dt
1 Jan 120
2 Feb 90 120
3 Mar 100 90
4 Apr 75 100
5 May 110 75
6 Jun 50 110
7 Jul 75 50
8 Aug 130 75
9 Sep 110 130
10 Oct 90 110
11 Nov 90
F2 = 120 Ft1 Dt
F3 = 90
F4 = 100
.
F11 = 90
M3 = (D1+D2+D3) /3
= (120+90+100) /3
= 103
F4 = M3 = 103
M4 = 88
.F5 = M4 = 88
.
.
.
.M10 = 110
M5 = (D1+ D2+D3+D4+D5) /5
= (120+90+100+75+110)/5
= 99
F6 = M5 = 99
M6 = 85
F7 = M6 = 85
.
.
.
M10 = (50+75+130+110+90)/5
= 91
F11 = M10 = 91
Sales 110 115 125 120 125 120 130 115 110 130
Solution:
i) 3 Period Moving Average (n=3)
M3 = (D1+D2+D3) /3
= (110+115+125) /3
= 117
F4 = M3 = 117
.
.
M10 = 118
F11 = M10 = 118
Sales for the week 11 = 118
ii) 5 Period Moving Average (n=5)
Actual Moving
Week Forecast F Error
Demand Average t
(t) (Dt - Ft)
Dt Mt
1 110 ------ ------ ------
2 115 ------ ------ ------
3 125 ------ ------ ------
4 120 ------ ------ ------
5 125 124 ------ ------
6 120 122 124 -4
7 130 120 122 8
8 115 121 120 -5
9 110 121 121 -11
10 130 118 121 9
11 ------ ------ 118 -----
M5 = (D1+ D2+D3+D4+D5) /5
= (110+115+125+120+125)/5
= 124
F6 = M5 = 124
.
M10 = 118
F11 = M10 = 118
Sales for the week 11 = 118
Weighted Moving Average:
W D t t
Mt t 1
n
W
t 1
t
F5 = M4
Example 3: Use a 3 period weighted moving average to forecast the sales for week 11 giving a
weight of 0.6 to the most recent period, 0.3 to the second most recent period, and 0.1 to the third
most recent period
Week 1 2 3 4 5 6 7 8 9 10
Sales 110 115 125 120 125 120 130 115 110 130
Solution:
Weighted
Actual Forecast
Week Moving Error
Demand F
(t) Average (Dt - Ft)
Dt t
Mt
1 110 ------ ------ ------
2 115 ------ ------ ------
3 125 121 ------ ------
4 120 121 121 -1
5 125 124 121 4
6 120 122 124 -4
7 130 127 122 8
8 115 120 127 -12
9 110 114 120 -10
10 130 123 114 17
11 ------ ------ 123 -----
W1 =0.1, W2= 0.3 and W3=0.6
W 1D1 W 2 D2 W 3D3
M3
W 1 W 2 W 3
= 121
F4 = M3 = 121
F5 = M4 = 121
• Assumes the most recent observations have the highest predictive value
– gives more weight to recent time periods
Month 1 2 3 4 5 6 7 8 9
Demand 820 775 680 655 750 802 798 689 775
Solution:
Assume F1=D1
Forecast Forecast
Week Demand a=0.1 a=0.6
1 820 820.00 820.00
2 775 820.00 820.00
3 680 815.50 793.00
4 655 801.95 725.20
5 750 787.26 683.08
6 802 783.53 723.23
7 798 785.38 770.49
8 689 786.64 787.00
9 775 776.88 728.20
10 776.69 756.28
For a=0.6
Solution:
Forecast Forecast
S.No. Month Demand
a = 0.3 a = 0.6
1 January 120 100.00 100.00
2 February 90 106.00 112.00
3 March 101 101.20 98.80
4 April 91 101.14 100.12
5 May 115 98.10 94.65
6 June 83 103.17 106.86
7 July 97.12 92.54
b
XY nXY
X2 nX
2
a Y bX
• Develop the equation for the trend line Y=a + bX
Example 6: A maker of golf shirts has been tracking the relationship between sales and
advertising dollars. Use linear regression to find out what sales might be if the company invested
$53,000 in advertising next year.
Adv.$ Sales $
S.No. XY X^2
(X) (Y)
1 32 130 4160 2304
2 52 151 7852 2704
3 50 150 7500 2500
4 55 158 8690 3025
5 53
Tot 189 589 28202 9253
189
X 47.25
4
589
Y 147.25
4
b
XY nXY
X2 nX
2
28202 447.25147.25
b 1.15
9253 447.25
2
a Y bX 147.25 1.1547.25
a 92.9
Y a bX
92.9 1.15X
Y 92.9 1.1553
153.85
Correlation Coefficient:
• Correlation coefficient (r) measures the direction and strength of the linear relationship
between two variables. The closer the r value is to 1.0 the better the regression line fits
the data points.
428,202189589
r .982
487,165 589
2 2
4(9253) - (189) *
r 2 .982 2 .964
Year 1 2 3 4 5 6
Expenditure
2 3 5 4 11 5
for research
Annual profit 20 25 34 30 40 31
Solution:
b
XY nXY
X 2 nX
2
30
X 5 1000 6 x 5 x 30
6 b 2
200 6 x 5
2
180
Y 30 a Y bX 30 2 x 5
6
a 20
Y a bX
20 2X
Y 20 2 x 6
32
Measuring Forecast Error
• Need to know how much we should rely on our chosen forecasting method
E t Dt Ft
• Note that over-forecasts = negative errors and under-forecasts = positive errors
RMSE MSE
v) Mean Absolute Percentage Error (MAPE)
n
D -F
t=1
t t
MAPE = X100
Dt
vi) Mean forecast error (MFE)
n
MFE =
(D F )
t=1
t t
n
vii) Tracking Signal
CFE
TS
MAD
Example 8: Determine the Mean Absolute Deviation (MAD), Mean Square Error (MSE), Mean
Absolute Percentage Error (MAPE), Mean forecast Error (MFE) for the following Data
Period 1 2 3 4 5
Demand 150 160 165 175 180
Forecast 165 165 165 165 165
Solution:
3 165 165 0 0 0 0 0
D t - Ft
45
9
t=1
MAD =
n 5
D t - Ft 2
575
115
t=1
MSE =
n 5
1 n 27.165
Dt - Ft 5.433%
n
MAPE X100
t 1 Dt 5
(D F ) t t 5
MFE = t=1
n
1
5
Example 9: Determine the MAD, MSE and RMSE values for the given forecast values in the
table below?
Month 1 2 3 4 5
Sales 220 250 210 300 325
Forecast N/A 255 205 320 315
Solution:
Absolute Squared
Month Sales Forecast Error deviation Error
|D – F | 2
D F (D -F ) t t (D – F )
t t t t
t t
3 210 205 5 5 25
D
n
t - Ft 40
t=1
10
MAD = 4
n
n
D t - Ft
2
550
MSE = t=1 137.5
n 4
18