Finansal Piyasalarda Hisse Fiyatlarının Derin Öğrenme ve Yapay Sinir Ağı Yöntemleri ile Tahmin Edilmesi; S&P 500 Endeksi Örneği

Gelişen teknolojiler sayesinde günümüzde bilgisayarların gücü artmış ve bununla birlikte farklı amaçlara hizmet eden birçok algoritma geliştirilmiştir. Bu algoritmalar birçok alanda olduğu gibi finans alanında da sıkça kullanılmakta ve karar vermenin farklı boyutlarında destekleyici bir rol üstlenmektedir. Özellikle ortaya çıkması muhtemel durumların önceden öngörülmesinin hayati önem taşıdığı borsa işlemlerinde tahmin yöntemlerine sıkça başvurulmaktadır. Bu çalışmada Yahoo Finans üzerinden elde edilen S&P 500 endeksine ait veriler kullanılarak derin öğrenme ve sığ öğrenme yöntemleri yardımıyla geleceğe yönelik fiyat tahminleme çalışması gerçekleştirilmiştir. Bu bağlamda 12.08.2000 ile 13.8.2020 tarihleri arasındaki günlük fiyat verileri ilk 19 sene (veri setinin %95’i)eğitim, son 1 sene (ver setinin %5’i) test olacak şekilde ayrılarak uzun kısa süreli bellek (LSTM) ve çok katmanlı algılayıcılar (MLP) yöntemleri tahmin gerçekleştirilmiştir. Eğitim, test ve tüm veri kök ortalama karesel hatalarının LSTM ağı için sırasıyla 17.3, 65.3 ve 22 dolar, MLP ağı için sırası ile 16.1,61.2 ve 20.6 dolar bulunmuştur. Bu da kullanılan her iki yöntemde elde edilen eğitim ve test hatalarının birbirine yakın sonuçlar verdiğini ve bu yöntemlerin tahmin çalışmaları için uygun seçenekler olduğunu göstermektedir.

Deep Learning and Artificial Neural Network Estimation of Stock Prices in Financial Markets; S&P 500 Index Application

Thanks to the developing technologies, the power of computers has increased and many algorithms have been developed that serve different purposes. These algorithms are frequently used in finance as well as in many other fields and play a supportive role in different dimensions of decision-making. Forecasting methods are frequently used especially in stock exchange transactions where predicting possible situations in advance is vital. In this study, the future price estimation study was carried out with the help of deep learning and shallow learning methods using the data of the S&P 500 index obtained through Yahoo Finance. In this context, the daily price data between 12.08.2000 and 13.8.2020 is divided into the first 19 years (95% of the data set) training, the last 1 year (5% of the data set) as a test, and long short term memory (LSTM) and multilayer perceptron (MLP) methods have been estimated. Training, test, and all data root mean square errors were 17.3, 65.3 and 22 dollars for the LSTM network, 16.1,61.2 and 20.6 dollars for the MLP network, respectively. This shows that the training and test errors obtained in both methods used give similar results and these methods are suitable options for prediction studies.

