<<

Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97 A Model for the Forecasting of Daily and Exchange Rates

2 Ette Harrison Etuk1 Eberechi Humphrey Amadi Department of Mathematics / Department of Mathematics / Computer Science, Rivers State Computer Science, Rivers State University of Science and University of Science and Technology, P. Harcourt, Technology, P. Harcourt, Nigeria [email protected] [email protected]

Abstract Daily South African Rand / Nigerian Naira exchange rates are analyzed by seasonal autoregressive integrated moving average (SARIMA) methods. The actual realization considered herein and called ZNER spans from 20th March 2014 to 15th September, 2014, a 180-day interval. Its time plot shows a generally negative secular trend which depicts the relative depreciation of the rand within the time interval. A seven-point differencing of the series yields a series SDZNER with a very slightly negative trend and an autocorrelation structure of a seasonal series of period 7 days. A non-seasonal differencing of the differences yields the series DSDZNER with a horizontal trend and a correlogram showing a seasonal nature of period 7days and the involvement of a seasonal moving average component of order one. There is also an indication of a seasonal autoregressive component of order two. It is noteworthy that Augmented Dickey Fuller (ADF) tests consider ZNER as non- stationary (p < .01). SDZNER is also considered non-stationary (p < .05). Only DSDZNER is considered stationary. A close look reveals the involvement of a SARIMA(0, 1, 1)X(0, 1, 1)7 component. On the overall, the models that are suggestive are (1) SARIMA(0, 1, 1)X(2, 1, 1)7 and (2) SARIMA(1, 1, 1)X(1, 1, 1)7. The later model is found to be the more adequate one on all counts.

Keywords: South African Rand, Nigerian Naira, Sarima Modelling, Time Series Analysis, Foreign Exchange Rates.

1. INTRODUCTION:

Foreign exchange rates have to do with the price of a country’s in terms of another country’s currency. International economic relations are hinged on the relative strengths of the partner nations’ . This write-up is concerned with the modeling of the daily exchange rates of the South African Rand (ZAR) and the Nigerian Naira (NGN). This is with a view to providing a model which may be used to forecast the exchange rates. The modeling approach adopted is the seasonal autoregressive moving average (SARIMA) technique.

The SARIMA approach to time series modeling was introduced specifically for the modeling of series that are seasonal in nature. Economic and financial time series are mostly observed to be seasonal. They have mostly been modeled using SARIMA techniques. Researchers that have adopted this approach to model some of such series are Brida and Risso (2011), Fannoh et al. (2012), Abdelghani et al. (2013), Arumugam and Anithakumari (2013), (2013), AquilBurney et al. (2006), Li et al. (2013), Gharbi et al. (2011), Hassan et al. (2013), Khajavi et al. (2012), Oduro- Gyimah et al. (2012), Mombeni et al. (2013), to mention only a few.

Where seasonal time series are involved SARIMA models have been observed to outdo other types of models in forecasting performance. See for instance Dagowa and Alade (2013), Sabri (2013), Qiao et al. (2013), Etuk (2014), and so on.

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

89 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97 Many such exchange rates have been observed in the past to exhibit seasonal tendencies to necessitate and justify the application of such methods on them. A few of such cases are Etuk and Igbudu (2013), Etuk and Nkombou (2014), Appiah and Adetunde(2011).

2. MATERIALS AND METHODS:

The data used for this work are 180 ZAR-NGN daily exchange rates from Thursday, 20th March, 2014 to Monday, 15th September, 2014 retrievable from the website www.exchangerates.org.uk/ZAR-NGN-exchange-rate-history.html . It is to be interpreted as the amount of NGN in one ZAR.

2.1. SARIMA MODELS:

Suppose {Xt} is a stationary time series. It is said to follow an autoregressive moving average model of order p and q, and denoted by ARMA(p, q), if

Xt - a1Xt-1 - a2Xt-2 - … - apXt-p = et + b1et-1 + b2et-2 + … + bqet-q (1) where {et} is a white noise process and the a’s and b’s are constants such that model (1) is both stationary and invertible. Model (1) may be written as

