Sei sulla pagina 1di 11

International Journal of Statistics and Mathematics

IJSM
Vol. 5(1), pp. 108-118, September, 2018. © www.premierpublishers.org. ISSN: 2375-0499

Research Article
Forecasting Temperatures in Bangladesh: An Application
of SARIMA Models
Md. Siraj Ud Doulah
Department of Statistics, Begum Rokeya University, Rangpur, Bangladesh.
E-mail: sdoulah_brur@yahoo.com
Climate change is presently among the significant topics of discussion and temperature is one of
its main components. In this study, it is to be observed that the minimum temperature is more
fluctuating compared to the maximum temperature. Several suggested SARIMA models were
established for maximum and minimum temperature series according to the methods of the Box
Jenkin’s methodology. The best model for maximum temperature is SARIMA (1, 0, 0) (1, 1, 0) 12
and for minimum temperature is SARIMA (2, 0, 1) (2, 1, 0)12 selected based on AIC. From the model
validation outcomes, the projected values are well-fitted through the original data with the lower
and upper limits holding bulks of the original data. The detected models are therefore suitable to
be used for projecting monthly maximum and minimum temperature in Bangladesh. The selected
SARIMA models give two-year predicted monthly maximum and minimum temperatures that can
help decision makers to establish priorities for preparing themselves against forthcoming
weather fluctuations. The forecasts also display that the minimum temperature of Bangladesh will
continue with the upward trend. This is a reflection of a fluctuating climate in the entire country.
Keywords: Temperature, SARIMA, Validation, Forecasting, Bangladesh

INTRODUCTION
The most influential factors in the climate are temperature temperature. Each plant species has an optimal
and moisture. According to a study by Oluwafemi et al. temperature limit for its different stages of growth and
(2010), climate change seems to be one of the most functions which are described in (Syeda, 2012). They also
important issues in the recent two decades and have an upper and lower lethal limits between which they
temperature has been identified as one of the key can properly grow. Temperature determines which species
elements that can indicate climate change. The gradual can survive in a particular region. Several farmers are
rise in the mean temperature of the Earth’s atmosphere however unaware of the changing climate and are also
and its oceans is referred to as Global warming. It is widely ignorant of the adverse impacts it will have on their
believed that the changing temperature due to global livelihoods. High temperatures causes prolonged
warming is permanently changing the entire Earth’s droughts, affects the amount of water in the soil, affects
climate. For a long time, the biggest debate in a number of rainfall patterns and reduces water catchment areas. The
local and international forums worldwide has been whether increased temperatures can also cause an outbreak of
global warming is real which is described in (Nigar and pests and diseases that affects plants, animals and
Mahedi, 2015). Some people think that global warming is humans. Farmers who are aware of the changing climate
not real. However, several climate scientists have carried are also helpless and unaware of what to do. They
out researches and have come to a conclusion that the continue with poor agricultural practices like burning of
globe is gradually warming. People perceive the impacts wastes and poor disposal of unused fertilizers that worsen
of global warming differently with some taking the the situation by releasing greenhouse gasses to the
necessary precautions to help reduce the rates of the atmosphere. Studying temperature changes is thus vital
rising temperatures. Increase in temperatures are likely to for the Bangladesh economy as Agriculture which is the
lead to a global increase in drought conditions, decreased country’s largest source revenue is directly affected by the
water supplies due to evapotranspiration and an increase rising temperatures. The Bangladesh government derives
in urban and agricultural demand. Vital sectors of the nearly 20% of its revenue from the agricultural sector. As
Bangladesh economy like Agriculture greatly rely on the largest employer in the economy, the agricultural
climate. Plants can grow only within certain limits of sector accounts for about 50% of the country’s

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Doulah 109

