Predicting the stock market with big-data analysis of tweets

Video content: https://www.youtube.com/watch?v=cHHY8g40WeU

Do social media posts about the stock market contain valuable information for investors, or can they be ignored as random noise generated by self-proclaimed financial gurus? A study by Prof. Ting Li and Dr Jan van Dalen and Alumnus Pieter Jan van Rees of Rotterdam School of Management, Erasmus University (RSM) shows that big data analysis of messages on Twitter can be used to predict developments in the stock market in the short and the long term. This discovery may eventually help investors to make better decisions.

Stock prices always respond quickly to new information about companies, political events or the economy in general, says Professor Ting Li. And for this to happen, the information doesn’t even have to be true. In 2013, the Associated Press Twitter account (@AP) was hacked and the hacked account tweeted that Obama was injured in an explosion. Within seconds, the stock market lost US$136 billion. 

This was from just one tweet, so it’s easy to pin down the effect, Ting continues. Together, Twitter users generate a lot of information about stocks, some of it based on valid information and some of it not. This study set out to determine the usefulness of tweets about the stock market for investors. Is there any predictive value hidden in them, and can they be used to improve trading strategies? If so, what’s the best way to use it to make better decisions?

S&P 100

To find out, the researchers analysed the day-to-day movements of over a million Twitter messages mentioning stocks listed in the S&P 100, a US index. With so many Tweets to study, the first problem is to define the words, hashtags and emoticons, Ting says. What do Tweeters actually mean to say about a particular stock?

The researchers developed an algorithm that could extract the ‘buy’, ‘hold’ and ‘sell’ signals embedded in those tweets. They then compared those signals to the actual price fluctuations of the stocks over the following days. The researchers found they could even analyse sentiment about Apple stocks in fifteen minute intervals, simply because there were so many people Tweeting about the company’s stock.

They discovered interesting connections between tweets and stock prices.

First, stocks that are tweeted about using bullish sentiment such as ‘buy!’ experience –  on average – higher abnormal returns that day. In other words, they performed better than expected over the period. This could mean more profit or loss then expected, but that in itself is interesting knowledge for investors wanting to make risk assessments.

Interestingly, this relationship between bullish language and increased stock performance was even stronger for influential Twitter users who are frequently retweeted and often mentioned. On average, predictions from power users like these led to higher abnormal returns.

The researchers also found that the number of tweets about a particular stock can predict the trading volume, volatility and follow-up return on a stock within the next 15 minutes and over  the next day. Again, this is useful information for investors.

The results often showed that the more that Twitter users disagreed about a particular stock, the higher the trading volumes.

Trading strategy

To test if these findings could lead to a profitable trading strategy, the research team ran a simulation. When they used the extra information provided by their model, they discovered it can be used to exploit market inefficiencies profitably, even when transaction costs are taken into account.

This study shows that microblogs such as Twitter can be analysed and read as a proxy for market sentiment, says Ting. It also demonstrates that such an analysis of big data can potentially help individual investors to improve their investment decisions, she concludes.

Read the paper here: Li, T., van Dalen, J. & van Rees, P.J., More than just noise? Examining the information content of stock microblogs on financial markets, J Inf Technol (2017)

Rotterdam School of Management, Erasmus University (RSM) is one of Europe’s top 10 business schools. RSM provides ground-breaking research and education furthering excellence in all aspects of management and is based in the international port city of Rotterdam – a vital nexus of business, logistics and trade. RSM’s primary focus is on developing business leaders with international careers who can become a force for positive change by carrying their innovative mindset into a sustainable future. Our first-class range of bachelor, master, MBA, PhD and executive programmes encourage them to become critical, creative, caring and collaborative thinkers and doers. Study information and activities for future students, executives and alumni are also organised from the RSM office in Chengdu, China. www.rsm.nl

For more information about RSM or this release, please contact Ramses Singeling, Media Officer for RSM, on +31 10 408 2028 or by email at singeling@rsm.nl

Share this article: