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. 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.
    3. 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.
    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. Baoqiang Zhan & Shu Zhang & Helen S. Du & Xiaoguang Yang, 2022. "Exploring Statistical Arbitrage Opportunities Using Machine Learning Strategy," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 861-882, October.
    2. Henriques, Irene & Sadorsky, Perry, 2023. "Forecasting rare earth stock prices with machine learning," Resources Policy, Elsevier, vol. 86(PA).
    3. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    4. Saqib Farid & Rubeena Tashfeen & Tahseen Mohsan & Arsal Burhan, 2023. "Forecasting stock prices using a data mining method: Evidence from emerging market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(2), pages 1911-1917, April.
    5. 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).
    6. Şirin Özlem & Omer Faruk Tan, 2022. "Predicting cash holdings using supervised machine learning algorithms," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-19, December.
    7. Vitor Azevedo & Christopher Hoegner, 2023. "Enhancing stock market anomalies with machine learning," Review of Quantitative Finance and Accounting, Springer, vol. 60(1), pages 195-230, January.
    8. Htet Htet Htun & Michael Biehl & Nicolai Petkov, 2023. "Survey of feature selection and extraction techniques for stock market prediction," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-25, December.
    9. Yizhe Xu & Tom H. Greene & Adam P. Bress & Brandon K. Bellows & Yue Zhang & Zugui Zhang & Paul Kolm & William S. Weintraub & Andrew S. Moran & Jincheng Shen, 2022. "An Efficient Approach for Optimizing the Cost-effective Individualized Treatment Rule Using Conditional Random Forest," Papers 2204.10971, arXiv.org.
    10. Xu, Yingying & Dai, Yifan & Guo, Lingling & Chen, Jingjing, 2024. "Leveraging machine learning to forecast carbon returns: Factors from energy markets," Applied Energy, Elsevier, vol. 357(C).
    11. 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).
    12. Chulwoo Han, 2022. "Bimodal Characteristic Returns and Predictability Enhancement via Machine Learning," Management Science, INFORMS, vol. 68(10), pages 7701-7741, October.
    13. 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.
    14. Goutte, Stéphane & Le, Hoang-Viet & Liu, Fei & von Mettenheim, Hans-Jörg, 2023. "Deep learning and technical analysis in cryptocurrency market," Finance Research Letters, Elsevier, vol. 54(C).
    15. Madeline Hui Li Lee & Yee Chee Ser & Ganeshsree Selvachandran & Pham Huy Thong & Le Cuong & Le Hoang Son & Nguyen Trung Tuan & Vassilis C. Gerogiannis, 2022. "A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models," Mathematics, MDPI, vol. 10(8), pages 1-23, April.
    16. Nwokike Chukwudike C. & Ugoala & Chukwuma B. & Obubu Maxwell & Uche-Ikonne Okezie O. & Offorha Bright C. & Ukomah Henry I., 2020. "Forecasting Monthly Prices of Gold Using Artificial Neural Network," Journal of Statistical and Econometric Methods, SCIENPRESS Ltd, vol. 9(3), pages 1-2.
    17. Junwei Chen, 2023. "Analysis of Bitcoin Price Prediction Using Machine Learning," JRFM, MDPI, vol. 16(1), pages 1-25, January.
    18. Naderi Semiromi, Hamed & Lessmann, Stefan & Peters, Wiebke, 2020. "News will tell: Forecasting foreign exchange rates based on news story events in the economy calendar," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    19. Subhranginee Das & Sarat Chandra Nayak & Biswajit Sahoo, 2022. "Towards Crafting Optimal Functional Link Artificial Neural Networks with Rao Algorithms for Stock Closing Prices Prediction," Computational Economics, Springer;Society for Computational Economics, vol. 60(1), pages 1-23, June.
    20. 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.

    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.