Vol.67, No.2, 2021, pp.2569-2583, doi:10.32604/cmc.2021.014253
OPEN ACCESS
ARTICLE
Social Media and Stock Market Prediction: A Big Data Approach
  • Mazhar Javed Awan1,2,*, Mohd Shafry Mohd Rahim2, Haitham Nobanee3,4,5, Ashna Munawar2, Awais Yasin6, Azlan Mohd Zain 7
1 School of Computing, Faculty of Engineering, University Teknologi Malaysia, Johor, Malaysia
2 Department of Software Engineering, University of Management and Technology, Lahore, Pakistan
3 Collage of Business, Abu Dhabi University, Abu Dhabi, United Arab Emirates
4 Oxford Center for Islamic Studies, The University of Oxford, Oxford, UK
5 The University of Liverpool Management School, The University of Liverpool, Liverpool, UK
6 Department of Computer Engineering, National University of Technology, Islamabad, Pakistan
7 School of Computing, UTM Big Data Centre, Universiti Teknologi Malaysia, Johor, Malaysia
* Corresponding Author: Mazhar Javed Awan. Email:
(This article belongs to this Special Issue: Artificial Intelligence and Big Data in Entrepreneurship)
Received 09 September 2020; Accepted 21 December 2020; Issue published 05 February 2021
Abstract
Big data is the collection of large datasets from traditional and digital sources to identify trends and patterns. The quantity and variety of computer data are growing exponentially for many reasons. For example, retailers are building vast databases of customer sales activity. Organizations are working on logistics financial services, and public social media are sharing a vast quantity of sentiments related to sales price and products. Challenges of big data include volume and variety in both structured and unstructured data. In this paper, we implemented several machine learning models through Spark MLlib using PySpark, which is scalable, fast, easily integrated with other tools, and has better performance than the traditional models. We studied the stocks of 10 top companies, whose data include historical stock prices, with MLlib models such as linear regression, generalized linear regression, random forest, and decision tree. We implemented naive Bayes and logistic regression classification models. Experimental results suggest that linear regression, random forest, and generalized linear regression provide an accuracy of 80%–98%. The experimental results of the decision tree did not well predict share price movements in the stock market.
Keywords
Big data; analytics; artificial intelligence; machine learning; stock market; social media; business analytics
Cite This Article
M. J. Awan, M. Shafry, H. Nobanee, A. Munawar, A. Yasin et al., "Social media and stock market prediction: a big data approach," Computers, Materials & Continua, vol. 67, no.2, pp. 2569–2583, 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.