IDEAS home Printed from https://ideas.repec.org/a/spr/binfse/v57y2015i4p229-242.html
   My bibliography  Save this article

Using Twitter to Predict the Stock Market

Author

Listed:
  • Michael Nofer
  • Oliver Hinz

Abstract

Behavioral finance researchers have shown that the stock market can be driven by emotions of market participants. In a number of recent studies mood levels have been extracted from Social Media applications in order to predict stock returns. The paper tries to replicate these findings by measuring the mood states on Twitter. The sample consists of roughly 100 million tweets that were published in Germany between January, 2011 and November, 2013. In a first analysis, a significant relationship between aggregate Twitter mood states and the stock market is not found. However, further analyses also consider mood contagion by integrating the number of Twitter followers into the analysis. The results show that it is necessary to take into account the spread of mood states among Internet users. Based on the results in the training period, a trading strategy for the German stock market is created. The portfolio increases by up to 36 % within a six-month period after the consideration of transaction costs. Copyright Springer Fachmedien Wiesbaden 2015

Suggested Citation

  • Michael Nofer & Oliver Hinz, 2015. "Using Twitter to Predict the Stock Market," Business & Information Systems Engineering: The International Journal of WIRTSCHAFTSINFORMATIK, Springer;Gesellschaft für Informatik e.V. (GI), vol. 57(4), pages 229-242, August.
  • Handle: RePEc:spr:binfse:v:57:y:2015:i:4:p:229-242
    DOI: 10.1007/s12599-015-0390-4
    as

    Download full text from publisher

    File URL: http://hdl.handle.net/10.1007/s12599-015-0390-4
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1007/s12599-015-0390-4?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. Lisa A. Kramer & Mark J. Kamstra & Maurice D. Levi, 2000. "Losing Sleep at the Market: The Daylight Saving Anomaly," American Economic Review, American Economic Association, vol. 90(4), pages 1005-1011, September.
    2. De Long, J Bradford, et al, 1990. "Positive Feedback Investment Strategies and Destabilizing Rational Speculation," Journal of Finance, American Finance Association, vol. 45(2), pages 379-395, June.
    3. Sanjiv R. Das & Mike Y. Chen, 2007. "Yahoo! for Amazon: Sentiment Extraction from Small Talk on the Web," Management Science, INFORMS, vol. 53(9), pages 1375-1388, September.
    4. David Hirshleifer & Tyler Shumway, 2003. "Good Day Sunshine: Stock Returns and the Weather," Journal of Finance, American Finance Association, vol. 58(3), pages 1009-1032, June.
    5. Hinz, Oliver & Skiera, Bernd & Barrot, Christian & Becker, Jan, 2011. "Seeding Strategies for Viral Marketing: An Empirical Comparison," Publications of Darmstadt Technical University, Institute for Business Studies (BWL) 56543, Darmstadt Technical University, Department of Business Administration, Economics and Law, Institute for Business Studies (BWL).
    6. Christopher N. Avery & Judith A. Chevalier & Richard J. Zeckhauser, 2016. "The "CAPS" Prediction System and Stock Market Returns," Review of Finance, European Finance Association, vol. 20(4), pages 1363-1381.
    7. Baker, Malcolm & Stein, Jeremy C., 2004. "Market liquidity as a sentiment indicator," Journal of Financial Markets, Elsevier, vol. 7(3), pages 271-299, June.
    8. Gregory W. Brown & Michael T. Cliff, 2005. "Investor Sentiment and Asset Valuation," The Journal of Business, University of Chicago Press, vol. 78(2), pages 405-440, March.
    9. Saunders, Edward M, Jr, 1993. "Stock Prices and Wall Street Weather," American Economic Review, American Economic Association, vol. 83(5), pages 1337-1345, December.
    10. Amos Tversky & Daniel Kahneman, 1991. "Loss Aversion in Riskless Choice: A Reference-Dependent Model," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 106(4), pages 1039-1061.
    11. Karpoff, Jonathan M., 1987. "The Relation between Price Changes and Trading Volume: A Survey," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 22(1), pages 109-126, March.
    12. Malcolm Baker & Jeffrey Wurgler, 2007. "Investor Sentiment in the Stock Market," Journal of Economic Perspectives, American Economic Association, vol. 21(2), pages 129-152, Spring.
    13. Huberman, Gur, 2001. "Familiarity Breeds Investment," The Review of Financial Studies, Society for Financial Studies, vol. 14(3), pages 659-680.
    14. French, Kenneth R. & Schwert, G. William & Stambaugh, Robert F., 1987. "Expected stock returns and volatility," Journal of Financial Economics, Elsevier, vol. 19(1), pages 3-29, September.
    15. French, Kenneth R & Poterba, James M, 1991. "Investor Diversification and International Equity Markets," American Economic Review, American Economic Association, vol. 81(2), pages 222-226, May.
    16. Daniel, Kent & Hirshleifer, David & Teoh, Siew Hong, 2002. "Investor psychology in capital markets: evidence and policy implications," Journal of Monetary Economics, Elsevier, vol. 49(1), pages 139-209, January.
    17. Brown, Philip & Keim, Donald B. & Kleidon, Allan W. & Marsh, Terry A., 1983. "Stock return seasonalities and the tax-loss selling hypothesis : Analysis of the arguments and Australian evidence," Journal of Financial Economics, Elsevier, vol. 12(1), pages 105-127, June.
    18. Robert J. Shiller, 2003. "From Efficient Markets Theory to Behavioral Finance," Journal of Economic Perspectives, American Economic Association, vol. 17(1), pages 83-104, Winter.
    19. Kaplan, Andreas M. & Haenlein, Michael, 2010. "Users of the world, unite! The challenges and opportunities of Social Media," Business Horizons, Elsevier, vol. 53(1), pages 59-68, January.
    20. Mark J. Kamstra & Lisa A. Kramer & Maurice D. Levi, 2003. "Winter Blues: A SAD Stock Market Cycle," American Economic Review, American Economic Association, vol. 93(1), pages 324-343, March.
    21. Levy, Tamir & Yagil, Joseph, 2011. "Air pollution and stock returns in the US," Journal of Economic Psychology, Elsevier, vol. 32(3), pages 374-383, June.
    22. Lily Qiu & Ivo Welch, 2004. "Investor Sentiment Measures," NBER Working Papers 10794, National Bureau of Economic Research, Inc.
    23. Chang, Shao-Chi & Chen, Sheng-Syan & Chou, Robin K. & Lin, Yueh-Hsiang, 2008. "Weather and intraday patterns in stock returns and trading activity," Journal of Banking & Finance, Elsevier, vol. 32(9), pages 1754-1766, September.
    24. Grinblatt, Mark & Titman, Sheridan & Wermers, Russ, 1995. "Momentum Investment Strategies, Portfolio Performance, and Herding: A Study of Mutual Fund Behavior," American Economic Review, American Economic Association, vol. 85(5), pages 1088-1105, December.
    25. Oliver Hinz & Martin Spann, 2008. "The Impact of Information Diffusion on Bidding Behavior in Secret Reserve Price Auctions," Information Systems Research, INFORMS, vol. 19(3), pages 351-368, September.
    26. Seshadri Tirunillai & Gerard J. Tellis, 2012. "Does Chatter Really Matter? Dynamics of User-Generated Content and Stock Performance," Marketing Science, INFORMS, vol. 31(2), pages 198-215, March.
    27. Andrew Worthington, 2009. "An Empirical Note on Weather Effects in the Australian Stock Market," Economic Papers, The Economic Society of Australia, vol. 28(2), pages 148-154, June.
    28. Thaler, Richard H, 1987. "The January Effect," Journal of Economic Perspectives, American Economic Association, vol. 1(1), pages 197-201, Summer.
    29. Alex Edmans & Diego García & Øyvind Norli, 2007. "Sports Sentiment and Stock Returns," Journal of Finance, American Finance Association, vol. 62(4), pages 1967-1998, August.
    30. Tarun Chordia & Bhaskaran Swaminathan, 2000. "Trading Volume and Cross‐Autocorrelations in Stock Returns," Journal of Finance, American Finance Association, vol. 55(2), pages 913-935, April.
    31. Joshua D. Coval & Tobias J. Moskowitz, 1999. "Home Bias at Home: Local Equity Preference in Domestic Portfolios," Journal of Finance, American Finance Association, vol. 54(6), pages 2045-2073, December.
    32. Mark Grinblatt & Matti Keloharju, 2001. "How Distance, Language, and Culture Influence Stockholdings and Trades," Journal of Finance, American Finance Association, vol. 56(3), pages 1053-1073, June.
    33. 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.
    34. Kramer, Walter & Runde, Ralf, 1997. "Stocks and the Weather: An Exercise in Data Mining or Yet Another Capital Market Anomaly?," Empirical Economics, Springer, vol. 22(4), pages 637-641.
    35. Chang, Shao-Chi & Chen, Sheng-Syan & Chou, Robin K. & Lin, Yueh-Hsiang, 2012. "Local sports sentiment and returns of locally headquartered stocks: A firm-level analysis," Journal of Empirical Finance, Elsevier, vol. 19(3), pages 309-318.
    36. Jaffe, Jeffrey F. & Westerfield, Randolph & Ma, Christopher, 1989. "A twist on the Monday effect in stock prices: Evidence from the U.S. and foreign stock markets," Journal of Banking & Finance, Elsevier, vol. 13(4-5), pages 641-650, September.
    37. 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.
    38. Wright, William F. & Bower, Gordon H., 1992. "Mood effects on subjective probability assessment," Organizational Behavior and Human Decision Processes, Elsevier, vol. 52(2), pages 276-291, July.
    39. Chen, Gong-meng & Firth, Michael & Rui, Oliver M, 2001. "The Dynamic Relation between Stock Returns, Trading Volume, and Volatility," The Financial Review, Eastern Finance Association, vol. 36(3), pages 153-173, August.
    40. Weinberg, Peter & Gottwald, Wolfgang, 1982. "Impulsive consumer buying as a result of emotions," Journal of Business Research, Elsevier, vol. 10(1), pages 43-57, March.
    41. Gallant, A Ronald & Rossi, Peter E & Tauchen, George, 1992. "Stock Prices and Volume," The Review of Financial Studies, Society for Financial Studies, vol. 5(2), pages 199-242.
    42. Jegadeesh, Narasimhan & Titman, Sheridan, 1993. "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency," Journal of Finance, American Finance Association, vol. 48(1), pages 65-91, March.
    43. Michael Lemmon & Evgenia Portniaguina, 2006. "Consumer Confidence and Asset Prices: Some Empirical Evidence," The Review of Financial Studies, Society for Financial Studies, vol. 19(4), pages 1499-1529.
    44. Pradeep K. Chintagunta & Shyam Gopinath & Sriram Venkataraman, 2010. "The Effects of Online User Reviews on Movie Box Office Performance: Accounting for Sequential Rollout and Aggregation Across Local Markets," Marketing Science, INFORMS, vol. 29(5), pages 944-957, 09-10.
    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. Wu, Qinqin & Hao, Ying & Lu, Jing, 2018. "Air pollution, stock returns, and trading activities in China," Pacific-Basin Finance Journal, Elsevier, vol. 51(C), pages 342-365.
    2. Zhang, Yongjie & Zhang, Yuzhao & Shen, Dehua & Zhang, Wei, 2017. "Investor sentiment and stock returns: Evidence from provincial TV audience rating in China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 466(C), pages 288-294.
    3. Chang, Shao-Chi & Chen, Sheng-Syan & Chou, Robin K. & Lin, Yueh-Hsiang, 2012. "Local sports sentiment and returns of locally headquartered stocks: A firm-level analysis," Journal of Empirical Finance, Elsevier, vol. 19(3), pages 309-318.
    4. David Hirshleife, 2015. "Behavioral Finance," Annual Review of Financial Economics, Annual Reviews, vol. 7(1), pages 133-159, December.
    5. Nguyen, Hung T. & Pham, Mia Hang, 2021. "Air pollution and behavioral biases: Evidence from stock market anomalies," Journal of Behavioral and Experimental Finance, Elsevier, vol. 29(C).
    6. Itzhak Venezia, 2018. "Lecture Notes in Behavioral Finance," World Scientific Books, World Scientific Publishing Co. Pte. Ltd., number 10751, January.
    7. Wang, Wenzhao & Duxbury, Darren, 2021. "Institutional investor sentiment and the mean-variance relationship: Global evidence," Journal of Economic Behavior & Organization, Elsevier, vol. 191(C), pages 415-441.
    8. Hadhri, Sinda, 2023. "Do cryptocurrencies feel the music?," International Review of Financial Analysis, Elsevier, vol. 89(C).
    9. Rilwan Sakariyahu & Mohamed Sherif & Audrey Paterson & Eleni Chatzivgeri, 2021. "Sentiment‐Apt investors and UK sector returns," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(3), pages 3321-3351, July.
    10. Keunbae Ahn, 2021. "Predictable Fluctuations in the Cross-Section and Time-Series of Asset Prices," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 1-2021.
    11. Daniel, Kent & Hirshleifer, David & Teoh, Siew Hong, 2002. "Investor psychology in capital markets: evidence and policy implications," Journal of Monetary Economics, Elsevier, vol. 49(1), pages 139-209, January.
    12. Baker, Malcolm & Wurgler, Jeffrey & Yuan, Yu, 2012. "Global, local, and contagious investor sentiment," Journal of Financial Economics, Elsevier, vol. 104(2), pages 272-287.
    13. Edmans, Alex & Fernandez-Perez, Adrian & Garel, Alexandre & Indriawan, Ivan, 2022. "Music sentiment and stock returns around the world," Journal of Financial Economics, Elsevier, vol. 145(2), pages 234-254.
    14. Nils Muhlack & Christian Soost & Christian Johannes Henrich, 2022. "Does Weather Still Affect The Stock Market?," Schmalenbach Journal of Business Research, Springer, vol. 74(1), pages 1-35, March.
    15. Szymon Lis, 2022. "Investor Sentiment in Asset Pricing Models: A Review," Working Papers 2022-14, Faculty of Economic Sciences, University of Warsaw.
    16. Kaustia, Markku & Rantapuska, Elias, 2016. "Does mood affect trading behavior?," Journal of Financial Markets, Elsevier, vol. 29(C), pages 1-26.
    17. Siganos, Antonios & Vagenas-Nanos, Evangelos & Verwijmeren, Patrick, 2017. "Divergence of sentiment and stock market trading," Journal of Banking & Finance, Elsevier, vol. 78(C), pages 130-141.
    18. Kim, Jun Sik & Ryu, Doojin & Seo, Sung Won, 2014. "Investor sentiment and return predictability of disagreement," Journal of Banking & Finance, Elsevier, vol. 42(C), pages 166-178.
    19. Xu, Alan, 2022. "Air pollution and mediation effects in stock market, longitudinal evidence from China," International Review of Financial Analysis, Elsevier, vol. 83(C).
    20. Kirk-Reeve, Samuel & Gehricke, Sebastian A. & Ruan, Xinfeng & Zhang, Jin E., 2021. "National air pollution and the cross-section of stock returns in China," Journal of Behavioral and Experimental Finance, Elsevier, vol. 32(C).

    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:spr:binfse:v:57:y:2015:i:4:p:229-242. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.