Comparative Analysis Between Different Forecasting Methods: Course: Managing Operations and Supply Chain (P501)
Comparative Analysis Between Different Forecasting Methods: Course: Managing Operations and Supply Chain (P501)
Comparative Analysis Between Different Forecasting Methods: Course: Managing Operations and Supply Chain (P501)
Prepared for
Dr. Abdullahil Azeem
Professor
Department of Industrial and Production Engineering
Bangladesh University of Engineering and Technology
Prepared by
Group 06
33- Ahmed Abdullah Albab
35- Md.Reazul Mumin
27(58D)- Towkir Ahmad
Sir,
We, group 06, are glad to present to you our assignment titled “Comparative analysis between
different forecasting methods” as part of the Managing Operations and Supply Chain (P501)
course requirement. The main purpose of this assignment was to prepare a comparative analysis
of actual data and forecasted data as well as making comparison among the forecasting methods.
In the development of this paper, we have tried our level best to follow the guidelines you provided
us with and to comply with your lofty standards. We sincerely hope that this paper meets your
expectations. Please note that this report has been prepared under your supervision. Under no
circumstances will this report be produced for any other MBA (IBA) course ever. No part of this
report will be shared or republished without your authorization.
Sincerely yours,
33- Ahmed Abdullah Albab
35- Md.Reazul Mumin
27(58D)- Towkir Ahmad
Table of Contents
Introduction:.................................................................................................................................................. 1
Objectives: .................................................................................................................................................... 1
Methodology: ................................................................................................................................................ 1
Important Terms: .......................................................................................................................................... 1
The forecasting process: ............................................................................................................................... 2
Holt Method (Double Exponential method) ................................................................................................. 2
Holt- Winter Method: ................................................................................................................................... 3
Multiplicative Decomposition: ..................................................................................................................... 4
Comparison: .................................................................................................................................................. 7
Conclusion: ................................................................................................................................................... 8
Introduction:
People, societies, products and processes generate lot of data. Data science and business analytics
have evolved as more and more data becomes available at higher resolution and at higher
frequency. Quantitative forecasting is the science of using time series data for generating forecasts.
In other words, extrapolating a series of measurements into the future. Forecasting plays and
essential role in decision making in almost any environment we can imagine where data are
collected over time. For example: forecasting the daily or monthly sales or total no. of customers
in a restaurant or other service provider can help with recruitment, purchase and other
administrative and inventory management decisions as well as cash flow planning and space
design process and choice with technology to use. In a developing country life Bangladesh,
forecasting is very important. One example can be estimating the future demands of transportation
system, compare them with present capacity and finally make decision what can be done to meet
future demands. In today’s Internet of things (IoT), automated sensor data can help forecast usage
of offices, restrooms and other facilities. Such forecasts can help with staffing, replenishment and
other service operations. It can also support environmentally minded decision making and design.
Objectives:
• Forecast of sales information for final six months of our selected timeframe and compare
the forecasted data with actual data using three different techniques.
• Compare among the techniques used to forecast.
Methodology:
In this report, we have used the monthly sales data of a manufacturing company for the past 24
months (December, 2018 - November, 2020) which is a secondary dataset. The forecasting
techniques we have used are:
• Holt’s Method (Double exponential smoothing)
• Holt- Winter’s Method
• Multiplicative Decomposition
Important Terms:
Time Series forecasting: Time Series forecasting refers to generating a future value for the series
of interest.
Forecast Error: The difference between the actual value and forecasted value calculated for the
same time frame
Descriptive goal: Time series analysis describe the patterns in historical data.
Predictive goal: Time series forecasting predict future values of the series.
Page | 1
The forecasting process:
Forecasting is not a function in a software or a button to run but includes an entire
set of steps which are often not maintain same steps from start to end. It starts
with defining the goal, getting the data, then exploring and visualizing it. Finally
apply different forecasting methods, compare them and chose one. Often it can
be the case where we don’t have the right kind of data to solve the problem and
in that case we may need to go back and collect new data. Sometimes when
comparing among models no model seems to give satisfactory result and so we
have to try new models.
We’re going to take an estimated level and combine it with our estimated trend at the most recent
time point. This is our most recent level estimate. And our most recent trend, and k is how many
steps into the future.
We're trying to forecast we're going to have two updating equations, one for the level and one for
the trend, because we're learning both of them from the data. The updating equation for level is
similar to what we had in simple exponential smoothing, we're going to take the most recent data
point and use it to update our previous estimate of the level at time t minus one. The only difference
is that here we also add the trend and take it into account. What this equation is showing us is that
we're basically adjusting the previous level by adding a trend.
𝐿𝑡 = α𝑌𝑡 + (1 − α)(𝐿𝑡−1 + 𝑇𝑡−1 )
𝑤ℎ𝑒𝑟𝑒 𝐿𝑡−1 𝑖𝑠 𝑡ℎ𝑒 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝑙𝑒𝑣𝑒𝑙 𝑎𝑛𝑑 𝑇𝑡−1 𝑖𝑠 𝑡ℎ𝑒 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝑡𝑟𝑒𝑛𝑑
Page | 2
The second equation is going to update our estimate of the trend. So we're going to take the trend
in the previous time period and update it by looking at the difference between the most recent level
estimates. We're updating the previous trend by using the difference between the most recent level
values.
This setup allows the trend to vary and change in shape over time. The smoothing constant β is
controlling this Speed of adjusting the trend. So if the trend changes very quickly during the series,
we might want to learn it faster.
To choose the smoothing constants, alpha and beta, we can use default values that most software
will have. Those are based on empirical experience, which range in between 0.1 to 0.2. The other
approach is to try and find α and β that minimize some error metric, such as MSE, RMSE, or
MAPE, or any other type of metric over the training set. If you do that, you have to be careful of
overfitting because if you use those optimized alpha and beta, you might not be able to generalize
very well into the future.
The assumption here is that our series contains level trend, seasonality with M seasons, and of
course noise. Therefore, our forecasting equation now combines estimates of our level of trend
and of the seasonal components.
In the Holt winters Exponential Smoothing, we have three smoothing constants, and therefore
three updating equations. In the level equation, there is one part that needs an explanation. S is a
seasonal component. So, when we divide Y by S, it means we are deseasonalizing the value of Y.
Page | 3
𝑌𝑡
𝐿𝑡 = α + (1 − α)(𝐿𝑡−1 + 𝑇𝑡−1 )
𝑆𝑡−𝑀
In the level equation, we're updating the previous level Lt-1 by adding the previous trend estimate
Tt-1, and then combining with a deseasonalized value of Yt.
𝑇𝑡 = β(𝐿𝑡 − 𝐿𝑡−1 ) + (1 − β)𝑇𝑡−1
In the seasonality updating equation, we see that Yt is divided by the level component Lt, this
gives the detrended value of Y. So the seasonality is updated by combining the most recent
seasonal component St-m with a D trended value of Yt.
𝑌𝑡
𝑆𝑡 = 𝛾 + (1 − 𝛾)𝑆𝑡−𝑀
𝐿𝑡
We have three smoothing constants when we're talking about Holt winters method, and these
control the speed of learning from the data and answer questions such as How fast do we update
the level half or How fast do we update the trend and the seasonal components.
Multiplicative Decomposition:
The multiplicative decomposition or time series decomposition is one of the commonly used as
well as important foretasting methods. Here seasonal indices will allow us to understand when
there are short- term fluctuations and cyclic factor will allow us to understand highlighting the
importance of seasonal indices and cycle factors. The process is narrated below:
Step 1: First, we need to remove the short term fluctuation by using centered moving average
(CMA) method. Now the formula will be different for monthly data:
If the number of periods is odd, the moving average is automatically centered, so no further
adjustment is necessary for even number of periods, to center the moving average, a two-period
moving average is calculated. The formula is:
𝑀𝐴𝑡 + 𝑀𝐴𝑡+1
𝐶𝑀𝐴𝑡 =
2
Page | 4
Step 2: Next we need to calculate the Seasonal Factor or Degree of seasonality. It is basically the
ratio of actual data (Yt) and Centered moving average (CMAt) The formula is:
𝑌𝑡
𝑆𝐹𝑡 =
𝐶𝑀𝐴𝑡
Step 3: Next we have to calculate Seasonal Indices (SI) from Seasonal Factors (SF). SI is the
simple average of all like seasons. Then we have to calculate normalized SI:
Once the SI is known, we can calculate deseasonalized data which is a ratio of actual data and
normalized SI.
𝑅𝑎𝑤 𝑑𝑎𝑡𝑎
𝐷𝑒𝑠𝑒𝑎𝑠𝑜𝑛𝑎𝑙𝑖𝑧𝑒𝑑 𝑑𝑎𝑡𝑎 =
𝑁𝑜𝑟𝑚𝑎𝑙𝑖𝑧𝑒𝑑 𝑆𝐼
Step 4: Once the seasonality is removed from the data. Unseasonalized forecast can be calculated
by estimating a simple linear equation:
𝑓(𝑇𝑖𝑚𝑒) = 𝑎 + 𝑏(𝑇𝑖𝑚𝑒)
Where ‘a’ is the intercept of unseasonalized data and ‘b’ is the slope of unseasonalized data.
Step 5: Finally we can calculate the Seasonalized forecast by multiplying the unseasonalized
forecast data with Seasonal indices (SI) and calculate error by comparing forecasted data with
actual data.
Page | 5
Comparison:
Page | 6
Comparison of MSE
1E+10
5E+09
0
Holt’s Method Holt- Winter’s Method Multiplicative
decomposition
Methods
Comparison of RMSE
150000
RMSE
100000
50000
0
Holt’s Method Holt- Winter’s Method Multiplicative
decomposition
Methods
200.00%
150.00%
Holt’s Method
100.00%
Holt- Winter’s Method
50.00%
Multiplicative decomposition
0.00%
Jun-20 Jul-20 Aug-20 Sep-20 Oct-20 Nov-20
Months
Page | 7
Conclusion:
The goal of forecasting is to identify the possible future scenarios and take necessary measures.
Although the main point is to be able to communicate generated forecast very clearly. It means the
actual and forecasted scenarios should be easily distinguishable. To convey the uncertainty, the
best approach is to use prediction intervals. Also it is very important to use more than one
techniques to forecast and provide necessary explanations so that the user can easily select the best
option. To monitor the performance of forecast, keeping track of errors by comparing the
forecasted data with the actual data can help to generate better forecast in future. It will also help
to identify any deteriorations and fix the model accordingly.
In our report, we have used Holt trend, Holt- Winter and multiplicative decomposition models to
forecast our monthly sales data. For our analysis is evident that multiplicative decomposition
model presents the highest error. On the other hand, Holt- winter method provides the minimum
error. This is because this model consider both trend and seasonality while Holt’s method considers
only trend.
Page | 8