employment. In addition, more than 70% of Bangladesh Seasonal ARIMA (SARIMA) Model
population living in rural areas depends on agricultural
related activities for their daily livelihoods. Climatic studies Gurudeo and Mahbub (2010) alludes that most natural
on temperature are therefore vital for the survival of the factors like temperature have strong seasonal
agricultural sector as the key source of revenue to the Components. It is therefore necessary to use
government of Bangladesh. autoregressive and moving average polynomials that
identify with the seasonal lags. One such model is the
Temperature is one of the key elements of climate and it is SARIMA model. SARIMA model is an extension of ARIMA
important to various sectors of the economy like model and it is applied when the series contains both
Agriculture. Temperature affects water sources, pests that seasonal and non-seasonal behavior. SARIMA model is
attack plants, animals and human diseases. Despite the sometimes called the multiplicative seasonal
increasing climate changes, majority of Bangladeshi autoregressive integrated moving average and is denoted
citizens are still not well informed. Analyzing and by SARIMA (p,d,q)(P,D,Q)S. The Seasonal AR can be
forecasting of temperature changes will thus help various written as:
stakeholders and government to plan in advance in order
to counter climate related disasters. The objective of this  p ( B s ) yt   t
research is to build a time series model and use this model The Seasonal MA can be written as
to analyze and forecast the variation in maximum and
minimum temperature in Bangladesh in order to inform
yt   Q ( B s ) t
stakeholders who depend directly or indirectly on it to plan The seasonal differencing is expressed as
in advance. (1  B s ) yt  yt  yt  s
Combining the above equations, we get SARIMA
METHODOLOGY  p ( B) p ( B s )(1  B) d (1  B s ) D yt  0   q ( B)Q ( B s ) t
Average Maximum and Minimum Monthly temperature Where the constant equals
data covering Bangladesh has been collected from the 0  [(1  1    p )(1  1    p )]
Bangladesh Meteorological Department (BMD). This data
was recorded in monthly basis covering an 18 year period Where p represents non-seasonal AR order, d represents
from January 2000 to December 2017 (www.data.gov.bd). non seasonal differencing, q represents non seasonal MA
The temperatures are measured in degrees Celsius. The order, P represents seasonal AR order, D represents
temperature data is a continuous univariate time series as seasonal differencing, Q represents seasonal MA order, S
it contains a single variable (temperature) which is represents seasonal order (for monthly data S = 12 ) yt
measured at every instant of time. However, this data was represents time series data at period t, B is the backward
merged into monthly intervals transforming it to a discrete
univariate time series. shift operator ( B yt  yt  k ) and
k
 t is the random shock
(white noise error).
The Box-Jenkins Method
Stationarity Analysis
This study follows the Box-Jenkins methodology for
modeling. The following conceptual framework proposed One of the important types of data used in empirical
by Box et al. (1976) is considered in this study. analysis is time series data. The empirical work based on
time series data assumes that the underlying time series
is stationary. The time series analysis based on the
stationary time series data. In this section we briefly
discuss on stationary and non-stationary time series. A
stochastic process is said to be stationary if its mean and
variance are constant over time. Otherwise it will be non-
stationary. Why are stationary time series so important?
Because if a time series is non-stationary, we can study its
behavior only for the time period under consideration.
Each set of time series data will therefore be for a
particular episode. As a consequence, it is not possible to
generalize it to other time periods. Therefore, for the
purpose of forecasting, such (non-stationary) time series
may be of little practical value. How do we know that a
particular time series is stationary? There are several tests
of stationary. Here we used graphical and analytical
recognized test. Graphical test: if we depend on common
Figure 1. Box- Jenkins ARIMA Model sense, it would seem that the time series depicted in figure

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Int. J. Stat. Math. 110

is non-stationary, at least in the mean value. Here we ADF test equation:


applied most widely used popular formal test over the past p 1
several years are Autocorrelation function (ACF), Partial Yt  (  1)Yt 1   j Yt  j   0   t
Auto-correlation function (PACF), augmented dickey-fuller j 1
(ADF) test and Kwiatkowski, Phillips, Schmidt and Shin p 1
(KPSS) test.  Yt  Yt 1    j Yt  j   0   t
j 1
Autocorrelation and Partial Autocorrelation (ACF and Hypothesis
PACF) Functions H0 :  1
When using the SARIMA models, Model specification and H1 : || 1
selection is a crucial step of the analysis process. A proper
Reject H 0 if t 1  Critical Value
model for the series is identified by analyzing the ACF and
PACF. They reflect how the observations in a time series Or
are related to each other. It is useful that the ACF and H0 :   0
PACF are plotted against consecutive time lags for the
purposes of modeling and forecasting (Brockwell, 2002). H1 :   0
The order of the AR and MA are determined by these plots. Reject H 0 if t 0  Critical Value
For a time series, the auto-covariance function ACVF at
The ADF the test statistic has same asymptotic distribution
lag k is defined as:
as the DF statistic, so the same critical values can be used.
nk

