Exploring the Value of Big Data Analysis of Twitter Tweets and Share Prices
Total Page:16
File Type:pdf, Size:1020Kb
Exploring the value of Big Data analysis of Twitter tweets and share prices A Thesis submitted by Peter Wlodarczak, B.Sc. Computer Science, MBA For the award of Doctor of Philosophy, 2017 Peter Wlodarczak Abstract Over the past decade, the use of social media (SM) such as Facebook, Twitter, Pinterest and Tumblr has dramatically increased. Using SM, millions of users are creating large amounts of data every day. According to some estimates ninety per cent of the content on the Internet is now user generated. Social Media (SM) can be seen as a distributed content creation and sharing platform based on Web 2.0 technologies. SM sites make it very easy for its users to publish text, pictures, links, messages or videos without the need to be able to program. Users post reviews on products and services they bought, write about their interests and intentions or give their opinions and views on political subjects. SM has also been a key factor in mass movements such as the Arab Spring and the Occupy Wall Street protests and is used for human aid and disaster relief (HADR). There is a growing interest in SM analysis from organisations for detecting new trends, getting user opinions on their products and services or finding out about their online reputation. Companies such as Amazon or eBay use SM data for their recommendation engines and to generate more business. TV stations buy data about opinions on their TV programs from Facebook to find out what the popularity of a certain TV show is. Companies such as Topsy, Gnip, DataSift and Zoomph have built their entire business models around SM analysis. The purpose of this thesis is to explore the economic value of Twitter tweets. The economic value is determined by trying to predict the share price of a company. If the share price of a company can be predicted using SM data, it should be possible to deduce a monetary value. There is limited research on determining the economic value of SM data for “nowcasting”, predicting the present, and for forecasting. This study aims to determine the monetary value of Twitter by correlating the daily frequencies of positive and negative Tweets about the Apple company and some of its most popular products with the development of the Apple Inc. share price. If the number of positive tweets about Apple increases and the share price follows this development, the tweets have predictive information about the share price. A literature review has found that there is a growing interest in analysing SM data from different industries. A lot of research is conducted studying SM from various perspectives. Many studies try to determine the impact of online marketing campaigns or try to quantify the value of social capital. Others, in the area of behavioural economics, focus on the influence of SM on decision-making. There are studies trying to predict financial indicators such as the Dow Jones Industrial Average (DJIA). However, the literature review has indicated that there is no study correlating sentiment polarity on products and companies in tweets with the share price of the company. The theoretical framework used in this study is based on Computational Social Science (CSS) and Big Data. Supporting theories of CSS are Social Media Mining (SMM) and sentiment analysis. Supporting theories of Big Data are Data Mining (DM) and Predictive Page i Peter Wlodarczak Analysis (PA). Machine learning (ML) techniques have been adopted to analyse and classify the tweets. In the first stage of the study, a body of tweets was collected and pre-processed, and then analysed for their sentiment polarity towards Apple Inc., the iPad and the iPhone. Several datasets were created using different pre-processing and analysis methods. The tweet frequencies were then represented as time series. The time series were analysed against the share price time series using the Granger causality test to determine if one time series has predictive information about the share price time series over the same period of time. For this study, several Predictive Analytics (PA) techniques on tweets were evaluated to predict the Apple share price. To collect and analyse the data, a framework has been developed based on the LingPipe (LingPipe 2015) Natural Language Processing (NLP) tool kit for sentiment analysis, and using R, the functional language and environment for statistical computing, for correlation analysis. Twitter provides an API (Application Programming Interface) to access and collect its data programmatically. Whereas no clear correlation could be determined, at least one dataset was showed to have some predictive information on the development of the Apple share price. The other datasets did not show to have any predictive capabilities. There are many data analysis and PA techniques. The techniques applied in this study did not indicate a direct correlation. However, some results suggest that this is due to noise or asymmetric distributions in the datasets. The study contributes to the literature by providing a quantitative analysis of SM data, for example tweets about Apple and its most popular products, the iPad and iPhone. It shows how SM data can be used for PA. It contributes to the literature on Big Data and SMM by showing how SM data can be collected, analysed and classified and explore if the share price of a company can be determined based on sentiment time series. It may ultimately lead to better decision making, for instance for investments or share buyback. Page ii Peter Wlodarczak Certification of Thesis This thesis is entirely the work of Peter Wlodarczak except where otherwise acknowledged. The work is original and has not previously been submitted for any other award, except where acknowledged. Student and supervisors signatures of endorsement are held at USQ. Principal Supervisor Dr. Mustafa Ally Associate Supervisor Prof Jeffrey Soar Page iii Peter Wlodarczak Acknowledgements I would like to thank my supervisors for their valuable input. Special thanks go to my principal supervisors, Dr. Mustafa Ally and Prof. Dr. Jeffrey Soar, for their encouragement and always constructive feedback. I am grateful for their patience, guidance and insight throughout this research project and for them proof-reading the thesis. I am also thankful to my friends and family for their support despite the fact that I had too little time for them during this research project. Page iv Peter Wlodarczak Table of content 1 Introduction ................................................................................................................ 1 1.1 Background ........................................................................................................ 1 1.2 Justification for the research .............................................................................. 2 1.3 Research methodology ...................................................................................... 3 1.3.1 Data conditioning phase ................................................................................. 5 1.3.2 Predictive analysis phase ............................................................................... 5 1.4 Delimitation of the scope and key assumptions ................................................. 7 1.5 Key definitions and terminologies ....................................................................... 9 1.5.1 Computational social science (CSS) ............................................................... 9 1.5.1.1 Social media mining (SMM) ................................................................... 10 1.5.1.2 Sentiment analysis ................................................................................ 10 1.5.2 Big Data ........................................................................................................ 11 1.5.2.1 Data mining (DM) .................................................................................. 12 1.5.2.2 Predictive analytics (PA) ........................................................................ 12 1.5.3 Artificial intelligence (AI) ............................................................................... 13 1.5.3.1 Machine learning (ML) ........................................................................... 13 1.5.3.2 Data classification .................................................................................. 14 1.5.4 Theoretical framework .................................................................................. 15 1.6 Publication list .................................................................................................. 16 1.7 Structure of the thesis ...................................................................................... 17 2 Literature review ...................................................................................................... 19 2.1 Introduction ...................................................................................................... 19 2.1.1 Computational social science ....................................................................... 21 2.1.1.1 Social media mining .............................................................................. 21 2.1.1.2 Sentiment analysis (SA) ........................................................................ 25 2.1.1.3 Quantifying social media data ................................................................ 26 2.1.1.4 Frameworks for computational analysis ................................................ 28 2.1.2 Big Data .......................................................................................................