IDEAS home Printed from https://ideas.repec.org/p/prg/jnlwps/v1y2019id1.001.html
   My bibliography  Save this paper

Forecasting Foreign Exchange Rate Movements with k-Nearest-Neighbour, Ridge Regression and Feed-Forward Neural Networks

Author

Listed:
  • Milan Fičura

Abstract

Three different classes of data mining methods (k-Nearest Neighbour, Ridge Regression and Multilayer Perceptron Feed-Forward Neural Networks) are applied for the purpose of quantitative trading on 10 simulated time series, as well as real world time series of 10 currency exchange rates ranging from 1.11.1999 to 12.6.2015. Each method is tested in multiple variants. The k-NN algorithm is applied alternatively with the Euclidian, Manhattan, Mahalanobis and Maximum distance function. The Ridge Regression is applied as Linear and Quadratic, and the Feed-Forward Neural Network is applied with either 1, 2 or 3 hidden layers. In addition to that Principal Component Analysis (PCA) is eventually applied for the dimensionality reduction of the predictor set and the meta-parameters of the methods are optimized on the validation sample. In the simulation study a Stochastic-Volatility Jump-Diffusion model, extended alternatively with 10 different non-linear conditional mean patterns, is used, to simulate the asset price behaviour to which the tested methods are applied. The results show that no single method was able to profit on all of the non-linear patterns in the simulated time series, but instead different methods worked well for different patterns. Alternatively, past price movements and past returns were used as predictors. In the case when the past price movements were used, quadratic ridge regression achieved the most robust results, followed by some of the k-NN methods. In the case when past returns were used, k-NN based methods were the most consistently profitable, followed by the linear ridge regression and quadratic ridge regression. Neural networks, while being able to profit on some of the time series, did not achieve profit on most of the others. No evidence was further found of the PCA method to improve the results of the tested methods in a systematic way. In the second part of the study, the models were applied to empirical foreign exchange rate time series. Overall the profitability of the methods was rather low, with most of them ending with a loss on most of the currencies. The most profitable currency was EURUSD, followed by EURJPY, GBPJPY and EURGBP. The most successful methods were the linear ridge regression and the Manhattan distance based k-NN method which both ended with profits for most of the time series (unlike the other methods). Finally, a forward selection procedure using the linear ridge regression was applied to extend the original predictor set with some technical indicators. The selection procedure achieved limited success in improving the out-sample results for the linear ridge regression model but not the other models.

