Forecasting 2
Forecasting 2
(continuation)
• A linear regression
model that relates
demand to time.
• It is used to forecast
demand since it
displays an obvious
Linear Trend Lines trend over time
(the least squares
regression line).
Linear Trend Lines
• A linear trend line relates a dependent
variable, which for our purpose is demand, to
one independent variable, time, in the form of
a linear equation.
y=bx+a
Where:
a= intercept (at period 0)
b= slope of the line
x= the time period
y= forecast for demand for period x
Linear Trend Lines
b= xy − n x y
2
x − nx
2
a = y −bx
where :
n = number of periods
x= n x
y= n y
Solve for the
linear trend
Linear Trend Lines
x = 78 = 6.5 y = 557 = 46.42
12 12
b = xy − n x y = 3,867 − (12)(6.5)(46.42)
x 2 − n x 2 650 −12(6 . 5)2
=1.72
a = y −b x
= 46.42 − (1.72)(6.5)
= 35.2
y = 35.2 +1.72x linear trend line
for period 13, x = 13, y = 35.2 +1.72(13) = 57.56
6
Linear Trend Lines
• There are several
methods available for
reflecting seasonal
patterns in a time series
forecast. One simple
method makes use of a
seasonal factor.
Seasonal • A seasonal factor is
Adjustments multiplied by the normal
forecast to get a
seasonally adjusted
forecast.
Seasonal Adjustments
Example:
Wishbone farm is a company that raises turkeys,
which it sells to a meat-processing company
throughout the year. However, the peak season
obviously occurs during the fourth quarter of
the year, October to December. Wishbone farms
has experienced a demand for turkeys for the
past years as shown.
Seasonal Adjustments
= 0.28
S2 = D2/ D = 29.5/148.7 = 0.20
S3 = D3/ D = 21.9/148.7 = 0.15
S4 = D4/ D = 55.3/148.7 = 0.37
Seasonal Adjustment
56
54
52
50
y = 4.3x + 40.967
48 TOTAL
Linear (TOTAL)
46
44
42
40
2003 2004 2005
Chapter 15 -
15
Forecasting
Forecast Accuracy
Measures of forecast errors:
Mean Absolute deviation (MAD)
Mean absolute percentage
deviation (MAPD)
Cumulative error (E bar)
Average error, or bias (E)
Forecast Accuracy
Mean Absolute Deviation
MAD is the average absolute difference
between the forecast and actual demand.
Most popular and simplest-to-use measures of
forecast error.
Dt −Ft
Formula: MAD = n
where:
t = the period number
D = demand in period t
t
F = the forecast for period t
t
n = the total number of periods
Forecast Accuracy
Mean Absolute Deviation
Table 15.8
Computational Values for MAD
Forecast Accuracy
Mean Absolute Deviation
Example: PM Computer Services
Compare accuracies of different forecasts using
MAD:
Dt − Ft 53.41
MAD = n = = 4 . 85
11
Forecast Accuracy
Mean Absolute Deviation (4 of 7)
Chapter 15 -
20
Forecasting
Forecast Accuracy
Mean Absolute Deviation
Can be used to compare accuracy of different
forecasting techniques working on the same
set of demand data (PM Computer Services):
Exponential smoothing ( = .50):
MAD = 4.04
Adjusted exponential smoothing
( = .50, = .30): MAD = 3.81
Linear trend line: MAD = 2.29
Forecast Accuracy
Mean Absolute Deviation
Table 15.8
Computational Values for MAD
Forecast Accuracy
Mean Absolute Deviation
A variation on MAD is the mean absolute
percent deviation (MAPD).
Measures absolute error as a percentage of
demand rather than per period.
Eliminates problem of interpreting the measure
of accuracy relative to the magnitude of the
demand and forecast values.
Formula: Dt − Ft 53.41
MAPD = = = .103 or 10.3%
Dt 520
Forecast Accuracy
Mean Absolute Deviation (7 of 7)
Table 15.9
Comparison of Forecasts for PM Computer Services