Next Article in Journal
Dynamic Expectation Theory: Insights for Market Participants
Next Article in Special Issue
Equity Market Contagion in Return Volatility during Euro Zone and Global Financial Crises: Evidence from FIMACH Model
Previous Article in Journal
Simulation of the Grondona System of Conditional Currency Convertibility Based on Primary Commodities, Considered as a Means to Resist Currency Crises
Previous Article in Special Issue
Quasi-Maximum Likelihood Estimation for Long Memory Stock Transaction Data—Under Conditional Heteroskedasticity Framework
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Equalizing Seasonal Time Series Using Artificial Neural Networks in Predicting the Euro–Yuan Exchange Rate

The Institute of Technology and Business in České Budějovice, Okružní 517/10, 37001 České Budějovice, Czech Republic
*
Authors to whom correspondence should be addressed.
J. Risk Financial Manag. 2019, 12(2), 76; https://doi.org/10.3390/jrfm12020076
Submission received: 30 March 2019 / Revised: 26 April 2019 / Accepted: 26 April 2019 / Published: 30 April 2019
(This article belongs to the Special Issue Analysis of Global Financial Markets)

Abstract

:
The exchange rate is one of the most monitored economic variables reflecting the state of the economy in the long run, while affecting it significantly in the short run. However, prediction of the exchange rate is very complicated. In this contribution, for the purposes of predicting the exchange rate, artificial neural networks are used, which have brought quality and valuable results in a number of research programs. This contribution aims to propose a methodology for considering seasonal fluctuations in equalizing time series by means of artificial neural networks on the example of Euro and Chinese Yuan. For the analysis, data on the exchange rate of these currencies per period longer than 9 years are used (3303 input data in total). Regression by means of neural networks is carried out. There are two network sets generated, of which the second one focuses on the seasonal fluctuations. Before the experiment, it had seemed that there was no reason to include categorical variables in the calculation. The result, however, indicated that additional variables in the form of year, month, day in the month, and day in the week, in which the value was measured, have brought higher accuracy and order in equalizing of the time series.

1. Introduction

In this article, the authors focus on comparing the application of neural networks to the exchange rate using different modeling approaches. It has seemed before the experiment that there is no reason for including the categorical variables in order to capture the seasonal fluctuations of the two currencies exchange rates. Two sets of artificial neural networks were generated: (1) An independent variable was time, and a dependent variable was the Euro and Chinese Yuan exchange rate. (2) Seasonal fluctuation was represented by a categorical variable in the form of the year, month, day in the month, and day in the week in which the value was measured.
Predicting exchange rates is an important financial issue. In literature, great attention is paid namely to the difficulties in linear unpredictability of the exchange rate distribution. The development of the two currencies exchange rate can be predicted based on the statistical methods, causal methods, and intuitive methods. Conventional models based on the methods of linear time series often failed; therefore, non-linear time series models are used nowadays. In this article, the authors focus on comparing the statistical methods—artificial neural networks. This is a very interesting approach, which has not been solved in the scientific literature according to the available information. This question is very important for obtaining a model that enables to reduce the error predictions.
The objective of the contribution is to propose a methodology for considering seasonal fluctuations when equalizing time series by means of artificial neural networks on the example of Euro and Chinese Yuan. The article includes a literature review of the given issue, followed by a methodology part describing the methods and neural networks models used. The following sections deal with the results, where first the results without the involvement of seasonal fluctuations are presented, followed by the inclusion of a categorical variable. These two calculations are compared. In conclusion, the results are summarized and discussed.

2. Literature Review

