Exchange Rate Forecasting Using Non-Linear Threshold 2019
Exchange Rate Forecasting Using Non-Linear Threshold 2019
DOI: 10.5923/j.ijps.20190802.02
1
Department of Statistics, School of Applied Sciences the Federal Polytechnic, Ede, Osun State, Nigeria
2
Michael Okpara University of Agriculture, Umudike, Abia State, Nigeria
3
Department of Mathematics, Faculty of Science Obafemi Awolowo University, Ile-Ife, Osun State, Nigeria
4
Department of Statistics, Faculty of Physical Science, Nnamdi Azikiwe University, Awka, Anambra State
Abstract Foreign exchange is one of the most important financial instruments very volatile and chaotic in nature.
Nowadays, the role of the foreign exchange market is becoming more and more important in the financial markets around the
world; it remains the only instruments worldwide to measure the standard of living, Economic performance and country
standing among the committee of nations. The foreign exchange market which is an over-the-counter market is used for the
trading of currencies. It makes the foreign exchange market the largest and most liquid market among the financial markets.
Necessary mathematical frame work was put in place, this was illustrated with data from record of Central Bank of Nigeria
through their official website. Through this the performance of nonlinear threshold models in forecasting the exchange rate of
Nigeria in relation to United States of American dollar as bench mark. The software used for the analysis was Econometrics
View (E-view). Stationarity tests were carried out before the analysis, (the original data was not stationary, but at first
difference it was stationary, thereafter comprehensive data analysis was performed). The forecasting results indicate that
SETAR models did not outperform Random Walk in any period. TAR models offered promising results in the period. This
study supports the general belief that the exchange rates are chaotic, volatile and very difficult to forecast and this applies to
Exchange rate system of Nigeria as it is the case in the developed world.
Keywords Forecasting, Stationarity test, Exchange rate, Nonlinearity, SETAR, TAR
provides the speculation and expedites the carry trade, in also exists high risk in the speculation.
which there are substantial profits available. However, there
The figure 1 above summarizes the exchange rate relative is gradually becoming a more realistic representation of data
to some selected currencies in the world market. generation processes. In finance, for instance, stock returns
tend to be more correlated when there is low volatility than
when volatility is high. A similar behavior has been observed
2. Review of Relevant Literature in exchange rate mechanisms where the exchange rate may
be constrained to lie within a pre-defined target zone [4]. To
So many Empirical econometric modeling works in accommodate this kind of dynamic behavior using time
Agricultural Economics, finance and economic data assume series data, regime-switching models (RSM) have been
that relationships are linear. Economic theory plays a introduced ([15] & [16]; [7]). Threshold autoregressive
passive role on this issue, and thus most applied research (TAR) model begins to be regularly appears in the
finds it convenient to assume linearity. In the 2000's, some agricultural economics literature as a model that is popularly
researchers try to challenge the empirical theory ―the used [18], and extensively discussed in Tong [17].
random walk model predicts the exchange rate best‖. They
used different methods and chose different models. For
examples, data from Central and Eastern European countries 3. Mathematical Preliminaries of TAR
was used to compare the forecasting models in transition
economies [2]. Intraday foreign exchange rates were used as
and SETAR Models
observations [9]. They found that some sophisticated time 3.1. SETAR Models
series models such as the Markov regime-switching model
have better performance than the random walk models under The SETAR model is a convenient way to specify a TAR
the condition of intensive time period. Thus, the empirical model because qt is defined simply as the dependent variable
theory ―the random walk model predicts the exchange yt . In this case, the process can be formally written as
rate best‖ does not work well sometimes. The thought 0,1 1,1 yt 1 2,1 yt 2 p1,1 yt p1 t if yt 1 c
expressed began to change based on irregularities observed yt
in economic and financial data, that non-linear specifications 0,2 1,2 yt 1 2,2 yt 2 p 2,1 yt p 2 t if yt 1 c
32 Akintunde Mutairu Oyewale et al.: Exchange Rate Forecasting Using Non-linear Threshold Models
It is interesting to highlight that the estimation of SETAR The estimation of the threshold values in Step 3 requires
models requires the application of least squares procedures that each regime contains enough observations for reliable
only, more specifically, sequential conditional least squares. estimation of the AR coefficients. About fifteen percent
For the two-regime SETAR model, the steps can be outlined (15%) of the observations on each regime seems to work
as follows: well.
Step 1: Set P1 P2 P for simplicity and estimate the
3.2. TAR Models
AR coefficients conditional on the value of the threshold (c).
Step 2: Calculate conditional residuals ˆt and estimated i ut 1 t if t 1 0
ut
variances ˆ t from the coefficients in step 1. 2ut 1 t if t 1 0
Step 3: Obtain least squares estimates of c by minimizing If the above sequence is stationary, the least squares
the residual variance ˆ c over all possible values of the estimates of P1 and P2 have an asymptotic multivariate
threshold coefficient c, that is, normal distribution. The process is formally specified as:
Cˆ arg min cˆ 2 c ut It i ut 1 I It 2ut 1 t
350
300
250
200
150
100
50
0
96 98 00 02 04 06 08 10 12 14 16 18
first diff
80
60
40
20
-20
-40
96 98 00 02 04 06 08 10 12 14 16 18
4.1. Identification of a Stationary Condition of the Series The results on the correlogram of the leveled for the
The line graph of the series Figure 2 indicates the series shows stronger evidence of non-stationarity since its
non-stationarity of the series. There is evidence of volatility autocorrelation coefficient function (ACF) of the residuals
as the values do not fluctuate around a constant mean. The does not quickly decay to zero. On the other hand, the
first differences of the series were taken (figure 3) and the correlogram of the first difference shows that it is consistent
graphs seem to fluctuate around a constant mean of zero with mean stationarity because most of the values promptly
value. decay to zero. Tables 1 and 2 below show both the
correlgrams for level and first difference.
The stationary conditions of the series were formally Table 3. Original Data
verified by using Unit Root test (URT) for the leveled Null Hypothesis: VALUES has a unit root
and first differences of the series. We tested for a unit root Exogenous: Constant
using the augmented Dickey-Fuller (ADF) statistic. At level, Lag Length: 0 (Automatic - based on SIC, maxlag=15)
(table 3) all the series are not stationary but at first difference t-Statistic Prob.*
(table 4) all series appeared stationary as shown in the tables
Augmented Dickey-Fuller test statistic 0.117358 0.9666
below:-
Test critical values: 1% level -3.453997
5% level -2.871845
10% level -2.572334
Table 4. First Difference Panel A (table 6) is regime 1 of the two-regime SETAR and
Null Hypothesis: D(VALUES) has a unit root panel B (table 7) is regime 2. We select the most appropriate
Exogenous: Constant model by minimizing value of AIC. We build up a
Lag Length: 0 (Automatic - based on SIC, maxlag=15) two-regime SETAR model, SETAR (2, 7, 4).
t-Statistic Prob.* Table 7. Panel B Regime 2 Observations Included 308
Augmented Dickey-Fuller test statistic -14.89460 0.0000
RANK MODELS AIC
Test critical values: 1% level -3.454085
1 AR(4) 9.0982
5% level -2.871883
2 AR(10) 9.0021
10% level -2.572354
3 AR(3) 9.0882
*MacKinnon (1996) one-sided p-values. 4 AR(9) 9.0071
5 AR(7) 9.0765
4.2. Results of ARIMA Model Selection
6 AR(4) 9.0974
To identify the appropriate model parameter of ARIMA
7 AR(5) 9.0053
(p, d, q), AIC is adopted. From the unit root test, we obtain d
to be 1. As to parameters p and q, we run the regression 8 AR(1) 9.0642
through the combinations of from p = 1 to p = 10 and from 9 AR(2) 9.0523
q = 1 to q = 10. For sake of saving space, we just list the top 10 AR(6) 9.7432
10 with higher AIC values here. As shown in Table 5 below
the model with the smallest value (9.14334) of AIC is the 4.4. Results Out-of-sample Forecasting Performance
optimal ARIMA (6, 1, 9) chosen.
In this section, we check out-of-sample forecast
Table 5. Arima Model Results performance of the two models. By checking multi-criteria
RANK MODELS AIC
(MSE, MAE, AMPE, and MAPE) on ARIMA and SETAR,
we can compare the residual of these two models. For the
1 ARIMA ( 6,1, 9) 9.14340
mean squared error (MSE), SETAR is smaller than ARIMA
2 ARIMA ( 9,1,7) 9.14403 with 4479.28 and 5744.65. This means SETAR has a fewer
3 ARIMA ( 9,1,9) 9.14545 errors in the standard of MSE. For the mean absolute error
4 ARIMA ( 9,1,6) 9.14505 (MAE), the adjusted mean absolute property error (AMAPE)
5 ARIMA ( 8,1,9) 9.14871 and mean absolute property error (MAPE), SETAR is also
6 ARIMA ( 10,1,9) 9.14879 smaller than ARIMA with fewer errors. According to our
7 ARIMA ( 6,1,6) 9.14978
result shown in the table 8 below, the SETAR model is better
than the ARIMA model over the sample period (second
8 ARIMA ( 9,1,8) 9.15125
regime).
9 ARIMA ( 6,1,5) 9.15178
Comparison of Forecasting Power.
10 ARIMA ( 6,1,10) 9.15368
Table 8. Comarison of Forecasting Power by Models
4.3. Results of SETAR Model MSE MAE AMAPE(%) MAPE (%)
Table 6. Panel A Regime 1 Observations Included 764 SETAR 4479.28 45.51 90.68 89.02
ARIMA 5744,65 58.32 304.20 190.91
RANK MODELS AIC
1 AR(7) 9.8432
2 AR(9) 9.8120 5. Conclusions
3 AR(1) 9.8743
4 AR(6) 9.8321
At first, we believed there is no way for a linear regression
to suit a series forever where stock prices follow a non-linear
5 AR(3) 9.8845
trend. Due to the economic environment changing, the stock
6 AR(4) 9.8764
market will be affected and change over time. Therefore,
7 AR(2) 9.8221 non-linear regression should be better than linear regression
8 AR(10) 9.8765 in the exchange rate market. First step of handling time series
9 AR(8) 9.9872 data is to check stationary state in the mean. We found out
10 AR(5) 9.9721 there was a unit root existed so we analyzed the
first-difference. Next, we constructed an ARIMA model
In our self-exciting threshold autoregressive (SETAR) by using AIC selection criteria. And we build up a SETAR
model, we assume that a variable Naira is a linear model by AIC as well. Afterward, we checked the
autoregression within a regime. As there are two regimes in forecasting power by four criteria (MSE, MAE, AMAPE,
the study, the model could be written as SETAR (2, p, p). and MAPE) and all of those standards showed that SETAR
36 Akintunde Mutairu Oyewale et al.: Exchange Rate Forecasting Using Non-linear Threshold Models
has a stronger predicting power than ARIMA. The results [10] Hongxing, L., Zhaoben, F., & Dongming, Z. (2007).
also support previous assumptions of this thesis. Non-linear GBP/USD Currency Exchange Rate Time Series Forecasting
Using Regularized Least-Squares Regression Model.
SETAR model is better than linear ARIMA model in Nigeria Proceeding of the World Congresson Engineering, Vol 2.
exchange rate market.
[11] Isenah, G. M. O., Olusanya E. (2014). Forecasting Nigerian
Stock Market Returns Using ARIMA and Artificial Neural
Network Models. CBN Journal of Applied Statistics, Vol.5
(No.2).
REFERENCES [12] Jarrett, J. E. K., Eric (2011). Arima modeling with
intervention to forecast and analyze Chinese stock prices.
[1] Bank for International Settlements 2016. Triennial Central
International Journal of Engineering Business Management,
Bank Survey of Foreign Exchange and Derivatives Market
Vol.3.
Activity in April 2010: Preliminary Global Results. Bank for
International Settlement, September. [13] Meyler, A., Kenny, G., & Quinn, T. (1998). Forecasting Irish
Inflation Using Arima Model (Vol. Vol. 1998, pp. 1-48):
[2] Cuaresma, J. C., B. _Egert, & R. MacDonald (2005):
Ireland: Central Bank and Financial Services.
\Non-linear exchangerate dynamics in target zones: A bumpy
road towards a honeymoon."Working Paper 771, William [14] Mondal, P. S., Labani & Goswami, Saptarsi (2014). Study on
Davidson Institute. Effectiveness of Time Series Modelling (Arima) in
Forecasting Stock Prices. International Journal of Computer
[3] David, H., Lee, J., & Takizawa, H. (2010). In which exchange
Science, Vol4 (No.2).
rate models do forecastters trust?: IMF Working Paper.
[15] Priestly, E. (1980) “Using Threshold Cointegration to
[4] Franses, P. H. and D van Dijk. Non-linear time series models
Estimate Asymmetric Price Transmission in the Swiss Pork
in empirical economics. NewYork, Cambridge University
Market,” Applied Economics: 679-87.
Press, 2000.
[16] Priestly, E. (1988): “Threshold-Autoregressive,
[5] Hansen, B. E. (1996): “Inference when a Nuisance Parameter
Median-Unbiased, and Cointegration Tests of Purchasing
is not Identified under the Null Hypothesis,” Econometrica,
Power Parity,” International Journal of Forecasting, 14,
64, 413-430.
171-186.
[6] Hansen, B. E. (2000): “Sample Splitting and Threshold
[17] Tong, H. (1990) Threshold Models in Non-Linear Time
Estimation,” Econometrica, 68, 575-603.
Series Analysis. New York: Springer Verlag.
[7] Granger, C. W. J., and Terasvirta, T. (1993): Modeling
[18] Tong, H., & Lim, K. S. (1980). Threshold autoregressive,
Nonlinear Economic Relationships, Oxford, U.K. Oxford
limit cycles and cyclical data. Journal of the Royal Statistical
University Press.
Society Series B, 42(3), 245–292.
[8] Guha, B., & Bandyopadhyay, G. (2016). Gold Price
[19] Znaczko, T. M. (2013). Forecasting Foreign Exchange Rates.
Forecasting Using Arima Model. Journal of Advanced
Applied Economics Theses, Vol.4.
Management Science, Vol.4 (No.2).
[9] Hong, Y. and Lee, T.H., (2003). Inference on predictability
of foreign exchange rates via generalized spectrum and
non-linear time series models. Review of Economics and
Statistics, 85, 1048-1062.