CNY EX Rate Prediction Based on LSTM and Machine Learning
Methods
Jiaqi Lu
School of Economics and Management, Tongji University, 1239 Siping Road, Shanghai, China
Keywords: Foreign Exchange Rate, LSTM, Machine Learning, Commodity Features, Technical Features.
Abstract: The foreign exchange market is volatile and unpredictable and the foreign exchange rate is challenging to
forecast in almost all the regions. With the maturity of the foreign exchange market, more and more traders
make transactions on foreign exchange products. The ability to estimate this foreign exchange rate has
therefore become crucial in the financial market. In this study, machine learning methods are used to predict
the exchange rate of the Chinese yuan (CNY). The feature inputs include three categories, which is
respectively technical features, commodity features, and forex features. The technical features include some
powerful technical factors. The commodity features include gold price, oil price, and stock index. The forex
features include some frequently traded currency. The models include Linear Regression, Lasso Regression,
Ridge Regression, long short-term memory (LSTM), Random Forest, and XG-Boost. In conclusion, this study
finds that the Long Short-Term Memory model has the best performance and the tech features are the best
inputs for predicting the CNY exchange rate.
1 INTRODUCTION
With the maturity of the financial system, foreign
exchange plays a more important role in global
trading and it becomes more urgent to have a forecast
of the trend of the exchange rate. However, the
exchange rate prediction has been one of the most
challenging tasks for long. It is necessary to
comprehend the intricacies of global political
economy, sociological and economic infrastructures,
and occasional political and social events since they
have a comprehensive impact on the exchange rate. It
means too many complex factors need to be taken into
consideration.
In the past, emphasis was placed on employing
macroeconomic indicators such as spot rates,
unemployment rates, or inflation rates to discern
long-term trends in exchange rates. However, these
approaches offered only broad predictions based on
empirical observations and were insufficient for
providing concise, short-term investment or business
advice. Statistical models like integrated moving
averages and auto-linear regression were also utilized
for financial time series predictions, but they were
constrained by their inability to transcend historical
data. With advancements in computational
capabilities, machine learning algorithms have
emerged as transformative tools for financial
forecasting (Singh et al, 2009). Going beyond
traditional qualitative analysis, this paper uses
machine learning methods to predict the Chinese
Yuan (CNY) exchange rate. Notably, different from
traditional macro features, this paper introduces a
series of tech, commodity, and forex feature inputs,
thereby enhancing the model's capacity to capture
nuanced market dynamics.
Section II of this paper discusses related works.
Section III discusses data analysis, feature
engineering, and modeling. Section IV discusses the
results and analysis.
2 LITERATURE REVIEW
Conventional econometric models predict exchange
rates using underlying economic circumstances,
assuming that long-term patterns are determined by
economic fundamentals. However, Meese and
Rogoff demonstrate the failure of econometric
models to anticipate short-term exchange rates
(Meese et al, 1983). Two popular time series models
for predicting currency rates are exponential