Professional Documents
Culture Documents
Lecturer:
Anastasia Lidya Maukar ST., MSC., MMT.
Arranged by:
INDUSTRIAL ENGINEERING
PRESIDENT UNIVERSITY
1
ACKNOWLEDGMENT
Authors would like to say thank you for God because he gives authors a lot of mercy
and blessing which makes authors can finish this “Forecasting” report kindly.
Authors realized without the other helped, this report cannot complete decently. On
this occasion, the authors would like to say thanks to some people who already
supported authors to do this report.
a. Mrs. Anastasia Lidya Maukar, as a lecturer of Production Planning and
Inventory Control, the one who already guided authors, as well as authors,
could make this report.
b. Authors’ family which already give author support that makes authors can
make this report very well.
c. Authors’ friends that cannot authors said the name one by one. The friends who
already support and help authors to do this report.
The final word the author realized that in the writing of this Forecasting Report is
still far from perfection. Therefore, the authors invoke suggestions and criticisms
which is built for the sake of perfection and may be useful for all of us. Hopefully,
this report can give new knowledge that can provide a benefit for the readers.
i
TABLE OF CONTENT
ACKNOWLEDGMENT .......................................................................................... i
TABLE OF CONTENT .......................................................................................... ii
CHAPTER I INTODUCTION ................................................................................ 1
1.1 Background ................................................................................................... 1
1.2 Objectives ...................................................................................................... 1
1.3 Tools and Equipment..................................................................................... 2
1.4 Steps .............................................................................................................. 2
CHAPTER II LITERATURE STUDY ................................................................... 3
2.1 Principle of Forecasting................................................................................. 3
2.2 Characteristics of Good Forecasting ............................................................. 4
2.3 The Basic Step in a Forecasting Task............................................................ 6
2.4 Forecast Goal ................................................................................................. 8
2.5 Forecast Time Horizon .................................................................................. 8
2.6 Types of Forecasting Methods ...................................................................... 9
2.6.1 Qualitative Forecasting Method.............................................................. 9
2.6.2 Quantitative Forecasting Method............................................................ 9
2.7 Measurement of Forecasting Error .............................................................. 21
2.7.1 Mean Absolute Deviation (MAD) = Mean Absolute Error (MAE) ..... 21
2.7.2 Mean Squared Error (MSE) .................................................................. 21
2.7.3 Mean Absolute Percentage Error (MAPE) ........................................... 21
2.7.4 Standard Error of Estimate (SEE) ......................................................... 22
2.7.5 Mean Error (ME) .................................................................................. 22
2.7.6 Symmetric Mean Absolute Percentage Error (SMAPE) ...................... 23
2.8 Validation of Forecasting Error ................................................................... 23
2.8.1 Verification Test ................................................................................... 23
2.8.2 Tracking Signal test .............................................................................. 24
CHAPTER III DATA COLLECTION ................................................................. 26
ii
CHAPTER IV DATA ANALYSIS ...................................................................... 27
4.1 Scatterplot Diagram ..................................................................................... 27
4.2 Forecasting Methods to Forecast Six-Month Demand (Sept 2018– Feb
2019) .................................................................................................................. 28
4.2.1 Double Moving Average (DMA) ......................................................... 28
4.2.2 Double Exponential Smoothing-Browns .............................................. 39
4.2.3 Double Exponential Smoothing-Holt ................................................... 52
4.2.4 Regression Analysis (Cyclic Method) .................................................. 62
4.2.5 Regression Analysis (Linear Cyclic Method) ....................................... 74
4.3 Compare All Methods and Choose the Best Method .................................. 87
4.3.1 Normality Test ...................................................................................... 88
4.3.2 Autocorrelation Test ............................................................................. 91
4.4 Demand Forecast for Six Months Ahead .................................................... 92
CHAPTER V CONCLUSION .............................................................................. 96
REFERENCES...................................................................................................... 97
iii
CHAPTER I
INTRODUCTION
1.1 Background
At this time when competitiveness is more needed among companies, inventory
planning for demand management and sales forecasting is needed so that the
company can run well, more effectively and more efficiently. Forecasting is the
process of making predictions of the future based on past and present data and most
commonly by analysis of trends. Forecasting is about predicting the future as
accurately as possible, given all of the information available, including historical
data and knowledge of any future events that might impact the forecasts. In other
words, forecasting is most often used to predicting or estimating future demand.
Forecasting methods consist of two major groups which are qualitative methods
and quantitative methods.
This report will record all of the forecasting data from several methods and, the data
will be analyzed and the conclusion can be taken to determine which one the most
appropriate method to predict future data. The best method of forecasting is should
be a more accurate method.
1.2 Objectives
In the making of this report, we have several objectives to accomplish, such as:
a. To determine each forecasting demand.
1
b. To evaluate every forecasting method.
c. To analyze the trend of data.
d. To determine the scatter diagram for the demand data.
e. To evaluate the method in point using MAD, MSE, and MAPE.
f. To validate each forecasting method.
g. To analyze the forecasting method and give the analysis based on calculation.
1.4 Steps
There are several steps, like:
a. Draw the scatter diagram for the demand data over the last twenty months.
b. Do the analyze from the scatter diagram and decide the trend of the diagram.
c. Determine the several forecasting methods to forecast a six-month demand from
September 2018 until February 2019.
d. Evaluate the methods in point using MAD, MSE, and MAPE.
e. Do the validation of each forecasting method using IIDN and verification and
tracking signal
f. Compare and analyze which one the most appropriate method.
g. The result was analyzed.
2
CHAPTER II
LITERATURE STUDY
Forecasting is the process of making predictions of the future based on past and
present data and most commonly by analysis of trends. A commonplace example
might be an estimation of some variable of interest at some specified future
date. Prediction is a similar, but more general term. Both might refer to formal
statistical methods employing time series, cross-sectional or longitudinal data, or
alternatively to less formal judgmental methods. (Wikipedia, 2019) In other
definition, Forecasting is a technique that uses historical data as inputs to make
informed estimates that are predictive in determining the direction of future trends.
Businesses utilize forecasting to determine how to allocate their budgets or plan for
anticipated expenses for an upcoming period of time. This is typically based on the
projected demand for the goods and services offered. (Tuovila, 2019)
According to Subagyo (2002), Forecasting is a forecast that has not happened yet.
In social science, everything is uncertain, difficult to estimate precisely, therefore
used forecasting that aims for forecast or forecasting made can minimize the
influence of this uncertainty on the company.
3
forecasting is to generate good forecasts on average over time and to keep
forecast errors as low as possible.
b. Forecasts are more accurate for groups or families of items rather than for
individual items. When items are grouped together, their individual high and
low values can cancel each other out. The data for a group of items can be stable
even when individual items in the group are very unstable. Consequently, one
can obtain a higher degree of accuracy when forecasting for a group of items
rather than for individual items.
c. The forecast is more accurate for shorter than longer time periods. In the
short term, conditions affecting demand tend to remain or change slowly, so
short-term forecasting is more accurate.
d. Forecasting involves errors. Forecasting only reduces uncertainty but does not
eliminate it. forecasters must be aware of this so they are ready to face
forecasting errors.
e. Forecasting should use forecast errors. An error in forecasting resulted in the
user must know the size of the forecast.
f. If possible, count requests rather than predict them. in the MTS industry,
demand forecasting (independent demand) is carried out to develop a master
production schedule. component and material needs (dependent demand) to
support the parent product schedules are done by counting and not by
predicting.
4
method of demand forecasting is chosen. However, the following are the criteria
for a good demand forecasting method. (Knowledge Team, 2017)
a. Accuracy: denotes near to actual demand. A firm should forecast its demand
very close to the actual market demand so that required quantities could be made
available for the market. An inaccurate forecast may cost huge to the firm. It
may create over or under production. Forecast should be explicit. For example,
there would be an increase in sales in the next year than the current is not a good
forecast but there would be an increase in sales by 20% in the next year is an
accurate forecast.
b. Longevity or Durability: Demand forecast generally takes huge time, money
and planning. Since a forecast takes a lot of time and money, it should be used
for longer span of time or multiple years. A forecast for short span of time may
not be effective for the organization.
c. Flexibility or Scale-ability: A demand forecast should be flexible and
adaptable to any kind of change. Nowadays there is a rapid change in the tastes
and preferences of consumers. This affects the demand for different products
up to a great extent. Therefore, the demand forecasts made by a firm should be
able to reflect those changes accordingly. Apart from this, a business firm, while
making forecasts, should consider various business risks that may take place in
the future.
d. Acceptability and Simplicity: Acceptability is one of the most important
criteria of a good demand forecasting method. That means a forecast should be
acceptable to all. It should also be as simple as possible. A business firm should
forecast its market demand by using simple and easy methods so that the
organizations do not face any complexities. However, some companies
generally prefer advanced statistical methods, which may prove difficult and
complex.
5
e. Availability: A good demand forecasting method should have adequate and up-
to-date data available. The forecasts should be done in a timely manner so that
necessary arrangements could be made related to the market demand. Data
should be available to the decision-makers at all times.
f. Plausibility and Possibility: It denotes that the demand forecasts should be
reasonable so that they are easily understood by individuals who will use it.
Again, it should have the quality of application in the changing business
conditions.
g. Economy: A good demand forecasting method should have a relationship with
costs and benefits. It should be economically effective. The forecasting should
be made in such a way that the costs do not exceed the benefits that will be
derived from it. Costs should be less and benefits should be high.
h. Yielding quick results: A good demand forecasting method should yield quick
results rather than taking a longer period to respond. It should match with the
changing business environment.
i. Maintenance of timeliness: It should take care of timelines. Data should be
available to users as and when requires so that decision making does not
hamper.
6
b. Step 2: Gathering information.
There are always at least two kinds of information required: (a) statistical
data, and (b) the accumulated expertise of the people who collect the data and
use the forecasts. Often, it will be difficult to obtain enough historical data to
be able to fit a good statistical model. Occasionally, old data will be less
useful due to structural changes in the system being forecast; then we may
choose to use only the most recent data. However, remember that a good
statistical model will handle evolutionary changes in the system; don’t throw
away good data unnecessarily.
c. Step 3: Preliminary (exploratory) analysis.
Always start by graphing the data. Are there consistent patterns? Is there a
significant trend? Is seasonality important? Is there evidence of the presence
of business cycles? Are there any outliers in the data that need to be explained
by those with expert knowledge? How strong are the relationships among the
variables available for analysis? Various tools have been developed to help
with this analysis.
d. Step 4: Choosing and fitting models.
The best model to use depends on the availability of historical data, the
strength of relationships between the forecast variable and any explanatory
variables, and the way in which the forecasts are to be used. It is common to
compare two or three potential models. Each model is itself an artificial
construct that is based on a set of assumptions (explicit and implicit) and
usually involves one or more parameters that must be estimated using the
known historical data.
e. Step 5: Using and evaluating a forecasting model.
Once a model has been selected and its parameters estimated, the model is
used to make forecasts. The performance of the model can only be properly
evaluated after the data for the forecast period has become available. A
number of methods have been developed to help in assessing the accuracy of
forecasts. There are also organizational issues in using and acting on the
forecasts. (Armstrong, 2001)
7
2.4 Forecast Goal
The goal of any forecasting system is to provide forecasts of the appropriate
accuracy in a timely manner and at a reasonable cost. A timely forecast is
determined by its use. The basic tradeoff in forecasting is between response to
change and stability. If the high demand reflected a change in the demand pattern,
should increase the production, but if it was just a random fluctuation, should not.
A good forecasting system will reach to actual changes but ignore chance variation.
(Daniel Sipper and Robert L. Bulfin, 1997)
8
The function of this review of future vision is to assist decision-makers in choosing
alternative those are the direction of their decisions, and then to look at the
consequences of those decisions in the future. One of the data sources that can be
used for forecasting is the production record/time series of the agency concerned.
9
accuracies, and costs that must be considered when choosing a specific method.
(Armstrong, 2001)
Most quantitative prediction problems use either time series data (collected at
regular intervals over time) or cross-sectional data (collected at a single point in
time). In this book we are concerned with forecasting future data, and we
concentrate on the time series domain. The table 2.1 shows the difference
between qualitative and quantitative methods.
10
The variables used to make the prediction are called independent variables. In
addition to predicting values of the dependent variable, regression analysis also
allows to identify the type of mathematical relationship that exists between a
dependent variable and an independent variable, to quantify the effect that changes
in the independent variable have on the dependent variable, and to identify unusual
observation. Simple linear regression generally use one predictor only (independent
variable).
Ŷi b 0 b1X i
(2-1)
Where:
11
Multiple regression analysis is almost the same as simple linear regression. The
only difference between simple linear regression and multiple regression is in the
number of predictors (“x” variables) used in the regression. Simple regression
analysis uses a single x variable for each dependent “y” variable. For example: (x1,
y1).
Yi β 0 β1X1i β 2 X 2i β k X ki ε i
(2 – 2)
Ŷi b 0 b1X1i b 2 X 2i b k X ki
(2 – 3)
Where :
𝛽0 = Y intercept
12
trends and negative trends. Trends are related with long-term persistent
movements/tendencies/changes in the data. It can be positive changes
(increases of the data) and the negative changes (decreases of the data).
b. Seasonal Components. A seasonal pattern occurs when a time series is
affected by seasonal factors such as the time of the year or the day of the
week. Seasonality is always of a fixed and known frequency. The seasonal
component is patterns of high and low demand that recur each year. They
may due weather, holiday such as Christmas and Easter, school starting dates.
c. Cyclic is a periodic movement alternating between peak and valleys have
long been a subject of study by business economist. Cycles usually last
several years and so are normally not included in short term forecasting
models but do play a role in long-range forecasting. A cycle occurs when the
data exhibit rises and falls that are not of a fixed frequency. These fluctuations
are usually due to economic conditions, and are often related to the “business
cycle”. The duration of these fluctuations is usually at least 2 years.
d. Irregular Variations may be episodic or random. Episodic Variations are
attributable to nonrecurring causes such as a fire at a competitor’s plant, a
strike at a plant of a major customer, or a special promotion. Random
Variations, on the other hand, maybe the result of many small factors, and no
single major cause can be assigned.
https://slideplayer.com/slide/5177687/
13
2.6.2.2.1 Last Period Demand (LPD)
The last period demand or Naïve technique simply forecasts for the next period the
actual demand that occurred in the previous period.
dt’ = dt-1
(2-4)
Where, dt’ is the forecasted demand for period t and dt-1 is the actual demand
𝑑1 + 𝑑2 + ⋯ + 𝑑𝑛 ∑𝑛𝑡=1 𝑑𝑡
𝑑𝑡’ = =
𝑛 𝑛
(2-5)
Where, dt’ is the number of forecasted demand for period t, dt is actual demand in
period t and n is the number of time periods.
14
𝑑𝑡−1 +𝑑𝑡−2 +⋯+𝑑𝑡−𝑁 ∑𝑁
𝐼=1 𝑑𝑡−𝑖
SMA (N) = dt’ = =
𝑁 𝑁
(2-6)
Where−𝑖 is actual demand in period t-i and N is the number of time periods includes
in moving average.
In technical analysis of financial data, a weighted moving average (WMA) has the
specific meaning of weights that decrease in arithmetical progression.[4] In an n-day
WMA, the latest day has weight n, the second latest n − 1, etc., down to one.
where α is the smoothing factor, and 0 < α < 1. In other words, the smoothed
statistic st' is a simple weighted average of the current observation xt and the
previously smoothed statistic st−1. The term smoothing factor applied to α here is
something of a misnomer, as larger values of α actually reduce the level of
smoothing, and in the limiting case with α = 1 the output series is just the current
observation. Simple exponential smoothing is easily applied, and it produces a
smoothed statistic as soon as two observations are available.
15
Initial is needed for the first price or d1’ and α. Initial for d1’ usually chosen from
one of the steps in the following a) the value d1 or b) the average of first 4 -5 month
actual demand (dt)
2
Correlation between 𝛼 and N : 𝛼 = 𝑁+1
(2-9)
16
For the double exponential smoothing – Browns Method, the procedure is:
1. Create the first Exponential Smoothing,
St’ = 𝛼. 𝑑𝑡 + (1 − 𝛼) 𝑆𝑡−1
(2-13)
2. Create the second Exponential Smoothing,
St”= 𝛼. 𝑑𝑡 + (1 − 𝛼) 𝑆𝑡−1 "
(2-14)
(2-16)
5. Forecasting for period m in the future, like in the formula 2-12.
17
2.6.2.2.9 Triple Exponential Smoothing (TES) – Winter Method
Triple exponential smoothing applies exponential smoothing three times, which is
commonly used when there are three high-frequency signals to be removed from a
time series under study. There are different types of seasonality: 'multiplicative' and
'additive' in nature, much like addition and multiplication are basic operations in
mathematics. Triple Exponential Smoothing method is used when the data indicates
a trend and seasonal behavior.
𝑋𝑡
𝑆𝑡 = 𝑎 + (1 − 𝑎)(𝑆𝑡 − 1 + 𝑏𝑡 − 1)
𝐼𝑡−𝐿
(2-20)
𝑏𝑡 = 𝛽 (𝑆𝑡 − 𝑆𝑡 − 1) + (1 − 𝛽)𝑏𝑡 − 1
(2-21)
𝑋𝑡
𝐼𝑡 = 𝛾 ( ) + (1 − 𝛾)𝐼𝑡 − 𝐿
𝑆𝑡
(2-22)
𝐹𝑡 + 𝑚 = 𝑆𝑡 + 𝑏𝑡(𝑚) 𝑥 𝐼𝑡−𝐿+𝑚
(2-23)
is the coefficient random factors (0<𝑥<1), is the coefficient trend factors (0< 𝑥 <1),
is the coefficient of seasonal factors (0< 𝑥 <1).
18
b. The formula for regression analysis linear in the following:
𝑑𝑡 ′ = 𝑎 + 𝑏𝑡
(2-25)
𝑛 ∑𝑛𝑡−1 𝑡. 𝑑𝑡 − ∑𝑛𝑡−1 𝑑𝑡 ∑𝑛𝑡−1 𝑡
𝑏=
𝑛 ∑𝑛𝑡−1 𝑡 2 − (∑𝑛𝑡−1 𝑡)2
(2-26)
(1)
𝑛 𝑛
𝑛 2𝜋 2𝜋
∑ 𝑑𝑡 = 𝑎. 𝑛 + 𝑏 ∑ cos ( t) + c ∑ sin ( t)
𝑡=1 𝑁 𝑁
𝑡=1 𝑡=1
(2-28)
(2)
𝑛 2𝜋
∑ 𝑑𝑡 cos ( t)
𝑡=1 𝑁
𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋 2𝜋
= 𝑎 ∑ cos ( t) + 𝑏 ∑ 𝑐𝑜𝑠 2 ( t) + c ∑ sin ( t) cos ( t)
𝑁 𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1
(2-29)
(3)
𝑛 2𝜋
∑ 𝑑𝑡 sin ( t)
𝑡=1 𝑁
𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋 2𝜋
= 𝑎 ∑ sin ( t) + 𝑏 ∑ 𝑐𝑜𝑠 ( t) sin ( t) + c ∑ sin ( t)
𝑁 𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1
(2-30)
19
d. The formula for regression analysis linear cyclic in the following:
2𝜋 2𝜋
𝑑𝑡 ′ = 𝑎 + 𝑏𝑡 + 𝑐 𝑐𝑜s ( t) + d sin ( t)
𝑁 𝑁
(2-31)
(1)
𝑛 𝑛 𝑛 𝑛
2𝜋 2𝜋
∑ 𝑑𝑡 = 𝑎. 𝑛 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑐𝑜𝑠( t ) + 𝑑 ∑ 𝑠𝑖𝑛( t )
𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1
(2-32)
(2)
𝑛 𝑛 𝑛 𝑛 𝑛
2
2𝜋 2𝜋
∑ 𝑑𝑡 . 𝑡 = 𝑎. ∑ 𝑡 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑡. 𝑐𝑜𝑠( t ) + 𝑑 ∑ 𝑡. 𝑠𝑖𝑛( t )
𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1 𝑡=1
(2-33)
(3)
𝑛 𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋 2𝜋
∑ 𝑑𝑡 . 𝐶𝑜𝑠( t ) = 𝑎. ∑ 𝐶𝑜𝑠( t ) + 𝑏 ∑ 𝑡. 𝐶𝑜𝑠( t ) + 𝑐 ∑ 𝑐𝑜𝑠 2 ( t )
𝑁 𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1
𝑛
2𝜋 2𝜋
+ 𝑑 ∑ 𝑠𝑖𝑛 ( t ) 𝐶𝑜𝑠( t )
𝑁 𝑁
𝑡=1
(2-34)
(4)
𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋
∑ 𝑑𝑡 . 𝑆𝑖𝑛( t ) = 𝑎. ∑ 𝑠𝑖𝑛( t ) + 𝑏 ∑ 𝑡. 𝑠𝑖𝑛( t ) +
𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1
𝑛 𝑛
2𝜋 2𝜋 2𝜋
+ 𝑐 ∑ 𝑐𝑜𝑠 ( t ) 𝑠𝑖𝑛 ( t ) + 𝑐 ∑ 𝑠𝑖𝑛2 ( t )
𝑁 𝑁 𝑁
𝑡=1 𝑡=1
(2-35)
20
2.7 Measurement of Forecasting Error
Error measurement statistics play a critical role in tracking forecast accuracy,
monitoring for exceptions, and benchmarking your forecasting process.
Interpretation of these statistics can be tricky, particularly when working with low-
volume data or when trying to assess accuracy across multiple items. Measurement
of forecasting error used to test the performance of forecasting results. Sometimes
there is an error in the forecast and it can cause biased. The measurement of the
forecasting method in the following:
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 =
𝑛
(2-36)
The MAD is a good statistic to use when analyzing the error for a single item.
However, if you aggregate MADs over multiple items you need to be careful about
high-volume products dominating the results more on this later. (Stellwagen, 2011)
∑𝑛𝑡=1(𝑑𝑡 − 𝑑𝑡 ′ )2
𝑀𝑆𝐸 =
𝑛
(2-37)
21
dt−dt’
PE1 = x 100%
𝑑𝑡
(2-38)
∑𝑛𝑡=1 |PEt|
𝑀𝐴𝑃𝐸 =
𝑛
(2-39)
The MAPE is scale sensitive and should not be used when working with low-
volume data. Notice that because "Actual" is in the denominator of the equation,
the MAPE is undefined when the actual demand is zero. Furthermore, when the
actual value is not zero, but quite small, the MAPE will often take on extreme
values. This scale sensitivity renders the MAPE close to worthless as an error
measure for low-volume data. (Stellwagen, 2011)
∑𝑛𝑡=1(𝑑𝑡 − 𝑑𝑡 ′ )2
𝑆𝐸𝐸 = √
𝑛−𝑓
(2-40)
∑𝑛𝑡=1(𝑑𝑡 − 𝑑𝑡 ′ )
𝑀𝐸 =
𝑛
(2-41)
22
2.7.6 Symmetric Mean Absolute Percentage Error (SMAPE)
The SMAPE (Symmetric Mean Absolute Percentage Error) is a variation on the
MAPE that is calculated using the average of the absolute value of the actual and
the absolute value of the forecast in the denominator. This statistic is preferred to
the MAPE by some and was used as an accuracy measure in several forecasting
competitions. (Stellwagen, 2011)
Validation of the forecasting model has two tests namely verification test and
tracking signal test.
23
c. From five consecutive points, there is four or more point in B area.
d. There are eight consecutive points one of them.
∑𝑛
𝑡=2 𝑀𝑅𝑡
MR =
𝑛−1
(2-42)
(2-43)
̅̅̅̅̅
UCL = +2.66 𝑀𝑅
(2-44)
̅̅̅̅̅
UCL = +2.66 𝑀𝑅
(2-45)
CL = 0
(2-46)
Region A is an area outside ± 2/3 (2.66 MR) = ± 1.77 MR (above +1.77 MR and
below -1.77 MR). Area B is an area outside ± 1/3 (2.66 MR) = ± 0.89 MR (above
+0.89 MR and below -0.89 MR). Region C is the area above or below the midline.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 )
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 = =
𝑀𝐴𝐷 𝑀𝐴𝐷
24
The formula of tracking signal-Trigg check in the following:
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
(𝑑𝑡 − 𝑑𝑡 ′ )
𝑇𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 =
𝑀𝐴𝐷
25
CHAPTER III
DATA COLLECTION
Table 3.1 below shows the demand data over the last 20 months.
Demand Demand
Month Month
(in units) (in units)
26
CHAPTER IV
DATA ANALYSIS
1800
1700
Demand (in units)
1600
1500
1400
1300
1200
1100
1000
Jan 2017 Apr 2017 Jul 2017 Oct 2017 Jan 2018 Apr 2018 Jul 2018
Month
1800
1700
Demand (in units)
1600
1500
1400
1300
1200
1100
1000
Jan 2017 Apr 2017 Jul 2017 Oct 2017 Jan 2018 Apr 2018 Jul 2018
Month
27
Figure 4.1 and Figure 4.2 as we can see it shows the seasonal component. It could
be seen from high and low demand that occurred in several months. From month
Jan 2017 – April 2017, the trend is significantly positive. Significantly, the demand
goes down from May – June 2017 and significantly positive again from June 2017
– August 2017. After that, the trend is going up until May 2018. The trend going
negative same happened in May – June 2018. After that, the trend is going up. So,
in conclusion, the scatterplot follows the seasonal pattern.
Here, there are different kinds of the number of time periods (N) included in double
moving averages, such as four, five, and six. The smallest error will be chosen to
be validated. To find the value of forecasting demand for N =4, using formula as
below.
1620+1674+1708+1782
𝑆4 ′ = = 1696
4
2
𝑏𝑡 = (𝑁−1) (𝑆𝑡′ − 𝑆𝑡 ′′)
So, the forecast demand for next month is like a formula below.
Ft+m = at + bt . m
28
Table 4.1 DMA Forecast Demand (N=4)
Demand
MA (4) MA (4) Forecast Absolute
Month T (in At bt
St' 4x4 St'' dt' Dev. (4)
units)
Jan 2017 1 1,620
Feb 2017 2 1,674
Mar 2017 3 1,708
Apr 2017 4 1,782 1696.00
May 2017 5 1,623 1696.75
Jun 2017 6 980 1523.25
Jul 2017 7 1,322 1426.75 1585.69 1267.81 -105.96
Aug 2017 8 1,567 1373.00 1504.94 1241.06 -87.96 1161.85 405.15
Sep 2017 9 1,434 1325.75 1412.19 1239.31 -57.63 1153.10 280.90
Oct 2017 10 1,609 1483.00 1402.13 1563.88 53.92 1181.69 427.31
Nov 2017 11 1,648 1564.50 1436.56 1692.44 85.29 1617.79 30.21
Dec 2017 12 1,540 1557.75 1482.75 1632.75 50.00 1777.73 -237.73
Jan 2018 13 1,784 1645.25 1562.63 1727.88 55.08 1682.75 101.25
Feb 2018 14 1,688 1665.00 1608.13 1721.88 37.92 1782.96 -94.96
Mar 2018 15 1,766 1694.50 1640.63 1748.38 35.92 1759.79 6.21
Apr 2018 16 1,876 1778.50 1695.81 1861.19 55.13 1784.29 91.71
May 2018 17 1,906 1809.00 1736.75 1881.25 48.17 1916.31 -10.31
Jun 2018 18 1,136 1671.00 1738.25 1603.75 -44.83 1929.42 -793.42
Jul 2018 19 1,560 1619.50 1719.50 1519.50 -66.67 1558.92 1.08
Aug 2018 20 1,715 1579.25 1669.69 1488.81 -60.29 1452.83 262.17
Sep 2018 21 1428.52
Oct 2018 22 1368.23
Nov 2018 23 1307.94
Dec 2018 24 1247.65
Jan 2019 25 1187.35
Feb 2019 26 1127.06
To find the value of forecasting demand for N =5 and N=6 the method is almost the
same with the formula above. But the difference in the average of the previous
demand based on the number of periods. For example, N=5, so average the values
of the previous 5 demand before, and the value of St’ and St” calculated. After that,
find the value of at and bt, and calculate forecast demand for next month.
29
Table 4.2 DMA Forecast Demand (N=5)
Demand
MA (5) MA (5) Forecast Absolute
Month T (in At Bt
St' 5x5 St'' dt' Dev. (5)
units)
Jan 2017 1 1,620
Feb 2017 2 1,674
Mar 2017 3 1,708
Apr 2017 4 1,782
May 2017 5 1,623 1681.40
Jun 2017 6 980 1553.40
Jul 2017 7 1,322 1483.00
Aug 2017 8 1,567 1454.80
Sep 2017 9 1,434 1385.20 1511.56 1258.84 -63.18
Oct 2017 10 1,609 1382.40 1451.76 1313.04 -34.68 1195.66 413.34
Nov 2017 11 1,648 1516.00 1444.28 1587.72 35.86 1278.36 369.64
Dec 2017 12 1,540 1559.60 1459.60 1659.60 50.00 1623.58 -83.58
Jan 2018 13 1,784 1603.00 1489.24 1716.76 56.88 1709.60 74.40
Feb 2018 14 1,688 1653.80 1542.96 1764.64 55.42 1773.64 -85.64
Mar 2018 15 1,766 1685.20 1603.52 1766.88 40.84 1820.06 -54.06
Apr 2018 16 1,876 1730.80 1646.48 1815.12 42.16 1807.72 68.28
May 2018 17 1,906 1804.00 1695.36 1912.64 54.32 1857.28 48.72
Jun 2018 18 1,136 1674.40 1709.64 1639.16 -17.62 1966.96 -830.96
Jul 2018 19 1,560 1648.80 1708.64 1588.96 -29.92 1621.54 -61.54
Aug 2018 20 1,715 1638.60 1699.32 1577.88 -30.36 1559.04 155.96
Sep 2018 21 1547.52
Oct 2018 22 1517.16
Nov 2018 23 1486.80
Dec 2018 24 1456.44
Jan 2019 25 1426.08
Feb 2019 26 1395.72
30
Table 4.3 DMA Forecast Demand (N=6)
Demand
MA (6) MA (6) Forecast Absolute
Month T (in At bt
St' 6x6 St'' dt' Dev. (6)
units)
Jan 2017 1 1,620
Feb 2017 2 1,674
Mar 2017 3 1,708
Apr 2017 4 1,782
May 2017 5 1,623
Jun 2017 6 980 1564.50
Jul 2017 7 1,322 1514.83
Aug 2017 8 1,567 1497.00
Sep 2017 9 1,434 1451.33
Oct 2017 10 1,609 1422.50
Nov 2017 11 1,648 1426.67 1479.47 1373.86 -21.12
Dec 2017 12 1,540 1520.00 1472.06 1567.94 19.18 1352.74 187.26
Jan 2018 13 1,784 1597.00 1485.75 1708.25 44.50 1587.12 196.88
Feb 2018 14 1,688 1617.17 1505.78 1728.56 44.56 1752.75 -64.75
Mar 2018 15 1,766 1672.50 1542.64 1802.36 51.94 1773.11 -7.11
Apr 2018 16 1,876 1717.00 1591.72 1842.28 50.11 1854.31 21.69
May 2018 17 1,906 1760.00 1647.28 1872.72 45.09 1892.39 13.61
Jun 2018 18 1,136 1692.67 1676.06 1709.28 6.64 1917.81 -781.81
Jul 2018 19 1,560 1655.33 1685.78 1624.89 -12.18 1715.92 -155.92
Aug 2018 20 1,715 1659.83 1692.89 1626.78 -13.22 1612.71 102.29
Sep 2018 21 1613.56
Oct 2018 22 1600.33
Nov 2018 23 1587.11
Dec 2018 24 1573.89
Jan 2019 25 1560.67
Feb 2019 26 1547.44
31
∑𝑛 ′
𝑡=1 |𝑑𝑡−𝑑𝑡 | 2,742.41
𝑀𝐴𝐷 = = = 210.9546
𝑛 13
The second error measurement is MSE. To find the value of MSE, the total value
of (dt-dt’)2 should be found out and calculate the average of it.
∑𝑛 ′ 2
𝑡=1(𝑑𝑡−𝑑𝑡 ) 1,209,147.49
𝑀𝑆𝐸 = = = 93011.3451
𝑛 13
And the last find error measurement is MAPE. To find the value of MAPE, the total
value of |PEt| should be found out and calculate the average of it.
dt−dt’ ∑𝑛
𝑡=1 |𝑃𝐸𝑡| 191.55%
PE1 = x 100% MAPE = = = 14.73%
𝑑𝑡 𝑛 13
For N=5 and N=6, the method is the same using the formula of MAD, MSE, and
MAPE. After all of the error values already calculated, the lowest value of error
will be chosen
32
Table 4.5. Evaluation MAD, MSE, and MAPE (N=5)
N=5
Dt dt' dt-dt' |dt-dt’| (dt-dt’)2 Pet |PEt|
1,609 1195.66 413.34 413.34 170849.96 25.69% 25.69%
1,648 1278.36 369.64 369.64 136633.73 22.43% 22.43%
1,540 1623.58 -83.58 83.58 6985.62 -5.43% 5.43%
1,784 1709.6 74.40 74.40 5535.36 4.17% 4.17%
1,688 1773.64 -85.64 85.64 7334.21 -5.07% 5.07%
1,766 1820.06 -54.06 54.06 2922.48 -3.06% 3.06%
1,876 1807.72 68.28 68.28 4662.16 3.64% 3.64%
1,906 1857.28 48.72 48.72 2373.64 2.56% 2.56%
1,136 1966.96 -830.96 830.96 690494.52 -73.15% 73.15%
1,560 1621.54 -61.54 61.54 3787.17 -3.94% 3.94%
1,715 1559.04 155.96 155.96 24323.52 9.09% 9.09%
33
Table 4.7 Comparation MAD, MSE, and MAPE
Comparation N=4 N=5 N=6
MAD 210.9546 204.193 170.1467
From table 4.7 Comparation MAD, MSE and MAPE show that the lowest values
of error are N=6. So, it is better compared to others and will be continued to the
validation process.
4.2.1.3 Validation
After determining the value of MAD, MSE, and MAPE, the next step, do validation
towards the forecasting method. There two kinds of validation, such as verification
and tracking signal, in this case using tracking signal – Trigg.
4.2.1.3.1 Verification
In order to show the control chart, there are several calculations. First, calculate the
value of (dt'-dt)-(d(t-1)'-d(t-1)) as a value of MRt. After that, find out the value of
MR using the formula below.
∑𝑛
𝑡=2 𝑀𝑅𝑡
MR =
𝑛−1
Find the lower and upper limit of the control chart using formula as below.
̅̅̅̅̅
UCL = +2.66 𝑀𝑅
CL = 0
After the value of MRt, UCL, LCL, and CL are known, now plot the data inline
34
Table 4.8 MR and Control Limit Calculation
MR 255.66125
UCL 680.058925
LCL -680.058925
LCL
MRt UCL 2/3 UCL 1/3 UCL LCL 2/3 1/3 LCL CL
9.62 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
261.63 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
57.64 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
28.8 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
8.08 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
795.42 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
625.89 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
258.21 680.059 453.373 226.686 -680.059 -453.373 -226.686 0
35
DMA Verification Test
1000
500
0
1 2 3 4 5 6 7 8
-500
-1000
Figure 4.3, shows that the graph is out of control. So it is mean that this method is not good
enough for predicting future demand.
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
(𝑑𝑡 − 𝑑𝑡 ′ )
𝑇𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 =
𝑀𝐴𝐷
After the value of tracking signals in sample data already known, determine the
control limit. The common control limit values is UCL = 1, LCL = -1, and CL = 0.
Plot the data using the line graph, the result is shown in figure 4.4
36
Table 4.10 Tracking Signal – Trigg Calculation
Cum Tracking
period Dt dt’ dt-dt’ |dt-dt’| MAD UCL CL LCL
|dt-dt’| signal
1 1,540 1352.74 187.26 187.26 187.26 187.26 1 1 0 -1
2 1,784 1587.12 196.88 196.88 384.14 192.07 1.03 1 0 -1
3 1,688 1752.75 -64.75 64.75 448.89 149.63 -0.43 1 0 -1
4 1,766 1773.11 -7.11 7.11 456.00 114.00 -0.06 1 0 -1
5 1,876 1854.31 21.69 21.69 477.69 95.54 0.23 1 0 -1
6 1,906 1892.39 13.61 13.61 491.30 81.88 0.17 1 0 -1
-
1,136 1917.81
7 781.81 781.81 1,273.11 181.87 -4.30 1 0 -1
-
1,560 1715.92
8 155.92 155.92 1,429.03 178.63 -0.87 1 0 -1
9 1,715 1612.71 102.29 102.29 1,531.32 170.15 0.60 1 0 -1
0
1 2 3 4 5 6 7 8 9
-1
-2
-3
-4
-5
Figure 4.4, it showed that the graph is out of control. There are two-point out of the
UCL and LCL. So it is mean that this method is not good enough for predicting
future demand. But there is another method to check the tracking signal its tracking
signal-brown method. Control limited of tracking signal-Brown is ±4 to ±6. In this
report use ±4 as an upper limit and lower limit.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
37
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 ) 187.26
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 𝑝𝑒𝑟𝑖𝑜𝑑 1 = = = 187.26 = 1
𝑀𝐴𝐷 𝑀𝐴𝐷
From the figure 4.5, it showed that the graph is out of control. Since the out of
control is one point, it is slightly passed the verification test. So using two methods
of tracking signal. Can conclude both of them are slightly passed.
38
4.2.2 Double Exponential Smoothing-Browns
In the exponential smoothing method, not only a single exponential smoothing
(SES) but there is also double exponential smoothing. It is an improvement of
Simple Exponential Smoothing (SES) which does the exponential filter processed
twice. Double exponential smoothing (DES) divided into two methods. its Brown
Method and Holt Method. In this section, the demand will be forecasted by using
the Brown Method.
St’ = 𝛼. 𝑑𝑡 + (1 − 𝛼) 𝑆𝑡−1 ′
St2’ = 0.2 𝑥 1674 + (1 − 0.2) 1620
= 1630.8
In this method, the first single-smoothed series, it’s assumed to be the same as the
demand. The first double-smoothed series also assumed to be the same as the
demand. So, the second period’s single-smoothed series and double-smoothed
series and the rest period can be calculated. After the single-smoothed series is
calculated, then the double-smoothed series can be calculated by using this formula
below:
After that, the rest period’s also calculated by using this formula in order to find
each at and bt (the coefficient to forecast the demand). The coefficient at and bt can
be calculated by using this formula:
39
at = 2St’ – St’’
2
bt = 1−𝛼 St’ – St’’
at = 2 x 1630.8 – 1622.16
= 1639.44
2
bt = 1−0.2 1630.8 – 1622.16
= 2.16
The coefficient of period 2 is used to forecast the demand of period 3 like this:
Ft+m = at + bt . m
= 1639.44 + 2.16 x 1
= 1641.60
The result of forecasting by using DES-Browns method with α= 0.2 can be seen in
the table 4.12:
40
Table 4.12 DES Browns Forecast Demand (α =0.2) (Continued)
To find the value of forecasting demand for α = 0.4 and 0.6 by using the formula
like the previous forecasting that used α = 0.2. So for the result of forecasting
demand for α = 0.4 can see in table 4.13 and the result of forecasting demand for α
= 0.6 can see in table 4.14.
41
Table 4.13 DES Browns Forecast Demand (α =0.4) (Continued)
42
Table 4.14 DES Browns Forecast Demand (α =0.6)
∑𝑛 ′
𝑡=1 |𝑑𝑡−𝑑𝑡 | 3285.58
𝑀𝐴𝐷 = = = 182.53
𝑛 20
The second error measurement is MSE. To find the value of MSE, the total value
of (dt-dt’)2 should be found out and calculate the average of it.
∑𝑛 ′ 2
𝑡=1(𝑑𝑡−𝑑𝑡 ) 1320207.97
𝑀𝑆𝐸 = = = 73344.89
𝑛 20
And the last find error measurement is MAPE. To find the value of MAPE, the total
value of |PEt| should be found out and calculate the average of it.
dt−dt’ ∑𝑛
𝑡=1 |𝑃𝐸𝑡| 246.61%
PE1 = x 100% MAPE = = = 13.70%
𝑑𝑡 𝑛 20
43
Table 4.15 MAD, MSE, and MAPE Calculation (α =0.2)
44
For α = 0.4 and α = 0.6, the method is the same using the formula of MAD, MSE,
and MAPE in α = 0.2. for the calculation of MAD, MSE, and MAPE with α = 0.4
can see in table 4.16 and α = 0.6 can see in table 4.17
45
Table 4.17 MAD, MSE, and MAPE Calculation (α =0.6)
After all of the error values already calculated, the lowest value of error will be
chosen
Based on the figure above, the alpha (∝ that have the lowest values of error is ∝ =
0.2 Because of it has the lowest error than the other two alpha (∝ , so it is the best
for this method and then it is used to the validation process now.
46
4.2.2.3 Validation
After determining the value of MAD, MSE, and MAPE, the next step, do validation
towards the forecasting method. There two kinds of validation, such as verification
and tracking signal, in this case using two. Its tracking signal – Trigg and tracking
signal-brown.
4.2.1.3.1 Verification
In order to show the control chart, there are several calculations. First, calculate the
value of (dt'-dt)-(d(t-1)'-d(t-1)) as a value of MRt. After that, find out the value of
MR using the formula below.
∑𝑛
𝑡=2 𝑀𝑅𝑡
MR =
𝑛−1
Find the lower and upper limit of the control chart using formula as below.
̅̅̅̅̅
UCL = +2.66 𝑀𝑅
CL = 0
47
Table 4.20 MR and Control Limit Calculation
dt'-dt d(t-1)'-d(t-1) (dt'-dt)-(d(t-1)'-d(t-1)) |(dt'-dt)-(d(t-1)'-d(t-1))|
36.73 724.65 -687.91 687.91
-136.00 36.73 -172.73 172.73
MR 273.75
UCL 728.18
LCL -728.18
MRt UCL 2/3 UCL 1/3 UCL LCL 2/3 LCL 1/3 LCL CL
45.28 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
208.49 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
613.56 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
620.74 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
303.86 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
192.10 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
184.17 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
26.38 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
171.08 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
242.15 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
195.06 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
46.92 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
57.92 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
49.36 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
836.05 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
687.91 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
172.73 728.18 485.45 242.73 -728.18 -485.453 -242.726 0
48
After the value of MRt, UCL, LCL, and CL are known, now plot the data inline a
graph like in figure 4.6
Another method to validate the method is by using the tracking signal Trigg check.
To find out the value of the tracking signal, there are several values should be found
out first. The calculation could be seen in the table below. To find out the value of
MAD, using a previous one. The tracking signal could be found by using the
formula below.
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
(𝑑𝑡−𝑑𝑡 ′ ) 66.40
𝑇𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 = = =1
𝑀𝐴𝐷 66.40
49
Table 4.22 Tracking Signal Calculation-Trigg
Cum Tracking
Period Dt dt’ dt-dt’ |dt-dt’| MAD UCL CL LCL
|dt-dt’| signal
1 1,708 1641.60 66.40 66.40 66.40 66.40 1.00 1 0 -1
2 1,782 1670.32 111.68 111.68 178.08 55.84 2.00 1 0 -1
3 1,623 1719.81 -96.81 96.81 274.89 32.27 -3.00 1 0 -1
-
4 980 1690.37
710.37 710.37 985.26 177.59 -4.00 1 0 -1
5 1,322 1411.63 -89.63 89.63 1074.89 17.93 -5.00 1 0 -1
6 1,567 1352.78 214.22 214.22 1289.11 35.70 6.00 1 0 -1
7 1,434 1411.88 22.12 22.12 1311.24 3.16 7.00 1 0 -1
8 1,609 1402.71 206.29 206.29 1517.53 25.79 8.00 1 0 -1
9 1,648 1468.09 179.91 179.91 1697.44 19.99 9.00 1 0 -1
10 1,540 1531.17 8.83 8.83 1706.27 0.88 10.00 1 0 -1
11 1,784 1533.01 250.99 250.99 1957.26 22.82 11.00 1 0 -1
12 1,688 1632.08 55.92 55.92 2013.18 4.66 12.00 1 0 -1
13 1,766 1663.15 102.85 102.85 2116.03 7.91 13.00 1 0 -1
14 1,876 1715.23 160.77 160.77 2276.80 11.48 14.00 1 0 -1
15 1,906 1794.60 111.40 111.40 2388.20 7.43 15.00 1 0 -1
-
16 1,136 1860.65
724.65 724.65 3112.85 45.29 -16.00 1 0 -1
17 1,560 1596.73 -36.73 36.73 3149.58 2.16 -17.00 1 0 -1
18 1,715 1579.00 136.00 136.00 3285.58 7.56 18.00 1 0 -1
15
10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-5
-10
-15
-20
50
Figure 4.7, it showed that the graph is out of control. It's extremely out of the UCL
and LCL So, it slightly passes the tracking signal test. But there is another method
to check the tracking signal its tracking signal-brown method. Control limited of
tracking signal-Brown is ±4 to ±6. In this report use ±4 as an upper limit and lower
limit.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 ) 66.40
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 𝑝𝑒𝑟𝑖𝑜𝑑 1 = = = 66.40 = 1
𝑀𝐴𝐷 𝑀𝐴𝐷
51
DES Brown tracking Signal (Brown)
5.00
4.00
3.00
2.00
1.00
0.00
-1.00 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-2.00
-3.00
-4.00
-5.00
Figure 4.8, it showed that the graph is in control. So, it slightly passes the tracking
signal test.
From two method can conclude that the tracking signal-Brown is better than
Tracking signal-Trigg because in tracking signal-Brown see in figure 4.7 all of point
draw in the center area. There is no point outside the center area.
52
b2 = γ (St − St𝑡−1) + (1 − γ)b𝑡−1 = 0.5 (1674 − 1620) + 0.5 (54) = 54
F𝑡+N = St + bt (N) = 1674 + 54 (1) = 1728
To find the forecast demand by using α = 0.3 γ = 0.5, and α = 0.4 γ = 0.6, using
formula like as above. The forecast demand shown in table 4.24
53
4.2.3.2 Evaluation of MAD, MSE, MAPE
There are three error measurement that are used to evaluate the forecasting method.
First error measurement is MAD. To find the value of MAD, the total value of |dt-
dt’| should be found out and calculate the average of it. Here is the example.
Second error measurement is MSE. To find the value of MSE, the total value of (dt
– dtʹ)2 should be found out and calculate the average of it.
𝑛
∑𝑡=1(dt − dt′)2 1.835.716,15
MSE = = = 101.984,23
𝑛 18
Next is third error measurement, which is MAPE. To find the value of MAPE, the
total value of PEt should be found out and calculate its average.
∑𝑛𝑡=1|𝑃𝐸𝑡| 283,32%
𝑀𝐴𝑃𝐸 = = = 15,74%
𝑛 18
For α = 0.4 γ = 0.6, the method is same using the formula of MAD, MSE, and
MAPE. After all of error values already calculated, the lowest value of error will be
chosen.
54
Table 4.25 MAD, MSE, and MAPE (α = 0.3 γ = 0,5)
α = 0.3 γ = 0,5
dt-dt' ldt-dt'l (dt-dt')2 Pet LPEtl
-20,00 20,00 400,00 -1,17% 1,17%
9,00 9,00 81,00 0,51% 0,51%
-205,05 205,05 42.045,50 -12,63% 12,63%
-808,13 808,13 653.070,06 -82,46% 82,46%
-124,06 124,06 15.391,53 -9,38% 9,38%
276,39 276,39 76.392,64 17,64% 17,64%
137,25 137,25 18.838,03 9,57% 9,57%
327,27 327,27 107.102,80 20,34% 20,34%
275,19 275,19 75.727,08 16,70% 16,70%
50,45 50,45 2.545,37 3,28% 3,28%
237,57 237,57 56.439,58 13,32% 13,32%
-7,08 7,08 50,16 -0,42% 0,42%
-3,28 3,28 10,74 -0,19% 0,19%
31,88 31,88 1.016,24 1,70% 1,70%
-28,29 28,29 800,57 -1,48% 1,48%
-866,17 866,17 750.252,78 -76,25% 76,25%
-128,76 128,76 16.579,01 -8,25% 8,25%
137,74 137,74 18.973,06 8,03% 8,03%
-20,00 20,00 400,00 -1,17% 1,17%
SUM TOTAL
-708,09 3.673,56 1.835.716,15 283,32%
AVERAGE
204,09 101.984,23 15,74%
MAD MSE MAPE
55
Table 4.26 MAD, MSE, and MAPE (α = 0.4 γ = 0,6) ) (Continued)
α = 0.4 γ = 0,6
dt-dt' ldt-dt'l (dt-dt')2 Pet LPEtl
160,20 160,20 25.663,32 9,72% 9,72%
-111,32 111,32 12.391,04 -7,23% 7,23%
104,49 104,49 10.918,77 5,86% 5,86%
-131,10 131,10 17.187,38 -7,77% 7,77%
-66,99 66,99 4.488,01 -3,79% 3,79%
19,55 19,55 382,22 1,04% 1,04%
-13,22 13,22 174,66 -0,69% 0,69%
-829,70 829,70 688.408,41 -73,04% 73,04%
73,53 73,53 5.407,00 4,71% 4,71%
328,83 328,83 108.126,70 19,17% 19,17%
SUM TOTAL
-436,62 3.852,35 1.840.749,08 291,62%
AVERAGE
214,02 102.263,84 16,20%
MAD MSE MAPE
Based on the figure above, the alpha (α) that have the lowest values of error is α
=0.3 γ = 0.5. Because of it has the lowest error than the other alternative, so it is the
best for this method and then it is used to the validation process now.
4.2.3.3 Validation
After determining the value of MAD, MSE, and MAPE, next step, do validation
towards the forecasting method. There two kinds of validation, such as verification
and tracking signal, in this case using tracking signal-Trigg and tracking signal
Brown.
56
4.2.1.3.1 Verification
In order to show the control chart, there are several calculations. First, calculate the
value of (dt'-dt)-(d(t-1)'-d(t-1)) as a value of MRt. After that, find out the value of
MR using formula as below.
∑𝑛𝑡=1 MRt
MR = = 6613,42
𝑛−1
MR 6613,42
UCL 17591,70
LCL -17591,70
57
Table 4.29 MR and Control Limit Calculation
2/3 1/3
MRt UCL 2/3 UCL 1/3 UCL LCL CL
LCL LCL
29 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
214.05 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
603.08 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
684.06 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
400.45 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
139.14 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
190.01 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
52.08 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
224.73 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
187.12 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
244.65 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
3.81 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
35.16 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
60.17 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
837.88 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
737.41 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
266.5 17591.70 11,728 3,909 -17591.70 -11,728 -3,909 0
From the figure above, it showed that the graph is out of control. Since the out of
control are one points, it is slightly passed the verification test.
58
4.2.1.3.2 Tracking Signal
Other method to validate the method is by using the tracking signal Trigg check.
To find out the value of tracking signal, there are several values should be found
out first. The calculation could be seen in the table below. To find out the value of
MAD, using previous one. The tracking signal could be found by using formula as
below.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
59
Tracking Signal-Trigg
2.00
1.00
0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-1.00
-2.00
-3.00
-4.00
-5.00
Figure 4.10, it showed that the graph is out of control. It's extremely out of the UCL
and LCL So, it slightly passes the tracking signal test. But there is another method
to check the tracking signal its tracking signal-brown method. Control limited of
tracking signal-Brown is ±4 to ±6. In this report use ±4 as an upper limit and lower
limit.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 ) −20
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 𝑝𝑒𝑟𝑖𝑜𝑑 1 = = = 20
= −1
𝑀𝐴𝐷 𝑀𝐴𝐷
60
Table 4.31 Tracking signal- Brown
Tracking Signal-Brown
5
4
3
2
1
0
-1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-2
-3
-4
-5
-6
61
Figure 4.14 it showed that the graph is in control. So, it slightly passes the tracking
signal test.
From two method can conclude that all of the methods it slightly passes the tracking
signal test. It means there is no method draw the point in the center area.
2𝜋
t = 180t
𝑁
Then, calculate the value as like in the table, and the value of dt’ is calculated by
formula as below
62
Table 4.32 Cyclic Forecast Demand
63
Table 4.32 Cyclic Forecast Demand (Continued)
64
To calculate the value of a, b, and c showed as below.
(1)
𝑛 𝑛
𝑛 2𝜋 2𝜋
∑ 𝑑𝑡 = 𝑎. 𝑛 + 𝑏 ∑ cos ( t) + c ∑ sin ( t)
𝑡=1 𝑁 𝑁
𝑡=1 𝑡=1
𝑛 𝑛
𝑛
∑ 𝑑𝑡 = 𝑎. 20 + 𝑏 ∑ cos(180t) + c ∑ sin(180t)
𝑡=1
𝑡=1 𝑡=1
31938 = 𝑎. 20
(2)
𝑛 2𝜋
∑ 𝑑𝑡 cos ( t)
𝑡=1 𝑁
𝑛
2𝜋
= 𝑎 ∑ cos ( t)
𝑁
𝑡=1
𝑛 𝑛
2𝜋 2𝜋 2𝜋
+ 𝑏 ∑ 𝑐𝑜𝑠 2 ( t) + c ∑ sin ( t) cos ( t)
𝑁 𝑁 𝑁
𝑡=1 𝑡=1
𝑛
∑ 𝑑𝑡 cos(180t)
𝑡=1
𝑛
= 𝑎 ∑ cos(180𝑡)
𝑡=1
𝑛 𝑛
2 (180t)
+ 𝑏 ∑ 𝑐𝑜𝑠 + c ∑ sin(180t) cos(180t)
𝑡=1 𝑡=1
−804 = 𝑏. 20
(3)
𝑛 2𝜋
∑ 𝑑𝑡 sin ( t)
𝑡=1 𝑁
𝑛
2𝜋
= 𝑎 ∑ sin ( t)
𝑁
𝑡=1
𝑛 𝑛
2𝜋 2𝜋 2𝜋
+ 𝑏 ∑ 𝑐𝑜𝑠 ( t) sin ( t) + c ∑ sin ( t)
𝑁 𝑁 𝑁
𝑡=1 𝑡=1
65
𝑛
∑ 𝑑𝑡 sin(180t)
𝑡=1
𝑛
= 𝑎 ∑ sin(180𝑡)
𝑡=1
𝑛 𝑛
0=0
∑𝑛 ′
𝑡=1 |𝑑𝑡−𝑑𝑡 | 3281.2
𝑀𝐴𝐷 = = = 164.06
𝑛 20
And next find error measurement is MSE. To find the value of MSE, the total value
of (dt - dt’)2 should be found out and calculate the average of it.
∑𝑛 ′ 2
𝑡=1(𝑑𝑡−𝑑𝑡 ) 984083
𝑀𝑆𝐸 = = = 49204.15
𝑛 20
And the last find error measurement is MAPE. To find the value of MAPE, the total
value of |PEt| should be found out and calculate the average of it.
66
dt−dt’ −17.10
PE1 = x 100% = = -1.1%
𝑑𝑡 1,620
|PE1| = 1.1%
|PEt| 233.87%
𝑀𝐴𝑃𝐸 = = = 11.69%
𝑛 20
67
4.2.4.3 Validation
After determining the value of MAD, MSE, and MAPE, the next step, do validation
towards the forecasting method. There two kinds of validation, such as verification
and tracking signal, in this case using tracking signal – Trigg.
4.2.4.3.1 Verification
In order to show the control chart, there are several calculations. First, calculate the
value of (dt'-dt)-(d(t-1)'-d(t-1)) as a value of MRt. After that, find out the value of
MR using the formula below.
∑𝑛
𝑡=2 𝑀𝑅𝑡
MR =
𝑛−1
Find the lower and upper limit of the control chart using formula as below.
CL = 0
After the value of MRt, UCL, LCL, and CL are known, now plot the data inline
68
Table 4.35 MR and Control Limit Calculation
69
Table 4.36 MR and Control Limit Calculation
MRt UCL 2/3 UCL 1/3 UCL LCL LCL 2/3 1/3 LCL CL
134.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
46.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
154.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
239.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
562.60 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
261.6 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
325.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
213.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
255.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
41.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
27.60 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
163.6 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
15.60 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
2.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
190.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
50.40 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
689.60 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
343.6 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
235.4 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
3953.00 553.420 368.9467 184.4733 -553.42 -368.947 -184.473 0
500
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-500
-1000
Figure 4.12, it showed that the graph is out of control. Since the out of control is
one point, it slightly passes the verification test.
70
4.2.4.3.2 Tracking Signal
Another method to validate the method is by using the tracking signal Trigg check.
To find out the value of tracking signal, there are several values should be found
out first. The calculation could be seen in the table below. To find out the value of
MAD, using previous one. The tracking signal could be found by using the formula
below.
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
(𝑑𝑡 − 𝑑𝑡 ′ )
𝑇𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 =
𝑀𝐴𝐷
Cum Trackin UC
period dt dt’ dt-dt’ |dt-dt’| MAD CL LCL
|dt-dt’| g signal L
71
Clyclic Tracking Signal -Trigg
3.000
2.000
1.000
0.000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-1.000
-2.000
-3.000
-4.000
From the figure 4.13, it showed that the graph is out of control. There are several
periods out of UCL and LCL. Since the out of control is nine points, it slightly
passes the tracking signal test. But there is another method to check the tracking
signal its tracking signal-brown method. Control limited of tracking signal-Brown
is ±4 to ±6. In this report use ±4 as an upper limit and lower limit.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 )
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 = =
𝑀𝐴𝐷 𝑀𝐴𝐷
72
Table 4. 38 Tracking Signal Calculation-Brown
Track-
RSFE Cum
Period dt dt' dt-dt' |dt-dt'| MAD ing UCL CL LCL
Cum. |dt-dt'|
Signal
1 1,620 1637.1 -17.10 -17.10 17.10 17.10 17.10 -1.00 4 0 -4
2 1,674 1556.7 117.30 100.20 117.30 134.40 67.20 1.49 4 0 -4
3 1,708 1637.1 70.90 171.10 70.90 205.30 68.43 2.50 4 0 -4
4 1,782 1556.7 225.30 396.40 225.30 430.60 107.65 3.68 4 0 -4
5 1,623 1637.1 -14.10 382.30 14.10 444.70 88.94 4.30 4 0 -4
- -
6 980 1556.7 576.70 1021.40 170.23 -1.14 4 0 -4
576.70 194.40
- -
7 1,322 1637.1 315.10 1336.50 190.93 -2.67 4 0 -4
315.10 509.50
-
8 1,567 1556.7 10.30 10.30 1346.80 168.35 -2.97 4 0 -4
499.20
- -
9 1,434 1637.1 203.10 1549.90 172.21 -4.08 4 0 -4
203.10 702.30
-
10 1,609 1556.7 52.30 52.30 1602.20 160.22 -4.06 4 0 -4
650.00
-
11 1,648 1637.1 10.90 10.90 1613.10 146.65 -4.36 4 0 -4
639.10
-
12 1,540 1556.7 -16.70 16.70 1629.80 135.82 -4.83 4 0 -4
655.80
-
13 1,784 1637.1 146.90 146.90 1776.70 136.67 -3.72 4 0 -4
508.90
-
14 1,688 1556.7 131.30 131.30 1908.00 136.29 -2.77 4 0 -4
377.60
-
15 1,766 1637.1 128.90 128.90 2036.90 135.79 -1.83 4 0 -4
248.70
16 1,876 1556.7 319.30 70.60 319.30 2356.20 147.26 0.48 4 0 -4
17 1,906 1637.1 268.90 339.50 268.90 2625.10 154.42 2.20 4 0 -4
-
18 1,136 1556.7 -81.20 420.70 3045.80 169.21 -0.48 4 0 -4
420.70
-
19 1,560 1637.1 -77.10 77.10 3122.90 164.36 -0.96 4 0 -4
158.30
20 1,715 1556.7 158.30 0.00 158.30 3281.20 164.06 0.00 4 0 -4
73
Cyclic Method Tracking Signal-Brown
6.00
4.00
2.00
0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
-2.00
-4.00
-6.00
Figure 4.14 it showed that the graph is in control. So, it slightly passes the tracking
signal test.
From two method can conclude that all of the methods it slightly passes the tracking
signal test. It means there is no method draw the point in the center area.
2𝜋
t = 60t
𝑁
Then, calculate the value as like in the table, and the value of dt’ is calculated by
formula as below
74
Table 4.39 Linear Cyclic Forecast Demand
sin(60t).
Month T dt sin(60t) sin2(60t) cos(60t) cos2(60t)
cos(60t)
Jan 2017 1 1,620 0.866 0.75 0.5 0.25 0.433
Feb 2017 2 1,674 0.866 0.750 -0.5 0.25 -0.433
Mar 2017 3 1,708 0.000 0.000 -1 1 0.000
Apr 2017 4 1,782 -0.866 0.750 -0.5 0.25 0.433
May 2017 5 1,623 -0.866 0.750 0.5 0.25 -0.433
Jun 2017 6 980 0.000 0.000 1 1 0.000
Jul 2017 7 1,322 0.866 0.750 0.5 0.25 0.433
Aug 2017 8 1,567 0.866 0.750 -0.5 0.25 -0.433
Sep 2017 9 1,434 0.000 0.000 -1 1 0.000
Oct 2017 10 1,609 -0.866 0.750 -0.5 0.25 0.433
Nov 2017 11 1,648 -0.866 0.750 0.5 0.25 -0.433
Dec 2017 12 1,540 0.000 0.000 1 1 0.000
Jan 2018 13 1,784 0.866 0.750 0.5 0.25 0.433
Feb 2018 14 1,688 0.866 0.750 -0.5 0.25 -0.433
Mar 2018 15 1,766 0.000 0.000 -1 1 0.000
Apr 2018 16 1,876 -0.866 0.750 -0.5 0.25 0.433
May 2018 17 1,906 -0.866 0.750 0.5 0.25 -0.433
Jun 2018 18 1,136 0.000 0.000 1 1 0.000
Jul 2018 19 1,560 0.866 0.750 0.5 0.25 0.433
Aug 2018 20 1,715 0.866 0.750 -0.5 0.25 -0.433
Sep 2018 21
Oct 2018 22
Nov 2018 23
Dec 2018 24
Jan 2019 25
Feb 2019 26
75
Table 4.39 Linear Cyclic Forecast Demand (Continued)
76
to calculate the value of a, b, and c showed as below
(1)
𝑛 𝑛 𝑛 𝑛
2𝜋 2𝜋
∑ 𝑑𝑡 = 𝑎. 𝑛 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑐𝑜𝑠( t ) + 𝑑 ∑ 𝑠𝑖𝑛( t )
𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1
𝑛 𝑛 𝑛 𝑛
∑ 𝑑𝑡 = 𝑎. 𝑛 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑐𝑜𝑠(60t ) + 𝑑 ∑ 𝑠𝑖𝑛(60t )
𝑡=1 𝑡=1 𝑡=1 𝑡=1
31,938 = 𝑎. 20 + 𝑏 210 + 𝑑 2
(2)
𝑛 𝑛 𝑛 𝑛 𝑛
2
2𝜋 2𝜋
∑ 𝑑𝑡 . 𝑡 = 𝑎. ∑ 𝑡 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑡. 𝑐𝑜𝑠( t ) + 𝑑 ∑ 𝑡. 𝑠𝑖𝑛( t )
𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1 𝑡=1
𝑛 𝑛 𝑛 𝑛 𝑛
2
∑ 𝑑𝑡 . 𝑡 = 𝑎. ∑ 𝑡 + 𝑏 ∑ 𝑡 + 𝑐 ∑ 𝑡. 𝑐𝑜𝑠(60t ) + 𝑑 ∑ 𝑡. 𝑠𝑖𝑛(60t )
𝑡=1 𝑡=1 𝑡=1 𝑡=1 𝑡=1
(3)
𝑛 𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋 2𝜋
∑ 𝑑𝑡 . 𝐶𝑜𝑠( t ) = 𝑎. ∑ 𝐶𝑜𝑠( t ) + 𝑏 ∑ 𝑡. 𝐶𝑜𝑠( t ) + 𝑐 ∑ 𝑐𝑜𝑠 2 ( t )
𝑁 𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1 𝑡=1
𝑛
2𝜋 2𝜋
+ 𝑑 ∑ 𝑠𝑖𝑛 ( t ) 𝐶𝑜𝑠( t )
𝑁 𝑁
𝑡=1
𝑛 𝑛 𝑛 𝑛
+ 𝑑 ∑ 𝑠𝑖𝑛(60t )𝐶𝑜𝑠(60t )
𝑡=1
−1476 = 𝑏 9 + 𝑐 10
77
(4)
𝑛 𝑛 𝑛
2𝜋 2𝜋 2𝜋
∑ 𝑑𝑡 . 𝑆𝑖𝑛( t ) = 𝑎. ∑ 𝑠𝑖𝑛( t ) + 𝑏 ∑ 𝑡. 𝑠𝑖𝑛( t ) +
𝑁 𝑁 𝑁
𝑡=1 𝑡=1 𝑡=1
𝑛 𝑛
2𝜋 2𝜋 2𝜋
+ 𝑐 ∑ 𝑐𝑜𝑠 ( t ) 𝑠𝑖𝑛 ( t ) + 𝑐 ∑ 𝑠𝑖𝑛2 ( t )
𝑁 𝑁 𝑁
𝑡=1 𝑡=1
𝑛 𝑛 𝑛
2153 = 𝑎 2 + 𝑏 18 + 𝑑 11
∑𝑛 ′
𝑡=1 |𝑑𝑡−𝑑𝑡 | 2818.9
𝑀𝐴𝐷 = = = 140.945
𝑛 20
And next find error measurement is MSE. To find the value of MSE, the total value
of (dt - dt’)2 should be found out and calculate the average of it.
78
∑𝑛 ′ 2
𝑡=1(𝑑𝑡−𝑑𝑡 ) 730710.521
𝑀𝑆𝐸 = = = 36535.526
𝑛 20
And the last find error measurement is MAPE. To find the value of MAPE, the total
value of |PEt| should be found out and calculate the average of it.
dt−dt’ 246.74
PE1 = x 100% =
𝑑𝑡 1,620
|PE1| = 15.23%
|PEt| 200.01%
𝑀𝐴𝑃𝐸 = = = 10%
𝑛 20
79
4.2.5.3 Validation
After determining the value of MAD, MSE, and MAPE, the next step, do validation
towards the forecasting method. There two kinds of validation, such as verification
and tracking signal, in this case using tracking signal – Trigg.
4.2.5.3.1 Verification
In order to show the control chart, there are several calculations. First, calculate the
value of (dt'-dt)-(d(t-1)'-d(t-1)) as a value of MRt. After that, find out the value of
MR using the formula below.
∑𝑛
𝑡=2 𝑀𝑅𝑡
MR =
𝑛−1
Find the lower and upper limit of the control chart using formula as below.
̅̅̅̅̅
UCL = +2.66 𝑀𝑅
CL = 0
After the value of MRt, UCL, LCL, and CL are known, now plot the data inline
80
Table 4.42 MR and Control Limit Calculation
MR 201.519
UCL 536.040
LCL -536.040
81
Table 4.43 MR and Control Limit Calculation
2/3
MRt UCL 2/3 UCL 1/3 UCL LCL 1/3 LCL CL
LCL
- - -
108.43 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
132.70 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
61.93 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
12.18 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
491.91 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
338.46 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
82.57 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
299.70 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
162.93 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
185.82 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
43.09 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
240.46 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
258.43 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
88.70 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
97.93 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
176.82 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
618.91 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
420.46 536.040 357.360 178.680 536.040 357.360 178.680 0
- - -
7.43 536.040 357.360 178.680 536.040 357.360 178.680 0
82
Cyclic linear verification
800.00
600.00
400.00
200.00
0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-200.00
-400.00
-600.00
From the figure 4.15 it showed that the graph is out of control. So it is mean that
this method is not good enough for predicting future demand.
∑𝑛𝑡=1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
(𝑑𝑡 − 𝑑𝑡 ′ )
𝑇𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 =
𝑀𝐴𝐷
83
Table 4. 44 Tracking Signal Calculation-Trigg
Cum |dt- Tracking
period dt dt’ dt-dt’ |dt-dt’| MAD UCL CL LCL
dt’| signal
1 1,620 1373.26 246.74 246.74 246.74 246.740 1 1 0 -1
2 1,674 1535.693 138.31 138.307 385.047 69.154 2 1 0 -1
3 1,708 1702.394 5.61 5.606 390.653 1.869 3 1 0 -1
4 1,782 1714.469 67.53 67.531 458.184 16.883 4 1 0 -1
5 1,623 1567.65 55.35 55.35 513.534 11.070 5 1 0 -1
-
6 980 1416.563 436.563 950.097 72.761 -6 1 0 -1
436.56
7 1,322 1420.102 -98.10 98.102 1048.199 14.015 -7 1 0 -1
8 1,567 1582.535 -15.54 15.535 1063.734 1.942 -8 1 0 -1
-
9 1,434 1749.236 315.236 1378.97 35.026 -9 1 0 -1
315.24
-
10 1,609 1761.311 152.311 1531.281 15.231 -10 1 0 -1
152.31
11 1,648 1614.492 33.51 33.508 1564.789 3.046 11 1 0 -1
12 1,540 1463.405 76.60 76.595 1641.384 6.383 12 1 0 -1
13 1,784 1466.944 317.06 317.056 1958.44 24.389 13 1 0 -1
14 1,688 1629.377 58.62 58.623 2017.063 4.187 14 1 0 -1
15 1,766 1796.078 -30.08 30.078 2047.141 2.005 -15 1 0 -1
16 1,876 1808.153 67.85 67.847 2114.988 4.240 16 1 0 -1
17 1,906 1661.334 244.67 244.666 2359.654 14.392 17 1 0 -1
-
18 1,136 1510.247 374.247 2733.901 20.792 -18 1 0 -1
374.25
19 1,560 1513.786 46.21 46.214 2780.115 2.432 19 1 0 -1
20 1,715 1676.219 38.78 38.781 2818.896 1.939 20 1 0 -1
84
Linear Cyclic Tracking Signal (trigg)
300
250
200
150
100
50
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-50
Figure 4.16 it showed that the graph is out of control. It's extremely out of the UCL
and LCL So, it slightly passes the tracking signal test. But there is another method
to check the tracking signal its tracking signal-brown method. Control limited of
tracking signal-Brown is ±4 to ±6. In this report use ±4 as an upper limit and lower
limit.
∑𝑛𝑡−1 |𝑑𝑡 − 𝑑𝑡 ′ |
𝑀𝐴𝐷 = 𝑀𝐴𝐸 =
𝑛
𝑅𝑆𝐹𝐸 ∑𝑛 ′
𝑡−1(𝑑𝑡−𝑑𝑡 )
𝑡𝑟𝑎𝑐𝑘𝑖𝑛𝑔 𝑠𝑖𝑔𝑛𝑎𝑙 = =
𝑀𝐴𝐷 𝑀𝐴𝐷
85
Table 4. 45 Tracking Signal Calculation-Brown
Cum Track
Perio Dt - RSFE |dt-
dt dt’ |dt- MAD -ing UCL CL LCL
d dt’ Cum. dt’|
dt’| Signal
1373. 246.7 246.7 246.7 246.7 246.7
1 1,708 1.00 4 0 -4
26 4 4 4 40 4
1535. 138.3 385.0 138.3 385.0 192.5
2 1,782 2.00 4 0 -4
693 1 5 07 47 24
1702. 390.6 390.6 130.2
3 1,623 5.61 5.606 3.00 4 0 -4
394 5 53 18
1714. 458.1 67.53 458.1 114.5
4 980 67.53 4.00 4 0 -4
469 8 1 84 46
1567. 513.5 513.5 102.7
5 1,322 55.35 55.35 5.00 4 0 -4
65 3 34 07
-
1416. 436.5 950.0 158.3
6 1,567 436.5 76.97 0.49 4 0 -4
563 63 97 50
6
1420. 98.10 1048. 149.7
7 1,434 -98.10 -21.13 -0.14 4 0 -4
102 2 199 43
1582. 15.53 1063. 132.9
8 1,609 -15.54 -36.67 -0.28 4 0 -4
535 5 734 67
- -
1749. 315.2 1378. 153.2
9 1,648 315.2 351.9 -2.30 4 0 -4
236 36 970 19
4 0
- -
1761. 152.3 1531. 153.1
10 1,540 152.3 504.2 -3.29 4 0 -4
311 11 281 28
1 1
-
1614. 33.50 1564. 142.2
11 1,784 33.51 470.7 -3.31 4 0 -4
492 8 789 54
1
-
1463. 76.59 1641. 136.7
12 1,688 76.60 394.1 -2.88 4 0 -4
405 5 384 82
1
1466. 317.0 317.0 1958. 150.6
13 1,766 -77.05 -0.51 4 0 -4
944 6 56 440 49
1629. 58.62 2017. 144.0
14 1,876 58.62 -18.43 -0.13 4 0 -4
377 3 063 76
1796. 30.07 2047. 136.4
15 1,906 -30.08 -48.51 -0.36 4 0 -4
078 8 141 76
1808. 67.84 2114. 132.1
16 1,136 67.85 19.34 0.15 4 0 -4
153 7 988 87
1661. 244.6 264.0 244.6 2359. 138.8
17 1,560 1.90 4 0 -4
334 7 0 66 654 03
- -
1510. 374.2 2733. 151.8
18 1,715 374.2 110.2 -0.73 4 0 -4
247 47 901 83
5 4
86
Linear Cyclic Tracking Signal-Brown
6.00
4.00
2.00
0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-2.00
-4.00
-6.00
Figure 4.17 it showed that the graph is in control. So, it slightly passes the tracking
signal test.
From two method can conclude that all of the methods it slightly passes the tracking
signal test. It means there is no method draw the point in the center area.
10.00
Lowest 140.945 36535.526 %
15,74
204,09 101.984,23
Highest %
87
By comparing the error measurement (MAD, MSE, MAPE) between the
forecasting methods, the lowest error is the cyclic method and linear cyclic method.
After pass the error test, there are validation tests. But in validation test cyclic
method and linear cyclic method is not passed the validation test. To check the best
method, there are IIDN testing to check the forecasting methods. There are two
kinds of IIDN tests, such as the normality test and autocorrelation test.
Assumed that α = 0.05, so if the p-value is smaller than 0.05, so reject Ho and the
data is not normal. If larger than 0.05, so accept Ho, and the data is normal.
Figure 4.18 it is shown the probability plot of the DMA method. The p-value is
larger than 0.05, so do not reject Ho. It means that the data is normal.
88
4.3.1.2 IIDN test for DES-Brown Method
Figure 4.19 it is shown the probability plot of the DES-Brown method. The p-value
is larger than 0.05, so do not reject Ho. It means that the data is normal.
Figure 4.20 it is shown the probability plot of the DES-Holt method. The p-value is
larger than 0.05, so do not reject Ho. It means that the data is normal.
89
4.3.1.4 IIDN test for Regression Analysis-Cyclic Method
From figure 4.21, it is shown the probability plot of cyclic method. The p-value is
less than 0.05, so reject Ho. It means that the data is not normal.
Figure 4.22 it is shown the probability plot of the linear cyclic method. The p-value
is larger than 0.05, so do not reject Ho. It means that the data is normal.
90
4.3.2 Autocorrelation Test
The purpose of the autocorrelation test is to check whether they are the correlation
between data or not (independent). If it is autocorrelation, the data will have the
same sign for some periods. But if it is not autocorrelation, there will be a fast
change in the signs of consecutive residuals.
1.0
0.8
0.6
0.4
Autocorrelation
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1.0
1 2 3 4 5
Lag
Figure 4., it showed that the data not independent (correlated with each other). It
can be seen by the blue lines through the red line.
0.8
0.6
0.4
Autocorrelation
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1.0
1 2 3 4 5 6 7
Lag
91
Figure 4.20. Autocorrelation Function for Linear Cyclic
Figure 4.21, showed that the data not independent (correlated with each other). It
can be seen by the blue lines through the red line.
92
4.3.3 Comparison IIDN Test For All Methods
Table 4.48 Comparison MAD, MSE, MAPE, Validation Test, and IIDN Test
Tracking Signal IIDN Test
No Method MAD MSE MAPE Verification
Trigg Brown Normality independent
1 Double Moving Average 170.147 80525.335 12.68% Not Passed Not Passed Not Passed Not Passed Not Passed
2 Double Exponential Smoothing-Brown 182.53 73344.89 13.70% Not Passed Not Passed Passed Not Passed Not Passed
3 Double Exponential Smoothing-Holt 204,09 101.984,23 15,74% Not Passed Not Passed Not Passed Passed Not Passed
4 Regression Analysis-Cyclic Method 164.06 49204.15 11.69% Not Passed Not Passed Not Passed Not Passed Not Passed
Regression Analysis-Linear Cyclic
5 140.945 36535.526 10.00% Not Passed Not Passed Not Passed Passed Not Passed
Method
Lowest 140.945 36535.526 10.00%
Highest 204,09 101.984,23 15,74%
Based on the calculation of error (MAD, MSE, MAPE), validation test, and IIDN test, the best method is the linear cyclic method.
Because this method has lowest error and passes IIDN test although not pass the independent test but passes the normality test. So after
deciding the best method, the forecast demand for six months ahead can see in table 4.48
93
4.4 Demand Forecast for Six Months Ahead
94
95
CHAPTER V
CONCLUSION
The demand for car toy products over the last 20 months showed seasonal patterns.
It could be seen from the scatterplot between the data. There is high and low demand
that occurred in several months. In this report choose the most appropriate method
to calculate the forecasting demand such as DMA, DES Browns, DES Holt, Cyclic,
and Cyclic Linear. To determine which methods are the best, checking error (MAD,
MSE, MAPE), validation test, and IIDN are conducted. From the comparison of
error measurement, there are two smallest errors is Cyclic and Cyclic Linear and
after that the method should prove it using IIDN test. The results show that
From the analysis,it could be concluded that linear cyclic method as the best method
based on calculation. This method has smallest error, slightly passes the validation
test, and passes the IIDN test, normally distributed (p-value > 0.05) but not
independent. It is recommended used for predicting the forecast demand.
96
REFERENCES
Daniel Sipper and Robert L. Bulfin, J. (1997). Production Planning, Control, and
Integration. McGraw-Hill.
http://www.asprova.jp/mrp/glossary/en/cat256/post-774.html
97
98
99