The objective of the contribution is to propose a methodology for considering seasonal fluctuations when equalizing time series using artificial neural networks on the example of Euro and Chinese Yuan.
Time series can be described as certain observations of data, which are arranged in a horizon from the time perspective, from past to present. The analysis of time series is used mostly for future predictions (Mai et al. 2018). According to Rowland and Vrbka (2016), time series analysis is the area where neural networks are widely used. It is possible to use them for regression, classification, etc. Vrbka and Rowland (2017) stated that their main advantages were their capability of working with extensive data, the accuracy of results, and easy application in complex problems and forecasts. Vochozka and Vrbka (2019) claimed that numerical series were essential parts and important aspects of the whole process of exchange rate development. Numerical series are able to map past development and current status, and predict. Rodrigues et al. (2019) stated that by means of time series, it is possible to predict future values based on the past values. Accurate time series prediction is important for a wide range of areas. To determine the prediction methods and their time horizon, it is necessary to have the most accurate image of the prediction variables, nature of the data, and data availability, (Rostan and Rostan 2018).
Artificial neural networks provide powerful models for many economic classifications as well as for problems with regression. Neural networks are successfully used, e.g., for distinguishing between sound economic entities and those that are prone to bankruptcy, for predicting inflation–deflation, exchange rates, or shares price (Veselý 2011). In the last ten days, neural networks have changed from an esoteric tool in academic research into a common instrument, which helps auditors, investors, portfolio managers, and investment advisors in making financial decisions (Chen and Leung 2005). According to Klieštik (2013), artificial neural networks are computing models inspired by biological neural networks, which are used for a number of various areas. Figure 1 shows a model of an artificial neuron.
Artificial neural networks are a reliable and flexible array of simple potent elements (neurons). This array enables interconnecting various inputs and outputs of neurons, favoring or suppressing some inputs, and minimizing the influence of a malfunctioning neuron on the overall result (Baptista et al. 2013).
Nowadays, neural networks are used namely for predicting values, solving potential problems in the future and are able to provide various solutions in estimating problems, regression, or optimization.
Martinovic et al. (2017) argued that the exchange rate was one of the most monitored economic variables. In the long run, it reflected the state of the economy, and in the short and medium term, it significantly affected it. The exchange rate can be monitored both in nominal and real terms (Jebran and Iqbal 2016). According to Clements et al. (2018), the link between the exchange rate and economic fundamentals formed a new basis. Based on the data situation analysis and empirical analysis of the business econometric model, it can be found out that the increasing export from China significantly affected the Euro market (Wang and Yang 2016).
According to Cai et al. (2012), CNY (Chinese Yuan) exchange rates can be considered as financial time series characterized by high non-linearity, uncertainty, and different behavior over time. Liu et al. (2009) focused on predicting exchange rates using RBF neural networks. Based on the experiments results, it can be stated that RBF neural networks are efficient and applicable for predicting the CNY exchange rates.
Nag and Mitra (2002) used a hybrid artificial intelligence method based on neural networks and a genetic algorithm. The results were appropriately compared with other non-linear statistical models, finding out that the hybrid method shows a higher performance than traditional non-linear time series methods. Galeshchuk and Mukherjee (2017) investigated the ability of neural networks to predict the changes in the forex rates EUR/USD, GBP/USD, and JPY/USD, finding out that the trained deep neural networks achieve a satisfactory accuracy of predictions. Similarly, Shen et al. (2015) came to the conclusion that the method proposed by them works better than traditional methods. The quality of the created models was also confirmed by Pradeepkumar and Ravi (2018), who studied and presented 82 such models for predicting exchange rates created between 1998 and 2017. They found that nearly all authors in this field demonstrated much better accuracy of hybrid models based on artificial intelligence.
Zhang and Wan (2007) designed a statistical fuzzy interval neural network with statistical interval input and output values for carrying out statistical fuzzy knowledge and predicting the exchange rate. The simulations were completed from the perspective of exchange rates between the American dollar and other three exchange rates (Japanese yen, British pound, and Hong Kong dollar). The results of the simulations proved that the neural network with a fuzzy interval provides great results of predictions.
Chen et al. (2009) used the integrated approach of an artificial neural network for predicting the American dollar and Chinese renminbi exchange rates. To achieve better predicting performance in terms of exchange rates, an integrated predicting model has been created, which uses an artificial neural network application called Alyuda Neuro Intelligence as a tool for predicting. The results of the study prove the efficiency and effectiveness of the artificial neural network integrated model and shall contribute to the development of this theory.
To characterize and predict implicated volatility on foreign exchange markets, Kearney et al. (2016) used a new technique of functional time series (FTS). It showed that the FTS model created realistic and credible implied shapes of volatility that corresponded to the empirical data in the volatility period between 2006 and 2013. Moreover, the FTS model outgrew the assumed predictions of volatility made by parametrical models.
Falát et al. (2015) examined the dynamics of EUR/GBP volatility dynamics using a statistical and neural approach, which was an alternative approach to time series modeling and predicting in economics. The objective of the contribution is to provide a method for modeling the dynamic economic time series. The authors propose an alternative approach to predictions of time series with an unstable volatility. They propose and implement several neural networks prediction models. The proposed models are realistic and acceptable for economic modeling.
Milovanovic et al. (2017) stated that endocrine neural networks (ENN) used artificial glands that allowed the network to adapt to external disorders. ENN is a network improved by creating a sensitivity parameter and implementation of orthogonal activation functions within a network structure. The network was tested using a series of experimental data in real time with the aim to predict the exchange rate of three widely used international currencies.

3. Materials and Methods

Data for analysis are available at the World Bank (2018) websites. For the purposes of the analysis, the information on the Euro to Yuan exchange rates is used. The time period for which the data are available is the period between 6th October 2009 and 21st October 2018. Daily exchange rates of both currencies are recorded. It is a total of 3303 input data. A unit is the number of Yuan for 1 Euro.
Data descriptive characteristics are shown in Table 1.
For data processing, DELL’s Statistica software, version 12 was used. For calculation of the neural structures, the Data mining tool, namely neural networks (ANS—automated neural networks) was used. The above formulated automated neural networks, which the software contained, was used. Artificial neural network is a structure designed for distributed parallel data processing. It consists of artificial (or also formal) neurons, whose biological model is a neuron. Neurons are interconnected and transmit signals to each other and transform them with certain transmission functions. Neuron has a number of inputs, but only one output. The general neural network model is described as follows:
Y   =   S ( i = 1 N ( w i x i )   +   θ ) ,
where xi are neuron inputs, wi are synaptic weights, θ is a threshold, S(x) is the neuron transfer function (activation function), and Y is a neuron output.
Regression using neural structures was carried out. Due to the DELL´s Statistica software setting, we generated only multi-layer perceptron networks and radial basis function neural networks. Thus, other neural network types, such as recurrent neural networks (RNN), probabilistic neural networks (PNN), or Kohonen network (although used for different purposes) were not considered. MLP and RBF are the two most widely used types of neural networks that the software offers. MLP can be calculated as follows:
y k n = f ( w 0 , k n   +   i = 1 m y i n 1   ×   w i , k n ) .
The output of the k-th neuron is located in the n-th hidden or output layer. f(x) is the neuron transfer function, w0,kn is the bias of the neuron, and m is the number of weights of the neuron.
MLP is a network consisting of several layers. The input layer, where the number of neurons corresponds to the size of the input vector, is followed by the hidden layer. The output layer, in which the number of neurons corresponds to the size of the output vector (see Figure 2) is connected to the input and hidden layers.
RBF can be calculated as follows:
f k ( x ) = j = 1 k w i φ ( | x c j | ) ,
where cj is the point defining the center of fk(x) function and φ specifies a particular type of radial base function.
Besides the input branching layer, RBF networks have two more layers of neurons—the hidden and output one. Those are characterized by a forward signal dissemination and learning with a teacher, while the learning speed is their great advantage. The RBF networks are used mainly for equalizing, approximating, and interpolating less structured problems with dispersed data. Graph representation of the network can be seen in Figure 3.
Two sets of artificial neural networks were generated:
  • An independent variable was time (it is a time trend). A dependent variable was the Euro and Chinese Yuan exchange rate.
  • A continuous independent variable was time. Seasonal fluctuation was represented by a categorical variable in the form of the year, month, day in the month, and day in the week in which the value was measured. Each variable were examined separately. We thus worked with the possible daily, monthly, and annual seasonal fluctuations of the time series. A dependent variable was the Euro and Chinese Yuan exchange rate.
