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

Feature Learning for Stock Price Prediction Shows a Significant Role of Analyst Rating

Author

Listed:
  • Jaideep Singh
  • Matloob Khushi

Abstract

To reject the Efficient Market Hypothesis a set of 5 technical indicators and 23 fundamental indicators was identified to establish the possibility of generating excess returns on the stock market. Leveraging these data points and various classification machine learning models, trading data of the 505 equities on the US S&P500 over the past 20 years was analysed to develop a classifier effective for our cause. From any given day, we were able to predict the direction of change in price by 1% up to 10 days in the future. The predictions had an overall accuracy of 83.62% with a precision of 85% for buy signals and a recall of 100% for sell signals. Moreover, we grouped equities by their sector and repeated the experiment to see if grouping similar assets together positively effected the results but concluded that it showed no significant improvements in the performance rejecting the idea of sector-based analysis. Also, using feature ranking we could identify an even smaller set of 6 indicators while maintaining similar accuracies as that from the original 28 features and also uncovered the importance of buy, hold and sell analyst ratings as they came out to be the top contributors in the model. Finally, to evaluate the effectiveness of the classifier in real-life situations, it was backtested on FAANG equities using a modest trading strategy where it generated high returns of above 60% over the term of the testing dataset. In conclusion, our proposed methodology with the combination of purposefully picked features shows an improvement over the previous studies, and our model predicts the direction of 1% price changes on the 10th day with high confidence and with enough buffer to even build a robotic trading system.