A(L)Xt = B(L)et (2)

2 p 2 q k where A(L) = 1 - a1L - a2L - … - apL and B(L) = 1 + b1L + b2L + … + bqL and L Xt = Xt-k. For stationarity and invertibility of the model A(L) and B(L) must have zeroes that lie outside the unit circle respectively.

Suppose the time series {Xt} is not stationary Box and Jenkins (1976) proposed that differencing of the series to an appropriate order may make the series stationary. Suppose that the th minimum order of differencing of the series for stationarity is d. The d differences of {Xt} shall be d d denoted by {Ñ Xt} where Ñ = 1 – L. If {Ñ Xt} satisfies equation (1) or (2) {Xt} is said to follow an autoregressive integrated moving average model of order p, d and q denoted by ARIMA(p, d, q).

If {Xt} is seasonal of period s, Box and Jenkins (1976) further proposed that the series might be modeled by

s d D s A(L)F(L )Ñ Ñ s Xt = B(L)Q(L )et (3)

s where F(L) and Q(L) are polynomials in L. Ñs = 1 – L and D is the order of seasonal differencing. Then {Xt} is said to follow a multiplicative seasonal autoregressive integrated moving average model of order p, d and q denoted by SARIMA(p, d, q)X(P, D, Q)s model.

2.3. SARIMA MODEL FITTING:

The fitting of the SARIMA model (3) starts with the determination of the orders p, d, q, P, D, Q and s. The seasonal period s may be suggestive from knowledge of the nature of the series as with monthly rainfall or hourly atmospheric temperature. The time plot and the correlogram could indicate a seasonal nature and therefore the value of s. The non-seasonal and the seasonal cut-off lags of the partial autocorrelation function (PACF) estimate the non-seasonal and the seasonal autoregressive (AR) orders p and P respectively. Similarly the non-seasonal and the seasonal cut-off lags of the autocorrelation function (ACF) estimate the non-seasonal and the seasonal moving average (MA) orders q and Q respectively. The non-seasonal and the seasonal differencing orders d and D are

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

90 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97 often chosen such that the model is not too complex. In fact, often d + D < 3. Before and after differencing the series is tested for stationarity. This is done by the Augmented Dickey Fuller (ADF) test.

Parameter estimation is invariably by the application of a nonlinear optimization technique like the least squares technique or the maximum likelihood technique. This is because of the presence in the model of values of the white noise process. After model estimation the fitted model is subjected to diagnostic checking to ascertain its goodness-of-fit to the data. This is done by residual analysis. Uncorrelatedness and/or, better still, the normality of the residuals indicates model adequacy.

3. RESULTS AND DISCUSSION:

The time plot of the 180-point series ZNER in Figure 1 shows a negative secular trend. This indicates the relative decline in value of the ZAR. A 7-day differencing of ZNER yields the series SDZNER which has a slightly negative trend (See Figure 2) and a correlogram in Figure 3 which shows it is non-stationary. A non-seasonal differencing of SDZNER yields the series DSDZNER which has a horizontal trend (See Figure 4) and a correlogram in Figure 5 which suggests its stationarity. The ADF tests have the following data: ZNER test statistic is -2.80, SDZNER test statistic is -3.18 and that of DSDZNER is -9.30; the 1%, 5% and 10% critical values are -3.47, -2.88 and -2.56 respectively. That means that at p < 0.01 both ZNER and SDZNER are non-stationary and DSDZNER stationary. Moreover the correlogram of DSDZNER suggests the involvement of a seasonal MA component of order one and the involvement of a seasonal AR component of order two. It is also evident from the correlogram that the following models are possible: 1) SARIMA(0, 1, 1)X(2, 1, 1)7 and 2) SARIMA(1, 1, 1)X(1, 1, 1)7.

The estimation of the SARIMA(0,1,1)X(2, 1,1)7 model of Table 1 yields:

Xt + .9670Xt-7 + .4252Xt-14 = et - .0513et-1 + .4468et-7 - .1875et-8 (4) (±.1244) (±.0771) (±.0808) (±.1368) (±.0817)

