IDEAS home Printed from https://ideas.repec.org/a/eee/intfor/v35y2019i1p390-407.html
   My bibliography  Save this article

Classification of intraday S&P500 returns with a Random Forest

Author

Listed:
  • Lohrmann, Christoph
  • Luukka, Pasi

Abstract

Stock markets can be interpreted to a certain extent as prediction markets, since they can incorporate and represent the different opinions of investors who disagree on the implications of the available information on past and expected events and trade on their beliefs in order to achieve profits. Many forecast models have been developed for predicting the future state of stock markets, with the aim of using this knowledge in a trading strategy. This paper interprets the classification of the S&P500 open-to-close returns as a four-class problem. We compare four trading strategies based on a random forest classifier to a buy-and-hold strategy. The results show that predicting the classes with higher absolute returns, ‘strong positive’ and ‘strong negative’, contributed the most to the trading strategies on average. This finding can help shed light on the way in which using additional event outcomes for the classification beyond a simple upward or downward movement can potentially improve a trading strategy.

Suggested Citation

  • Lohrmann, Christoph & Luukka, Pasi, 2019. "Classification of intraday S&P500 returns with a Random Forest," International Journal of Forecasting, Elsevier, vol. 35(1), pages 390-407.
  • Handle: RePEc:eee:intfor:v:35:y:2019:i:1:p:390-407
    DOI: 10.1016/j.ijforecast.2018.08.004
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0169207018301481
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ijforecast.2018.08.004?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. Krauss, Christopher & Do, Xuan Anh & Huck, Nicolas, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," European Journal of Operational Research, Elsevier, vol. 259(2), pages 689-702.
    2. repec:bla:intfin:v:4:y:2001:i:2:p:221-55 is not listed on IDEAS
    3. Evan Hurwitz & Tshilidzi Marwala, 2011. "Suitability of using technical indicators as potential strategies within intelligent trading systems," Papers 1110.3383, arXiv.org.
    4. Adam Fadlalla & Farzaneh Amani, 2014. "Predicting Next Trading Day Closing Price Of Qatar Exchange Index Using Technical Indicators And Artificial Neural Networks," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 21(4), pages 209-223, October.
    5. Christopher Krauss & Anh Do & Nicolas Huck, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," Post-Print hal-01768895, HAL.
    6. Leighton Vaughan Williams & J. James Reade, 2016. "Prediction Markets, Social Media and Information Efficiency," Kyklos, Wiley Blackwell, vol. 69(3), pages 518-556, August.
    7. Lionel Page, 2012. "‘It ain’t over till it's over.’ Yogi Berra bias on prediction markets," Applied Economics, Taylor & Francis Journals, vol. 44(1), pages 81-92, January.
    8. Rothschild, David & Pennock, David M., 2014. "The extent of price misalignment in prediction markets," Algorithmic Finance, IOS Press, vol. 3(1-2), pages 3-20.
    9. Ian Domowitz & Jack Glen & Ananth Madhavan, 2001. "Liquidity, Volatility and Equity Trading Costs Across Countries and Over Time," International Finance, Wiley Blackwell, vol. 4(2), pages 221-255.
    10. Leung, Mark T. & Daouk, Hazem & Chen, An-Sing, 2000. "Forecasting stock indices: a comparison of classification and level estimation models," International Journal of Forecasting, Elsevier, vol. 16(2), pages 173-190.
    11. Eero P䴤ri & Mika Vilska, 2014. "Performance of moving average trading strategies over varying stock market conditions: the Finnish evidence," Applied Economics, Taylor & Francis Journals, vol. 46(24), pages 2851-2872, August.
    12. Rudebusch, Glenn D. & Williams, John C., 2009. "Forecasting Recessions: The Puzzle of the Enduring Power of the Yield Curve," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 492-503.
    13. 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.
    14. Myoung Jong Kim & Ingoo Han & Kun Chang Lee, 2004. "Hybrid knowledge integration using the fuzzy genetic algorithm: prediction of the Korea stock price index," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 12(1), pages 43-60, January.
    15. Nyberg, Henri, 2013. "Predicting bear and bull stock markets with dynamic binary time series models," Journal of Banking & Finance, Elsevier, vol. 37(9), pages 3351-3363.
    16. Bhaduri, Saumitra & Saraogi, Ravi, 2010. "The predictive power of the yield spread in timing the stock market," Emerging Markets Review, Elsevier, vol. 11(3), pages 261-272, September.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Henriques, Irene & Sadorsky, Perry, 2023. "Forecasting rare earth stock prices with machine learning," Resources Policy, Elsevier, vol. 86(PA).
    2. Syed Abul, Basher & Perry, Sadorsky, 2022. "Forecasting Bitcoin price direction with random forests: How important are interest rates, inflation, and market volatility?," MPRA Paper 113293, University Library of Munich, Germany.
    3. Bharat Kumar Meher & Abhishek Anand & Sunil Kumar & Ramona Birau & Manohar Sing, 2024. "Effectiveness of Random Forest Model in Predicting Stock Prices of Solar Energy Companies in India," International Journal of Energy Economics and Policy, Econjournals, vol. 14(2), pages 426-434, March.
    4. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    5. Sadorsky, Perry, 2022. "Forecasting solar stock prices using tree-based machine learning classification: How important are silver prices?," The North American Journal of Economics and Finance, Elsevier, vol. 61(C).
    6. Ghosh, Pushpendu & Neufeld, Ariel & Sahoo, Jajati Keshari, 2022. "Forecasting directional movements of stock prices for intraday trading using LSTM and random forests," Finance Research Letters, Elsevier, vol. 46(PA).
    7. Erol Eğrioğlu & Robert Fildes, 2022. "A New Bootstrapped Hybrid Artificial Neural Network Approach for Time Series Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 59(4), pages 1355-1383, April.
    8. Perry Sadorsky, 2021. "A Random Forests Approach to Predicting Clean Energy Stock Prices," JRFM, MDPI, vol. 14(2), pages 1-20, January.

    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. Schnaubelt, Matthias & Fischer, Thomas G. & Krauss, Christopher, 2018. "Separating the signal from the noise - financial machine learning for Twitter," FAU Discussion Papers in Economics 14/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    2. Schnaubelt, Matthias & Fischer, Thomas G. & Krauss, Christopher, 2020. "Separating the signal from the noise – Financial machine learning for Twitter," Journal of Economic Dynamics and Control, Elsevier, vol. 114(C).
    3. Thomas Günter Fischer & Christopher Krauss & Alexander Deinert, 2019. "Statistical Arbitrage in Cryptocurrency Markets," JRFM, MDPI, vol. 12(1), pages 1-15, February.
    4. 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.
    5. Kentaro Imajo & Kentaro Minami & Katsuya Ito & Kei Nakagawa, 2020. "Deep Portfolio Optimization via Distributional Prediction of Residual Factors," Papers 2012.07245, arXiv.org.
    6. Moews, Ben & Ibikunle, Gbenga, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 547(C).
    7. Fischer, Thomas & Krauss, Christopher, 2017. "Deep learning with long short-term memory networks for financial market predictions," FAU Discussion Papers in Economics 11/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    8. Alexander Jakob Dautel & Wolfgang Karl Härdle & Stefan Lessmann & Hsin-Vonn Seow, 2020. "Forex exchange rate forecasting using deep recurrent neural networks," Digital Finance, Springer, vol. 2(1), pages 69-96, September.
    9. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    10. Fabian Waldow & Matthias Schnaubelt & Christopher Krauss & Thomas Günter Fischer, 2021. "Machine Learning in Futures Markets," JRFM, MDPI, vol. 14(3), pages 1-14, March.
    11. Pedro M. Mirete-Ferrer & Alberto Garcia-Garcia & Juan Samuel Baixauli-Soler & Maria A. Prats, 2022. "A Review on Machine Learning for Asset Management," Risks, MDPI, vol. 10(4), pages 1-46, April.
    12. Illia Baranochnikov & Robert Ślepaczuk, 2022. "A comparison of LSTM and GRU architectures with novel walk-forward approach to algorithmic investment strategy," Working Papers 2022-21, Faculty of Economic Sciences, University of Warsaw.
    13. Sang Il Lee & Seong Joon Yoo, 2017. "Threshold-Based Portfolio: The Role of the Threshold and Its Applications," Papers 1709.09822, arXiv.org, revised Aug 2018.
    14. Ma, T. & Fraser-Mackenzie, P.A.F. & Sung, M. & Kansara, A.P. & Johnson, J.E.V., 2022. "Are the least successful traders those most likely to exit the market? A survival analysis contribution to the efficient market debate," European Journal of Operational Research, Elsevier, vol. 299(1), pages 330-345.
    15. Keer Yang & Guanqun Zhang & Chuan Bi & Qiang Guan & Hailu Xu & Shuai Xu, 2023. "Improving CNN-base Stock Trading By Considering Data Heterogeneity and Burst," Papers 2303.09407, arXiv.org.
    16. Wang, Peiwan & Zong, Lu, 2023. "Does machine learning help private sectors to alarm crises? Evidence from China’s currency market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 611(C).
    17. Ben Moews & Gbenga Ibikunle, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Papers 2002.10385, arXiv.org.
    18. Sabyasachi Mohapatra & Rohan Mukherjee & Arindam Roy & Anirban Sengupta & Amit Puniyani, 2022. "Can Ensemble Machine Learning Methods Predict Stock Returns for Indian Banks Using Technical Indicators?," JRFM, MDPI, vol. 15(8), pages 1-16, August.
    19. Jinho Lee & Sungwoo Park & Jungyu Ahn & Jonghun Kwak, 2022. "ETF Portfolio Construction via Neural Network trained on Financial Statement Data," Papers 2207.01187, arXiv.org.
    20. Jinho Lee & Raehyun Kim & Yookyung Koh & Jaewoo Kang, 2019. "Global Stock Market Prediction Based on Stock Chart Images Using Deep Q-Network," Papers 1902.10948, arXiv.org.

    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:eee:intfor:v:35:y:2019:i:1:p:390-407. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ijforecast .

    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.