Then, we worked analogically with the data sets. The time series was divided into training, testing, and validation data sets. The first set contained 70% of the input data. Based on the training data set, neural structures were generated. The remaining two data sets contained 15% of the input data each. Both data sets were used for verification of the generated neural structure or model reliability. The delay of the time series was 1. We generated 100,000 neural networks, out of which 5 with the best characteristics1 were retained. The hidden layer of the multi-layer perceptron network contained at least two neurons (50 at most). In the case of the radial basis function, the hidden layer contained at least 21 neurons (30 at most). For multi-layer perceptron network, we considered the following distribution functions in the hidden and output layers:
  • Linear,
  • Logistic,
  • Atanh,
  • Exponential,
  • Sinus.
Other settings were default (according to the ANN tool). Finally, the results of both groups of retained neural networks will be compared.

4. Results

This section was divided by two subheadings—neural structures A and neural structures B.

4.1. Neural Structures A

Based on the established procedure, 100,000 neural networks were generated, out of which 5 with the best characteristics were retained. Their overview is seen in Table 2.
These are only radial basis neural networks. The hidden layer contains only one variable—time. The hidden layers of the neural networks contain between 24 and 30 neurons. The output layer logically contains only one neuron and one output variable—the Euro to Yuan exchange rate. For all three networks, training algorithm RBFT was applied. For the activation of the hidden layer, all neural structures used the identical function, Gaussian function. Similarly, for the activation of the output layer of neurons, the same function (Identity) is used. For more details, see Table 2.
Training, testing, and validation performance was also interesting. Generally, we were looking for such a network whose performance in all data sets was ideally the same (here, it should be noted that the division of the data into the data sets was random). The error level was as low as possible.
The performance of the individual data sets is in the form of the correlation coefficient. The values of the individual data sets by specific neural networks are given in Table 3.
It results from the table that the performance of all retained neural structures is almost the same. The slight differences do not have any influence on the performance of the individual networks. The value of the correlation coefficient of all training data sets is in the interval of more than 0.981 to more than 0.984. The correlation coefficient of the testing data sets achieves the same values as in the case of the training data set. The correlation coefficient of the validation data set of all neural networks is above 0.983. It should be also noted that the error for all data sets is in the interval between almost 0.009 to more than 0.01. The differences in the error of the equalized time series in the individual data sets are almost negligible.
To choose the most suitable neural structure, further analysis of the results obtained must be carried out. Table 4 shows the basic statistical characteristics of the individual data sets for all neural structures.
In ideal case, the individual statistics of the neural networks match horizontally in all data sets (minimum, maximum, residuals, etc.). In the case of the retained neural networks, the differences of the equalized time series are minimal both in terms of absolute values and residuals. Still, we are not able to identify unambiguously which of the retained neural networks shows the best or the most suitable results. All the structures appear to be applicable in practice.
Figure 4 shows a line graph that represents the actual development of the Euro and Yuan exchange rate and also the development of predictions by means of the individual generated and retained networks (or equalized time series). The blue curve follows the actual development of the exchange rate, while the other curves always follow one of the retained neural networks.
It follows from the graph that all the neural networks predict the development of the Euro to Yuan exchange rate slightly differently in the individual intervals. However, what is important is not the similarity of the individual network predictions but their similarity to (or degree of conformity with) the actual development of both currencies exchange rate. Even in this respect, it may be stated that all the retained neural networks appear to be very interesting at first sight. They follow the basic gradient of the curve representing the development of Euro to Yuan exchange rate and at the same time perceive the extremes of this curve.
Since the graph in Figure 4 contains 3303 data on Euro exchange rate to Yuan, it may appear unclear. Therefore, it would be good to demonstrate the situation in a selected data interval. The graph in Figure 5 shows a comparison of the actual development of the Euro to Yuan exchange rate in the interval of the last 100 days of the monitored period, that is, from 14th July to 21st October 2018.
It is evident from the graph that neither of the retained neural networks is able to imitate the actual development of Euro to Yuan in the monitored interval. The closest to the actual development is network 1. RBF 1-24-1. At the beginning of the monitored period, it almost coincides with the actual price of Yuan; similarly, at the end of the monitored period, it is not much different from the target value. In both cases, the difference is of the order of a few hundredths. Even the least accurate network, 3. RBF 1-30-1, differs from the actual exchange rate by less than 0.15 Yuan. Therefore, examining the residuals also appears to be interesting. The development of residuals between 14th July and 21st October 2018 is shown in Figure 6.
It results from the graph that in the monitored period, the sum of the residuals approaching zero appears at all neural networks except for 2. RBF 1-29-1. In this case, all residuals achieve relatively high values. To illustrate the situation, Table 5 shows the sum of the residuals of all equalized time series.
When leaving aside the residuals fluctuations during the whole monitored period, the sum of the residuals will be zero in the ideal case. The network closest to the ideal case is 5. RBF 1-26-1 network, whose sum of the residuals is nearly 0.676. The highest sum of the residuals is achieved by 1.RBF 1-24-1, and 3. RBF 1-30-1, whose sum of the residuals are above 10 in both cases. The results of the last analysis show that the most successful time series is 5. RBF 1-26-1 network. However, it shall be noted that, considering the 3303 measurements carried out, even the value of 10 appears minimal. We can, therefore, claim that 1. RBF 1-24-1 network remains the most successful neural structure.

4.2. Neural Structures B

