IDEAS home Printed from https://ideas.repec.org/a/eee/finana/v48y2016icp272-281.html
   My bibliography  Save this article

Trade the tweet: Social media text mining and sparse matrix factorization for stock market prediction

Author

Listed:
  • Sun, Andrew
  • Lachanski, Michael
  • Fabozzi, Frank J.

Abstract

We investigate the potential use of textual information from user-generated microblogs to predict the stock market. Utilizing the latent space model proposed by Wong et al. (2014), we correlate the movements of both stock prices and social media content. This study differs from models in prior studies in two significant ways: (1) it leverages market information contained in high-volume social media data rather than news articles and (2) it does not evaluate sentiment. We test this model on data spanning from 2011 to 2015 on a majority of stocks listed in the S&P 500 Index and find that our model outperforms a baseline regression. We conclude by providing a trading strategy that produces an attractive annual return and Sharpe ratio.

Suggested Citation

  • Sun, Andrew & Lachanski, Michael & Fabozzi, Frank J., 2016. "Trade the tweet: Social media text mining and sparse matrix factorization for stock market prediction," International Review of Financial Analysis, Elsevier, vol. 48(C), pages 272-281.
  • Handle: RePEc:eee:finana:v:48:y:2016:i:c:p:272-281
    DOI: 10.1016/j.irfa.2016.10.009
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.irfa.2016.10.009?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. Paul C. Tetlock & Maytal Saar‐Tsechansky & Sofus Macskassy, 2008. "More Than Words: Quantifying Language to Measure Firms' Fundamentals," Journal of Finance, American Finance Association, vol. 63(3), pages 1437-1467, June.
    2. 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.
    3. Paul C. Tetlock, 2007. "Giving Content to Investor Sentiment: The Role of Media in the Stock Market," Journal of Finance, American Finance Association, vol. 62(3), pages 1139-1168, June.
    4. Werner Antweiler & Murray Z. Frank, 2004. "Is All That Talk Just Noise? The Information Content of Internet Stock Message Boards," Journal of Finance, American Finance Association, vol. 59(3), pages 1259-1294, June.
    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. Felix Ming Fai Wong & Zhenming Liu & Mung Chiang, 2014. "Stock Market Prediction from WSJ: Text Mining via Sparse Matrix Factorization," Papers 1406.7330, arXiv.org.
    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. Fan, Rui & Talavera, Oleksandr & Tran, Vu, 2023. "Information flows and the law of one price," International Review of Financial Analysis, Elsevier, vol. 85(C).
    2. Shaen Corbet & Yang (Greg) Hou & Yang Hu & Les Oxley, 2022. "We Reddit in a Forum: The Influence of Message Boards on Firm Stability," Review of Corporate Finance, now publishers, vol. 2(1), pages 151-190, March.
    3. Anila Arif & Kashif Shafique & Khuram Ahmad Khan & Shahida Haji, 2021. "Analysis of Water Policy & Sustainable Development in Pakistan," International Journal of Agriculture & Sustainable Development, 50sea, vol. 3(4), pages 87-93, November.
    4. Bouteska, Ahmed & Sharif, Taimur & Abedin, Mohammad Zoynul, 2023. "COVID-19 and stock returns: Evidence from the Markov switching dependence approach," Research in International Business and Finance, Elsevier, vol. 64(C).
    5. Yingxia Xue & Honglei Liu, 2023. "Exploration of the Dynamic Evolution of Online Public Opinion towards Waste Classification in Shanghai," IJERPH, MDPI, vol. 20(2), pages 1-15, January.
    6. Santi, Caterina, 2023. "Investor climate sentiment and financial markets," International Review of Financial Analysis, Elsevier, vol. 86(C).
    7. Maciej Wujec, 2021. "Analysis of the Financial Information Contained in the Texts of Current Reports: A Deep Learning Approach," JRFM, MDPI, vol. 14(12), pages 1-17, December.
    8. Joseph D. Prusa & Ryan T. Sagul & Taghi M. Khoshgoftaar, 2019. "Extracting Knowledge from Technical Reports for the Valuation of West Texas Intermediate Crude Oil Futures," Information Systems Frontiers, Springer, vol. 21(1), pages 109-123, February.
    9. Heba Ali, 2018. "Twitter, Investor Sentiment and Capital Markets: What Do We Know?," International Journal of Economics and Finance, Canadian Center of Science and Education, vol. 10(8), pages 158-158, August.
    10. Afees A. Salisu & Raymond Swaray & Tirimisyu F. Oloko, 2017. "A multi-factor predictive model for oil-US stock nexus with persistence, endogeneity and conditional heteroscedasticity effects," Working Papers 024, Centre for Econometric and Allied Research, University of Ibadan.
    11. Shen, Dehua & Urquhart, Andrew & Wang, Pengfei, 2019. "Does twitter predict Bitcoin?," Economics Letters, Elsevier, vol. 174(C), pages 118-122.
    12. Shilpa Srivastava & Millie Pant & Varuna Gupta, 2023. "Analysis and prediction of Indian stock market: a machine-learning approach," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(4), pages 1567-1585, August.
    13. Na, Haejung & Kim, Soonho, 2021. "Predicting stock prices based on informed traders’ activities using deep neural networks," Economics Letters, Elsevier, vol. 204(C).
    14. Kumar, Rahul & Deb, Soumya Guha & Mukherjee, Shubhadeep, 2020. "Do words reveal the latent truth? Identifying communication patterns of corporate losers," Journal of Behavioral and Experimental Finance, Elsevier, vol. 26(C).
    15. Wang, Fang & Gacesa, Marko, 2023. "Semi-strong efficient market of Bitcoin and Twitter: An analysis of semantic vector spaces of extracted keywords and light gradient boosting machine models," International Review of Financial Analysis, Elsevier, vol. 88(C).
    16. U, JuHyok & Lu, PengYu & Kim, ChungSong & Ryu, UnSok & Pak, KyongSok, 2020. "A new LSTM based reversal point prediction method using upward/downward reversal point feature sets," Chaos, Solitons & Fractals, Elsevier, vol. 132(C).
    17. Qiong Wu & Christopher G. Brinton & Zheng Zhang & Andrea Pizzoferrato & Zhenming Liu & Mihai Cucuringu, 2019. "Equity2Vec: End-to-end Deep Learning Framework for Cross-sectional Asset Pricing," Papers 1909.04497, arXiv.org, revised Oct 2021.
    18. Mohammad Alomari & Abdel Razzaq Al rababa’a & Ghaith El-Nader & Ahmad Alkhataybeh, 2021. "Who’s behind the wheel? The role of social and media news in driving the stock–bond correlation," Review of Quantitative Finance and Accounting, Springer, vol. 57(3), pages 959-1007, October.
    19. Ning Wang & Shanhui Ke & Yibo Chen & Tao Yan & Andrew Lim, 2019. "Textual Sentiment of Chinese Microblog Toward the Stock Market," International Journal of Information Technology & Decision Making (IJITDM), World Scientific Publishing Co. Pte. Ltd., vol. 18(02), pages 649-671, March.
    20. Andrea Fronzetti Colladon & Stefano Grassi & Francesco Ravazzolo & Francesco Violante, 2023. "Forecasting financial markets with semantic network analysis in the COVID‐19 crisis," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(5), pages 1187-1204, August.
    21. Teti, Emanuele & Dallocchio, Maurizio & Aniasi, Alberto, 2019. "The relationship between twitter and stock prices. Evidence from the US technology industry," Technological Forecasting and Social Change, Elsevier, vol. 149(C).
    22. Naderi Semiromi, Hamed & Lessmann, Stefan & Peters, Wiebke, 2020. "News will tell: Forecasting foreign exchange rates based on news story events in the economy calendar," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    23. Toan Luu Duc Huynh, 2023. "When Elon Musk Changes his Tone, Does Bitcoin Adjust Its Tune?," Computational Economics, Springer;Society for Computational Economics, vol. 62(2), pages 639-661, August.

    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. Goodell, John W. & Kumar, Satish & Lim, Weng Marc & Pattnaik, Debidutta, 2021. "Artificial intelligence and machine learning in finance: Identifying foundations, themes, and research clusters from bibliometric analysis," Journal of Behavioral and Experimental Finance, Elsevier, vol. 32(C).
    2. Mao, Huina & Counts, Scott & Bollen, Johan, 2015. "Quantifying the effects of online bullishness on international financial markets," Statistics Paper Series 09, European Central Bank.
    3. Prajwal Eachempati & Praveen Ranjan Srivastava, 2021. "Accounting for unadjusted news sentiment for asset pricing," Qualitative Research in Financial Markets, Emerald Group Publishing Limited, vol. 13(3), pages 383-422, May.
    4. Mao, Huina & Counts, Scott & Bollen, Johan, 2015. "Quantifying the effects of online bullishness on international financial markets," Statistics Paper Series 9, European Central Bank.
    5. Ahmed, Yousry & Elshandidy, Tamer, 2016. "The effect of bidder conservatism on M&A decisions: Text-based evidence from US 10-K filings," International Review of Financial Analysis, Elsevier, vol. 46(C), pages 176-190.
    6. Ferdinand Graf, 2011. "Mechanically Extracted Company Signals and their Impact on Stock and Credit Markets," Working Paper Series of the Department of Economics, University of Konstanz 2011-18, Department of Economics, University of Konstanz.
    7. Thomas Renault, 2020. "Sentiment analysis and machine learning in finance: a comparison of methods and models on one million messages," Digital Finance, Springer, vol. 2(1), pages 1-13, September.
    8. 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.
    9. Duan, Yuejiao & Liu, Lanbiao & Wang, Zhuo, 2021. "COVID-19 Sentiment and the Chinese Stock Market: Evidence from the Official News Media and Sina Weibo," Research in International Business and Finance, Elsevier, vol. 58(C).
    10. Steven Heston & Nitish R. Sinha, 2016. "News versus Sentiment : Predicting Stock Returns from News Stories," Finance and Economics Discussion Series 2016-048, Board of Governors of the Federal Reserve System (U.S.).
    11. Liao, Rose & Wang, Xinjie & Wu, Ge, 2021. "The role of media in mergers and acquisitions," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 74(C).
    12. An, Suwei, 2023. "Essays on incentive contracts, M&As, and firm risk," Other publications TiSEM dd97d2f5-1c9d-47c5-ba62-f, Tilburg University, School of Economics and Management.
    13. Chong, Terence Tai Leung & Wu, Zhang & Liu, Yuchen, 2019. "Market Reaction to iPhone Rumors," MPRA Paper 92014, University Library of Munich, Germany.
    14. Vegard Høghaug Larsen & Leif Anders Thorsrud, 2022. "Asset returns, news topics, and media effects," Scandinavian Journal of Economics, Wiley Blackwell, vol. 124(3), pages 838-868, July.
    15. Avramov, Doron & Li, Minwen & Wang, Hao, 2021. "Predicting corporate policies using downside risk: A machine learning approach," Journal of Empirical Finance, Elsevier, vol. 63(C), pages 1-26.
    16. Jacob Boudoukh & Ronen Feldman & Shimon Kogan & Matthew Richardson, 2013. "Which News Moves Stock Prices? A Textual Analysis," NBER Working Papers 18725, National Bureau of Economic Research, Inc.
    17. Gabriele Ranco & Ilaria Bordino & Giacomo Bormetti & Guido Caldarelli & Fabrizio Lillo & Michele Treccani, 2014. "Coupling news sentiment with web browsing data improves prediction of intra-day price dynamics," Papers 1412.3948, arXiv.org, revised Dec 2015.
    18. Massimiliano Caporin & Francesco Poli, 2017. "Building News Measures from Textual Data and an Application to Volatility Forecasting," Econometrics, MDPI, vol. 5(3), pages 1-46, August.
    19. Gerard Hoberg & Gordon Phillips, 2016. "Text-Based Network Industries and Endogenous Product Differentiation," Journal of Political Economy, University of Chicago Press, vol. 124(5), pages 1423-1465.
    20. David F. Larcker & Anastasia A. Zakolyukina, 2012. "Detecting Deceptive Discussions in Conference Calls," Journal of Accounting Research, Wiley Blackwell, vol. 50(2), pages 495-540, May.

    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:finana:v:48:y:2016:i:c:p:272-281. 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/inca/620166 .

    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.