n
ck  1 ( yt   )( yt k   ) Kwiatkowski–Phillips–Schmidt–Shin (KPSS) test
t 1
To be able to test whether we have a deterministic trend
If xt is a stationary process with mean μ, the vs stochastic trend, we are using KPSS (Kwiatkowski,
autocorrelation of order k is simply the relation between yt Phillips, Schmidt and Shin) Test (1992).
H 0 : Yt ~ I (0)  Level (or trend) stationary
and yt k . The ACF estimate for the sample at lag k is thus
defined as H 1 : Yt ~ I (1)  Difference stationary
E{( yt   )( yt k   )} STEP 1: Regress Yt on a constant and trend and
k 
E{( yt   )} construct the OLS residuals   (1 ,  2 , ,  T )
The PACF of a stationary process yt denoted hh is STEP 2: Obtain the partial sum of the residuals.
T
11  corr( yt 1 , yt )   (1) St    t
p t 1
rp 1   pj rp 1 j STEP 3: Obtain the test statistic
ˆp 1, p 1  j 1
p  2,3, St2
T
p
, KPSS  T 2 
1   pj r j t 1 ̂ 2
j 1
where ̂ is the estimate of the long-run variance of the
2

Where, ˆp 1, j ˆpj  ˆp 1, p 1ˆp , p  j 1 residuals.


The ACF and PACF plots are used to identify the terms of
the SARIMA model. STEP 4: Reject H 0 when KPSS is large, because that is
the evidence that the series wander from its mean. It is the
ADF & KPSS Tests most powerful unit root test but if there is a volatility shift it
cannot catch this type non-stationarity.
Stationarity can also be checked using Augmented Dickey
Fuller (ADF) & Kwiatkowski–Phillips–Schmidt–Shin Model selection criterion
(KPSS) tests. The literatures of these tests are described
in many textbooks (Corliss, 2009; Chris, 2004; Spyros, Even though the Autocorrelation and Partial
1998). Autocorrelation Functions help in determining the model’s
order, it only hints on where model building can begin from
Augmented Dickey-fuller (ADF) test (Aidoo, 2010). Several models can therefore be
considered from this case. However the final model is
Testing for a unit root is equivalent to testing   1 in the chosen using a penalty function statistics such as Akaike
following model Information Criterion (AIC). Burnham & Anderson (1998)

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Doulah 111

states that the motivation behind the selection criteria of


the model is to identify the best model that neither under-
fits nor over-fits the data.

Model Diagnostic

Here, each selected model is assessed to determine how


well it fits the temperature data. For a model that fits the
data well, Ljung-Box test based on ACF and PACF of the
residuals are used in determining the goodness of fit of the
selected model which is discussed in (Chris, 2004). The
Ljung-Box test is defined below-
H 0 : the model does not exhibit lack of fit
H1 : the model exhibit lack of fit
The test statistic is defined as:
rˆk2
m
Q  n ( n  2) 
k 1
nk
Where, r̂k is the estimated autocorrelation of the series at
Figure 2: Time plot of Maximum and Minimum
lag k, m is the number of lags being tested, n is the sample temperatures
statistic Q follows a  ( m ) . For a level of
2
size. The
significance α, the critical region for rejection of the From Figure 2, it is to be noted that there is no evidence of
systematic variation about the mean on the time series plot
hypothesis is Q   (12  ,m ) where m is the degrees of for maximum and minimum temperatures. For both
freedom. temperatures, it is clear that the series is non stationary.
However, both series exhibit seasonality which is evident
Forecasting from the strong yearly cycles.