Based on the procedure mentioned above, 100,000 neural networks were generated, out of which 5 with the best characteristics were retained. Their overview is shown in Table 6.
These are only multi-layer perceptron networks. The input layer contains four variables: time, year, month, and day. Time is represented by one neuron in the input layer, year by 10 neurons, day in a week by 7 neurons, and day in a month by 31 neurons in the input layer of the networks. The input layers of the generated and retained neural networks thus consist of 61 neurons. The hidden layers contain 10 or 11 neurons. The output layer logically contains only one neuron and one output variable—Euro exchange rate to Yuan. For all networks, Quasi-Newton training algorithm was applied, either in version 3 or 4. All neural networks used the same function for the activation of the neurons in the hidden layer, namely hyperbolic tangent. For the activation of the output layer, the retained neural networks used the following functions: hyperbolic tangent, logistic function, sinus, and function Identity (for more details, see Table 6).
We are looking for such a network whose performance in all data sets is ideally the same (here, it should be noted that the division of the data into the data sets was random). The error shall be as small as possible.
The performance of the individual data sets is given in the form of the correlation coefficient. The individual data sets values by concrete neural networks are shown in Table 7.
It results from the table that the performance of all retained neural structures is approximately the same. The slight differences do not affect the performance of the individual networks. The correlation coefficient of all training data sets is above 0.998. The correlation coefficient of the testing data sets is nearly 0.997 or above this value. The correlation coefficient of all neural networks validation data sets is above 0.996. At the same time, it has to be noted that the error in all data sets is in the interval of more than 0.0008 to less than 0.002. The error differences of equalized time series in the individual data sets are almost negligible.
To choose the most suitable neural structure, further analysis of the results obtained must be carried out. Table 8 shows the basic statistical characteristics of the individual data sets for all neural structures.
In the case of retained neural structures, the differences of equalized time series are minimal both in terms of absolute values and residuals. Not even on the basis of the data obtained, it is possible to identify unambiguously which of the retained neural structures shows the best results. All the neural structures appear to be applicable in practice.
Figure 7 shows a line graph presenting the actual development of the Euro to Yuan exchange rate and also the development of predictions by means of the individual generated and retained networks (or equalized time series). The blue curve follows the actual development of the exchange rate, while the other curves always follow one of the retained neural networks.
It is evident from the graph that all the neural networks predict the development of the Euro to Yuan exchange rate in the individual intervals almost identically. Also, the course of the equalized time series is very similar to the actual course of the Euro to Chinese Yuan exchange rate. They follow the gradient of the curve representing the development of the Euro to Yuan exchange rate, but at the same time, they also precisely describe the extremes of the curve.
Given that the graph in Figure 7 includes 3303 data on Euro exchange rate to Yuan, it may appear unclear. Therefore, it would be good to demonstrate the situation on the selected data interval. The graph in Figure 8 shows a comparison of the actual development of the Euro to Yuan exchange rate in the last 100 days of the monitored period, i.e., from 14th July to 21st October 2018.
The graph shows that all neural networks can imitate the exchange rate of Euro to Yuan quite well. The deviation in the individual interval sections is 0.05 Yuan at most. Bigger differences were detected only on 25th September 2018, 1st October 2018, and 2nd October 2018; however, even on these days, the differences are not bigger than 0.1 Yuan. Based on the graph comparison, it can be stated that all the retained neural networks are applicable for the prediction. Therefore, examining residuals appears to be interesting. The development of the residuals between 14th July and 21st October 2018 is seen in Figure 9.
It results from the graph that the sum of the residuals approaching zero can be seen with all neural networks in the monitored period. To illustrate the situation better, Table 9 shows the sum of the residuals of all equalized time series for the entire period.
Leaving aside the individual fluctuations of the residuals during the entire monitored period, the sum of the residuals is zero in the ideal case. Closer to zero is the sum of the residuals of the 5th neural network 5. MLP 61-10-1, which is 0.0001. On the contrary, the highest value of the sum is achieved by 4. MLP 61-11-1 network (0.844). The differences are minimal. It is therefore possible to confirm that all the retained neural networks are capable of equalizing the time series of Euro to Chinese Yuan exchange rate reliably and can be used for a machine prediction of these two currencies’ exchange rate.

4.3. Comparising Results of A and B

All the generated and retained artificial neural networks were able to equalize the examined time series—Euro to Yuan exchange rate. Even the comparison of the correlation coefficients (see Table 3 and Table 7) clearly shows a higher performance of the B alternative, that is, the MLP neural networks (when including additional categorical variables). This is also reflected in assessing the basic predictions statistics of the equalized time series (see Table 4 and Table 8). The retained MLP networks, or their equalized time series, show smaller mutual differences in training, testing, and validation data sets than in the case of the RBF networks (without additional variable). This can be seen in Figure 4, Figure 5, Figure 6, Figure 7, Figure 8, Figure 9 and Figure 10. At first sight, it is clear that only the MLP networks of the B alternative are capable of capturing the actual time series course (for more details, see Figure 10).
The seasonality of both currencies’ mutual exchange rate development was observed in three aspects. The information whether the seasonality in time series, or equalized time series, can be identified is given by the sum of absolute residuals. First, we focused on the differences between the individual months (for more details, see Table 10).
The table shows the differences between the individual months. Specifically, e.g., June showed higher absolute residual values (volatility). Conversely, the lowest absolute residual values were recorded in November.
Volatility was also monitored at the level of one month, in particular by the individual days of a month (see Table 11).
Table 11 shows that even a day in a month can play a role. Specifically, the first few days of the month shows higher volatility. Conversely, the lowest volatility was identified in the last few days of the month. However, this value can be influenced by the fact that not all months have 31 days. Therefore, the sum of the absolute residuals on the 29th, 30th, and 31st day is lower than that in the previous days. However, the volatility is higher during the first few days of the month.
Finally, possible differences between the individual days of a week were studied (see Table 12).
The table shows lower volatility only on Monday. The volatility in the other days is approximately the same.
To sum up, seasonality is visible in terms of a calendar month, a day of a month, and a day of a week (albeit only slightly in some cases). Thanks to the selected method of equalizing the time series (or adding another variable) and prediction of the future time series development, more accurate results were obtained, which can be better used in practice.
Also, thanks to additional categorical variables, the researchers succeeded in identifying the seasonal effect on the exchange rate, and the result is definitely more accurate than in the case of predicting the future development based on a single continuous variable—time.
However, if we include seasonal variables, we get a better result.
It should be noted that neural networks alone do not address seasonality. The difference between the two calculation options is obvious. Previous publications did not address the inclusion of seasonality in models; this is the added value of this article.

5. Discussion and Conclusions