Suggested Citation

  • Jaideep Singh & Matloob Khushi, 2021. "Feature Learning for Stock Price Prediction Shows a Significant Role of Analyst Rating," Papers 2103.09106, arXiv.org.
  • Handle: RePEc:arx:papers:2103.09106
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Cheung, Yin-Wong & Chinn, Menzie David & Garcia Pascual, Antonio, 2003. "Empirical Exchange Rate Models of the Nineties: Are Any Fit to Survive?," Santa Cruz Department of Economics, Working Paper Series qt12z9x4c5, Department of Economics, UC Santa Cruz.
    2. Womack, Kent L, 1996. "Do Brokerage Analysts' Recommendations Have Investment Value?," Journal of Finance, American Finance Association, vol. 51(1), pages 137-167, March.
    3. Tae Wan Kim & Matloob Khushi, 2020. "Portfolio Optimization with 2D Relative-Attentional Gated Transformer," Papers 2101.03138, arXiv.org.
    4. Pesaran, M Hashem & Timmermann, Allan, 1995. "Predictability of Stock Returns: Robustness and Economic Significance," Journal of Finance, American Finance Association, vol. 50(4), pages 1201-1228, September.
    5. Sung Jun Park & Ki Young Park, 2018. "Can Investors Profit from Security Analyst Recommendations?," Working papers 2018rwp-131, Yonsei University, Yonsei Economics Research Institute.
    6. Cheung, Yin-Wong & Chinn, Menzie D. & Pascual, Antonio Garcia, 2005. "Empirical exchange rate models of the nineties: Are any fit to survive?," Journal of International Money and Finance, Elsevier, vol. 24(7), pages 1150-1175, November.
    7. Ling Qi & Matloob Khushi & Josiah Poon, 2021. "Event-Driven LSTM For Forex Price Prediction," Papers 2102.01499, arXiv.org.
    8. 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.
    9. Nam, Jouahn & Wang, Jun & Xing, Cunyu & Zhang, Ge, 2018. "Are hated stocks good investments?," The North American Journal of Economics and Finance, Elsevier, vol. 43(C), pages 19-29.
    10. Zezheng Zhang & Matloob Khushi, 2020. "GA-MSSR: Genetic Algorithm Maximizing Sharpe and Sterling Ratio Method for RoboTrading," Papers 2008.09471, arXiv.org.
    11. Marks, Joseph & Yezegel, Ari, 2018. "Do aggregate analyst recommendations predict market returns in international markets?," International Review of Financial Analysis, Elsevier, vol. 59(C), pages 234-254.
    12. Zexin Hu & Yiqi Zhao & Matloob Khushi, 2021. "A Survey of Forex and Stock Price Prediction Using Deep Learning," Papers 2103.09750, arXiv.org.
    13. Corredor, Pilar & Ferrer, Elena & Santamaria, Rafael, 2019. "The role of sentiment and stock characteristics in the translation of analysts’ forecasts into recommendations," The North American Journal of Economics and Finance, Elsevier, vol. 49(C), pages 252-272.
    14. Premti, Arjan & Garcia-Feijoo, Luis & Madura, Jeff, 2017. "Information content of analyst recommendations in the banking industry," International Review of Financial Analysis, Elsevier, vol. 49(C), pages 35-47.
    15. Chiang, Ming-Ti & Lin, Mei-Chen, 2019. "Market sentiment and herding in analysts’ stock recommendations," The North American Journal of Economics and Finance, Elsevier, vol. 48(C), pages 48-64.
    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. Srivinay & B. C. Manujakshi & Mohan Govindsa Kabadi & Nagaraj Naik, 2022. "A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network," Data, MDPI, vol. 7(5), pages 1-11, April.
    2. 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.
    3. Mukul Jaggi & Priyanka Mandal & Shreya Narang & Usman Naseem & Matloob Khushi, 2021. "Text Mining of Stocktwits Data for Predicting Stock Prices," Papers 2103.16388, arXiv.org.
    4. Dushmanta Kumar Padhi & Neelamadhab Padhy & Akash Kumar Bhoi & Jana Shafi & Muhammad Fazal Ijaz, 2021. "A Fusion Framework for Forecasting Financial Market Direction Using Enhanced Ensemble Models and Technical Indicators," Mathematics, MDPI, vol. 9(21), pages 1-31, October.
    5. Mimansa Rana & Nanxiang Mao & Ming Ao & Xiaohui Wu & Poning Liang & Matloob Khushi, 2021. "Clustering and attention model based for intelligent trading," Papers 2107.06782, arXiv.org, revised Aug 2021.
    6. Yunze Li & Yanan Xie & Chen Yu & Fangxing Yu & Bo Jiang & Matloob Khushi, 2021. "Feature importance recap and stacking models for forex price prediction," Papers 2107.14092, arXiv.org.

    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. Peter F. Christoffersen & Francis X. Diebold, 2006. "Financial Asset Returns, Direction-of-Change Forecasting, and Volatility Dynamics," Management Science, INFORMS, vol. 52(8), pages 1273-1287, August.
    2. Accominotti, Olivier & Chambers, David, 2016. "If You're So Smart: John Maynard Keynes and Currency Speculation in the Interwar Years," The Journal of Economic History, Cambridge University Press, vol. 76(2), pages 342-386, June.
    3. Jaroslava Durčáková & Martin Mandel & Vladimír Tomšík, 2005. "Dynamický model nekryté úrokové parity (teorie a empirická verifikace v tranzitivních ekonomikách) [Dynamic model of uncovered interest rate parity (theory and empirical verification in the transit," Politická ekonomie, Prague University of Economics and Business, vol. 2005(3), pages 291-303.
    4. Iregui, Ana María & Núñez, Héctor M. & Otero, Jesús, 2021. "Testing the efficiency of inflation and exchange rate forecast revisions in a changing economic environment," Journal of Economic Behavior & Organization, Elsevier, vol. 187(C), pages 290-314.
    5. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    6. Wu, Chen-Hui, 2022. "The informativeness of brokerage reports: Privately-circulated versus publicly-disseminated news," International Review of Financial Analysis, Elsevier, vol. 83(C).
    7. Jaehun Chung & Yongmiao Hong, 2007. "Model-free evaluation of directional predictability in foreign exchange markets," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 22(5), pages 855-889.
    8. Huong Le, 2020. "The Impact of Financial Integration on the Labor Share of Income: An Empirical Evidence from a Panel Dataset," The Indian Journal of Labour Economics, Springer;The Indian Society of Labour Economics (ISLE), vol. 63(3), pages 597-627, September.
    9. Ledenyov, Dimitri O. & Ledenyov, Viktor O., 2015. "Wave function method to forecast foreign currencies exchange rates at ultra high frequency electronic trading in foreign currencies exchange markets," MPRA Paper 67470, University Library of Munich, Germany.
    10. Anthony Garratt & Kevin Lee, 2006. "Investing Under Model Uncertainty: Decision Based Evaluation of Exchange Rate and Interest Rate Forecasts in the US, UK and Japan," Birkbeck Working Papers in Economics and Finance 0616, Birkbeck, Department of Economics, Mathematics & Statistics.
    11. Nicolas S. Magner & Nicolás Hardy & Tiago Ferreira & Jaime F. Lavin, 2023. "“Agree to Disagree”: Forecasting Stock Market Implied Volatility Using Financial Report Tone Disagreement Analysis," Mathematics, MDPI, vol. 11(7), pages 1-16, March.
    12. Garratt, Anthony & Lee, Kevin, 2010. "Investing under model uncertainty: Decision based evaluation of exchange rate forecasts in the US, UK and Japan," Journal of International Money and Finance, Elsevier, vol. 29(3), pages 403-422, April.
    13. Sebastian Heiden & Christian Klein & Bernhard Zwergel, 2013. "Beyond Fundamentals: Investor Sentiment and Exchange Rate Forecasting," European Financial Management, European Financial Management Association, vol. 19(3), pages 558-578, June.
    14. Pippenger, John, 2008. "Freely Floating Exchange Rates Do Not Systematically Overshoot," University of California at Santa Barbara, Economics Working Paper Series qt97m8z6hw, Department of Economics, UC Santa Barbara.
    15. Yunze Li & Yanan Xie & Chen Yu & Fangxing Yu & Bo Jiang & Matloob Khushi, 2021. "Feature importance recap and stacking models for forex price prediction," Papers 2107.14092, arXiv.org.
    16. Sarantis, Nicholas, 2006. "On the short-term predictability of exchange rates: A BVAR time-varying parameters approach," Journal of Banking & Finance, Elsevier, vol. 30(8), pages 2257-2279, August.
    17. Bartsch, Zachary, 2019. "Economic policy uncertainty and dollar-pound exchange rate return volatility," Journal of International Money and Finance, Elsevier, vol. 98(C), pages 1-1.
    18. repec:wyi:journl:002068 is not listed on IDEAS
    19. Lee, Hsiu-Chuan & Lee, Yun-Huan & Lu, Yang-Cheng & Wang, Yu-Chun, 2020. "States of psychological anchors and price behavior of Japanese yen futures," The North American Journal of Economics and Finance, Elsevier, vol. 51(C).
    20. David G. McMillan, 2017. "Stock return predictability: the role of inflation and threshold dynamics," International Review of Applied Economics, Taylor & Francis Journals, vol. 31(3), pages 357-375, May.
    21. Kelly Burns & Imad Moosa, 2017. "Demystifying the Meese–Rogoff puzzle: structural breaks or measures of forecasting accuracy?," Applied Economics, Taylor & Francis Journals, vol. 49(48), pages 4897-4910, October.

    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:2103.09106. 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.