Forecasting is important in decision making process Table 1: Summary statistics of maximum and minimum
(Brockwell et al. 2002; Box et al. 1976). The chosen model temperatures
should therefore produce accurate forecasts. The selected Temperature Minimum Maximum Standard
Range Mean Variance
model does not always necessarily provide the best (°C) Value Value Deviation
Maximum 11.9 23.02 34.92 30.7 2.7 7.3
forecasting therefore it is important to apply other tests
Minimum 15.8 11.09 26.86 21.4 4.8 23.2
such as MAE, MSE and MAPE to confirm the forecasting
accuracy of the model.
From Table 1, it is observed that the minimum temperature
Forecasting an ARMA process with mean  y , m-step- is more varying (standard deviation=4.8) compared to the
ahead forecasts can be defined as maximum temperature (standard deviation=2.7).

ynm   y   jn m j
j m
The precision of the forecast is assessed with a prediction
interval of the form
ynnm  C Pnnm
2

Where C is identified such that the desired degree of


2
confidence is achieved. Suppose it is Gaussian process,
then having C  2 will yields approximately 95%
2

prediction interval for y n  m .

Data Analysis

The statistical software R package has been used in this


analysis. The results and discussions of the temperatures
data set are shown in the following below: Figure 3: Decomposition of Maximum temperature

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Int. J. Stat. Math. 112

Minimum temperature
Figure 5: Autocorrelation and Partial Autocorrelation
function

From Figures 5, it is to be exhibited the plots of the ACFs


and the PACFs for the monthly maximum and minimum
temperature series. The plots show strong seasonal wave
patterns that decline moderately. The non-seasonal lags
Figure 4. Decomposition of Minimum temperature decay rapidly. This confirms the presence of seasonality
behavior and thus the time series is non-stationary.
Ordinarily, time series data exhibit trend, seasonal, cyclical Therefore, from the time series and autocorrelation plots,
and random components. From Figure 3 & Figure 4, it is it is obvious that both maximum and minimum temperature
evident that both maximum and minimum temperature series have seasonal variation. To make the series
series have seasonal, random and trend components. The stationary, seasonal differencing is required.
upward trend is clearly evident for the minimum
temperature series. Formal tests of Stationarity are performed next to confirm
the conclusions from visual inspection of seasonal and
Stationarity checking non-seasonal Stationary.

Why are stationary time series so important? Because if a Table 2: Augmented Dickey – Fuller (ADF) Test
time series is non-stationary, we can study its behavior Dickey- Lag Critical p-
Temperatures
only for the time period under consideration. Each set of Fuller order Value value
time series data will therefore be for a particular episode. Maximum -2.8429 12 0.05 .2229
As a consequence, it is not possible to generalize it to Minimum -2.4787 12 0.05 .3755
other time periods. Therefore, for the purpose of
forecasting, such (non-stationary) time series may be of According to the ADF tests results for both maximum and
little practical value. How do we know that a particular time minimum temperature series shown in Table 2, we do not
series is stationary? There are several tests of stationary. reject the null hypothesis and conclude that the two series
Here we used graphical and analytical recognized test. are not stationary. This is because the more negative the
Dickey –Fuller is, the stronger the rejection of the null
hypothesis which is not the case here.

Table 3: KPSS Test


KPSS Lag Critical p-
Temperatures
level parameter Value value
Maximum .0087 3 0.05 0.1
Minimum .0071 3 0.05 0.1

According to the Table 3 shows the test results of the


KPSS tests. It tests the null hypothesis that a series is
trend-stationary verses an alternative of non-stationarity. It
is important to note that any absence of a unit root in a
KPSS test is not enough proof of general stationarity but
Maximum temperature of trend Stationarity. From the results, for maximum

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Doulah 113