The objective of the contribution was to propose a methodology for considering seasonal fluctuations when equalizing time series by means of artificial neural networks on the example of Euro and Chinese Yuan.
Generally, each prediction was given by a certain degree of probability with which it gets fulfilled. Predicting the future development of any variable means to estimate its future development based on the data from the previous periods. Although we are able to include most of the factors affecting the target variable in the model, there is always a certain simplification of reality and we thus work with a certain degree of probability that the predicted scenario will become true.
In the contribution, the authors focused on comparing the application of the same tool at a different initial assignment. Despite it had seemed before the experiment that there was no reason for including the categorical variable in order to capture the seasonal fluctuations of the two currencies exchange rates, the opposite proved to be true. The additional variables in the form of year, month, day in a month, and day in a week in which the value had been measured resulted in higher accuracy and order of the time series.
The development of the two currencies exchange rate can be predicted based on the statistical methods, causal methods, and intuitive methods. In this contribution, the authors focused on comparing the statistical methods. However, these only provided a possible framework of the monitored variable development. What is important is to work subsequently with the information on the possible future development of the economic, political, or legal environment. If it is possible to predict their development, it can subsequently be incorporated in the monitored variable. Here, the personality of the evaluators starts to play a role—economists, who, based on their knowledge and experience correct the price set by statistical methods and specified based on the causal links. However, in this case, it appears to be possible to test the prediction only by means of the B alternative, which gives a relatively higher degree of accuracy. Interesting results were reported by the MLP networks.
The objective of the contribution was achieved.
An interesting fact is that in the case of the A alternative, the most successful networks appeared to be the radial basis neural networks. On the contrary, in the case of the B alternative, the most successful ones were the multi-layer perceptron neural networks. It would undoubtedly be an interesting experiment if only one type of neural structures was generated for the given situation, different from the results already obtained (that is, MLP networks for the A alternative, and RBF for the B alternative). The numbers in this article explain the trend. The variable was explained, but also predicted.

Author Contributions

Conceptualization, M.V. and J.H.; methodology, M.V.; software, M.V. and J.H.; validation, M.V., J.H., and P.Š.; formal analysis, P.Š.; resources, J.H. and P.Š.; writing—original draft preparation, M.V.; writing—review and editing, J.H.; supervision, M.V.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Baptista, Dario, Sandy Abreu, Fillipe Freitas, Rita Vasconcelos, and Fernando Morgado-Dias. 2013. A survey of software and hardware use in artificial neural networks. Neural Computing and Applications 23: 591–99. [Google Scholar] [CrossRef]
  2. Cai, Zongwu, Linna Chen, and Ying Fang. 2012. A New Forecasting Model for USD/CNY Exchange Rate. Studies in Nonlinear Dynamics & Econometrics 16: 1–18. [Google Scholar] [CrossRef]
  3. Chen, An-Sing, and Mark T. Leung. 2005. Performance evaluation of neural network architectures: the case of predicting foreign exchange correlations. Journal of Forecasting 24: 403–20. [Google Scholar] [CrossRef]
  4. Chen, Pin-Chang, Chih-Yao Lo, and Hung-Teng Chang. 2009. An Empirical Study of the Artificial Neural Network for Currency Exchange Rate Time Series Prediction. Paper presented at Sixth International Symposium on Neural Networks, Wuhan, China, May 26–29; pp. 543–49. [Google Scholar]
  5. Clements, Kenneth, Yihui Lan, and Jiawei Si. 2018. Uncertainty in currency mispricing. Applied Economics 50: 2297–312. [Google Scholar] [CrossRef]
  6. Falát, Lukas, Zuzana Staníková, Mária Ďurišová, Beata Holková, and Tatiana Potkanová. 2015. Application of Neural Network Models in Modelling Economic Time Series with Non-constant Volatility. Paper presented at International Scientific Conference: Business Economics and Management, Izmir, Turkey, April 28–30; pp. 600–7. [Google Scholar] [CrossRef]
  7. Galeshchuk, Svitlana, and Sumitra Mukherjee. 2017. Deep networks for predicting direction of change in foreign exchange rates. Intelligent Systems in Accounting Finance & Management 24: 100–10. [Google Scholar] [CrossRef]
  8. Jebran, Khalil, and Amjad Iqbal. 2016. Dynamics of volatility spillover between stock market and foreign Exchange market: Evidence from Asian Countries. Financial Innovation 2. [Google Scholar] [CrossRef]
  9. Kearney, Fearghal, Mark Cummins, and Finbarr Murphy. 2016. Forecasting implied volatility in foreign exchange markets: A functional time series approach. The European Journal of Finance 24: 1–18. [Google Scholar] [CrossRef]
  10. Klieštik, Tomáš. 2013. Models of autoregression conditional heteroskedasticity garch and arch as a tool for modeling the volatility of financial time series. Ekonomicko-manažerské spektrum 7: 2–10. [Google Scholar]
  11. Liu, Zhaocheng, Ziran Zheng, Xiyu Liu, and Gongxi Wang. 2009. Modelling and Prediction of the CNY Exchange Rate Using RBF Neural Network. Paper presented at 2009 International Conference on Business Intelligence and Financial Engineering, Beijing, China, July 24–26; pp. 38–41. [Google Scholar] [CrossRef]
  12. Mai, Yong, Huan Chen, Jun-Zhong Zou, and Sai-Ping Li. 2018. Currency co-movement and network correlation structure of foreign Exchange market. Physica A-Statistical Mechanics and its Applications 492: 65–74. [Google Scholar] [CrossRef]
  13. Martinovic, Marko, Zeljko Pozega, and Boris Crnkovic. 2017. Analysis of Time Series for the Currency Pair Croatian Kuna/Euro. Ekonomski Vjesnik 30: 37–49. [Google Scholar]
  14. Milovanovic, Miroslav, Dragan Antic, Marko Milojkovic, Sasa S. Nikolic, Miodrag Spasic, and Stanisa Peric. 2017. Time Series Forecasting with Orthogonal Endocrine Neural Network Based on Postsynaptic Potentials. Journal of Dynamic Systems, Measurement, and Control 139. [Google Scholar] [CrossRef]
  15. Nag, Ashok, and Amit Mitra. 2002. Forecasting daily foreign exchange rates using genetically optimized neural networks. Journal of Forecasting 21: 501–11. [Google Scholar] [CrossRef]
  16. Pradeepkumar, Dadabada, and Vadlamani Ravi. 2018. Soft computing hybrids for FOREX rate prediction: A comprehensive review. Computers & Operations Research 99: 262–84. [Google Scholar] [CrossRef]
  17. Rodrigues, Fillipe, Ioulia Markou, and Francisco C. Pereira. 2019. Combining time-series and textual data for taxi demand prediction in event areas: A deep learning approach. Information Fusion 49: 120–29. [Google Scholar] [CrossRef]
  18. Rostan, Pierre, and Alexandra Rostan. 2018. The versatility of spectrum analysis for forecasting financial time series. Journal of Forecasting 37: 327–39. [Google Scholar] [CrossRef]
  19. Rowland, Zuzana, and Jaromír Vrbka. 2016. Using artificial neural networks for prediction of key indicators of a company in global world. Paper presented at 16th International Scientific Conference on Globalization and its Socio-Economic Consequences, Rajecke Teplice, Slovakia, October 5–6; pp. 1896–1903. [Google Scholar]
  20. Shen, Furao, Jing Chao, and Jinxi Zhao. 2015. Forecasting exchange rate using deep belief networks and conjugate gradient method. Neurocomputing 167: 243–53. [Google Scholar] [CrossRef]
  21. Veselý, Arnost. 2011. Economic classification and regression problems and neural networks. Agricultural Economics - Zemedelska Ekonomika 57: 150–57. [Google Scholar] [CrossRef]
  22. Vochozka, Marek, and Jaromír Vrbka. 2019. Estimation of the development of the Euro to Chinese Yuan exchange rate using artificial neural networks. Paper presented at Innovative Economic Symposium 2018—SHS Web of Conferences, Beijing, China, November 8–9. [Google Scholar] [CrossRef]
  23. Vrbka, Jaromír, and Zuzana Rowland. 2017. Stock price development forecasting using neural networks. Paper presented at Innovative Economic Symposium 2017—SHS Web of Conferences, Ceske Budejovice, Czech Republic, October 19; p. 39. [Google Scholar] [CrossRef]
  24. Wang, Yimo, and Yonghua Yang. 2016. Analysis on the Impact of RMB Exchange Rates on Manufacturing Trade between China and EU Zone. Paper presented at 2016 2nd International konference on humanities and social Science Research, Singapore, July 29–31; pp. 42–45. [Google Scholar] [CrossRef]
  25. World Bank. 2018. Available online: https://www.worldbank.org/ (accessed on 9 February 2019).
  26. Zhang, Yan-Qing, and Xuhui Wan. 2007. Statistical fuzzy interval neural networks for currency exchange rate time series prediction. Applied Soft Computing 7: 1149–56. [Google Scholar] [CrossRef]