That of the SARIMA(1,1,1)X(1,1,1)7 model of Table 2 yields:

Xt - .8922Xt-1 + .0234Xt-7 + .0147Xt-14 = et - .9596et-1 - .9482et-7 + .9132et-8 (5) (±.0409) (±.0826) (±.0824) (±.0175) (±.0182) (±.0221) where X represents DSDZNER in (4) and (5). Clearly model (5) does not only have a lower AIC value but also a higher R2 value than model (4). Besides the residuals of model (5) are normally distributed with zero mean (See Figure 6). This attests to the adequacy of the model.

4. CONCLUSION:

Daily ZAR-NGN exchange rates follow a SARIMA(1,1,1)X(1,1,1)7 model which has been shown to be adequate. Forecasting into the future might be based on the model (5).

5. REFERENCES:

Abdelghani, A. I., Fathelrahman, A. I., Abdelgader, A. B., Predicting cerebrospinalmeningitis in Sudan using Time Series Modelling. Sudanese Journal of Public Health, Vol. 8, No. 2, 2013, pp. 69-73.

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

91 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97 Appiah, S. T. and Adetunde, I. A., Forecasting Exchange Rate Between the Ghana Cedi and the US Using Time Series Analysis. African Journal of Basic & Applied Sciences, Vol. 3, No. 3, 2011, pp. 255-264.

AquilBurney, S. M., Saleemi, M. A. and Raza, S. A., Wavelet based SARIMA models for forecasting Natural Gas Demand. Research Journal of the Institute of Business Administration, Karachi, Vol. 1, No. 1, 2006, pp. 134-139.

Arumugam, P. and Anithakumari, V. (2013). Sarima Model for Natural Rubber Production in India. International Journal of Computer Trends and Technology, Vol. 4, No. 8, 2013, pp. 2480-2484.

Box, G. E. P. and Jenkins, G. M., Time Series Analysis, Forecasting and Control, Holden-Day: San Francisco, 1976.

Brida and Risso, W. A., Research Note: Tourism demand forecasting with SARIMA models – the case of South Tyrol. Tourism Economics, vol. 17, no. 1, 2011, pp. 209-221.

Dagowa, S. I. and Alade, S. O., Short-term inflation forecasting models for Nigeria. CBN Journal of Applied Statistics, Vol. 4, No. 2, 2013, pp. 1-29.

Etuk, E. H., Modeling of Daily Nigerian Naira – British Exchange Rates using SARIMA Methods. British Journal of Applied Science and Technology, Vol. 4, No. 1, 2014, pp. 222-234.

Etuk, E. H. and Igbudu, R. C., A Sarima fit to Monthly Nigerian Naira-British Pound Exchange Rates. Journal of Computations & Modelling, Vol. 3, No. 1, 2013, pp. 133-144.

Etuk, E. H. and Nkombou, B. W., Monthly XAF-USD Exchange Rates Modelling by SARIMA Techniques., -Asian Journal of Economics and Finance, Vol. 2, No. 1, 2014, pp. 1-12.

Fannoh, R., Orwa, G. O. and Mung’atu, J. K., Modelling the Inflation Rates in Liberia SARIMA Approach. International Journal of Science and Research, Vol. 3, No. 6, 2012, pp. 1360-1367.

Gharbi, M., Quenel, P., Gustave, J. Cassadou, S., Ruchhe, G. L., Girday, L. and Marrama, L., Time Series Analysis of dengue incidence in Guadeloupe, French West Indies: Forecasting models using climate variables as predictors. BMC Infectious diseases, Vol. 11, No. 166, 2011, pp. 1-13. www.biomedcentral.com/content/pdf/1471-2334-11-166.pdf

Hassan, M. F., Islam, M. A., Imam, M.F. and Sayem, S.M. Forecasting wholesale price of coarse rice in Bangladesh: A Seasonal Autoregressive Integrated Moving Average approach. Journal of Bangladesh Agricultural University, Vol. 11, No. 2, 2013, pp. 271-276.

