IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2202.03156.html
   My bibliography  Save this paper

Comparative Study of Machine Learning Models for Stock Price Prediction

Author

Listed:
  • Ogulcan E. Orsel
  • Sasha S. Yamada

Abstract

In this work, we apply machine learning techniques to historical stock prices to forecast future prices. To achieve this, we use recursive approaches that are appropriate for handling time series data. In particular, we apply a linear Kalman filter and different varieties of long short-term memory (LSTM) architectures to historical stock prices over a 10-year range (1/1/2011 - 1/1/2021). We quantify the results of these models by computing the error of the predicted values versus the historical values of each stock. We find that of the algorithms we investigated, a simple linear Kalman filter can predict the next-day value of stocks with low-volatility (e.g., Microsoft) surprisingly well. However, in the case of high-volatility stocks (e.g., Tesla) the more complex LSTM algorithms significantly outperform the Kalman filter. Our results show that we can classify different types of stocks and then train an LSTM for each stock type. This method could be used to automate portfolio generation for a target return rate.

Suggested Citation

  • Ogulcan E. Orsel & Sasha S. Yamada, 2022. "Comparative Study of Machine Learning Models for Stock Price Prediction," Papers 2202.03156, arXiv.org.
  • Handle: RePEc:arx:papers:2202.03156
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2202.03156
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Timmermann, Allan & Granger, Clive W. J., 2004. "Efficient market hypothesis and forecasting," International Journal of Forecasting, Elsevier, vol. 20(1), pages 15-27.
    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. Guerard, John, 2023. "Harry Markowitz: An appreciation," International Journal of Forecasting, Elsevier, vol. 39(4), pages 1496-1501.
    2. Felicia Ramona Birău, 2012. "The Impact Of Behavioral Finance On Stock Markets," Annals - Economy Series, Constantin Brancusi University, Faculty of Economics, vol. 3, pages 45-50, September.
    3. Stefan Nagel, 2013. "Empirical Cross-Sectional Asset Pricing," Annual Review of Financial Economics, Annual Reviews, vol. 5(1), pages 167-199, November.
    4. Derick D. Quintino & Sergio A. David & Carlos E. de F. Vian, 2017. "Analysis of the Relationship between Ethanol Spot and Futures Prices in Brazil," IJFS, MDPI, vol. 5(2), pages 1-10, April.
    5. Park, Cheol-Ho & Irwin, Scott H., 2004. "The Profitability Of Technical Trading Rules In Us Futures Markets: A Data Snooping Free Test," 2004 Conference, April 19-20, 2004, St. Louis, Missouri 19011, NCR-134 Conference on Applied Commodity Price Analysis, Forecasting, and Market Risk Management.
    6. Taufiq Choudhry & Ranadeva Jayasekera, 2015. "Level of efficiency in the UK equity market: empirical study of the effects of the global financial crisis," Review of Quantitative Finance and Accounting, Springer, vol. 44(2), pages 213-242, February.
    7. Mishra, Sasmita & Padhy, Sudarsan, 2019. "An efficient portfolio construction model using stock price predicted by support vector regression," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    8. Paroissien, Emmanuel, 2020. "Forecasting bulk prices of Bordeaux wines using leading indicators," International Journal of Forecasting, Elsevier, vol. 36(2), pages 292-309.
    9. Cheol‐Ho Park & Scott H. Irwin, 2010. "A reality check on technical trading rule profits in the U.S. futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 30(7), pages 633-659, July.
    10. Parul Bhatia & Priya Gupta, 2020. "Sub-prime Crisis or COVID-19: A Comparative Analysis of Volatility in Indian Banking Sectoral Indices," FIIB Business Review, , vol. 9(4), pages 286-299, December.
    11. Rambaccussing, Dooruj, 2015. "Revisiting Shiller's excess volatility hypothesis," SIRE Discussion Papers 2015-33, Scottish Institute for Research in Economics (SIRE).
    12. Roman Kraeussl & Christian Wiehenkamp, 2012. "A call on art investments," Review of Derivatives Research, Springer, vol. 15(1), pages 1-23, April.
    13. Crone, Sven F. & Hibon, Michèle & Nikolopoulos, Konstantinos, 2011. "Advances in forecasting with neural networks? Empirical evidence from the NN3 competition on time series prediction," International Journal of Forecasting, Elsevier, vol. 27(3), pages 635-660.
    14. Chen, Min & Zhu, Ke, 2014. "Sign-based specification tests for martingale difference with conditional heteroscedasity," MPRA Paper 56347, University Library of Munich, Germany.
    15. Jia Wang & Tong Sun & Benyuan Liu & Yu Cao & Degang Wang, 2021. "Financial Markets Prediction with Deep Learning," Papers 2104.05413, arXiv.org.
    16. De Santis, Paola & Drago, Carlo, 2014. "Asimmetria del rischio sistematico dei titoli immobiliari americani: nuove evidenze econometriche [Systematic Risk Asymmetry of the American Real Estate Securities: Some New Econometric Evidence]," MPRA Paper 59381, University Library of Munich, Germany.
    17. Ali, Mohammad M. & Boylan, John E. & Syntetos, Aris A., 2012. "Forecast errors and inventory performance under forecast information sharing," International Journal of Forecasting, Elsevier, vol. 28(4), pages 830-841.
    18. Nikolai Dokuchaev, 2015. "Modelling Possibility of Short-Term Forecasting of Market Parameters for Portfolio Selection," Annals of Economics and Finance, Society for AEF, vol. 16(1), pages 143-161, May.
    19. Nuray Tosunoğlu & Hilal Abacı & Gizem Ateş & Neslihan Saygılı Akkaya, 2023. "Artificial neural network analysis of the day of the week anomaly in cryptocurrencies," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-24, December.
    20. Sheriffdeen A. Tella & Olumuyiwa G. Yinusa & Ayinde Taofeek Olusola & Saban Celik, 2011. "Global Economic Crisis And Stock Markets Efficiency: Evidence From Selected Africa Countries," Bogazici Journal, Review of Social, Economic and Administrative Studies, Bogazici University, Department of Economics, vol. 25(1), pages 139-169.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2202.03156. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.