___

  • [1] L. Deng, “An overview of deep-structured learning for information processing,” in Proc. AsianPacific Signal & Information Annual Summit & Conference (APSIPA-ASC), Xi’an, China, 2011
  • [2] The deep learning platform. (2018, Sept. 18). Perceptrons and multi-layer perceptrons: the artificial neuron at the core of deep learning. [Online]. Available: https://missinglink.ai/guides/neural-network-concepts/perceptrons-and-multi-layer-perceptrons-the-artificial-neuron-at-the-core-of-deeplearning/
  • [3] A. Serwa, “Studying the effect of activation function on classification accuracy using deep artificial neural networks,” Journal of Remote Sensing & GIS, vol. 06, 2017.
  • [4] S. Hochreiter, J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, pp. 1735-1780, 1997.
  • [5] C. Olah. (2015, Aug. 27). Understanding LSTM Networks. [Online]. Available: https://colah.github.io/posts/2015-08-Understanding-LSTMs/.
  • [6] S. Yan. (2016, Mar. 13). Understanding LSTM and its diagrams. [Online]. Available: https://medium.com/mlreview/understanding-lstm-and-its-diagrams-37e2f46f1714.
  • [7] X. H. Le, H. V. Ho, G. Lee, S.Jung, “Application of long short-term memory (LSTM) neural network for flood forecasting,” Water, vol. 11, pp. 1387-1406, 2019
  • [8] X. Li, Y. Li, X.Y. Liu, C. D. Wang, “Risk management via anomaly circumvent: mnemonic deep learning for midterm stock prediction,” in Proc. 2nd KDD Workshop on Anomaly Detection in Finance, Anchorage, AK, USA, 2019
  • [9] S. Kim, M. Kang, “Financial series prediction using attention LSTM,” 2019, arXiv:1902.10877.
  • [10] S. Siami-Namini ve A. Siami Namin, “Forecasting economics and financial time series: ARIMA vs. LSTM,” 2018, arXiv:1803.06386.
  • [11] M. Roondiwala, H. Patel, S. Varma, “Predicting stock prices using LSTM,” International Journal of Science and Research (IJSR), vol. 6, pp. 1754-1756, 2017.
  • [12] A. H. Manurung, W. Budiharto, H. Prabowo, “Algorithm and modeling of stock prices forecasting based on long short-term memory (LSTM),” International Journal of Innovative Computing Information and Control, vol. 12, pp. 1277-1283, 2018.
  • [13] Q. Zhuge, L. Xu, G.Zhang, “LSTM neural network with emotional analysis for prediction of stock price,” Engineering Letters, vol. 25, pp. 167-175, 2017
  • [14] T. Fischer, C. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” European Journal of Operational Research, vol. 270, pp. 654-669, 2018
  • [15] K. Chen, Y. Zhoui, F.Dai,” A LSTM-based method for stock returns prediction : A case study of China stock market,” in 2015 IEEE International conference on big data (big data), 2015, pp. 2823- 2824.
  • [16] F. Ferdiansyah, S.H. Othman, R.Z.R.M.Radzi,” A LSTM-Method for Bitcoin Price Prediction: A Case Study Yahoo Finance Stock Market,” International Conference on Electrical Engineering and Computer Science (ICECOS), 2019, pp. 206-210.
  • [17] J. Eapen, D. Bein, A. Verma,” Novel deep learning model with CNN and bi-directional LSTM for improved stock market index prediction,” In 2019 IEEE 9th annual computing and communication workshop and conference (CCWC), 2019, pp. 0264-0270.
  • [18] I. E. Livieris, E. Pintelas, P. Pintelas,” A CNN–LSTM model for gold price time-series forecasting,” Neural computing and applications, vol.32, pp.17351-17360, 2020.
  • [19] K. Bayındır, “Financial time series prediction with LSTM recurrent neural networks,” Yüksek Lisans tezi, Bilgisayar Mühendisliği Bölümü, Bahçeşehir Üniversitesi, İstanbul, Türkiye, 2017.
  • [20] Patro, S., & Sahu, K. K. (2015). Normalization: A preprocessing stage. arXiv preprint arXiv:1503.06462
  • [21] D. Hammerstrom, ‘Working with neural networks’, IEEE spectrum, vol. 30, no. 7, pp. 46-53, 1993.
  • [22] K. A. Althelaya, E.El-Alfy, S. Mohammed, “Evaluation of bidirectional lstm for short-and longterm stock market prediction,” 9th international conference on information and communication systems (ICICS), 2018, pp. 151-156.
  • [23] J. Cao, Z. Li, J. Li, “Financial time series forecasting model based on CEEMDAN and LSTM,” Physica A: Statistical Mechanics and its Applications, vol. 519, pp. 127-139, 2018.
  • [24] D. K. Kılıç, Ö. Uğur, “Multiresolution analysis of S&P500 time series,” Annals of Operations Research, vol.260, pp. 197-216, 2018.
Düzce Üniversitesi Bilim ve Teknoloji Dergisi-Cover
  • Yayın Aralığı: Yılda 4 Sayı
  • Başlangıç: 2013
  • Yayıncı: Düzce Üniversitesi Fen Bilimleri Enstitüsü