W1. Forecasting (Pendek 2022 2023)
W1. Forecasting (Pendek 2022 2023)
Forecast Definition
Regression Analysis
Definitions
q Forecast
Is an estimation of future value of characteristic.
q Forecasting
Is the act of making such estimation.
q Prediction
Is estimation that includes subjective evaluation.
Forecasting in MPC
q In demand management, forecasts of the quantities and timing of
customer demand are developed.
q Forecast are estimates of what might occur in the marketplace.
q Manufacturing plans that specify how the firm will respond are
based on these forecasts.
Distinction between forecasts and plans
q Forecast à Manager cannot be held responsible for not getting a
forecast right.
Plans à managers responsible for making their plans.
Forecast Definition
Regression Analysis
𝑌 = 𝑎 + 𝑏𝑋
𝑌 = 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑑𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒
𝑎 = 𝑖𝑛𝑡𝑒𝑟𝑐𝑒𝑝𝑡
𝑏 = 𝑠𝑙𝑜𝑝𝑒
𝑋 = 𝑖𝑛𝑑𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒
∑ 𝒙𝒚 − 𝒏𝒙# * 𝒚#
𝒃=
∑ 𝒙𝟐 − 𝒏𝒙# 𝟐
q The line minimizes the sum of the squares of the vertical distance
between each data point and its corresponding point on the line.
𝑴𝒊𝒏𝒊𝒎𝒊𝒛𝒆 = 𝒚𝟏 − 𝒀𝟏 𝟐 + 𝒚𝟐 − 𝒀𝟐 𝟐 + 𝒚𝟑 − 𝒀𝟑 𝟐 + … … … + 𝒚 𝒏 − 𝒀𝒏 𝟐
Example- Least Squares Method
q A firm’s sales for a product line during the 12 quarters of the past three years
were as follows:
q The firm wants to forecast each quarter of the fourth year—that is, quarters
13, 14, 15,and 16.
Example- Least Squares Method(2)
q Fit the line to the data that
minimizes the sum of the
squares of the vertical
distance.
q The standard error of
estimate, or how well the
line fits the data, is
∑𝒏
𝐢"𝟏 𝒚𝒊 (𝒀𝒊
𝟐
𝑺𝒚𝒙 = 𝐧(𝟐
qThe standard error of estimate, or how well the line fits the data, is
q The standard error of estimate, or how well the line fits the data, is
Forecast Definition
Regression Analysis
Using these factors, if we expected demand for next year to be 1,100 units. Forecast the
demand to occur as
Expected Demand Average Sales for Seasonal Next Year Seasonal
for next year each season Factor Forecast
Spring 275 0,8 220
Summer 275 1,4 385
Fall 275 1,2 330
Winter 275 0,6 165
Total 1100
Decomposition Using Least Squares
Regression
q Decomposition of a time series means finding the series’ basic
components of trend, seasonal, and cyclical.
q Indexes are calculated for seasons and cycles.
q The forecasting procedure then reverses the process by projecting
the trend and adjusting it by the seasonal and cyclical indexes,
which were determined in the decomposition process.
Process Decomposition Using Least Squares
Regression
1. Decompose the time series into its components.
a. Find seasonal component.
b. Deseasonalize the demand.
c. Find trend component.
𝑌 = 554.9 + 342.2𝑋
Period Deseasonalized demand
1 735,7 5000,0
2 1412,4 4500,0
3 1544,0 4000,0
4 1344,8 3500,0
5 2942,6 3000,0
6 2824,7 2500,0
7 2676,2 2000,0
8 2599,9 1500,0
9 4659,2 1000,0 Deseasonalized demand
10 4100,4 500,0
Linear (Deseasonalized demand)
11 4117,3 0,0
12 4392,9 0 2 4 6 8 10 12 14
Step 4. Project the regression line through the period to be forecast.
Step 5. Create the final forecast by adjusting the regression line by the seasonalfactor.
q 𝑌 = 554.9 + 342.2𝑋
Y from Seasonal
Period Quarter regression factor Forecast
line
13 1 5003,5 0,82 4080,816
14 2 5345,7 1,10 5866,645
15 3 5687,9 0,97 5525,876
16 4 6030,1 1,12 6726,228
Error Range
q When a straight line is fitted
through data points and then
used for forecasting, errors can
come from two sources:
q The usual errors similar to the
standard deviation of any set of
data.
q Errors that arise because the line is
wrong.
Outline
Forecast Definition
Regression Analysis
∑)0
)0%#*' 𝐴𝑐𝑡𝑢𝑎𝑙 𝑑𝑒𝑚𝑎𝑛𝑑
6 − 𝑝𝑒𝑟𝑖𝑜𝑑𝑒 𝑀𝐴𝐹 𝑚𝑎𝑑𝑒 𝑎𝑡 𝑡ℎ𝑒 𝑒𝑛𝑑 𝑜𝑓 𝑝𝑒𝑟𝑖𝑜𝑑 32 =
6
900 + 1100 + 1500 + 1400 + 1700 + 1200
= = 1300
6
∑)0
)0%)*' 𝐴𝑐𝑡𝑢𝑎𝑙 𝑑𝑒𝑚𝑎𝑛𝑑
3 − 𝑝𝑒𝑟𝑖𝑜𝑑𝑒 𝑀𝐴𝐹 𝑚𝑎𝑑𝑒 𝑎𝑡 𝑡ℎ𝑒 𝑒𝑛𝑑 𝑜𝑓 𝑝𝑒𝑟𝑖𝑜𝑑 32 =
3
1400 + 1700 + 1200
= = 1433
3
q The moving-average model smooth the historical data, with an equal weight on each piece of
historical information.
q Adjusting by incorporating different weights on past periods à the weighted-moving-average
model
Exponential Smoothing Forecasting
q Adjusts the weights given to past data that older data get increasingly
less weight.
q The basic: each new forecast is based on an average that’s adjusted each
time there’s a new forecast error.
q For example:
forecast 90 units and actual demand turns out to be 100 units à increase
the forecast by some portion of the 10-unit error in making the next
period’s forecast.
q If the error indicated demand was changing, we would begin to change
the forecast.
Exponential Smoothing Forecasting (2)
q The proportion of the error that will be incorporated into the forecast à
the exponential smoothing constant (∝).
Assume:
q ESF26 = exponential smoothing forecast made at the end of period 26 = 1,000,
∝ = 0.1
q ESF27 (made at the end of period 27 when actual demand for period 27 is
known but actual demand in period 28 is not known).
𝐸𝑆𝐹%& = 1000 + 0.1 900 − 1000 = 990
= 0.1 900 + 1 − 0.1 1000 = 990
q When forecast errors tend to cancel one another out, the measure of bias
tends to be low.
q Positive errors in some periods are offset by negative errors in others, which
tends to produce an average error, or bias near zero.
Mean Absolute Deviation (MAD)
q Used measure of forecast error magnitude.
Forecast Definition
Regression Analysis
The reduction from 20% to 5.8% is due to using a much longer time period.
The same effect can be seen in forecasting demand for product lines instead of for individual items.
Considerations for Aggregating Forecasts(3)
q The total forecast must be consistent with the individual product
forecasts. The whole must be equal to the sum of the parts.
q Very often an individual product’s share of the aggregate product
line totals remains fairly constant.
q That is, there is more uncertainty in the day-to-day demand for the
item than for its share in the demand for the total line.
q We can use this knowledge to disaggregate the aggregate forecasts
and thereby maintain the consistency between the detail and the
totals.
Pyramid Forecasting
q Provides a means of coordinating, integrating, and
assuring consistency between the various sources of
forecasts and any company constraints or goals.
q Procedures:
1. Begins with individual product item forecasts (L3)
2. Rolled up into forecasts for product lines (L2)
3. Aggregate forecasts for product lines into a total
business forecast (in dollars) at level 1
4. Force down (constrain) the product line and
individual item forecasts, so they’re consistent
with the plan
Example: Pyramid Forecasting: Rolled up
Example Pyramid Forecasting: Force Down
q The results are consistent forecasts
throughout the organization, and the
sum of the parts is forced to equal the
whole.
q the process of forcing the consistency
needs to be approached with caution
Incorporating External Information
q Activities that will influence demand and perhaps invalidate the use of a
routine exponential forecasting model à change the forecast directly.
q If technology has prolonged the life of products, need to change the
parameters in the model that relates replacement sales to the average
life of our products in the field.
q There may be circumstances where our knowledge would lead us to
change both the forecast and the forecasting parameters.
q Intelligence must be included in the forecasts, and the forecasts must be
readied for use in preparing and controlling the plans of the firm.
Terima Kasih
Yani Herawati
Program Studi Teknik Industri
UNPAR
[email protected]