temperature series we do not reject the null hypothesis The best model is the one with the lowest value of AIC.
because the p-value of 0.1 ≥ 0.05 at 5% level of From Table 5, it is to be noted that the best model for
significance. Thus the maximum temperature is trend maximum temperature is SARIMA (1, 0, 0) (1, 1, 0)12 while
stationary. From the results, for minimum temperature for minimum temperature is SARIMA (2, 0, 1) (2, 1, 0) 12.
series we do not reject the null hypothesis because the p- The lowest value of AIC is 527.79 and the Ljung -Box test
value of 0.1 ≥ 0.05 at 5% level of significance. Thus the yielded a chi square of 7.0564 with a p value equal to
minimum temperature is trend stationary. 0.3157. From the Ljung -Box test, the p value of 0.3157 >
0.05 and this confirms that SARIMA (1, 0, 0) (1, 1, 0) 12 is
Model building for monthly temperature series adequate for forecasting of maximum temperature. The
lowest value of AIC is 505.45. and the Ljung -Box test yield
According to Shumway and Stoffer (2006), the process of a chi square of 3.349 with a p value of 0.7639. From the
model fitting involves data plotting, data transformation if Ljung -Box test, the p value of 0.7639 > 0.05 and this
necessary, Identification of dependence order, estimation confirms that SARIMA (2, 0, 1) (2, 1, 0)12 is adequate for
of parameter, diagnostic analysis and choosing forecasting of minimum temperature.
appropriate model. In this section, a univariate SARIMA
methodology is used to model maximum and minimum Parameter Estimation
monthly temperatures of Bangladesh.
Non-linear least-squares estimation or Maximum
Model Identification likelihood estimation methods are employed to estimate
ACF and PACF plots are used in the identification of the the coefficients of the models. A more complicated
values p, q, P and Q. For the non-seasonal part, spikes of iteration procedure is required when estimating the
the ACF at low lags are used to identify the value of q while parameters of SARMA models (Box et al. 1976; Chris
the value of p is identified by observing the spikes at low 2004).
lags of the PACF. For the seasonal part the value of Q is
observed from the ACF at lags that are multiples of S while Table 6: Select models Parameter Estimates Results
for P, the PACF is observed at lags that are multiples of S. Model SARIMA (1, 0, 0) (1, Model SARIMA (2, 0, 1) (2,
Looking at the ACF plots and PACF plots for maximum and 1, 0)12 for Maximum 1, 0)12 for Minimum
minimum differenced time series, the models are temperature temperature
suggested in the following Table 4. Parameter Estimate Std. Parameter Estimate Std.
error error
Table 4: Suggested Models AR(1) .3476 .0675 AR(1) -.6536 .0706
Maximum temperature Minimum temperature SAR(1) -.4498 .0633 AR(2) .2717 .0702
SARIMA (0, 0, 0) (0, 1, 0)12 SARIMA (2, 0, 2) (1, 1, 0)12 MA(1) 1.00 .0166
SARIMA (0, 0, 1) (0, 1, 0)12 SARIMA (0, 0, 0) (0, 1, 0)12 SAR(1) -.6165 .0689
SARIMA (1, 0, 0) (0, 1, 0)12 SARIMA (1, 0, 0) (1, 1, 0)12 SAR(2) -.3595 .0694
SARIMA (0, 0, 1) (1, 1, 0)12 SARIMA (2, 0, 1) (1, 1, 0)12
SARIMA (1, 0, 0) (1, 1, 0)12 SARIMA (2, 0, 1) (2, 1, 0)12 From Table 6 we observed that the models are estimated
Analyzing the aforementioned models for both Maximum well because of very low standard error of the estimated
& Minimum temperatures, the results of the estimated parameters.
models are shown in the following Table 5.
Diagnostic Analysis
Table 5: Suggested Models Estimation Results
Maximum temperature For a well fitted models, for maximum temperature is
Chi- SARIMA (1, 0, 0) (1, 1, 0)12 while for minimum temperature
Model P-value DF AIC
square is SARIMA (2, 0, 1) (2, 1, 0)12, the standardized residuals
SARIMA (0, 0, 0) (0, 1, 0)12 3.49e-07 40.582 6 592.35 estimated from the models should behave as an
SARIMA (0, 0, 1) (0, 1, 0)12 .03504 13.544 6 574.97 independently and identically distributed sequence with
SARIMA (1, 0, 0) (0, 1, 0)12 .174 8.993 6 569.15 zero mean and constant variance. Now the identification of
SARIMA (0, 0, 1) (1, 1, 0)12 .0963 10.754 6 532.07 normality is shown in the following figures-
SARIMA (1, 0, 0) (1, 1, 0)12 .3157 7.0564 6 527.79
Minimum temperature
Model P-value Chi- DF AIC
square
SARIMA (2, 0, 2) (1, 1, 0)12 .3899 6.3049 6 526.6
SARIMA (0, 0, 0) (0, 1, 0)12 .00153 21.412 6 557.52
SARIMA (1, 0, 0) (1, 1, 0)12 .3157 7.0564 6 527.79
SARIMA (2, 0, 1) (1, 1, 0)12 .3521 6.673 6 531.37
SARIMA (2, 0, 1) (2, 1, 0)12 .7639 3.349 6 505.45

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Int. J. Stat. Math. 114

