Research Article

Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange

Volume: 34 Number: 1 March 1, 2021
EN

Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange

Abstract

Stock market prediction in financial and commodity markets is a major challenge for speculators, investors, and companies but also profitable with an accurate prediction. Thus, obtaining accurate prediction results becomes extremely important especially while the stock market is essentially volatile, nonlinear, complicated, adaptive, nonparametric and unpredictable in nature. This study aims to forecast the opening and closing stock prices of 42 firms listed in Istanbul Stock Exchange National 100 Index (ISE-100) using well-known machine learning methods, Multilayer Perceptrons (MLP) and Support Vector Machines (SVM) models and deep learning algorithm, Long Short Term Memory (LSTM) by comparing their forecasting performances. The analysis includes 9 years of data from 01.01.2010 to 01.01.2019. For each firm 2249 data for the opening and 2249 for the closing stock prices were established as daily data sets. Forecasting performance of these methods was evaluated by applying different criteria for each model: root mean squared error (RMSE), mean squared error (MSE) and R-squared (R2). The results of this study show that MLP and LSTM models become advantageous in estimating the opening and closing stock prices comparing to SVM model.

Keywords

References

  1. [1] Abu-Mostafa, Y. S., Atiya, A. F., “Introduction to financial forecasting”, Applied Intelligence, 6(3):205-213, (1996).
  2. [2] Huang, W., Nakamori, Y., Wang S. Y., “Forecasting stock market movement direction with support vector machine”, Computers and Operations Research, 32(10):2513-2522, (2005).
  3. [3] Kara, Y., Boyacioglu, M. A., Baykan, O. K., “Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange”, Expert Systems with Applications, 38(5):5311-5319, (2011).
  4. [4] Northover, K., Lo, A. W., “Computational finance”, Computer in Science & Engineering, 1(6):22, (2000).
  5. [5] Tan, T. Z., Quek, C., Ng, G. S., “Biological brain-inspired genetic complementary learning for stock market and bank failure prediction”, Computer Intelligence, 23(2):236-261, (2007).
  6. [6] Blank, S. C., “'Chaos' in futures markets? A nonlinear dynamical analysis”, The Journal of Futures Markets, 11(6):711, (1991).
  7. [7] Zhang, G., Patuwo, B. E., Hu, M. Y., “Forecasting with artificial neural networks: The state of the art” International Journal of Forecasting, 14(1):35-62, (1998).
  8. [8] Lapedes, A., Farber, R., “Nonlinear signal processing using neural networks: Prediction and system modelling”, 1. IEEE international conference on neural networks, San Diego, CA, USA, No. LA-UR-87-2662; CONF-8706130-4, (1987).

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Publication Date

March 1, 2021

Submission Date

January 23, 2020

Acceptance Date

July 1, 2020

Published in Issue

Year 2021 Volume: 34 Number: 1

APA
Demirel, U., Çam, H., & Ünlü, R. (2021). Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange. Gazi University Journal of Science, 34(1), 63-82. https://doi.org/10.35378/gujs.679103
AMA
1.Demirel U, Çam H, Ünlü R. Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange. Gazi University Journal of Science. 2021;34(1):63-82. doi:10.35378/gujs.679103
Chicago
Demirel, Uğur, Handan Çam, and Ramazan Ünlü. 2021. “Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange”. Gazi University Journal of Science 34 (1): 63-82. https://doi.org/10.35378/gujs.679103.
EndNote
Demirel U, Çam H, Ünlü R (March 1, 2021) Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange. Gazi University Journal of Science 34 1 63–82.
IEEE
[1]U. Demirel, H. Çam, and R. Ünlü, “Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange”, Gazi University Journal of Science, vol. 34, no. 1, pp. 63–82, Mar. 2021, doi: 10.35378/gujs.679103.
ISNAD
Demirel, Uğur - Çam, Handan - Ünlü, Ramazan. “Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange”. Gazi University Journal of Science 34/1 (March 1, 2021): 63-82. https://doi.org/10.35378/gujs.679103.
JAMA
1.Demirel U, Çam H, Ünlü R. Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange. Gazi University Journal of Science. 2021;34:63–82.
MLA
Demirel, Uğur, et al. “Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange”. Gazi University Journal of Science, vol. 34, no. 1, Mar. 2021, pp. 63-82, doi:10.35378/gujs.679103.
Vancouver
1.Uğur Demirel, Handan Çam, Ramazan Ünlü. Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The Sample of the Istanbul Stock Exchange. Gazi University Journal of Science. 2021 Mar. 1;34(1):63-82. doi:10.35378/gujs.679103

Cited By

Makine Öğrenmesi ile Finansal Zaman Serisi Tahminleme

Ankara Hacı Bayram Veli Üniversitesi İktisadi ve İdari Bilimler Fakültesi Dergisi

https://doi.org/10.26745/ahbvuibfd.1191080