IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v62y2023i1d10.1007_s10614-022-10273-3.html
   My bibliography  Save this article

Predict Stock Prices Using Supervised Learning Algorithms and Particle Swarm Optimization Algorithm

Author

Listed:
  • Mohammad Javad Bazrkar

    (Shahid Bahonar University of Kerman)

  • Soodeh Hosseini

    (Shahid Bahonar University of Kerman)

Abstract

Forecasting the stock market has always been one of the challenges for stock market participants to make more profit. Among the problems of stock price forecasting, we can mention its dynamic nature, complexity and its dependence on factors such as the governing system of countries, emotions, economic conditions, inflation, and so on. In recent years, many studies have been conducted to predict the capital stock market using traditional techniques, machine learning algorithms and deep learning. The lower our forecast stock error, the More we can reduce investment risk and increase profitability. In this paper, we present a machine learning (ML) approach called support vector machine (SVM) that can be taught using existing data. SVM extracts knowledge between data and ultimately uses this knowledge to predict new stock data. We have also aimed to select the best SVM method parameters using the particle swarm optimization (PSO) algorithm to prevent over-fitting and improve forecast accuracy. Finally, we compare our proposed method (SVM-PSO) with several other methods, including support vector machine, artificial neural network (ANN) and LSTM. The results show that the proposed algorithm works better than other methods and in all cases, its forecast accuracy is above 90%.

Suggested Citation

  • Mohammad Javad Bazrkar & Soodeh Hosseini, 2023. "Predict Stock Prices Using Supervised Learning Algorithms and Particle Swarm Optimization Algorithm," Computational Economics, Springer;Society for Computational Economics, vol. 62(1), pages 165-186, June.
  • Handle: RePEc:kap:compec:v:62:y:2023:i:1:d:10.1007_s10614-022-10273-3
    DOI: 10.1007/s10614-022-10273-3
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-022-10273-3
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-022-10273-3?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    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. Basak, Suryoday & Kar, Saibal & Saha, Snehanshu & Khaidem, Luckyson & Dey, Sudeepa Roy, 2019. "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, Elsevier, vol. 47(C), pages 552-567.
    2. Sohrab Mokhtari & Kang K. Yen & Jin Liu, 2021. "Effectiveness of Artificial Intelligence in Stock Market Prediction based on Machine Learning," Papers 2107.01031, arXiv.org.
    3. Ayodele Ariyo Adebiyi & Aderemi Oluyinka Adewumi & Charles Korede Ayo, 2014. "Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction," Journal of Applied Mathematics, Hindawi, vol. 2014, pages 1-7, March.
    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. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    2. Zhou, Zhongbao & Gao, Meng & Liu, Qing & Xiao, Helu, 2020. "Forecasting stock price movements with multiple data sources: Evidence from stock market in China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 542(C).
    3. Yang, Yanlin & Hu, Xuemei & Jiang, Huifeng, 2022. "Group penalized logistic regressions predict up and down trends for stock prices," The North American Journal of Economics and Finance, Elsevier, vol. 59(C).
    4. Mercadier, Mathieu & Lardy, Jean-Pierre, 2019. "Credit spread approximation and improvement using random forest regression," European Journal of Operational Research, Elsevier, vol. 277(1), pages 351-365.
    5. Junwei Chen, 2023. "Analysis of Bitcoin Price Prediction Using Machine Learning," JRFM, MDPI, vol. 16(1), pages 1-25, January.
    6. Axelsson, Birger & Song, Han-Suck, 2023. "Univariate Forecasting for REITs with Deep Learning: A Comparative Analysis with an ARIMA Model," Working Paper Series 23/10, Royal Institute of Technology, Department of Real Estate and Construction Management & Banking and Finance, revised 14 Nov 2023.
    7. Shuo Sun & Rundong Wang & Bo An, 2021. "Reinforcement Learning for Quantitative Trading," Papers 2109.13851, arXiv.org.
    8. Vásquez Sáenz, Javier & Quiroga, Facundo Manuel & Bariviera, Aurelio F., 2023. "Data vs. information: Using clustering techniques to enhance stock returns forecasting," International Review of Financial Analysis, Elsevier, vol. 88(C).
    9. Abdullahi Osman Ali & Jama Mohamed, 2022. "The optimal forecast model for consumer price index of Puntland State, Somalia," Quality & Quantity: International Journal of Methodology, Springer, vol. 56(6), pages 4549-4572, December.
    10. Min-Yuh Day & Paoyu Huang & Yirung Cheng & Yensen Ni, 2023. "Investing Strategies for Trading Stocks as Overreaction Triggered by Technical Trading Rules with Big Data Concerns," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(3), pages 148-161, October.
    11. Alebachew Abebe & Aboma Temesgen & Belete Kebede, 2023. "Modeling inflation rate factors on present consumption price index in Ethiopia: threshold autoregressive models approach," Future Business Journal, Springer, vol. 9(1), pages 1-12, December.
    12. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    13. Ashish Kumar & Abeer Alsadoon & P. W. C. Prasad & Salma Abdullah & Tarik A. Rashid & Duong Thu Hang Pham & Tran Quoc Vinh Nguyen, 2021. "Generative Adversarial Network (GAN) and Enhanced Root Mean Square Error (ERMSE): Deep Learning for Stock Price Movement Prediction," Papers 2112.03946, arXiv.org.
    14. Zouhaier Dhifaoui, 2022. "Determinism and Non-linear Behaviour of Log-return and Conditional Volatility: Empirical Analysis for 26 Stock Markets," South Asian Journal of Macroeconomics and Public Finance, , vol. 11(1), pages 69-94, June.
    15. Muhammad Nadim Hanif & Muhammad Jahanzeb Malik, 2015. "Evaluating the Performance of Inflation Forecasting Models of Pakistan," SBP Research Bulletin, State Bank of Pakistan, Research Department, vol. 11, pages 43-78.
    16. Berthine Nyunga Mpinda & Jules Sadefo-Kamdem & Salomey Osei & Jeremiah Fadugba, 2021. "Accuracies of Model Risks in Finance using Machine Learning," Working Papers hal-03191437, HAL.
    17. Huicheng Liu, 2018. "Leveraging Financial News for Stock Trend Prediction with Attention-Based Recurrent Neural Network," Papers 1811.06173, arXiv.org.
    18. Dimingo, Roselyn & Muteba Mwamba, John W. & Bonga-Bonga, Lumengo, 2021. "Prediction of Stock Market Direction: Application of Machine Learning Models," Economia Internazionale / International Economics, Camera di Commercio Industria Artigianato Agricoltura di Genova, vol. 74(4), pages 499-536.
    19. Paraskevas Panagiotidis & Andrew Effraimis & George A Xydis, 2019. "An R-based forecasting approach for efficient demand response strategies in autonomous micro-grids," Energy & Environment, , vol. 30(1), pages 63-80, February.
    20. Meftah Elsaraiti & Adel Merabet, 2021. "A Comparative Analysis of the ARIMA and LSTM Predictive Models and Their Effectiveness for Predicting Wind Speed," Energies, MDPI, vol. 14(20), pages 1-16, October.

    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:kap:compec:v:62:y:2023:i:1:d:10.1007_s10614-022-10273-3. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.