- Open Access
- Total Downloads : 323
- Authors : M. D. H. Gamal, Sigit Sugiarto, Arif Sanjaya
- Paper ID : IJERTV4IS090178
- Volume & Issue : Volume 04, Issue 09 (September 2015)
- Published (First Online): 11-09-2015
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Forecasting of Rice Stock using Winter’s Exponential Smoothing and Autoregressive Moving Average Models
Sigit Sugiarto
Department of Mathematics University of Riau Pekanbaru 28293, Indonesia
Arif Sanjaya
Department of Mathematics University of Riau
Pekanbaru 28293, Indonesia
M. D. H. Gamal
Department of Mathematics University of Riau Pekanbaru 28293, Indonesia
AbstractThis article discusses numerical computations of the Winters exponential smoothing and autoregressive moving average models. Both of these models are used to predict the availability of rice stock at Indonesian National Logistics Agency or BULOG in City of Pekanbaru, Capital of Riau Province, Indonesia by considering the seasonal factors.
KeywordsTime series, Winters exponential smoothing, autoregressive moving average, mean square error
-
INTRODUCTION
Forecasting is very important in many types of organizations since predictions of future events must be incorporated into the decision-making process, such as total demand for products must be forecasted in order to plan total promotional effort, produce increasing numbers of defective items as the process operates over time or determine whether investment in new plants and equipment will be needed in future or plan production schedules and inventory maintenance [1, p. 2-3]. Making the right decisions in the future need to be supported by the existence of a good appropriate forecasting model.
Forecasting model has been widely examined by several researchers before, as done by Sahu and Kumar [5]. They examine a forecasting method for sales of milk product in Chattisgarh using single moving average method, double moving average method, single exponential smoothing method, semi average method and Naive method with weekly demand of data sets. They use four different measures of the accuracy of forecasting methods, that are mean square error, mean forecast error, mean absolute error, and root mean square error. Doganis et al. [4] apply radial basis function neural network architecture and a specially designed genetic algorithm methods for sales data of fresh milk. Osabouhien [3] examines and compares six basic time series forecasting models and aids of five different standard forecasting accuracy measures for forecasting the inflation data in
Nigeria. Loganathan and Ibrahim [2] examine autoregressive moving average (ARMA) method using integration ways of seasonal factor model to predict tourism demand in Malaysia.
Application of forecasting models is also used for the availability of food stock especially basic food such as rice. Stock of rice is very important in maintaining the stability of the food in those countries where the majority of the population consumes rice, such as Indonesia. Majority of Indonesian people consume rice and make it as the main basic foodstuffs.
Indonesian National Logistics Agency or BULOG is an Indonesian government institution in charge of maintaining the stability of the price and the availability of basic food in Indonesia especially rice. In carrying out the current status, this body is assisted by several Regional Divisions, one of them is Regional Division of Riau and Riau Island Provinces. Monthly distribution of BULOG rice in Regional Division of Riau and Riau Island Provinces is influenced by the availability of a relatively early stock that depends on the amount of the rice needed by the people; the city of Pekanbaru residents are such a case.
According to the results of the census town of Pekanbaru in the year 2010 conducted by the Central Bureau of Statistics, the projected number of the population of city of Pekanbaru in 2015 is estimated around 1,093,416 people. Certainly the need of rice for the city of Pekanbaru must be directly proportional to the number of residents of Pekanbaru where its population continues to increase each year. Therefore, the agency requires the conditions for safe rice stock in the distribution of rice in the beginning of each month. Conditions of rice stocks should be supported by the right mathematical model that can predict the availability of rice stocks in the future.
There are several mathematical models that can be used to predict the availability of rice stocks in BULOG Pekanbaru. However, in this study, a mathematical model used and considered to be able to predict the magnitude of the availability of BULOG rice stocks are Winter's exponential smoothing and Autoregressive Moving Average models. Both of these models are well used to address the availability of data patterns that follow the trend of rice stocks and are influenced by seasonal factors. In their application, both models are compared to see which one is better by considering the value of their minimum mean square errors.
-
FORECASTING OF TIME SERIES MODEL
The time series is the set of sorted data in units of observation time [1, p. 18]. Models used in analyzing the patterns of relationships between variables that will be forecasted by the data are called time series models. In time series model, the right type of data pattern where the model can be tested is important step in choosing a right model. The data patterns can be differentiated into four types, namely the horizontal data patterns, trend data patterns, seasonal data patterns, and cyclical data patterns. After the pattern is identified, then the factors that affect the time series data patterns are analyzed.
If the data pattern of time series is influenced by the trend and seasonal factors and unstable (not stationary), then it is good to use Autoregressive Moving Average or ARMA model in forecasting. The ARMA model is a mix between autoregressive (AR) model and the model of the
Prediction
Model
ACF
PACF
MA(q)
Cuts off after lag-q
Dies down
exponentially or sinus at lag-q
MA(Q)s
Cuts off after lag-QS
Dies down exponentially or sinus at lag-kS with
k=1,2,…
AR(p)
Dies down exponentially or
sinus at lag-p
Cuts off after lag-p
AR(P)s
Dies down exponentially or sinus at lag-kS with
k=1,2,…
Cuts off after lag-PS
ARMA(p,q)
Dies down exponentially or
sinus at lag-q
Dies down exponentially or
sinus at lag-p
ARMA(P,Q)s
Cuts off after lag-QS
Cuts off after lag-PS
moving average (MA). The ARMA model form as follows [1, p. 72]:
stationary data series, then the ARMA p, q model can be written as follows [1, p. 72]:
P
p
t
t
q Q
Bs (B)(1 B)d (1 Bs )D X (B) (Bs )a where 1 Bd and (1 Bs )D follow the differencing process in equation (2) and (3). This model is called
ARIMA p, d, q P, D, Qs model or ARMA p, q model with seasonal factor and differencing process.
The steps in determinating the model ARMA p, q with
the process of differencing [1, p. 265-266] are the following:
-
Model Identification
This is a step of predicting an appropriate model of forecasting. The prediction of the model is done to the degrees of AR(p) and MA(q). In determination of the order
of non-stationary ARMA p, q model either seasonal or
non-seasonal data at any given time series, can be done by identifying plotof the autocorrelation function (ACF) and the partial autocorrelation function (PACF) from stationary data. The ACF and PACF data can be obtained using the statistical software R. Then according to Montgomery [1,
p. 256] and Suhartono [7, p. 217], the ACF and PACF theoretical patterns of seasonal and non-seasonal stationary can be seen from Table I.
TABLE I. The pattern of ACF and PACF of seasonal and non- seasonal ARMA model
(4)
1 1 B p B X 1 B B a
p q
t
t
1 q
(1)
where 11B p B is the coefficient of AR(p)
p
model and 11B q B is the coefficient of
q
MA(q) model. This model is commonly known as the model of the ARMA p, q where p and q are the order of
the autoregressive and the moving average model
respectively. The ARMA p, q model in equation (1)
requires a process of stabilization of time series data used in its application. This can be done by the process of transformation through stationary and differencing. When data are not stationary with respect to the mean, then the differencing process can be done using the following equation [8, h. 71]:
X ' 1 Bd X
(2)
-
Parameter Assessment
This step is to determine the parameters for the selected model. The evaluation of these parameters is carried out by minimizing the mean square error values.
t t
or C. Diagnoses Checking
t
t
X '' (1 Bs )D X
where d and D are the differencing order of non-seasonal and seasonal data pattern respectively. If the variance that causes the data stationary is disturbed, then the data can be
transformed in the form of lnX t . When the data is
(3)
This step is the process of checking the properness of the selected model. The model is said to be proper if the model has a good signicance and the model residual follows the normal distribution. The residual can be defined as the difference between the data and the forecasting values. Normality test for the model error is carried out using Box- Pierce statistical test with the following hypothesis:
H 0 : Residual having normal Gaussian models,
H1 : Residual model is not a normal Gaussian.
Then after the model is declared eligible for the use of the process of checking the diagnoses, then the next is to do the process of forecasting.
If the forcasting conducted does not consider the stationary of the data for the data influenced by trend and seasonal factors, the Winter's exponential smoothing model is good for forecasting. This model is a model of exponential smoothing that uses three smoothing constants: constants for the overall, trend and seasonal. The Winter's exponential smoothing model uses two Winter Seasonal approaches [6, p. 15-21], namely:
-
Multiplicative Seasonal Model
This model is applied for seasonal data from data variance of time series that has increased or decreased.
T 1 X c1 X1 X c2 X 2 X ck X k
c c c c c
where c is the length of the seasonal data. The seasonal smoothing can use the initial values as follows:
-
Winter Multiplicative Seasonal
L
k
S X k c
-
Winter Additive Seasonal
Sk X k Lc
where k = 1, 2, 3,, c. Furthermore the values of parameters , , and can be determined through a linear programming method for the purpose of minimizing mean square error. They are obtained with the help of solver in
The value of the forecast ( f
t ,k
) for the period (t+k)
Microsoft Excel.
After a few forecasting models are obtained, then the
reviewed at the end of the period t of this model is next is to do a comparison to choose the best model. The
ft ,k
(Lt kTt )St k c
(5)
comparison is done by looking at the results of the
The smoothing values used are as follows:
-
Base Smoothing
measurement of the degree of fault of the model. In this study, MSE is used to measure the error of the model, where the errors are expected to be very small and can
Lt
X t
St c
(1 )(Lt 1
Tt 1 )
(6)
represent the data.
-
-
-
-
FORECASTING OF RICE STOCKS
-
Trend Smoothing
Tt (Lt Lt 1 ) (1 )Tt 1
-
Seasonal Smoothing
X
(7)
The first thing done in the method of forecasting is to analyze the pattern of the data. The data analyzed are the rice stocks at BULOG in Pekanbaru from January 2007 until December 2014. In this case it is not possible to use
t
S t (1 )S
Lt
t c
(8)
data from 1967 when the Agency was established, because the data is not available completely and not arranged
where 0 , , 1, S
t c
are the estimation values of
neatly. Then to make it easier to analyze the pattern of the data, they can be plotted as presenting in Figure 1.
seasonal factors, c is the length of the seasonal, and k
= 1, 2, …, c.
-
Additive Seasonal Models
For seasonal data with constant variance from data of time series, Winters smoothing model with seasonal or additive seasonal model can be used. At the end of the period t, the value of forecast ( ft ,k ) for the period (t+k) is obtained from the equation:
ft ,k
Lt kTt St k c
(9)
The smoothing value used are as follows:
-
Base Smoothing
Lt (X t St c ) (1 )(Lt 1 Tt 1 )
(10)
-
Trend Smoothing
Tt (Lt Lt 1 ) (1 )Tt 1
(11)
Fig. 1. Plot Data of Rice Stocks at BULOG of Pekanbaru
-
Seasonal Smoothing
-
St (X t Lt ) (1 )S
t c
(12)
The data plot in Figure 1 indicates that the data is experiencing considerable uctuation in between 500 to
The initial values are required in implementing a
forecasting method. The initial values used in Winters smoothing model are the following:
7,000 tons of rice. In addition, there was a large increase in the month of December 2007, October 2009-October 2011 and June 2013. The biggest stock decline occurred in June
L 1 ( X
c c 1
-
X 2
X c )
2007, December 2008, January to October 2013 and 2014. Then if it is done the analysis of the data of the trend pattern, then the trend of rice stocks at BULOG of
Pekanbaru shows that the availability of the rice stocks continue to decline gradually, in fact it can be considered fixed for each year.
In addition, the seasonal recurrence pattern also occurs in a few months and causes the data variance experiencing uctuation. This indicates that the data pattern is influenced by the trend and seasonal factors. Therefore, it needs to be done the stationery data process (transformation and differencing) for the use of ARMA(p,q).
Then after the stationery process is done, identication of the model from stationary data is carried out using the ACF and PACF plot data. The ACF in Figure 2 from the data already stationary indicates that ACF does not signicant on non-seasonal lags or cuts on lag-1, 2, 18 and PACF cut on lag-1, 2, 3, 4, 5, 18. It also occurs in seasonal lags that tend to be cut on lag-1,-2 and lag-12.
TABLE II. Estimation Parameters of the ARMA(p,q) Models
Models
AR(1)
AR(2)
SAR(1)
SAR(2)
MA(1)
SMA(1)
p-value
NR1
1,17
-0,44
–
1,03
0,03
–
0,23
–
0,67
0,76
NR2
1,15
-0,42>
–
1,00
–
–
0,24
–
0,66
0,72
NR3
1,18
-0,42
–
1,99
0,99
–
0,22
0,67
0,99
So it can be said that the selected three models are worth for use in the forecasting process. As for the comparison of the results of the forecast model with ARIMA (2, 1, 2) (1, 1, 1) 12 NR 1, and so on can be seen in Table III.
Further forecasting is done by neglecting the stationary data model or by using stationery smoothing Winter. Due to the seasonal experience of fluctuation variance data, then a multiplicative seasonal Winter model can be used. By taking the initial values for the Lt 1 = 2131,696612, Tt 1 =
-8,579, and St
values obtained using estimated data in
2007 and 2008, it is obtained the forecasting values in Table III with a values of MSE = 88,36608423, = 0,9985, = 0, and = 0,7157.
Months
NR1
NR2
NR3
Winter
Multiplicative
January
2903,463
2885,508
2820,554
2383,02
February
3242,097
3213,174
3083,831
2266,48
March
2950,789
2922,527
2730,715
1392,98
April
2552,938
2537,522
2286,352
495,51
Mei
2553,830
2547,355
2208,217
728,28
June
2616.708
2630.208
2220.669
301,36
July
2248.334
2266.871
1804.382
565,04
August
2550,300
2569,260
2045,091
879,40
September
2719,739
2731,625
2156,044
1606,64
October
3086,776
3090,266
2465,697
2070,60
November
2717,398
2715,909
2095,726
2077,10
December
1673,699
1664,787
1068,366
2210,99
MSE of the Models
749041
750593
786941
88,36608423
TABLE III. BULOG Rice Stocks Forecast of Pekanbaru in 2015 (tones)
Fig. 2. Plot of ACF and PACF Data
By using the hint pattern of ACF and PACF on Table I, allegedly there are 3 pieces of the model that has the smallest error, namely ARIMA(2,1,2)(1,1,1)12, ARIMA(2,1,1)(1,1,1)12, ARIMA(2,2,2)(1,1,1)12. Then
suppose that the ARIMA(2,1,2)(1,1,1)12 the forecast value 1 (NR1) and so on. Then carried out estimation of parameter values to the model. Estimation of the value of this parameter is obtained with the help of statistical software
R. The Results estimation of the values of the model parameters are represented in Table II. By using the value of = 0.05 (degree of freedom), based on the p-value in the
At the end of the period t, the Winters forecasting values can be used for equation (5) as following:
Table II, it appears that the model meets the average
ft ,k
(Lt kTt )St k c
residual assumption model.
where values of smoothing for the base level, trend and seasonal can be upgraded by using the equations (6), (7) and (8) for the values of , , and obtained, namely:
and
Lt 0,9984912
X t
St c
0,0015088Lt 1
X
Tt 1
ACKNOWLEDGMENT
We thank Indonesian National Logistics Agency (BULOG) for providing the authors with the data of rice stock at city of Pekanbaru.
t
S 0,7157 t 0,2843S
Lt
t c
REFERENCES
Furthermore the value of the trend smoothing in the period (t+k) can use the value of the trend smoothing at the end of the period t.
Fig. 3. Forecasting Plot of Winter Multiplicative Model
In the selection of the best model, the minimum of MSE value of the models become criteria. From Table III, Winter multiplicative model has smaller MSE value than ARMA(p,q) models. So the multiplicative model of Winter can be said better than model ARMA(p,q) in representing the data availability of rice stocks at BULOG of Pekanbaru in 2015 at the beginning of each month.
-
-
CONCLUSION
Winter exponential smoothing model is a good method to predict data through the constant smoothing. The constants smoothing serve to overcome the factors that affect data such as base level, trend and seasonal. Unlike the case of ARMA(p,q) model, stationery data play an important role in this forecasting model, that serves to overcome the trend and seasonal. In application, the forecasting model of ARIMA(2,1,2) (1,1,1)12, ARIMA(2,1,1) (1,1,1)12, ARIMA(2,2,2) (1,1,1)12 and Winter multiplicative with = 0,9985, =0 and = 0,7157 are the good models to use. But from the forecasting, the Winter multiplicative model has smaller value of MSE than the other models. So it can be said that the Winter's exponential smoothing with multiplicative seasonal model is a good model to use as a model for forecasting the availability stock rice at BULOG of Pekanbaru in the beginning of each month in 2015.
-
D. C. Montgomery, C. L. Jenning and M. Kulahci, Introduction to Time Series Analysis and Forecasting, Wiley-Interscience: New Jersey, 2008.
-
N. Loganathan and Y. Ibrahim, Forecasting International Tourism Demand in Malaysia Using Box-Jenkins SARIMA Application, South Asian Journal of Tourism and Heritage, 2010, Vol. 3, pp. 50-60.
-
Osabuohien-Irabor Osarumwense, Time Series Forecasting Models: A Comparative Study of Some Models with Application to Inflation Data, Open Science Journal of Statistics and Application, 2014, Vol. 2, pp. 24- 29.
-
P. Doganis, A. Alexandridis, P. Patrinos and H. Sarimveis, Time Series Sales Forecasting for Short Shelf-life Food Products Based on Artificial Neural Networks and Evolutionary Computing, Journal of Food Engineering, 2006, Vol. 75, pp. 196-204.
-
P. K. Sahu and R. Kumar, Demand Forecasting for Sales of Milk Product (Paneer) in Chhattisgarh, International Journal of Inventive Engineering and Sciences, 2013, Vol. 1, pp. 10-13.
-
R. J. Hyndman, A. B. Koehler, J. K. Ord, and R. D. Snyder, Forecasting with Exponential Smoothing-The State Space Approach, Springer: Verlag Berlin Heidelberg, 2008.
-
Suhartono, Analyze Statistical Data with R, Computation Laboratory of ITS: Surabaya, 2008.
-
W. S. Wei, Time Series Analysis Univariate and Multivariate Methods, 2nd ed, Temple University Pearson: Philadelphia, 2005.