SARIMA (1, 0, 0) (1, 1, 0)12 is adequate for modeling the


monthly maximum temperature series in Bangladesh.

Figure 6: Selected Model Residuals Q-Q Plot for


Maximum Temperature

A normal probability plot or a Q-Q plot can help in


identifying departures from normality. From figure 6, the
residuals are approximately normal distributed with zero
mean.
Figure 8: Selected Model Residuals Q-Q Plot for Minimum
Temperature

From Figure 8, we observed that the residuals are


approximately normal distributed with zero mean and
constant variance.

Figure 7: Selected Model Residuals Plots for Maximum


Temperature

From Figure 7, it is to be observed three different plots


such as standardized residuals; ACF of residuals and p- Figure 9: Selected Model Residuals Plots for Minimum
values for Ljung –Box statistic. Based on standardized Temperature
residuals plot, it looks like an independently and identically
distributed sequence of mean zero with a constant According to the Figure 9, it is to be observed three
variance. The plots of the ACF of the residuals lack enough different plots such as standardized residuals; ACF of
evidence of significant spikes which clearly shows that the residuals and p-values for Ljung –Box statistic. Based on
residuals are white noise. The results also showed that the standardized residuals plot, it looks like an independently
residuals are non-significant with Ljung –Box test p-value. and identically distributed series of mean zero with a
From the above tests, it is clear that the fitted model is constant variance. The plots of the ACF of the residuals
adequate since the residuals are white noise. That is, lack enough evidence of significant spikes which clearly

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Doulah 115

shows that the residuals are white noise. The results also Model validation & Forecasting
showed that the residuals are non-significant with Ljung –
Box test p-value. From the above tests, it is clear that the In order to test the adequacy and predictive ability of the
fitted model is adequate since the residuals are white chosen models, the actual data sets, predicted values,
noise. That is, SARIMA (2, 0, 1) (2, 1, 0)12.is adequate for lower and upper limits are plotted and displayed in Figure
modeling the monthly minimum temperature series in 10 & 11. The graphs show that the predicted values are
Bangladesh. well-fitted through the original data with the lower and
upper limits containing majorities of the original data. This
indicates that the models chosen for maximum and
minimum temperature series are the best fitted ones for
the data sets.

Figure 10. Validation and Forecasted values of maximum temperature up to 2019

Figure 11. Validation and Forecasted values of minimum temperature up to 2019

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Int. J. Stat. Math. 116

From Table 7, it is to be remarkable that the observed values verses the predicted values as well as the noise residuals
that affirms the adequacy of the chosen maximum and minimum time series models.

Table 7: Observed and fitted values for the Period 2004-2005


