Professional Documents
Culture Documents
Haery Sihombing/IP
Sihombing/IP
Pensyarah Fakulti Kejuruteraan Pembuatan
Universiti Teknologi Malaysia Melaka
What is Forecasting?
Process of predicting a
6
;
future event
; Underlying basis of
all business decisions
??
; Production
; Inventory
; Personnel
; Facilities
FORECASTING
Forecasting and
Forecasting
Supply Chain Management
Accurate forecasting determines how much
Predicting the Future inventory a company must keep at various
Qualitative forecast points along its supply chain
methods Continuous replenishment
supplier and customer share continuously updated data
subjective
typically managed by the supplier
Quantitative forecast reduces inventory for the company
methods speeds customer delivery
based on mathematical Variations of continuous replenishment
formulas quick response
JIT (just-
(just-in-
in-time)
VMI (vendor-
(vendor-managed inventory)
stockless inventory
Forecasting and TQM Types of Forecasting Methods
Accurate forecasting customer demand is a Depend on
key to providing good quality service
Continuous replenishment and JIT ¾ time frame
complement TQM ¾ demand behavior
eliminates the need for buffer inventory, which, in
turn, reduces both waste and inventory costs, a ¾ causes of behavior
primary goal of TQM
smoothes process flow with no defective items
meets expectations about on-
on-time delivery, which is
perceived as good-
good-quality service
increase market price or quality change image, critical and critical Less rapid differentiation
share image price, or quality development Product and product changes Cost
OM Strategy/Issues
Demand forecasts
Predict sales of existing product
; 3 types of participants
; Decision makers Respondents
; Staff (People who can
make valuable
; Respondents judgments)
Overview of Quantitative Time Series Forecasting
Approaches
1. Naive approach ; Set of evenly spaced numerical data
2. Moving averages ; Obtained by observing response
Time-
Time-Series
3. Exponential Models variable at regular time periods
smoothing ; Forecast based only on past values
4. Trend projection ; Assumes that factors influencing past
Associative and present will continue influence in
5. Linear regression Model future
Seasonal peaks
Trend Cyclical
Actual
demand
Average
demand over
Random four years
Seasonal Random variation
| | | |
1 2 3 4
Year
Demand Behavior Forms of Forecast Movement
Trend
a gradual, long-
long-term up or down movement of
Demand
Demand
demand
Random variations Random
movements in demand that do not follow a pattern movement
Demand
Demand
occurring periodically
Time Time
(c) Seasonal pattern (d) Trend with seasonal pattern
0 5 10 15 20 M T W T F
statistical
techniques that use historical 7.
demand data to predict future demand Is accuracy of
forecast
No 8b. Select new
forecast model or
acceptable?
Regression methods adjust parameters of
existing model
ORDERS
FORECAST
MONTH PER MONTH
; Assumes demand in next period is the
Jan 120 -
same as demand in most recent period Feb 90 120
Mar 100 90
; e.g., If October sales were 90, then Apr 75 100
November sales will be 90 May 110 75
June 50 110
; Sometimes cost effective and efficient July 75 50
Aug 130 75
Sept 110 130
Oct 90 110
Nov - 90
Simple Moving Average Simple Moving Average
3
ORDERS MOVING ORDERS MOVING
MONTH PER MONTH AVERAGE
6 Di MONTH PER MONTH AVERAGE 5
i=1
MA3 = 6 Di
Jan 120 – 3 Jan 120 – i=1
Feb 90 – Feb 90 – MA5 =
5
Mar 100 – 90 + 110 + 130 Mar 100 –
Apr 75 103.3 = 3 Apr 75 –
90 + 110 + 130+75+50
May 110 88.3 May 110 – =
June 50 95.0 June 50 99.0
5
July 75 78.3 = 110 orders July 75 85.0
Aug 130 78.3 for Nov Aug 130 82.0 = 91 orders
Sept 110 85.0 Sept 110 88.0 for Nov
Oct 90 105.0 Oct 90 95.0
Nov - 110.0 Nov - 91.0
Smoothing Effects Weighted Moving Average
150 –
125 –
5-month
Adjusts WMAn = 6 Wi Di
i=1 i=1
100 –
moving
average where
Orders
75 –
method to Wi = the weight for period i,
50 – 3-month
more closely between 0 and 100
percent
25 –
Actual reflect data
| | | | | | | | | | |
fluctuations 6 Wi = 1.00
0–
Jan Feb Mar Apr May June July Aug Sept Oct Nov
Month
20 – Actual
sales Widely used, accurate method
15 –
Moving
10 – average
5 –
| | | | | | | | | | | |
J F M A M J J A S O N D
Exponential Smoothing Exponential Smoothing (cont.)
Ft = Ft – 1 + D(At – 1 - Ft – 1)
If D= 0Dt + 1 Ft 0 = Ft
D= 0, then Ft +1 = 0
Forecast does not reflect recent data
where Ft = new forecast
Ft – 1 = previous forecast If D= 1Dt + 0 Ft =Dt
D= 1, then Ft +1 = 1
D = smoothing (or weighting) Forecast based only on most recent data
constant (0 d D t 1)
Exponential Smoothing (Į=0.30) Exponential Smoothing (cont.)
FORECAST, Ft + 1
PERIOD MONTH DEMAND (D = 0.3) (D = 0.5)
PERIOD MONTH DEMAND F2 = DD1 + (1 - D)F1
1 Jan 37 – –
1 Jan 37 = (0.30)(37) + (0.70)(37)
2 Feb 40 37.00 37.00
2 Feb 40 = 37
3 Mar 41 37.90 38.50
3 Mar 41
4 Apr 37 38.83 39.75
4 Apr 37 F3 = DD2 + (1 - D)F2
5 May 45 38.28 38.37
5 May 45 = (0.30)(40) + (0.70)(37) 6 Jun 50 40.29 41.68
6 Jun 50
= 37.9 7 Jul 43 43.20 45.84
7 Jul 43
8 Aug 47 43.14 44.42
8 Aug 47
F13 = DD12 + (1 - D)F12 9 Sep 56 44.30 45.71
9 Sep 56
= (0.30)(54) + (0.70)(50.84) 10 Oct 52 47.81 50.85
10 Oct 52
= 51.79 11 Nov 55 49.06 51.42
11 Nov 55
12 Dec 54 50.84 53.21
12 Dec 54
13 Jan – 51.79 53.61
60 – Actual D = 0.50
AFt +1 = Ft +1 + Tt +1
50 – where
T = an exponentially smoothed trend factor
Orders
40 –
D = 0.30
30 – Tt +1 = E(Ft +1 - Ft) + (1 - E) Tt
where
20 – Tt = the last period trend factor
10 –
E=
E= a smoothing constant for trend
| | | | | | | | | | | | |
0–
1 2 3 4 5 6 7 8 9 10 11 12 13
Month
Adjusted Exponential Smoothing Adjusted Exponential Smoothing:
(ȕ=0.30) Example
70 –
Adjusted forecast ( E =
60 – 6xy - nxy
Actual y = a + bx b =
6x2 - nx2
50 –
a = y-bx
where
Demand
40 –
a = intercept where
30 – (D = 0.50)
Forecast (D b = slope of the line n = number of periods
x = time period
20 – 6x
y = forecast for x = = mean of the x values
demand for period x n
10 –
6y
| | | | | | | | | | | | |
y = n = mean of the y values
0–
1 2 3 4 5 6 7 8 9 10 11 12 13
Period
Least Squares Example Least Squares Example (cont.)
x(PERIOD) y(DEMAND) xy x2
1 73 37 1
2 40 80 4 78
3 41 123 9 x = = 6.5
12
4 37 148 16
557
5 45 225 25 y = = 46.42
6 50 300 36 12
7 43 301 49 ¦xy - nxy 3867 - (12)(6.5)(46.42)
b = = =1.72
8 47 376 64 ¦x2 - nx2 650 - 12(6.5)2
9 56 504 81
10 52 520 100
11 55 605 121 a = y - bx
12 54 648 144 = 46.42 - (1.72)(6.5) = 35.2
78 557 3867 650
Repetitive increase/ decrease in demand 2002 12.6 8.6 6.3 17.5 45.0
2003 14.1 10.3 7.5 18.2 50.1
Use seasonal factor to adjust forecast 2004 15.3 10.6 8.1 19.6 53.6
Total 42.0 29.5 21.9 55.3 148.7
Di
Seasonal factor = Si = D1 42.0 D3 21.9
¦D S1 = =
¦D 148.7
= 0.28 S3 = =
¦D 148.7
= 0.15
D2 29.5 D4 55.3
S2 = = = 0.20 S4 = = = 0.37
¦D 148.7 ¦D 148.7
For 2005
Forecast error
difference between forecast and actual
y = 40.97 + 4.30x
4.30x = 40.97 + 4.30(4) = 58.17 demand
MAD
mean absolute deviation
SF1 = (S
(S1) (F
(F5) = (0.28)(58.17) = 16.28 MAPD
SF2 = (S
(S2) (F
(F5) = (0.20)(58.17) = 11.63
mean absolute percent deviation
SF3 = (S
(S3) (F
(F5) = (0.15)(58.17) = 8.73
SF4 = (S Cumulative error
(S4) (F
(F5) = (0.37)(58.17) = 21.53
Average error or bias
Mean Absolute Deviation (MAD) MAD Example
3V –
¦(Dt - Ft)2
Tracking signal (MAD)
0V –
Linear regression
18.39 –
UCL = +3V a mathematical technique that relates a
12.24 – dependent variable to an independent
6.12 – variable in the form of a linear equation
Errors
0–
-6.12 – Correlation
-12.24 – a measure of the strength of the
LCL = -3V relationship between independent and
-18.39 –
dependent variables
| | | | | | | | | | | | |
0 1 2 3 4 5 6 7 8 9 10 11 12
Period
x y
(WINS) (ATTENDANCE) xy x2
y = a + bx a = y-bx
6xy - nxy
6xy 4 36.3 145.2 16
b = 6 40.1 240.6 36
6x2 - nx2
6x 6 41.2 247.2 36
where 8 53.0 424.0 64
a = intercept 6 44.0 264.0 36
b = slope of the line 7 45.6 319.2 49
5 39.0 195.0 25
6x
6x 7 47.5 332.5 49
x = = mean of the x data
n
49 346.7 2167.7 311
6y
6y
y = n = mean of the y data
Linear Regression Example (cont.) Linear Regression Example (cont.)
Regression equation Attendance forecast for 7 wins
49 y = 18.46 + 4.06x y = 18.46 + 4.06(7)
x= = 6.125
8 60,000 – = 46.88, or 46,880
346.9
y= = 43.36
8 50,000 –
¦xy - nxy2
b= 40,000 –
Attendance, y
¦x2 - nx2
(2,167.7) - (8)(6.125)(43.36) 30,000 –
= (311) - (8)(6.125)2 Linear regression line,
20,000 – y = 18.46 + 4.06x
4.06x
= 4.06
10,000 –
a = y - bx
= 43.36 - (4.06)(6.125) | | | | | | | | | | |
= 18.46 0 1 2 3 4 5 6 7 8 9 10
Wins, x
Ft = Ft – 1 + D(At – 1 - Ft – 1)
Predicted demand = 142 Ford Mustangs Predicted demand = 142 Ford Mustangs
Actual demand = 153 Actual demand = 153
Smoothing constant D = .20 Smoothing constant D = .20
New forecast = 142 + .2(153 – 142) New forecast = 142 + .2(153 – 142)
= 142 + 2.2
= 144.2 § 144 cars
Comparison
n
of Forecast Error Comparison of Forecast Error
100 |deviationi|/actuali
MAPE = i =Rounded
1 Absolute Rounded Absolute Rounded Absolute Rounded Absolute
Actual Forecast Deviation Forecast Deviation Actual Forecast Deviation Forecast Deviation
Tonage with n for with for Tonnage with for with for
Quarter Unloaded D = .10 D = .10 D = .50 D = .50 Quarter Unloaded D = .10 D = .10 D = .50 D = .50
1
For D
180
= .10 175 5 175 5 1 180 175 5 175 5
2 168 = 45.62/8
176 = 5.70%
8 178 10 2 168 176 8 178 10
3 159 175 16 173 14 3 159 175 16 173 14
4 D = .50 173
For 175 2 166 9 4 175 173 2 166 9
5 190 173 17 170 20 5 190 173 17 170 20
6 205 = 54.8/8
175 = 6.85%
30 180 25 6 205 175 30 180 25
7 180 178 2 193 13 7 180 178 2 193 13
8 182 178 4 186 4 8 182 178 4 186 4
84 100 84 100
MAD 10.50 12.50 MAD 10.50 12.50
MSE 194.75 201.50 MSE 194.75 201.50
MAPE 5.70% 6.85%
Exponential Smoothing with Exponential Smoothing with
Trend Adjustment Trend Adjustment
When a trend is present, exponential
smoothing must be modified Ft = D(At - 1) + (1 - D)(F
)(Ft - 1 + Tt - 1)
1 12 11 2 13.00
25 –
2 17 12.80 1.92 14.72
3 20 15.18 2.10 17.28 20 –
4 19 17.82 2.32 20.14
5 24 19.91 2.23 22.14 15 –
6 21 22.51 2.38 24.89 10 – Forecast including trend (FITt)
7 31 24.11 2.07 26.18
8 28 27.14 2.45 29.59 5 –
9 36 29.28 2.32 31.60
0 – | | | | | | | | |
10 32.48 2.68 35.16
1 2 3 4 5 6 7 8 9
Table 4.1 Figure 4.3
Time (month)
Trend Projections Least Squares Method
y^ = a + bx
Deviation4
Deviation1
where y^ = computed value of the variable to Deviation2
be predicted (dependent variable) Trend line, y^ = a + bx
a = y-
y-axis intercept
b = slope of the regression line
x = the independent variable Time period Figure 4.4
Deviation5 Deviation6 y^ = a + bx
Deviation3 Least squares method
minimizes the sum of the
Deviation
squared errors (deviations)
6xy - nxy
4
b=
Deviation1
6x2 - nx2
Deviation2
Trend line, y^ = a + bx
a = y - bx
Time period Figure 4.4
Least Squares Example Least Squares Example
Time Electrical Power Time Electrical Power
Year Period (x) Demand x2 xy Year Period (x) Demand x2 xy
1999 1 74 1 74 1999 1 74 1 74
2000 2 79 4 158 2000 2 79 4 158
2001 3 80 9 240 The
2001 trend
3 line is 80 9 240
2002 4 90 16 360 2002 4 90 16 360
2003 5 105 25 525 2003 y^ 5= 56.70 + 10.54x
105 25 525
2004 6 142 36 852 2004 6 142 36 852
2005 7 122 49 854 2005 7 122 49 854
x = 28 y = 692 x2 = 140 xy = 3,063 6x = 28 6y = 692 6x2 = 140 6xy = 3,063
x=4 y = 98.86 x=4 y = 98.86
130 –
120 – 2. We do not predict time periods far
110 –
100 – beyond the database
90 –
80 – 3. Deviations around the least
70 – squares line are assumed to be
60 –
50 –
random
| | | | | | | | |
1999 2000 2001 2002 2003 2004 2005 2006 2007
Year
Seasonal Variations In Data Seasonal Index Example
Demand Average Average Seasonal
The multiplicative seasonal model can Month 2003 2004 2005 2003-
2003-2005 Monthly Index
modify trend data to accommodate Jan 80 85 105 90 94
seasonal variations in demand Feb 70 85 85 80 94
Mar 80 93 82 85 94
1. Find average historical demand for each season Apr 90 95 115 100 94
May 113 125 131 123 94
2. Compute the average demand over all seasons Jun 110 115 120 115 94
3. Compute a seasonal index for each season Jul 100 102 113 105 94
Aug 88 102 110 100 94
4. Estimate next year’
year’s total demand
Sept 85 90 95 90 94
5. Divide this estimate of total demand by the Oct 77 78 85 80 94
number of seasons, then multiply it by the Nov 75 72 83 80 94
seasonal index for that season Dec 82 78 80 80 94
Demand
May 113 125 131 123 94 1.309 110 –
Jun 110 115 120 1,200 115 94 1.223 100 –
Jul Jan 113
100 102 x .957 = 96 94
12 105 1.117 90 –
Aug 88 102 110 100 94 1.064
1,200 80 –
Sept 85 90
Feb 95 x90.851 = 85 94 0.957
Oct 77 78 85 12 80 94 0.851 70 –
| | | | | | | | | | | |
Nov 75 72 83 80 94 0.851
J F M A M J J A S O N D
Dec 82 78 80 80 94 0.851
Time
10,200 – 1.06 –
1.04
Index for Inpatient Days
1.04
10,000 – 1.04 – 1.03
1.02
Inpatient Days
Sales
y = 15.0 x = 18 x2 = 80 xy = 51.5
Sales = 1.75 + .25(6) 2.0 –
xy - nxy 51.5 - (6)(3)(2.5) Sales = $325,000
x = x/6 = 18/6 = 3 b= = = .25 1.0 –
x2 - nx2 80 - (6)(32)
| | | | | | |
y = y/6 = 15/6 = 2.5 a = y - bx = 2.5 - (.25)(3) = 1.75 0 1 2 3 4 5 6 7
Area payroll
3.0 –
where y = y-value of each data point
probability 2.0 –
distribution yc = computed value of the dependent
1.0 – variable, from the regression
equation
| | | | | | |
0 1 2 3 4 5 6 7 n = number of data points
Area payroll
Figure 4.9
Standard Error of the Estimate Standard Error of the Estimate
Sales
3.0 –
n-2
The standard error
of the estimate is 2.0 –
We use the standard error to set up $30,600 in sales 1.0 –
prediction intervals around the
| | | | | | |
point estimate 0 1 2 3 4 5 6 7
Area payroll
nxy - xy
; Coefficient of Determination, r2,
r= measures the percent of change in
[nx2
(a) Perfect positive x
- (x)2][n
][ny 2 - (y)2]
(b) Positive x y predicted by the change in x
correlation: correlation:
r = +1 0<r<1 ; Values range from 0 to 1
y y ; Easy to interpret
If more than one independent variable is to be In the Nodel example, including interest rates in
the model gives the new equation:
used in the model, linear regression can be
extended to multiple regression to
accommodate several independent variables y^ = 1.80 + .30x
.30x1 - 5.0x
5.0x2
Time
Tracking Signal Example Adaptive Forecasting
Cumulative
Tracking Absolute Absolute
Actual Signal
Forecast Forecast Forecast It’
It’s possible to use the computer to
(RSFE/MAD)
Qtr Demand Demand Error RSFE Error Error MAD
1 90-10/10
100= -1 -10 -10 10 10 10.0 continually monitor forecast error and
2 95 100= -2 -5
-15/7.5 -15 5 15 7.5 adjust the values of the D and E
3 115 0/10
100
= 0 +15 0 15 30 10.0 coefficients used in exponential
4 100-10/10
110= -1 -10 -10 10 40 10.0 smoothing to continually minimize
5 125
+5/11110
= +0.5+15 +5 15 55 11.0
forecast error
6 140 110= +2.5
+35/14.2 +30 +35 30 85 14.2
This technique is called adaptive
The variation of the tracking signal smoothing
between -2.0 and +2.5 is within acceptable
limits
Focus Forecasting
Developed at American Hardware Supply,
focus forecasting is based on two principles: