[Paper Review] Twitter mood predicts the stock market
This paper proposes that public mood derived from Twitter microblogs can predict daily movements in the Dow Jones Industrial Average (DJIA). Using sentiment analysis tools (OpinionFinder and GPOMS) on 9.85 million tweets from 2008, the study finds that specific mood dimensions—particularly Calm and Happy—improve DJIA direction prediction accuracy to 87.6% and reduce mean average percentage error by over 6%.
Behavioral economics tells us that emotions can profoundly affect individual behavior and decision-making. Does this also apply to societies at large, i.e., can societies experience mood states that affect their collective decision making? By extension is the public mood correlated or even predictive of economic indicators? Here we investigate whether measurements of collective mood states derived from large-scale Twitter feeds are correlated to the value of the Dow Jones Industrial Average (DJIA) over time. We analyze the text content of daily Twitter feeds by two mood tracking tools, namely OpinionFinder that measures positive vs. negative mood and Google-Profile of Mood States (GPOMS) that measures mood in terms of 6 dimensions (Calm, Alert, Sure, Vital, Kind, and Happy). We cross-validate the resulting mood time series by comparing their ability to detect the public's response to the presidential election and Thanksgiving day in 2008. A Granger causality analysis and a Self-Organizing Fuzzy Neural Network are then used to investigate the hypothesis that public mood states, as measured by the OpinionFinder and GPOMS mood time series, are predictive of changes in DJIA closing values. Our results indicate that the accuracy of DJIA predictions can be significantly improved by the inclusion of specific public mood dimensions but not others. We find an accuracy of 87.6% in predicting the daily up and down changes in the closing values of the DJIA and a reduction of the Mean Average Percentage Error by more than 6%.
Motivation & Objective
- To investigate whether collective public mood, as reflected in Twitter content, can predict stock market movements.
- To assess the predictive power of specific mood dimensions—such as Calm, Happy, and Alert—on the DJIA.
- To validate mood time series using real-world events (e.g., Thanksgiving, presidential election) to ensure reliability.
- To improve standard stock market prediction models by integrating public sentiment data from social media.
- To determine whether certain mood dimensions are more predictive than others, and whether general sentiment is sufficient.
Proposed method
- Collected 9,853,498 public tweets from February 28 to December 19, 2008, using Twitter’s public API.
- Applied OpinionFinder to extract daily positive vs. negative sentiment time series from tweet text.
- Used GPOMS to generate six-dimensional mood time series (Calm, Alert, Sure, Vital, Kind, Happy) from the same tweet corpus.
- Conducted cross-validation by comparing mood time series responses to known events (Thanksgiving 2008 and the 2008 U.S. presidential election).
- Applied Granger causality analysis to test whether mood time series predict DJIA changes.
- Employed a Self-Organizing Fuzzy Neural Network (SOFNN) to model and improve DJIA prediction accuracy using mood features.
Experimental results
Research questions
- RQ1Can public mood derived from Twitter feeds predict daily direction changes in the DJIA?
- RQ2Which specific mood dimensions (e.g., Calm, Happy, Alert) are most predictive of DJIA movements?
- RQ3Does the inclusion of mood data significantly improve prediction accuracy beyond standard models?
- RQ4How robust are the mood time series in detecting real-world public events like elections or holidays?
- RQ5Is there a causal relationship between public mood and stock market performance, or is it merely correlational?
Key findings
- The inclusion of specific mood dimensions—particularly Calm and Happy—significantly improved the accuracy of DJIA direction prediction to 87.6%.
- The mean average percentage error (MAPE) in DJIA predictions was reduced by more than 6% when mood features were included.
- The GPOMS tool’s Calm and Happy dimensions showed stronger predictive power than the general positive-negative sentiment from OpinionFinder.
- Cross-validation confirmed that the mood time series accurately captured public responses to major events such as Thanksgiving and the 2008 U.S. presidential election.
- Not all mood dimensions were predictive; for example, the general 'Happy' dimension from OpinionFinder did not improve prediction performance.
- Granger causality tests provided statistical evidence that public mood, especially in the Calm and Happy dimensions, precedes and predicts DJIA movements.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.