Khajavi, E., Behzadi, J., Nezami, M. T. , Ghodrati, A. and Dadashi, M. A., Modeling ARIMA of air temperature of the Southern Caspian Sea Coasts. International Research Journal of Applied and Basic Sciences, Vol. 3, No. 6, 2012, pp. 1279-1287.

Li, X,. Ma, C., Lei, H. and Li, H., Applications of SARIMA Model in Forecasting Outpatient Amount. Chinese Medical Record English edition, Vol. 1, No. 3, 2013, pp. 124-128.

Lira, J., A comparison of the usefulness of Winters’ and Sarima models in Forecasting of Procurement Prices of Milk in Poland. Quantitative Methods in Economics, Vol. XIV, No. 1, 2013, pp. 325-333.

Makukule, N. A., Sigauke, C. and Lesaoana, M., Daily Electricity demand forecasting in . African Journal of Business Management, Vol. 6, No. 9, 2012, pp. 3246-3252.

Mombeni, H. A., Rezaei, S. Nadarajah, S. and Emami, M., Estimation of Water Demand in Iran based on SARIMA models. Environmental Modeling Assessment, Vol. 18, No. 5, 2013, pp. 559-565.

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

92 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97 Oduro-Gyimah, F. K., Harris, E. and Darkwah, K. F., Sarima Time Series Model Application to Microwave Transmission of Yeji Salaga (Ghana) line-Of-Sight Link., International Journal of Applied Science and Technology, Vol. 2, No. 9, 2012, pp. 40-51.

Qiao, Z., Li, F., and Li, Y., Mid-long-term Regional Load Forecasting based on Census X12-SARIMA model. PRZEGLAD ELEKTROTECHNICZNY R. 89 NR 1b, 2013, pp. 224-227.

Sabri, M., ANN versus SARIMA models in forecasting residential water consumption in Tunisia, Journal of Water, Sanitation and Hygiene for Development, Vol. 3, no. 3, 2013, pp. 330-340.

AUTHOR’S BRIEF BIOGRAPHY:

Dr. E. H. Etuk, FCAI, FHNR, KSQ: He is an Associate Professor of Statistics in the Department of Mathematics/Computer Science, Rivers State University of Science and Technology, Nigeria since 2006. Currently he is a Visiting Professor of Statistics to Akwa Ibom State University, Nigeria. He has produced six Ph. D graduates, more than 20 M.Sc. and hundreds of B.Sc. graduates. He has published more than 90 papers in reputable academic journals. He has won many awards. He is a member of many professional associations including Nigerian Statistical Association and Nigerian Mathematical Society.

Eberechi Humphrey Amadi: He is a Lecturer I of the Department of Mathematics / Computer Science, Rivers Sate University of Science and Technology, Nigeria. He had his B.Sc. degree in Mathematics from University of Port Harcourt in 1982. He had his M. Sc. degree in Operations Research & Industrial Statistics from University of Nigeria, Nsukka in 1986. He is currently doing his Ph.D in Optimization and Operations Research in Rivers State University of Science and Technology, Nigeria.

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

93 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97

Appendix:

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

94 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97

FIGURE 3: CORRELOGRAM OF SDZNER

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

95 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97

FIGURE 5: CORRELOGRAM OF DSDZNER

TABLE 1: ESTIMATION OF THE SARIMA(0,1,1)X(2,1,1)7 MODEL

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

96 Etuk and Amadi /International Journal of Modern Sciences and Engineering Technology (IJMSET) ISSN 2349-3755; Available at https://www.ijmset.com Volume 1, Issue 6, 2014, pp.89-97

TABLE 2: ESTIMATION OF THE SARIMA(1,1,1)X(1,1,1)7 MODEL

FIGURE 6: HISTOGRAM OF THE SARIMA(1,1,1)X(1,1,1)7 RESIDUALS

© IJMSET-Advanced Scientific Research Forum (ASRF), All Rights Reserved “IJMSET promotes research nature, Research nature enriches the world’s future”

97