Short and Long Memory Time Series Models of Relative Humidity of Jos Metropolis
Short and Long Memory Time Series Models of Relative Humidity of Jos Metropolis
Short and Long Memory Time Series Models of Relative Humidity of Jos Metropolis
ISSN: 2040-7505
© M axwell Scientific Organization, 2010
Submitted Date: October 15, 2009 Accepted Date: November 12, 2009 Published Date: March 20, 2010
Abstract: The percentage monthly relative hum idity of Jos metropolis is examined in this study. Two models,
a short memory seasonal autoregressive integrated moving average model [SARIMA (1,0,1)(2,1,2)] and long
mem ory autoregressive fractional integrated moving average [ARFIMA(1,0.29,1)] are used to fit the same
hum idity data. Even though both models fit the data well, forecasts obtained from the ARFIM A(1,0.29,1)
capture the sw ing in the data and resemble the actual values better than the forecasts using
SARIM A(1,0,1)(2,1,2) mod el. This result shows that the Jos metropolitan data is better fitted by a long m emory
time series which captures the long swing in the weather data better than the short m emo ry time series m odels
whose effect quickly dies down.
Corresponding Author: M.A. Chiawa, Department of Mathematics and Computer Science, Benue State University, Makurdi,
Nigeria
23
Res. J. Math. Stat., 2(1): 23-31, 2010
whe re
whe re µ o is the intercept, represents the trend incase
it is present, N is the coefficient of the lagged dependent
variab le . and p lags o f with coefficients
a j are added to account for serial correlation in the
residuals. The null hypothesis H O : N =0 is that the series and
has unit root while the alternative hypothesis H 1 : N
0 is
that the series is stationary. The ADF test statistic is given
by
24
Res. J. Math. Stat., 2(1): 23-31, 2010
t = 1,2,… ,T (5)
The last term on the right-hand side of (10) becomes
whe re d is the parame ter of fractional differentiation, c is
negligible when low -frequency ordinates are close to
a constant and and are autoregressive and
zero. Equation (10) the n results in the followin g simple
moving average polynomials of order p and q, regression equation
respectively. The au tocorrelations, p k fo r an A R FIM A
process for large k and d<1/2 are given by the following
approximation (Granger and Joyeux , 1980). (11)
(i) and
(7)
where
(ii)
function of
(12)
(9)
25
Res. J. Math. Stat., 2(1): 23-31, 2010
(13)
and
Analysis of data:
Initial analysis of data: A time plot of the original series
is conducted in Fig. 1. A visual inspection of the plot
shows that the series has constant mean and variance. The
plot however does not show any evidence of stationarity.
W e proceed to examine the autocorrelation function
Fig. 3: The Periodogram of the monthly percentage relative
(Fig. 2). The autocorrelation function (A CF) is strongly
humidity of Jos
period ic with period 12 and very persistent. Clearly the
26
Res. J. Math. Stat., 2(1): 23-31, 2010
data shows seasonal behaviour. The spectral analysis is Tab le 1: Re sults of the AD F test do wn proce dure
Actual no. of lags 5% Test statistics Decision
then used to test the existence of periodicity in the time
4 -2.86 -5.14 Stationa ry
series.
Figure 3 shows the periodogram of the series. It can Tab le 2: R es ults of S A RIM A mo del id entific ation for th e hu mid ity of
be seen that there is a frequency of 1 cycle every 12 jos
months. W e therefore co nclud e that the data generating Mod el Loglikelihood AIC
SARIM A(2,0,2)(2,1,2) -723.44 1466.88
process is seaso nal and the length is 12 months, which
SARIM A(2,0,2)(1,1,1) -737.16 1490.31
coincides with the result of the ACF. SARIM A(1,0,1)(2,1,2) -724.65 1465.30
Un it root test for the humidity data: The ADF test is Table 3: Re sults of SARIMA model estimation for h um idity time
series
conducted at levels with seasonal dummies because the
Va riable Coefficient Std. Error T-Stat P-Value
time series is strongly periodic. The result of the test Constant 0.2702 0.120 02.246 0.02500
given in Table 1 sh ows that the series at lag 4 is stationary Phi-1 0.9300 0.070 13.033 0.00001
since at 5% the test statistic is -5.14 with the critical Phi-1 - 1.0140 0.080 - 13.121 0.00001
value of -2.86 . Phi-2 - 0.0150 0.076 - 00.200 0.84400
The ta-1 - 0.8600 0.100 - 08.960 0.00001
The ta-1 0.0700 0.060 01.183 0.24000
Formulation of the S AR IM A m odel for hu mid ity data: The ta-2 - 0.8700 0.050 - 16.800 0.00001
The order of seasonal integration as shown in Fig. 3 of the
series is one as there is a single spike in the periodogram. Table 4: Sum mary of Diagn ostic Tests of SARIMA (1,0,1) (2,1,2)
Since the series is stationary (see results of the A DF test) Mod el
Test p-value (P 2 )
d = 0. The result of the spectral analysis shows that s = 12
Ljung-Box 0.3580
and the order o f seaso nal integ ration of the series is 1. The Jarque -Bera 0.4137
optimal lag lengths for both the AR and M A are selected ARCH-LM 0.0621
using the information criteria. T hese are also used to
Table 5: Re sults of S AR IM A ( 1,0 ,1) (2 ,1,2) forecast values for t wo
determine the lag lengths of seasonal integration for the
years
AR and MA . Three candidates models are obtained using In sample forecast Out of sam ple forecast
p = 1, 2; q = 1, 2; P = 1, 2; Q = 1, 2. O ut of these models --------------------------------------- ------------------------------------------
a parsimonious model is obtained w hich has the lowest Hu mid ity Prediction Hu mid ity Prediction
AIC and log likelihood function. The value of the log 22 16.54 20 17.69
18 17.12 27 21.69
likelihood function and the AIC for three candidates 23 21.45 19 30.77
SAR IMA mod els are comp uted and rep orted in Table 2. 58 48.06 45 50.46
Before the choice of our m odel, standard diag nostic 70 65.17 59 70.97
test are conducted using the residual ACF and PACF of 72 70.16 72 83.56
80 81.72 76 86.10
all the candidate models. As seen in Fig. 4, 6 and 8 all the 80 80.66 80 91.31
mod els pass the stand ard diagnostic testing criteria as 66 69.61 76 81.69
their residual values lie within the 95% confidence 59 53.75 40 69.00
interval band. The residuals are also plotted against time 26 28.86 22 50.44
16 19.98 24 42.41
to ascertain whether or not the models have passed the 14 17.92 17 36.21
standard test criteria of being w hite noise. These are 13 17.52 15 29.80
reported in Fig. 5, 7 and 9. The results show that the 20 19.60 20 36.57
residual plots for all the models are white noise. Since all 20 37.59 42 27.97
66 62.19 61 82.68
the residuals of the candidates models behave well, we 76 65.35 66 104.14
proceed to select SARIMA (1,0,1)(2,1,2) which has the 72 79.10 74 113.98
lowest AIC an d log likelihoo d as the best mod el. 82 77.32 82 102.29
62 70.90 66 91.94
30 42.79 50 65.41
Parameter estimates of the model using hum idity data: 20 23.03 24 34.35
After the best model has been chosen, the parameters of 18 15.08 24 27.24
the model are next estimated. The result of the parameter
estimates of the optimal model are shown in Table 3. The results of the tests show that the model is
After fitting the model, we check the model for adequacy. adeq uate at 5% as all the p-values are greater than 0.05.
This is what we are going to se e in the next section. The model is then used to forecast future values of the
series.
Model checking for SA RIM A(1,0,1)(2,1,2): The model
is next tested for adequacy using three diagnostic tests, SARIM A(1,0,1)(2,1,2) Forecast Evaluation: After a
Ljung-Box test, Jarque-Bera test and AR CH -LM test. The good SARIM A m odel has been fitted, its ability to
results of these tests are given in Table 4. forecast the time series data is tested. This further testifies
27
Res. J. Math. Stat., 2(1): 23-31, 2010
28
Res. J. Math. Stat., 2(1): 23-31, 2010
29
Res. J. Math. Stat., 2(1): 23-31, 2010
we mov e ahead to m odel the series as an A R FIM A Tab le 8: T he re sult o f A IC a nd lo g like lihoo d tests
Mod el AIC value SE Log likelihood
process. First we start by identifying the ARFIM A model
ARFIM A (2, 0.29, 1) 727 1.09 -359.59
that best fits the series. ARFIM A (2, 0.29, 2) 727 1.09 -358.90
ARFIM A (3, 0.29, 3) 723 1.07 -354.62
The AR FIM A m odel identification: The particular ARFIM A (1, 0.29, 1) 725 1.09 -359.88
optimization routine of the log-likelihood function shows
Tab le 9: R esu lts of d iagn ostic te sts
that among the ARFIMA models, the optimal model for No rma lity ARCH-LM Por tm anteau
the fractionally difference series is ARFIM A (1, 0.29, 1) Mod el (p-value) (p-value) (p-value)
since this model exhibit the smallest values of AIC and ARFIM A(2, 0.29, 1) 0.7621 0.2010 0.3523
log likelihood (Ta ble 8). ARFIM A(2, 0.29, 2) 0.7446 0.2044 0.4221
ARFIM A(3, 0.29, 3) 0.6645 0.2068 0.3693
The results in the Ta ble 8 show that ARFIM A (1, ARFIM A(1, 0.29, 1) 0.7850 0.2341 0.4252
0.29,1) model is the best candidate model with the least
value of AIC and the log likelihood. Before we draw any Tab le 10: R esults of th e estimated AR FIM A (1 , 0.29, 1) p arame ters
conclusion, it is nece ssary to examine the resid uals of all Estimates Coefficient SE T-ra tio Approx. prob.
the models to see if they pass th e diagnostic tests. Table AR1 -0.455 0.39 -1.15 0.25
MA1 -0.546 0.37 -1.54 0.12
8 shows the results of the diagnostic tests. Constant 0.055 0.08 0.72 0.47
The diagn ostic test results in Tab le 9, sho ws that all
the mod els have passed the diagnostic tests of normality, Tab le 11 : M isspe cifica tion te sts
serial correlation and residual autocorrelation, since the Type o f test Test stat p-value De cision rule
Serial C orr LM -type 0.8661 0.2341 Reject
p-values are greater than 0.05 . W e therefore pro ceed to
Resid Co rr Ljung-Box 7.7556 0.4252` Reject
estima te the parameters of the ARFIMA (1, 0.29,1) model (LB)-type
selected. ARCH ARCH-LM 8.0547 0.5286` Reject
No rma lity Skew ness 0.1555 0.7850 Accept
No rma lity Ku rtosis 3.0440 0.7850 Accept
Estimating the parameters of ARFIM A (1,0.29,1)
No rma lity JB test 0.9872 0.7850 Accept
mo del: The results of the estimated param eters of A R M A
(1,0.29,1) model are shown in Table 10. Having fitted a Table 12: Results of forecast evaluation of ARFIM A (1,0.29,1) model
model to the fractionally differenced humidity time series, In Samp le forecast Out of sam ple forecast
we check the model for adequacy. ------------------------------------ ------------------------------------------
Hu mid ity Prediction Hu mid ity Prediction
22 21.7020 20 19.83
ARF IMA (1,0.29,1) model checking: The residual plots 18 17.4852 27 26.99
of the ARFIM A(1,0.29,1 ) mod el is first perfo rmed to 23 23.4589 19 18.88
examine the adequacy of the model. The residual ACF 58 57.5854 45 45.02
70 70.2214 59 58.91
and PACF of the fitted ARFIM A(1,0.29,1) model of the
72 71.9539 72 72.04
fractionally differenced h umid ity time series are given in 80 79.8470 76 75.92
Fig. 13. The plots show that there is no serial correlation 80 80.2920 80 80.05
observed in the residuals of the series therefore the model 66 65.6393 76 75.93
59 59.3617 40 40.06
is adeq uate and good. 26 25.7297 22 21.93
The results of the diagnostic tests are show n in 16 16.1518 24 24.06
Table 11. The existence of serial correlations in the 14 14.0085 17 16.94
residuals is rejected based on the resu lts of the Lagrange 13 12.8771 15 15.06
20 20.2443 20 19.94
multiplier tests. The Ljung-Box test also rejects the 20 20.2621 42 42.06
presence of residuals correlation. The results of the 66 66.2726 61 60.94
Jarque-B era test, the skewness and kurtosis which are 76 75.8219 66 66.06
tests for norm ality of the residuals, show that the residuals 72 72.1016 74 73.94
82 82.0332 82 81.95
are norm ally distributed as the skew ness is close to zero 62 61.8988 66 65.95
and kurtosis close to 3. 30 30.1976 50 50.05
20 19.8100 24 23.95
Forecast evaluation of ARFIM A(1,0.29,1) mo del: After 18 18.2024 24 24.05
30
Res. J. Math. Stat., 2(1): 23-31, 2010
31