IDEAS home Printed from https://ideas.repec.org/a/igg/jamc00/v13y2022i1p1-30.html
   My bibliography  Save this article

Performance Evaluation of Machine Learning Algorithms for Stock Price and Stock Index Movement Prediction Using Trend Deterministic Data Prediction

Author

Listed:
  • Munish Khanna

    (Hindustan College of Science and Technology, India)

  • Mohak Kulshrestha

    (Hindustan College of Science and Technology, India)

  • Law K. Singh

    (Hindustan College of Science and Technology, India)

  • Shankar Thawkar

    (Hindustan College of Science and Technology, India)

  • Kapil Shrivastava

    (Hindustan College of Science and Technology, India)

Abstract

This experimental study addresses the problem of predicting the direction of stocks and the movement of stock price indices for three major stocks and stock indices. The proposed approach for processing input data involves the computation of ten technical indicators using stock trading data. The dataset used for the evaluation of all the prediction models consists of 11 years of historical data from January 2007 to December 2017. The study comprises four prediction models which are Long Short-Term Memory, XGBoost, Support Vector Machine ( and Random forests. Accuracy scores and F1 scores for each of the prediction models have been evaluated using this input approach. Experimental results reveal that a continuous data approach using ten technical indicators gives the best performance in the case of the Random Forest classifier model with the highest accuracy of 84.89% (average wise 83.74%) and highest F1 score of 89.33% (average wise 83.74%). The experiments also give us an insight into why a Naïve Bayes Classification model is not a suitable prediction model for the above task.

Suggested Citation

  • Munish Khanna & Mohak Kulshrestha & Law K. Singh & Shankar Thawkar & Kapil Shrivastava, 2022. "Performance Evaluation of Machine Learning Algorithms for Stock Price and Stock Index Movement Prediction Using Trend Deterministic Data Prediction," International Journal of Applied Metaheuristic Computing (IJAMC), IGI Global, vol. 13(1), pages 1-30, January.
  • Handle: RePEc:igg:jamc00:v:13:y:2022:i:1:p:1-30
    as

    Download full text from publisher

    File URL: http://services.igi-global.com/resolvedoi/resolve.aspx?doi=10.4018/IJAMC.292511
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Perry Sadorsky, 2021. "A Random Forests Approach to Predicting Clean Energy Stock Prices," JRFM, MDPI, vol. 14(2), pages 1-20, January.
    2. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    3. Jihong Xiao & Xuehong Zhu & Chuangxia Huang & Xiaoguang Yang & Fenghua Wen & Meirui Zhong, 2019. "A New Approach for Stock Price Analysis and Prediction Based on SSA and SVM," International Journal of Information Technology & Decision Making (IJITDM), World Scientific Publishing Co. Pte. Ltd., vol. 18(01), pages 287-310, January.
    4. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    5. Chimmula, Vinay Kumar Reddy & Zhang, Lei, 2020. "Time series forecasting of COVID-19 transmission in Canada using LSTM networks," Chaos, Solitons & Fractals, Elsevier, vol. 135(C).
    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. 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. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    3. Ehsan Hoseinzade & Saman Haratizadeh, 2018. "CNNPred: CNN-based stock market prediction using several data sources," Papers 1810.08923, arXiv.org.
    4. I. Marta Miranda García & María‐Jesús Segovia‐Vargas & Usue Mori & José A. Lozano, 2023. "Early prediction of Ibex 35 movements," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(5), pages 1150-1166, August.
    5. Rohitash Chandra & Yixuan He, 2021. "Bayesian neural networks for stock price forecasting before and during COVID-19 pandemic," PLOS ONE, Public Library of Science, vol. 16(7), pages 1-32, July.
    6. Min-Yuh Day & Yensen Ni & Chinning Hsu & Paoyu Huang, 2022. "Do Investment Strategies Matter for Trading Global Clean Energy and Global Energy ETFs?," Energies, MDPI, vol. 15(9), pages 1-15, May.
    7. Ivan Borisov Todorov & Fernando Sánchez Lasheras, 2022. "Forecasting Applied to the Electricity, Energy, Gas and Oil Industries: A Systematic Review," Mathematics, MDPI, vol. 10(21), pages 1-15, October.
    8. David M. Ritzwoller & Joseph P. Romano, 2019. "Uncertainty in the Hot Hand Fallacy: Detecting Streaky Alternatives to Random Bernoulli Sequences," Papers 1908.01406, arXiv.org, revised Apr 2021.
    9. Shazia Ghani, 2011. "A re-visit to Minsky after 2007 financial meltdown," Post-Print halshs-01027435, HAL.
    10. Steininger, Lea & Hesse, Casimir, 2024. "Buying into new ideas: The ECB’s evolving justification of unlimited liquidity," Department of Economics Working Paper Series 357, WU Vienna University of Economics and Business.
    11. Christiane Goodfellow & Dirk Schiereck & Steffen Wippler, 2013. "Are behavioural finance equity funds a superior investment? A note on fund performance and market efficiency," Journal of Asset Management, Palgrave Macmillan, vol. 14(2), pages 111-119, April.
    12. Cagli, Efe Caglar & Taskin, Dilvin & Evrim Mandaci, Pınar, 2019. "The short- and long-run efficiency of energy, precious metals, and base metals markets: Evidence from the exponential smooth transition autoregressive models," Energy Economics, Elsevier, vol. 84(C).
    13. Andrew Weinbach & Rodney J. Paul, 2009. "National television coverage and the behavioural bias of bettors: the American college football totals market," International Gambling Studies, Taylor & Francis Journals, vol. 9(1), pages 55-66, April.
    14. Plantinga, Andrew J. & Provencher, Bill, 2001. "Internal Consistency In Models Of Optimal Resource Use Under Uncertainty," 2001 Annual meeting, August 5-8, Chicago, IL 20712, American Agricultural Economics Association (New Name 2008: Agricultural and Applied Economics Association).
    15. Growitsch Christian & Nepal Rabindra & Stronzik Marcus, 2015. "Price Convergence and Information Efficiency in German Natural Gas Markets," German Economic Review, De Gruyter, vol. 16(1), pages 87-103, February.
    16. Oxelheim, Lars & Rafferty, Michael, 2005. "On the static efficiency of secondary bond markets," Journal of Multinational Financial Management, Elsevier, vol. 15(2), pages 117-135, April.
    17. 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.
    18. Shi, Huai-Long & Zhou, Wei-Xing, 2022. "Factor volatility spillover and its implications on factor premia," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 80(C).
    19. Gaio, Luiz Eduardo & Stefanelli, Nelson Oliveira & Pimenta, Tabajara & Bonacim, Carlos Alberto Grespan & Gatsios, Rafael Confetti, 2022. "The impact of the Russia-Ukraine conflict on market efficiency: Evidence for the developed stock market," Finance Research Letters, Elsevier, vol. 50(C).
    20. Anastasios Evgenidis & Stephanos Papadamou, 2021. "The impact of unconventional monetary policy in the euro area. Structural and scenario analysis from a Bayesian VAR," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(4), pages 5684-5703, October.

    More about this item

    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:igg:jamc00:v:13:y:2022:i:1:p:1-30. 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: Journal Editor (email available below). General contact details of provider: https://www.igi-global.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.