Maximum temperature Minimum temperature
Year observed predicted LCL UCL Noise observed predicted LCL UCL Noise
Residual Residual
JAN 2004 25.17 25.21 23.32 27.09 -.04 11.99 12.18 10.31 14.04 -.19
FEB 2004 26.88 28.01 26.15 29.88 -1.13 14.32 15.14 13.28 17.01 -.82
MAR 2004 31.70 31.97 30.11 33.83 -.27 20.32 20.31 18.44 22.17 .01
APR 2004 30.93 34.09 32.23 35.95 -3.16 20.88 23.43 21.57 25.29 -2.56
MAY 2004 33.49 32.82 30.96 34.69 .67 24.18 25.38 23.52 27.24 -1.20
JUN 2004 32.65 31.89 30.03 33.75 .76 25.17 25.16 23.30 27.02 .01
JUL 2004 31.36 31.64 29.78 33.51 -.28 25.69 25.82 23.96 27.68 -.13
AUG 2004 32.08 31.30 29.44 33.17 .78 26.03 25.69 23.83 27.55 .34
SEP 2004 31.37 32.41 30.55 34.28 -1.04 25.11 25.74 23.87 27.60 -.63
OCT 2004 31.69 31.57 29.71 33.43 .12 22.37 23.64 21.78 25.50 -1.27
NOV 2004 30.23 29.36 27.50 31.23 .87 19.40 18.98 17.13 20.84 .42
DEC 2004 24.98 27.17 25.30 29.03 -2.19 14.41 14.11 12.25 15.96 .30
JAN 2005 23.02 24.54 22.67 26.40 -1.51 12.39 11.98 10.30 13.65 .42
FEB 2005 27.79 26.84 24.98 28.71 .95 15.72 14.80 13.13 16.48 .92
MAR 2005 29.94 32.05 30.19 33.91 -2.10 18.09 20.01 18.33 21.68 -1.92
APR 2005 32.36 31.52 29.66 33.38 .84 22.63 22.51 20.84 24.18 .12
MAY 2005 33.27 33.70 31.84 35.56 -.43 25.07 24.96 23.29 26.63 .12
JUN 2005 33.49 32.24 30.38 34.11 1.24 26.86 25.74 24.07 27.41 1.12
JUL 2005 31.31 31.93 30.06 33.79 -.61 25.92 25.80 24.13 27.47 .12
AUG 2005 31.40 31.52 29.66 33.38 -.12 26.09 26.15 24.48 27.82 -.05
SEP 2005 32.33 31.86 30.00 33.73 .47 25.89 25.42 23.75 27.09 .46
OCT 2005 32.76 31.79 29.93 33.66 .97 25.14 23.37 21.70 25.04 1.77
NOV 2005 30.86 30.46 28.60 32.33 .40 20.91 19.80 18.13 21.47 1.10
DEC 2005 27.82 26.23 24.36 28.09 1.60 15.21 14.60 12.93 16.27 .61

Forecasting

Forecasting helps in planning and decision making process since it gives an insight of the future uncertainty using the
past and current behavior of given observations. Further accuracy tests such as MAE, MAPE and RMSE must therefore
be carried out on the model. The Table 8 shows a summary of ME, RMSE and MAE for both maximum and minimum
temperature models.

Table 8: Forecasting Accuracy Statistic


Maximum temperature model Minimum temperature model
SARIMA (1, 0, 0) (1, 1, 0)12 SARIMA (2, 0, 1) (2, 1, 0)12
Stationary R-squared .304 .314
R-squared .877 .968
RMSE .949 .867
MAPE 2.378 3.362
MAE .716 .622

Here, it is to be forecasted the monthly temperature based on the selected models SARIMA (1, 0, 0) (1, 1, 0) 12 for maximum
temperature and SARIMA (2, 0, 1) (2, 1, 0)12 for minimum temperature. The outcomes are shown in the following Table 9.

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Doulah 117

Table 9: Forecasting Monthly temperatures


Maximum temperature Minimum temperature
95% CI 95% CI
Year Forecast LCL UCL Forecast LCL UCL
JAN 2018 23.95 22.09 25.82 12.25 10.58 13.92
FEB 2018 28.80 26.83 30.78 15.30 13.62 16.97
MAR 2018 32.60 30.61 34.58 20.14 18.45 21.83
APR 2018 33.69 31.70 35.67 23.86 22.16 25.55
MAY 2018 33.43 31.45 35.42 24.70 23.01 26.40
JUN 2018 32.46 30.48 34.45 26.03 24.33 27.72
JUL 2018 32.27 30.29 34.26 26.12 24.43 27.81
AUG 2018 32.02 30.04 34.01 25.97 24.27 27.66
SEP 2018 32.20 30.21 34.19 25.80 24.11 27.50
OCT 2018 32.59 30.60 34.58 23.80 22.10 25.49
NOV 2018 30.13 28.15 32.12 18.91 17.21 20.60
DEC 2018 25.89 23.91 27.88 14.04 12.35 15.74
JAN 2019 24.01 21.77 26.24 11.87 10.03 13.71
FEB 2019 28.79 26.53 31.06 15.21 13.37 17.05
MAR 2019 32.27 30.00 34.54 20.85 19.01 22.69
APR 2019 33.45 31.18 35.71 24.45 22.61 26.29
MAY 2019 33.32 31.05 35.59 24.93 23.09 26.77
JUN 2019 32.44 30.18 34.71 25.99 24.15 27.83
JUL 2019 32.20 29.93 34.46 26.27 24.43 28.11
AUG 2019 31.73 29.46 34.00 26.14 24.29 27.98
SEP 2019 32.12 29.86 34.39 25.82 23.98 27.66
OCT 2019 32.70 30.43 34.96 24.15 22.30 25.99
NOV 2019 30.03 27.76 32.30 19.33 17.49 21.17
DEC 2019 25.74 23.47 28.00 14.10 12.26 15.94

