Professional Documents
Culture Documents
Abstract: Exchange rate of any country’s currency goes a long way in affecting various economic activities and it
ensures effective and efficient planning. In order to assist different policy makers in Nigeria in purposeful
prediction by identifying and validating the usage of essential model, the yearly average exchange rate of
Nigeria naira to US dollar from 1960 to 2015 is examined. ARIMA (0,0,0 to 2,2,2) were sequentially
examined using Square Root Transformation (SRT), Natural Log Transformation (NLT) and original series
without transformation (WT). NBIC, RMSE, MAE, and Ljung-Box Q are used as selection criteria among all
the competing models within and among different transformations. ARIMA(1,0,0) when SRT is utilized is
found to provide optimal output with stationary-R2 of 0.976; coefficient of determination (R2) of 97.3%;
NBIC of 4.888 and Ljung-Box Q P-value of 0.981. Hence, the recommended model for forecasting of
average yearly exchange rate of Nigeria naira to US dollar.
Keywords: Time series, ARIMA model, natural log transformation, square root transformation.
ܼ௧ = ߠ + ߮ଵ ܼ௧ିଵ + ߝ௧ … … … (1)
observing the conditions for the stationarity of the data written as:
Differencing Schwarz (1978) can then be used to select the best among
Procedure for differencing involves calculating series of the competing models.
sequential changes in the values of the time series data. It
Z୲ = θ + ε୲ + βଵ ε … … … (3)
In order to select the best among competing models, it is
Let the model Zt be defined as:
essential to compute some statistics that would ensure that
୲ିଵ
where θ is constant and ε୲ ~NIID(0, σଶε ).
the final model to be selected has the least variance. These
criteria are compared for three periods viz, estimation
Zt is a constant added to a MA of the current and error period, validation period and total period. With respect to
terms in the past. Hence, Zt is said to follow MA (1) this research, the following selection criteria are used: (a)
process i.e. a moving average of order 1. But if Zt is Mean Absolute Error (MAE), and (b) Root Mean Square
Z୲ = θ + ε୲ + βଵ ε + βଶ ε … … … . (4)
denoted with: Error (RMSE)
୲ିଵ ୲ିଶ
thenZt is said to follow a MA(2) process. Mean absolute error (MAE)
หܼ௦ − ܼௗ ห
௧
observed values and it is obtained using;
= ܧܣܯ … … … (8)
ݐ
ୀଵ
ARIMA Model Selection, Checking and Validation
Model Selection
When an attempt is being made to use ARIMA model for
predictive purpose, the first step is to identify the model Root mean square error (RMSE)
that best explains the model. Such model should have It is the square root of the sum of square of the differences
smallest values of parameters and should be good enough between the predicted values and the observed values
to adequately explain the model. In ARIMA (p,d,q), p and dividing by their number of observation (t). It is given by:
௧
1
ܴ = ܧܵܯඩ ൫ܼ௦ − ܼௗ ൯ … … … (9)
ଶ
q must not be more than 2, Al–Wadia (2011). Therefore,
ݐ
checking the NBIC (Normalized Bayesian Information
ୀଵ
Criterion) of the model is only limited to p, q and d values
2 or less. According to Al–Wadia (2011), the model that
has the least NBIC value should be given preference.
Another criterion often used to measure goodness of fit of When comparing models, the best one is the one with the
a model is the Akaike Information Criteria (AIC). When least error whether MAE or RMSE.
two or more models are competing, the one that has the
least AIC is generally considered to be closer with real Properties of a good ARIMA model
data, Yang (2005). However, Anderson (2008) opined that The following characteristics are considered in this
AIC does not usually penalize complexity of a model research before the best among all competing models is
heavily as the BIC (Bayesian Information Criterion) does. selected.
(i) Stationary- It must have a relatively high stationary-R2
Checking the model value, usually in excess of 0.95
Appropriate lag (the value of p) is usually identified using (ii) Invertible- Its MA coefficient must not be
the autocorrelation function (ACF) and partial unreasonable high
autocorrelation function (PACF). The PACF provides (iii) Parsimonious- It must utilize small number of
more information on the behaviour of the time series while coefficient as possibly needed to explain the time series
the ACF provides information on the correlation between data
observations in a time series at different time apart. Both (iv) Its residuals must be statistically independent
ACF and PACF suggest the model to be built. Generally, (v) It must fit the time series data sufficiently well at the
the ACF and the PACF has spikes at lag k and cuts off stage of estimation
after lag k at the non-seasonal level. The order of the (vi) Its MAE and RMSE must not be unnecessarily high
model can be identified by the number of spikes that are (vii) Sufficiently small forecast errors
significant. It must be noted however that both ACF and
PACF only suggest on where to build the model, it is very Diagnostic checking
essential to obtain different models around the suggested This is essential after the selection of a particular ARIMA
order and criteria like Akaike Information Criterion (AIC), model having estimated its parameters. The model’s
Akaike (1974) or Bayesian Information Criterion (BIC), adequacy is verified by analyzing the residuals. The model
is accepted if the residuals are found to be white noise, The decision: if the LB is less than the critical value of X2,
hence, the model selection procedure is restarted then the null hypothesis is not rejected. This implies a
The conformity of white noise residual of the model fit small value of Ljung Box statistics will be in support of no
will be judge by plotting the ACF and the PACF of the serial correlation or i.e. the error term is normally
residual to see whether it does not have any pattern or we distributed. This is concerned about the model accuracy.
perform Ljung Box Test on the residuals. The null
hypothesis is: Results and Discussions
H0: There is no serial correlation The time plot shows that the exchange rate of Naira to
H1: There is serial correlation dollar was relatively stable from 1960 to 1985 after when
The test statistics of the Ljung box is; there was an obvious increase trend in the rate. A
݊(݊ = ܤܮ+ 2 :
1
NO significant increment in the exchange rate was observed in
… PQ … … 10 the year 1998 to 1999 which kept on increasing till 2004
4?)
CD when a brief downward trend was observed till 2009.
Here, n is the sample size, m is the lag length and ρ is the However, the rate jumped up significantly from 2009 to
sample autocorrelation coefficient. 2010 and the increment is sustained till 2015.
Chart 1: Time plot of yearly exchange rate of the naira to US dollar from 1960 - 2015
Table 4b: ARIMA models with various statistics (Square Root Transformation)
Statistics LB Q(18)
Model Type
Stationary R2 R2 RMSE MAE Normalized BIC Statistics Sig.
ARIMA (0,0,0) 0.814 0.856 23.636 19.418 6.469 262.513 0.000
ARIMA (0,0,1) 0.922 0.933 16.307 10.809 5.799 156.960 0.000
ARIMA (0,1,0) 0.041 0.970 10.885 4.454 4.920 9.200 0.955
ARIMA (0,1,1) 0.041 0.970 10.980 4.409 5.011 9.311 0.930
ARIMA (1,0,0)* 0.976 0.973 10.341 4.079 4.888 7.180 0.981
ARIMA (1,0,1)* 0.976 0.973 10.436 3.959 4.978 7.333 0.966
ARIMA (1,1,0) 0.041 0.970 10.979 4.409 5.011 9.311 0.930
ARIMA (1,1,1) 0.041 0.970 11.088 4.418 5.103 9.309 0.900
ARIMA (1,1,2) 0.082 0.972 10.826 4.349 5.128 9.472 0.852
ARIMA (1,2,0) 0.241 0.943 15.177 5.994 5.661 19.974 0.276
ARIMA (1,2,1) 0.477 0.968 11.414 4.699 5.165 9.349 0.898
ARIMA (1,2,2) 0.483 0.969 11.390 4.567 5.235 9.110 0.872
ARIMA (2,0,0)* 0.976 0.973 10.436 3.960 4.978 7.352 0.966
ARIMA (2,0,1)* 0.980 0.973 10.494 3.852 5.061 9.343 0.859
ARIMA (2,0,2) 0.976 0.972 10.734 4.223 5.178 7.651 0.907
ARIMA (2,1,0) 0.041 0.970 11.088 4.418 5.103 9.310 0.900
ARIMA (2,1,1) 0.083 0.972 10.803 4.388 5.124 9.335 0.859
ARIMA (2,1,2) 0.088 0.972 10.809 4.168 5.198 9.486 0.799
ARIMA (2,2,0) 0.318 0.953 13.902 5.804 5.560 13.623 0.627
ARIMA (2,2,1) 0.477 0.968 11.522 4.705 5.258 9.440 0.853
ARIMA (2,2,2) 0.479 0.969 11.590 4.693 5.344 9.508 0.797
Table 4c: ARIMA models with various statistics (Natural Log Transformation)
Statistics LB Q(18)
Model Type
Stationary R2 R2 RMSE MAE Normalized BIC Statistics Sig.
ARIMA (0,0,0) 0.873 0.470 45.279 21.098 7.769 294.520 0.000
ARIMA (0,0,1) 0.950 0.840 25.089 11.737 6.660 186.648 0.000
ARIMA (0,1,0) 0.018 0.936 15.865 8.093 5.674 17.779 0.470
ARIMA (0,1,1) 0.055 0.937 15.780 7.920 5.736 16.089 0.518
ARIMA (1,0,0) 0.988 0.962 12.225 5.332 5.223 17.576 0.416
ARIMA (1,0,1) 0.988 0.960 12.661 5.538 5.365 14.485 0.563
ARIMA (1,1,0) 0.059 0.938 15.647 7.868 5.719 16.404 0.495
ARIMA (1,1,1) 0.067 0.944 15.094 7.711 5.720 16.076 0.448
ARIMA (1,1,2) 0.069 0.942 15.468 7.816 5.842 15.735 0.400
ARIMA (1,2,0) 0.189 0.849 24.632 8.929 6.630 30.726 0.022
ARIMA (1,2,1) 0.421 0.949 14.386 6.994 5.628 16.026 0.451
ARIMA (1,2,2) 0.422 0.949 14.880 7.028 5.730 15.114 0.443
ARIMA (2,0,0) 0.988 0.960 12.705 5.322 5.371 14.343 0.573
ARIMA (2,0,1)* 0.988 0.970 11.145 4.493 5.181 11.482 0.718
ARIMA (2,0,2)* 0.985 0.968 11.511 4.613 5.318 7.449 0.916
ARIMA (2,1,0) 0.063 0.940 15.547 7.839 5.779 16.677 0.407
ARIMA (2,1,1) 0.073 0.945 15.107 7.197 5.795 16.552 0.346
ARIMA (2,1,2) 0.070 0.942 15.593 7.771 5.931 16.660 0.275
ARIMA (2,2,0) 0.275 0.889 20.347 8.254 6.321 22.225 0.136
ARIMA (2,2,1) 0.406 0.940 15.801 7.969 5.890 16.433 0.354
ARIMA (2,2,2) 0.407 0.941 15.877 7.865 5.973 15.784 0.327
Rahman NM 2010. Forecasting of boro rice production in univariate and multivariate ARIMA models.
Bangladesh: An ARIMA approach. J. Bangladesh Fisheries Sci., 7(3): 979-988.
Agril. Univ., 8(1): 103-112. Yang Y 2005. Can the strengths of AIC and BIC be
Sarpong SA 2013. Modelling and forecasting maternal shared? A conflict between model identification and
mortality: An application of ARIMA Models. Int. J. regression estimation. Biometrika, 92(4): 937-950.
Applied Sci. & Tech., 3(1): 19 – 28. http://www.cenbank.org/rates/ExchRateByCurrency.asp
Schwarz GE 1978. Estimating the dimension of a model. https://en.wikipedia.org/wiki/Exchange_rate
Annals of Stat., 6(2): 461–464. https://en.wikipedia.org/wiki/Akaike_information_criterio
Shafaqat M 2012. Forecasting Pakistan’s Exports to n
SAARC: An application of univariate ARIMA model. https://en.wikipedia.org/wiki/Bayesian_information_criteri
J. Contem. Issues in Busi. Res., 1(3): 96 – 110. on
Tsitsika EV, Maravelias CD & Haralatous J 2007.
Modeling & forecasting pelagic fish production using