Suggested Citation

  • Milan Fičura, 2019. "Forecasting Foreign Exchange Rate Movements with k-Nearest-Neighbour, Ridge Regression and Feed-Forward Neural Networks," FFA Working Papers 1.001, Prague University of Economics and Business, revised 24 Nov 2019.
  • Handle: RePEc:prg:jnlwps:v:1:y:2019:id:1.001
    as

    Download full text from publisher

    File URL: http://wp.ffu.vse.cz/artkey/wps-201901-0001_forecasting-foreign-exchange-rate-movements-with-k-nearest-neighbour-ridge-regression-and-feed-forward-neural.php
    Download Restriction: free of charge

    File URL: http://wp.ffu.vse.cz/pdfs/wps/2019/01/01.pdf
    Download Restriction: free of charge
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Exterkate, Peter & Groenen, Patrick J.F. & Heij, Christiaan & van Dijk, Dick, 2016. "Nonlinear forecasting with many predictors using kernel ridge regression," International Journal of Forecasting, Elsevier, vol. 32(3), pages 736-753.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Philippe Goulet Coulombe & Maxime Leroux & Dalibor Stevanovic & Stéphane Surprenant, 2022. "How is machine learning useful for macroeconomic forecasting?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 920-964, August.
    2. Xu Gong & Boqiang Lin, 2018. "Structural breaks and volatility forecasting in the copper futures market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(3), pages 290-339, March.
    3. Thierry Moudiki & Frédéric Planchet & Areski Cousin, 2018. "Multiple Time Series Forecasting Using Quasi-Randomized Functional Link Neural Networks," Risks, MDPI, vol. 6(1), pages 1-20, March.
    4. Daiki Maki & Yasushi Ota, 2019. "Robust tests for ARCH in the presence of the misspecified conditional mean: A comparison of nonparametric approches," Papers 1907.12752, arXiv.org, revised Sep 2019.
    5. Cheng, Kai & Lu, Zhenzhou, 2018. "Sparse polynomial chaos expansion based on D-MORPH regression," Applied Mathematics and Computation, Elsevier, vol. 323(C), pages 17-30.
    6. Yoshiki Nakajima & Naoya Sueishi, 2022. "Forecasting the Japanese macroeconomy using high-dimensional data," The Japanese Economic Review, Springer, vol. 73(2), pages 299-324, April.
    7. Alessandro Giovannelli, 2012. "Nonlinear Forecasting Using Large Datasets: Evidences on US and Euro Area Economies," CEIS Research Paper 255, Tor Vergata University, CEIS, revised 08 Nov 2012.
    8. Peter Exterkate, 2012. "Model Selection in Kernel Ridge Regression," CREATES Research Papers 2012-10, Department of Economics and Business Economics, Aarhus University.
    9. Saeed Salah & Husain R. Alsamamra & Jawad H. Shoqeir, 2022. "Exploring Wind Speed for Energy Considerations in Eastern Jerusalem-Palestine Using Machine-Learning Algorithms," Energies, MDPI, vol. 15(7), pages 1-16, April.
    10. Sergei V. Akopov, 2018. "“Duty” and “Blame” in Russian Official Symbolic Representations of Sovereignty (1994-2018)," HSE Working papers WP BRP 61/PS/2018, National Research University Higher School of Economics.
    11. A. Frenkel’ A. & N. Volkova N. & A. Surkov A. & E. Romanyuk I. & А. Френкель А. & Н. Волкова Н. & А. Сурков А. & Э. Романюк И., 2018. "Использование Методов Гребневой Регрессии При Объединении Прогнозов // The Application Of Ridge Regression Methods When Combining Forecasts," Финансы: теория и практика/Finance: Theory and Practice // Finance: Theory and Practice, ФГОБУВО Финансовый университет при Правительстве Российской Федерации // Financial University under The Government of Russian Federation, vol. 22(4), pages 6-17.
    12. Oslandsbotn, Andreas & Kereta, Željko & Naumova, Valeriya & Freund, Yoav & Cloninger, Alexander, 2022. "StreaMRAK a streaming multi-resolution adaptive kernel algorithm," Applied Mathematics and Computation, Elsevier, vol. 426(C).
    13. Peter Exterkate, 2011. "Modelling Issues in Kernel Ridge Regression," Tinbergen Institute Discussion Papers 11-138/4, Tinbergen Institute.
    14. Wojciech Victor Fulmyk, 2023. "Nonlinear Granger Causality using Kernel Ridge Regression," Papers 2309.05107, arXiv.org.
    15. Varlam Kutateladze, 2021. "The Kernel Trick for Nonlinear Factor Modeling," Papers 2103.01266, arXiv.org.
    16. Hauzenberger, Niko & Huber, Florian & Klieber, Karin, 2023. "Real-time inflation forecasting using non-linear dimension reduction techniques," International Journal of Forecasting, Elsevier, vol. 39(2), pages 901-921.
    17. Tian Han & Ying Wang & Xiao Wang & Kang Chen & Huaiwu Peng & Zhenxin Gao & Lanxin Cui & Wentong Sun & Qinke Peng, 2023. "Mixed Multi-Pattern Regression for DNI Prediction in Arid Desert Areas," Sustainability, MDPI, vol. 15(17), pages 1-16, August.
    18. Markus Vogl, 2022. "Quantitative modelling frontiers: a literature review on the evolution in financial and risk modelling after the financial crisis (2008–2019)," SN Business & Economics, Springer, vol. 2(12), pages 1-69, December.
    19. Wei, Yu & Liang, Chao & Li, Yan & Zhang, Xunhui & Wei, Guiwu, 2020. "Can CBOE gold and silver implied volatility help to forecast gold futures volatility in China? Evidence based on HAR and Ridge regression models," Finance Research Letters, Elsevier, vol. 35(C).
    20. Kutateladze, Varlam, 2022. "The kernel trick for nonlinear factor modeling," International Journal of Forecasting, Elsevier, vol. 38(1), pages 165-177.

    More about this item

    Keywords

    Ridge regression; k-Nearest Neighbour; Artificial Neural Networks; Principal Component Analysis; Exchange rate forecasting; Investment strategy; Market efficiency;
    All these keywords.

    JEL classification:

    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:prg:jnlwps:v:1:y:2019:id:1.001. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Stanislav Vojir (email available below). General contact details of provider: https://edirc.repec.org/data/uevsecz.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.