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

Using Stock Prices as Ground Truth in Sentiment Analysis to Generate Profitable Trading Signals

Author

Listed:
  • Ellie Birbeck
  • Dave Cliff

Abstract

The increasing availability of "big" (large volume) social media data has motivated a great deal of research in applying sentiment analysis to predict the movement of prices within financial markets. Previous work in this field investigates how the true sentiment of text (i.e. positive or negative opinions) can be used for financial predictions, based on the assumption that sentiments expressed online are representative of the true market sentiment. Here we consider the converse idea, that using the stock price as the ground-truth in the system may be a better indication of sentiment. Tweets are labelled as Buy or Sell dependent on whether the stock price discussed rose or fell over the following hour, and from this, stock-specific dictionaries are built for individual companies. A Bayesian classifier is used to generate stock predictions, which are input to an automated trading algorithm. Placing 468 trades over a 1 month period yields a return rate of 5.18%, which annualises to approximately 83% per annum. This approach performs significantly better than random chance and outperforms two baseline sentiment analysis methods tested.

Suggested Citation

  • Ellie Birbeck & Dave Cliff, 2018. "Using Stock Prices as Ground Truth in Sentiment Analysis to Generate Profitable Trading Signals," Papers 1811.02886, arXiv.org.
  • Handle: RePEc:arx:papers:1811.02886
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Timm O. Sprenger & Andranik Tumasjan & Philipp G. Sandner & Isabell M. Welpe, 2014. "Tweets and Trades: the Information Content of Stock Microblogs," European Financial Management, European Financial Management Association, vol. 20(5), pages 926-957, November.
    2. Harrison Hong & Jeremy C. Stein, 1999. "A Unified Theory of Underreaction, Momentum Trading, and Overreaction in Asset Markets," Journal of Finance, American Finance Association, vol. 54(6), pages 2143-2184, December.
    3. Ying Zhang & Peggy Swanson, 2010. "Are day traders bias free?—evidence from internet stock message boards," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 34(1), pages 96-112, January.
    4. Timmermann, Allan, 2008. "Reply to the discussion of Elusive Return Predictability," International Journal of Forecasting, Elsevier, vol. 24(1), pages 29-30.
    5. Tim Loughran & Bill Mcdonald, 2011. "When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10‐Ks," Journal of Finance, American Finance Association, vol. 66(1), pages 35-65, February.
    6. Timmermann, Allan, 2008. "Elusive return predictability," International Journal of Forecasting, Elsevier, vol. 24(1), pages 1-18.
    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. Dave Cliff, 2021. "BBE: Simulating the Microstructural Dynamics of an In-Play Betting Exchange via Agent-Based Modelling," Papers 2105.08310, arXiv.org.
    2. Irina RAICU, 2019. "Financial Banking Dataset for Supervised Machine Learning Classification," Informatica Economica, Academy of Economic Studies - Bucharest, Romania, vol. 23(1), pages 37-49.

    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. Junni L. Zhang & Wolfgang K. Härdle & Cathy Y. Chen & Elisabeth Bommes, 2015. "Distillation of News Flow into Analysis of Stock Reactions," SFB 649 Discussion Papers SFB649DP2015-005, Sonderforschungsbereich 649, Humboldt University, Berlin, Germany.
    2. Junni L. Zhang & Wolfgang Karl Hardle & Cathy Y. Chen & Elisabeth Bommes, 2020. "Distillation of News Flow into Analysis of Stock Reactions," Papers 2009.10392, arXiv.org.
    3. Leland E. Farmer & Lawrence Schmidt & Allan Timmermann, 2023. "Pockets of Predictability," Journal of Finance, American Finance Association, vol. 78(3), pages 1279-1341, June.
    4. Harri Pönkä, 2017. "Predicting the direction of US stock markets using industry returns," Empirical Economics, Springer, vol. 52(4), pages 1451-1480, June.
    5. Bowden, James & Gemayel, Roland, 2022. "Sentiment and trading decisions in an ambiguous environment: A study on cryptocurrency traders," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 80(C).
    6. Kim, Jae H. & Shamsuddin, Abul & Lim, Kian-Ping, 2011. "Stock return predictability and the adaptive markets hypothesis: Evidence from century-long U.S. data," Journal of Empirical Finance, Elsevier, vol. 18(5), pages 868-879.
    7. 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.
    8. Nicolás Magner & Nicolás Hardy, 2022. "Cryptocurrency Forecasting: More Evidence of the Meese-Rogoff Puzzle," Mathematics, MDPI, vol. 10(13), pages 1-27, July.
    9. Massacci, Daniele, 2017. "Least squares estimation of large dimensional threshold factor models," Journal of Econometrics, Elsevier, vol. 197(1), pages 101-129.
    10. Chen, Cathy Yi-Hsuan & Fengler, Matthias R. & Härdle, Wolfgang Karl & Liu, Yanchu, 2022. "Media-expressed tone, option characteristics, and stock return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    11. He, Xue-Zhong & Li, Kai & Santi, Caterina & Shi, Lei, 2022. "Social interaction, volatility clustering, and momentum," Journal of Economic Behavior & Organization, Elsevier, vol. 203(C), pages 125-149.
    12. Solomon, David H. & Soltes, Eugene & Sosyura, Denis, 2014. "Winners in the spotlight: Media coverage of fund holdings as a driver of flows," Journal of Financial Economics, Elsevier, vol. 113(1), pages 53-72.
    13. Rossi, Barbara, 2013. "Advances in Forecasting under Instability," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 1203-1324, Elsevier.
    14. Ahmad, Khurshid & Han, JingGuang & Hutson, Elaine & Kearney, Colm & Liu, Sha, 2016. "Media-expressed negative tone and firm-level stock returns," Journal of Corporate Finance, Elsevier, vol. 37(C), pages 152-172.
    15. Christopher J. Neely & David E. Rapach & Jun Tu & Guofu Zhou, 2014. "Forecasting the Equity Risk Premium: The Role of Technical Indicators," Management Science, INFORMS, vol. 60(7), pages 1772-1791, July.
    16. Al-Nasseri, Alya & Menla Ali, Faek & Tucker, Allan, 2021. "Investor sentiment and the dispersion of stock returns: Evidence based on the social network of investors," International Review of Financial Analysis, Elsevier, vol. 78(C).
    17. Demetrescu, Matei & Georgiev, Iliyan & Rodrigues, Paulo M.M. & Taylor, A.M. Robert, 2022. "Testing for episodic predictability in stock returns," Journal of Econometrics, Elsevier, vol. 227(1), pages 85-113.
    18. Cem Cakmakli & Dick van Dijk, 2010. "Getting the Most out of Macroeconomic Information for Predicting Stock Returns and Volatility," Tinbergen Institute Discussion Papers 10-115/4, Tinbergen Institute.
    19. Masaki Mori, 2015. "Information Diffusion in the U.S. Real Estate Investment Trust Market," The Journal of Real Estate Finance and Economics, Springer, vol. 51(2), pages 190-214, August.
    20. Chong, Terence Tai Leung & Wu, Zhang & Liu, Yuchen, 2019. "Market Reaction to iPhone Rumors," MPRA Paper 92014, University Library of Munich, Germany.

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