1
The least squares method was used. Generating networks was finished if there was no improvement, i.e., the sum of the square was not lower. We thus retained the neural structures whose sum of residuals squares to development of Euro and Chinese Yuan was as low as possible (zero in the ideal case).
Figure 1. Artificial neuron. (Source: Own processing.).
Figure 1. Artificial neuron. (Source: Own processing.).
Jrfm 12 00076 g001
Figure 2. Graph representation of a general MLP network. (Source: Own processing.).
Figure 2. Graph representation of a general MLP network. (Source: Own processing.).
Jrfm 12 00076 g002
Figure 3. Graph representation of a RBF network. (Source: Own processing.)
Figure 3. Graph representation of a RBF network. (Source: Own processing.)
Jrfm 12 00076 g003
Figure 4. Line graph—development of the Euro to Yuan exchange rate predicted by neural networks in comparison with the actual exchange rate in the monitored period. (Source: Own processing.)
Figure 4. Line graph—development of the Euro to Yuan exchange rate predicted by neural networks in comparison with the actual exchange rate in the monitored period. (Source: Own processing.)
Jrfm 12 00076 g004
Figure 5. Line graph—development of the Euro to Yuan exchange rate predicted by neural networks compared to the actual exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Figure 5. Line graph—development of the Euro to Yuan exchange rate predicted by neural networks compared to the actual exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Jrfm 12 00076 g005
Figure 6. Development of equalized time series residuals between 14th July and 21st October 2018. (Source: Own processing.)
Figure 6. Development of equalized time series residuals between 14th July and 21st October 2018. (Source: Own processing.)
Jrfm 12 00076 g006
Figure 7. Line graph—development of Euro exchange rate to Yuan predicted by neural networks in comparison with the actual exchange rate in the monitored period. (Source: Own processing.)
Figure 7. Line graph—development of Euro exchange rate to Yuan predicted by neural networks in comparison with the actual exchange rate in the monitored period. (Source: Own processing.)
Jrfm 12 00076 g007
Figure 8. Line graph—development of Euro to Yuan predicted by neural networks compared to actual exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Figure 8. Line graph—development of Euro to Yuan predicted by neural networks compared to actual exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Jrfm 12 00076 g008
Figure 9. Development of residuals of equalized time series between 14th July and 21st October 2018. (Source: Own processing.)
Figure 9. Development of residuals of equalized time series between 14th July and 21st October 2018. (Source: Own processing.)
Jrfm 12 00076 g009
Figure 10. Line graph—comparison of retained neural networks in equalizing time series of development of Euro to Yuan exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Figure 10. Line graph—comparison of retained neural networks in equalizing time series of development of Euro to Yuan exchange rate between 14th July and 21st October 2018. (Source: Own processing.)
Jrfm 12 00076 g010
Table 1. Data characteristics.
Table 1. Data characteristics.
SamplesCase (Input Variable)Euro to Chinese Yuan (Output Target)
Minimum (training)1.0006.56070
Maximum (training)3303.00010.29420
Mean (training)1643.7868.08101
Standard deviation (training)939.2600.75919
Minimum (testing)11.0006.56980
Maximum (testing)3302.00010.25190
Mean (testing)1664.7078.06546
Standard deviation (testing)957.9660.76986
Minimum (validation)20.0006.58290
Maximum (validation)3297.00010.30830
Mean (validation)1677.6778.09958
Standard deviation (validation)1438.2541.20789
Minimum (overall)1.0006.56070
Maximum (overall)3303.00010.30830
Mean (overall)1652.0008.08147
Standard deviation (overall)953.6380.76206
Source: Own processing.
Table 2. Overview of retained neural networks.
Table 2. Overview of retained neural networks.
IndexNetworkTraining Perform.Testing Perform.Validation Perform.Training ErrorTesting ErrorValidation ErrorTraining AlgorithmError FunctionActivation of Hidden LayerOutput Activation Function
1RBF 1-24-10.9835540.9847700.9840810.0093700.0090200.009390RBFTSum.sq.GaussianIdentity
2RBF 1-29-10.9818940.9817380.9837070.0103060.0107300.009532RBFTSum.sq..GaussianIdentity
3RBF 1-30-10.9848260.9853120.9845460.0086500.0087420.009129RBFTSum.sq.GaussianIdentity
4RBF 1-28-10.9843620.9846730.9832380.0089130.0090070.009832RBFTSum.sq..GaussianIdentity
5RBF 1-26-10.9834860.9846950.9841070.0094070.0090140.009311RBFTSum.sq.GaussianIdentity
Source: Own processing.
Table 3. Correlation coefficients of individual data sets.
Table 3. Correlation coefficients of individual data sets.
NetworkEuro to Chinese Yuan (Training)Euro to Chinese Yuan (Testing)Euro to Chinese Yuan (Validation)
1. RBF 1-24-10.9835540.9847700.984081
2. RBF 1-29-10.9818940.9817380.983707
3. RBF 1-30-10.9848260.9853120.984546
4. RBF 1-28-10.9843620.9846730.983238
5. RBF 1-26-10.9834860.9846950.984107
Source: Own processing.
Table 4. Statistics of individual data sets by retained neural structures.
Table 4. Statistics of individual data sets by retained neural structures.
Statistics1. RBF
1-24-1
2. RBF
1-29-1
3. RBF
1-30-1
4. RBF
1-28-1
5. RBF
1-26-1
Minimal prediction (training)6.854806.704986.857566.869306.79547
Maximal prediction (training)10.217659.9219410.2049310.1441310.17991
Minimal prediction (testing)6.855116.706176.857496.869596.79648
Maximal prediction (testing)10.217189.9219110.2035810.1438410.17832
Minimal prediction (validation)6.855286.705026.858256.870026.79581
Maximal prediction (validation)10.210069.9216410.1912810.1407310.18000
Minimal residuals (training)−0.45897−0.70049−0.40403−0.39654−0.45631
Maximal residuals (training)0.562850.414910.472970.496840.58830
Minimal residuals (testing)−0.47026−0.69190−0.38432−0.38399−0.43711
Maximal residua (testing)0.473460.404930.436410.458800.41700
Minimal residuals (validation)−0.45710−0.56530−0.35886−0.38681−0.42207
Maximal residuals (validation)0.575710.427830.467800.508290.58714
Minimal standard residua (training)−4.74158−6.90008−4.34425−4.20036−4.70472
Maximal standard residuals (training)5.814694.087025.085515.262796.06549
Minimal standard residuals (testing)−4.95139−6.67959−4.11032−4.04606−4.60389
Maximal standard residuals (testing)4.985113.909164.667404.834344.39212
Minimal standard residuals (validation)−4.71717−5.79008−3.75590−3.90102−4.37405
Maximal standard residuals (validation)5.941134.382034.896045.126176.08474
Source: Own processing.
Table 5. Sum of residuals of individual equalized time series.
Table 5. Sum of residuals of individual equalized time series.
Statistics1. RBF 1-24-12. RBF 1-29-13. RBF 1-30-14. RBF 1-28-15. RBF 1-26-1
Sum of residuals10.7536891.36965410.5981694.2909120.676559
Source: Own processing.
Table 6. Retained neural networks.
Table 6. Retained neural networks.
IndexNetworkTraining Perform.Testing Perform.Validation Perform.Training ErrorTesting ErrorValidation ErrorTraining AlgorithmError FunctionActivation of Hidden LayerOutput Activation Function
1MLP
61-10-1
0.9983900.9971060.9967230.0009240.0017320.001931BFGS (Quasi-Newton) 419Sum.sq.TanhIdentity
2MLP
61-11-1
0.9984910.9969160.9967100.0008660.0018310.001958BFGS (Quasi-Newton) 468Sum.sq.TanhTanh
3MLP
61-11-1
0.9985050.9974000.9967150.0008580.0015490.001944BFGS (Quasi-Newton) 475Sum.sq.TanhSinus
4MLP
61-11-1
0.9984900.9970740.9967150.0008660.0017440.001939BFGS (Quasi-Newton) 394Sum.sq.TanhIdentity
5MLP
61-10-1
0.9982500.9969740.9969900.0010040.0017990.001801BFGS (Quasi-Newton) 398Sum.sq.TanhLogistic
Source: Own processing.
Table 7. Correlation coefficients of individual data sets.
Table 7. Correlation coefficients of individual data sets.
NetworkEuro to Chinese Yuan (Training)Euro to Chinese Yuan (Testing)Euro to Chinese Yuan (Validation)
1. MLP 61-10-10.9983900.9971060.996723
2. MLP 61-11-10.9984910.9969160.996710
3. MLP 61-11-10.9985050.9974000.996715
4. MLP 61-11-10.9984900.9970740.996715
5. MLP 61-10-10.9982500.9969740.996990
Source: Own processing.
Table 8. Statistics of individual data sets by retained neural structures.
Table 8. Statistics of individual data sets by retained neural structures.
Statistics1. MLP
61-10-1
2. MLP
61-11-1
3. MLP
61-11-1
4. MLP
61-11-1
5. MLP
61-10-1
Minimal prediction (training)6.592046.607876.610056.590596.65057
Maximal prediction (training)10.2577410.2006410.2545510.2833610.22089
Minimal prediction (testing)6.625886.635476.639456.641946.64934
Maximal prediction (testing)10.3207110.1992910.2366610.2419110.21010
Minimal prediction (validation)6.577466.686626.675226.621176.66080
Maximal prediction (validation)10.2363010.1992510.2385410.2813710.20854
Minimal residuals (training)−0.16067−0.18343−0.15628−0.16430−0.19135
Maximal residuals (training)0.399220.499660.494480.454410.46364
Minimal residuals (testing)−0.25721−0.22189−0.18788−0.23063−0.18800
Maximal residua (testing)0.196050.222680.218660.186870.29676
Minimal residuals (validation)−0.22231−0.16419−0.16207−0.20030−0.17103
Maximal residuals (validation)0.550870.532140.565420.537150.48879
Minimal standard residuals (training)−5.28571−6.23421−5.33626−5.58204−6.03872
Maximal standard residuals (training)13.1333816.9817516.8843015.4383814.63152
Minimal standard residuals (testing)−6.18008−5.18477−4.77384−5.52315−4.43254
Maximal standard residuals (testing)4.710535.203185.555954.474996.99679
Minimal standard residuals (validation)−5.05836−3.71056−3.67572−4.54863−4.03019
Maximal standard residuals (validation)12.5345312.0262912.8236112.1984411.51780
Source: Own processing.
Table 9. Sum of residuals of individual equalized time series.
Table 9. Sum of residuals of individual equalized time series.
Statistics1. MLP 61-10-12. MLP 61-11-13. MLP 61-11-14. MLP 61-11-15. MLP 61-10-1
Sum of residuals−0.6777550.636444−0.5844230.8440070.000112
Source: Own processing.
Table 10. Equalized time series residuals—months in a year.
Table 10. Equalized time series residuals—months in a year.
Identification1. MLP 61-10-12. MLP 61-11-13. MLP 61-11-14. MLP 61-11-15. MLP 61-10-1
January11.04910.82310.7609.57610.583
February10.20810.70610.64910.92110.558
March9.3558.7539.33810.22410.468
April9.4999.9869.8908.14510.492
May11.69811.56510.2459.95210.897
June11.16010.6919.91610.69610.429
July10.3469.7329.4759.3499.144
August10.0469.8959.92110.14110.288
September9.1108.0908.76510.1728.540
October10.8959.8899.38511.00011.284
November9.6089.2498.9929.8669.779
December8.4959.7179.0739.37310.747
Minimum8.4958.0908.7658.1458.540
Maximum11.69811.56510.76011.00011.284
Source: Own processing.
Table 11. Equalized time series absolute residuals—days of a month.
Table 11. Equalized time series absolute residuals—days of a month.
Identification1. MLP 61-10-12. MLP 61-11-13. MLP 61-11-14. MLP 61-11-15. MLP 61-10-1
15.9275.5664.8285.7665.784
25.1995.4905.1855.0995.149
34.8064.2814.4384.4694.152
43.9703.6104.0443.6863.654
53.7463.1893.5154.2683.457
63.4023.3213.4123.8283.342
73.6063.7583.6034.1133.950
83.6113.7703.5963.7313.511
93.7404.0153.7823.4474.004
104.0663.7424.0403.4954.225
114.1023.5794.2453.7024.096
123.6383.5113.5834.0913.923
133.8903.8063.7023.7434.264
144.0714.3053.8534.3734.403
154.3274.2813.0504.1864.111
163.9153.9243.1193.7923.957
173.7493.7603.2683.4893.924
183.8123.8833.7103.8413.747
193.9253.9743.9233.8403.937
204.5023.7904.5164.1204.211
214.1783.7814.4324.1344.089
223.5193.4603.6633.3933.720
233.1273.3393.3303.4003.390
243.2463.5003.3233.2133.525
253.1423.7653.6033.6113.665
263.2283.3663.3373.5703.673
273.3653.2523.3763.1063.817
283.7963.8233.6673.6854.272
293.8553.8933.5863.2534.068
304.7294.6904.1674.1484.377
313.2782.6712.5142.8212.814
Minimum3.1272.6712.5142.8212.814
Maximum5.9275.5665.1855.7665.784
Source: Own processing.
Table 12. Equalized time series absolute residuals—days of a week.
Table 12. Equalized time series absolute residuals—days of a week.
Identification1. MLP 61-10-12. MLP 61-11-13. MLP 61-11-14. MLP 61-11-15. MLP 61-10-1
Monday15.83715.55116.29316.50316.774
Tuesday16.64717.01516.71517.13917.460
Wednesday18.54217.77916.55017.46218.049
Thursday17.20417.46316.44617.19618.050
Friday18.09317.41816.69717.13917.271
Saturday17.24416.60316.49117.02217.487
Sunday17.90317.26617.21816.95318.119
Minimum15.83715.55116.29316.50316.774
Maximum18.54217.77917.21817.46218.119
Source: Own processing.

Share and Cite

MDPI and ACS Style

Vochozka, M.; Horák, J.; Šuleř, P. Equalizing Seasonal Time Series Using Artificial Neural Networks in Predicting the Euro–Yuan Exchange Rate. J. Risk Financial Manag. 2019, 12, 76. https://doi.org/10.3390/jrfm12020076

AMA Style

Vochozka M, Horák J, Šuleř P. Equalizing Seasonal Time Series Using Artificial Neural Networks in Predicting the Euro–Yuan Exchange Rate. Journal of Risk and Financial Management. 2019; 12(2):76. https://doi.org/10.3390/jrfm12020076

Chicago/Turabian Style

Vochozka, Marek, Jakub Horák, and Petr Šuleř. 2019. "Equalizing Seasonal Time Series Using Artificial Neural Networks in Predicting the Euro–Yuan Exchange Rate" Journal of Risk and Financial Management 12, no. 2: 76. https://doi.org/10.3390/jrfm12020076

Article Metrics

Back to TopTop