CONCLUSIONS ACKNOWLEDGEMENTS

To sum up the whole discussion it is to be noteworthy that The author would like to thank the anonymous reviewers
for both maximum and minimum temperatures are for their helpful comments.
unsteady from month to month though the maximum
temperature is more fluctuating (standard deviation=2.7)
compared to the minimum temperature (standard REFERENCES
deviation=4.8). However, through the years, there is a
distinct increasing trend for minimum temperature proving Aidoo E (2010). Modeling and forecasting inflation rates in
the fact that global warming is in fact a reality. On the other Ghana: An application of SARIMA models. Högskolan
hand, maximum temperatures seem to be comparatively Dalarna, School of Technology and Business Studies.
steady. Both maximum and minimum temperature series Brockwell, Peter J, Davis RA (2002). Introduction to Time
exhibited high seasonality. The minimum temperature also Series and Forecasting, 2nd.edn. Springer-Verlang.
displayed an upward trend. The two series were made Box GEP, Jenkins GM, Reinsel GC (1976). Time Series
stationary. The best model for maximum temperature is Analysis, Forecasting and Control, 3rd edn. Prentice
SARIMA (1, 0, 0) (1, 1, 0)12 and for minimum temperature Hall, Englewood Clifs, NJ.
is SARIMA (2, 0, 1) (2, 1, 0)12. The model residuals for both Burnham KP, Anderson DR (1998). Model Selection and
series are near normality as most points fall on the straight Inference. Springer Verlag, New York.
line with a few close to it. From the model validation Corliss D (2009). Time series Analysis: an introduction
results, the projected values are well-fitted through the using Base SAS and STAT, NewYork, U.S.A.
original data with the lower and upper limits encompassing Chris C (2004). The Analysis of Time Series: An
bulks of the original data. The selected SARIMA models Introduction, John Wiley & Sons, NewYork, U.S.A.
give two-year projected monthly maximum and minimum Gurudeo AT, Mahbub I. (2010). “Time Series Analysis of
temperatures that can help decision makers to establish Rainfall and Temperature Interactions in Coastal
priorities for equipping themselves against upcoming Catchments”, J of Math. and Stat. 6 (3): 372-380.
weather changes. The forecasts also show that the Nigar S, Mahedi H. (2015). Forecasting Temperature in
minimum temperature of Bangladesh will continue with the the Coastal Area of Bay of Bengal-An Application of
upward trend. Box-Jenkins Seasonal ARIMA Model, Civil and Enviro.
R. 7(8): 149-159.

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models


Int. J. Stat. Math. 118

Oluwafemi SO, Femi JA, Oluwatosi TD. (2010). Time


Series Analysis of Rainfall and Temperature in South
West Nigeria, The Pacific J. of Sci. and Techno.
11(2):552-564.
Syeda J. (2012). Trend and Variability Analysis, and
Forecasting of Maximum Temperature in Bangladesh,
J. Environ. Sci. & Natural Resources. 5(2): 119 -128.
Spyros M, Wheelwright SC, Hyndman RJ (1998).
Forecasting: Methods and Applications, John Wiley &
Sons, Inc., U.S.A.
Shumway RH, and Stoffer DS (2006). Time Series
Analysis and Its Applications With R Examples,
Springer Science & Business Media, LLC, NY, USA.
www.data.gov.bd

Accepted 5 September 2018

Citation: Doulah S. (2018). Forecasting Temperatures in


Bangladesh: An Application of SARIMA Models.
International Journal of Statistics and Mathematics, 5(1):
108-118.

Copyright: © 2018 Doulah. This is an open-access article


distributed under the terms of the Creative Commons
Attribution License, which permits unrestricted use,
distribution, and reproduction in any medium, provided the
original author and source are cited.

Forecasting Temperatures in Bangladesh: An Application of SARIMA Models

Potrebbero piacerti anche