Please wait a minute...
Data Analysis and Knowledge Discovery  2019, Vol. 3 Issue (11): 108-119    DOI: 10.11925/infotech.2096-3467.2019.0061
Current Issue | Archive | Adv Search |
Predicting Stock Market Fluctuations with Social Media Behaviors: Case Study of Sina Finance Blog
Xinrui Wang,Yue He()
Business School, Sichuan University, Chengdu 610064, China
Download: PDF (1061 KB)   HTML ( 14
Export: BibTeX | EndNote (RIS)      
Abstract  

[Objective] This paper explores the relationship between stock market fluctuations and social media users’ interactive behaviors, aiming to predict the stock prices with social data. [Methods] Firstly, we set snapshots and constructed several social networks by crawling the quotes of Sina Finance Blogs. Then, we extracted the topological features and conducted correlation analysis between the topological features and Shanghai Composite Index. Finally, we used the Granger causality test to further examine the relationship between Shanghai Composite Index and the correlated features. [Results] There was a relationship of quadratic term between graph Density and Shanghai Composite Index, and the extreme point was 3,400. There was a positive correlation between blog Nodes’ average number of likes and Shanghai Composite Index (correlation coefficient = 0.486). Taking the first order lag, the average number of likes can be the Granger cause of Shanghai Composite Index. [Limitations] We did not caculate the emotional scores of the blogs and only extracted the basic topological features. [Conclusions] Users’ social network behaviors could help us predict the changes of stock market.

Key wordsUsers’ Behavior;      Social Networks      Sina Finance Blog      Correlation Analysis      Granger Causality Test     
Received: 14 January 2019      Published: 18 December 2019
ZTFLH:  G353.1  
Corresponding Authors: Yue He     E-mail: 402216179@qq.com

Cite this article:

Xinrui Wang,Yue He. Predicting Stock Market Fluctuations with Social Media Behaviors: Case Study of Sina Finance Blog. Data Analysis and Knowledge Discovery, 2019, 3(11): 108-119.

URL:

https://manu44.magtech.com.cn/Jwk_infotech_wk3/EN/10.11925/infotech.2096-3467.2019.0061     OR     https://manu44.magtech.com.cn/Jwk_infotech_wk3/EN/Y2019/V3/I11/108

参数名称 解释
平均节点度 网络结构基本属性
密度 用户所关注博主的多样性
平均边权重 用户对关注博主的专一程度
平均阅读量 博主的影响力
平均点赞数 受众对博客文章的认可度
时间 当月至少发表过一篇博文的
博主的数量
博文总数量 时间 当月至少发表过一篇博文的
博主的数量
博文总数量
2016,1 48 1 132 2017,1 71 2 415
2016,2 53 1 458 2017,2 69 2 885
2016,3 56 1 497 2017,3 74 2 641
2016,4 56 1 587 2017,4 76 2 746
2016,5 61 1 738 2017,5 77 3 068
2016,6 64 1 957 2017,6 78 2 837
2016,7 64 2 049 2017,7 80 2 886
2016,8 66 2 012 2017,8 77 2 822
2016,9 71 1 905 2017,9 76 2 236
2016,10 65 2 521 2017,10 75 2 902
2016,11 66 2 614 2017,11 76 2 919
2016,12 68 2 299 2017,12 78 2 848
控制变量 变量 MA·MA3
相关性 显著性
Average Read、Average Like、Nodes Counts、Edges Counts、Density Average Edges Weight -.442 .058
Average Like、Nodes Counts、Edges Counts、Average Edges Weight、Density Average Read -.406 .084
Edges Counts、Average Edges Weight、Density、Average Read、Average Like Nodes Counts -.434 .063
Average Edges Weight、Nodes Counts、Density、Average Read、Average Like Edges Counts .247 .307
Average Read、Average Like、Nodes Counts、Edges Counts、Average Edges Weight Density -.508 .026*
Nodes Counts、Edges Counts、Average Edges Weight、Density、Average Read Average Like .486 .035*
均方和 自由度 均方 F统计量 显著性
MA·MA3与
密度回归分析
回归 .000 2 .000 8.071 .003
残差 .000 21 .000
总体 .000 23
未标准化系数 标准误差 标准化系数 t统计量 显著性
MA·MA3 -4.526E-5 .000 -42.849 -2.760 .012
MA·MA3 ** 2 6.637E-9 .000 42.367 . .
常数 .078 .028 2.819 .010
均方和 自由度 均方 F统计量 显著性
MA·MA3与
平均点赞数
回归分析
回归 39138.341 1 39138.341 16.050 .001
残差 53647.400 22 2438.518
总体 92785.741 23
未标准化系数 标准误差 标准化系数 t统计量 显著性
MA·MA3 .373 .093 .649 4.006 .001
常数 -1036.985 313.440 -3.308 .003
检验统计量 1%评判值 5%评判值 10%评判值
MA·MA3 -0.66 -3.75 -3.00 -2.63
Z检验P值=0.86
Density -2.78
Z检验P值=0.06
Average Like -2.39
Z检验P值=0.15
滞后阶数 参数 对数似然函数 特征值 统计量 5%评判值
0 3 -41.42 . 37.98 29.68
1 8 -29.85 0.63 14.82* 15.41
2 11 -22.91 0.45 0.94 3.76
3 12 -22.44 0.04
方程 剔除 F统计量 自由度 P值
1 MA·MA3 Density .00 1 0.99
2 MA·MA3 Average Like 4.18 1 0.06*
3 MA·MA3 ALL 3.29 2 0.06*
4 Density MA·MA3 .00 1 0.95
5 Density Average Like 7.61 1 0.01**
6 Density ALL 4.96 2 0.02**
7 Average Like MA·MA3 1.92 1 0.18
8 Average Like Density 5.04 1 0.04**
9 Average Like ALL 3.58 2 0.05**
[1] 刘力 . 行为金融理论对效率市场假说的挑战[J]. 经济科学, 1999(3):63-71.
[1] ( Liu Li . The Challenge of Behavior Economic Theory to Efficient Market Hypojournal[J]. Economic Science, 1999(3):63-71.
[2] Nofsinger J R . Social Mood and Financial Economics[J]. The Journal of Behavioral Finance, 2010,6(3):144-160.
doi: 10.1007/s11356-019-06686-7 pmid: 31836971
[3] Bollen J, Mao H, Zeng X . Twitter Mood Predicts the Stock Market[J]. Journal of Computational Science, 2011,2(1):1-8.
doi: 10.1016/j.jocs.2010.12.007
[4] Nofer M, Hinz O . Using Twitter to Predict the Stock Market Where is the Mood Effect?[J]. Business& Information Systems Engineering, 2015,57(4):229-242.
doi: 10.1016/j.scitotenv.2019.135995 pmid: 31841909
[5] See-To E W K, Yang Y . Market Sentiment Dispersion and Its Effects on Stock Return and Volatility[J]. Electronic Markets, 2017,27(3):283-296.
doi: 10.1007/s12525-017-0254-5
[6] 黄润鹏, 左文明, 毕凌燕 . 基于微博情绪信息的股票市场预测[J]. 管理工程学报, 2015,29(1):47-52, 215.
[6] ( Huang Runpeng, Zuo Wenming, Bi Lingyan . Predicting the Stock Market Based on Microblog Mood[J]. Journal of Industrial Engineering and Engineering Management, 2015,29(1):47-52, 215.)
[7] 程琬芸, 林杰 . 社交媒体的投资者涨跌情绪与证券市场指数[J]. 管理科学, 2013,26(5):111-119.
[7] ( Cheng Wanyun, Lin Jie . Investors’ Bullish Sentiment of Social Media and Stock Market Indices[J]. Journal of Management Science, 2013,26(5):111-119.)
[8] 赵明清, 武圣强 . 基于微博情感分析的股市加权预测方法研究[J]. 数据分析与知识发现, 2019,3(2):43-51.
[8] ( Zhao Mingqing, Wu Shengqiang . Research on Stock Market Weighted Prediction Method Based on Micro-Blog Sentiment Analysis[J]. Data Analysis and Knowledge Discovery, 2019,3(2):43-51.)
[9] Nassirtoussi A K, Aghabozorgi S, Wah T Y , et al. Text Mining for Market Prediction: A Systematic Review[J]. Expert Systems with Applications, 2014,41(16):7653-7670.
doi: 10.1016/j.eswa.2014.06.009
[10] Nguyen T H, Shirai K, Velcin J . Sentiment Analysis on Social Media for Stock Movement Prediction[J]. Expert Systems with Applications, 2015,42(24):9603-9611.
doi: 10.1016/j.eswa.2015.07.052
[11] 余传明, 龚雨田, 王峰 , 等. 基于文本价格融合模型的股票趋势预测[J]. 数据分析与知识发现, 2018,2(12):33-42.
[11] ( Yu Chuanming, Gong Yutian, Wang Feng , et al. Predicting Stock Prices with Text and Prices Combined Model[J]. Data Analysis and Knowledge Discovery, 2018,2(12):33-42.)
[12] Reed M . A Study of Social Network Effects on the Stock Market[J]. Journal of Behavioral Finance, 2016,17(4):342-351.
doi: 10.1371/journal.pone.0179479 pmid: 28658307
[13] 许启发, 伯仲璞, 蒋翠侠 . 基于分位数Granger因果的网络情绪与股市收益关系研究[J]. 管理科学, 2017,30(3):147-160.
[13] ( Xu Qifa, Bo Zhongpu, Jiang Cuixia . Exploring the Relationship Between Internet Sentiment and Stock Market Returns Based on Quantile Granger Causality Analysis[J]. Journal of Management Science, 2017,30(3):147-160.)
[14] Gálvez R H, Gravano A . Assessing the Usefulness of Online Message Board Mining in Automatic Stock Prediction Systems[J]. Journal of Computational Science, 2017,19:43-56.
doi: 10.1016/j.jocs.2017.01.001
[15] 丁慧, 吕长江, 黄海杰 . 社交媒体、投资者信息获取和解读能力与盈余预期——来自“上证e互动”平台的证据[J]. 经济研究, 2018,53(1):153-168.
[15] ( Ding Hui, Lv Changjiang, Huang Haijie.Social Media , Investor Sophistication and Earning Expectation: Evidence from SSE E-Interaction[J]. Economic Research Journal, 2018,53(1):153-168.)
[16] 丁慧, 吕长江, 陈运佳 . 投资者信息能力: 意见分歧与股价崩盘风险——来自社交媒体“上证e互动”的证据[J]. 管理世界, 2018,34(9):161-171.
[16] ( Ding Hui, Lv Changjiang, Chen Yunjia . Investor Information Ability: Opinion Division and Stock Market Crash Risk: Evidence from SSE E-Interaction[J]. Management World, 2018,34(9):161-171.)
[17] 孙书娜, 孙谦 . 投资者关注和股市表现——基于雪球关注度的研究[J]. 管理科学学报, 2018,21(6):60-71.
[17] ( Sun Shuna, Sun Qian . Investor Attention and Market Performance:Evidence Based on “Xueqiu Attention”[J]. Journal of Management Sciences in China, 2018,21(6):60-71.)
[18] 石勇, 唐静, 郭琨 . 社交媒体投资者关注、投资者情绪对中国股票市场的影响[J]. 中央财经大学学报, 2017(7):45-53.
[18] ( Shi Yong, Tang Jing, Guo Kun . The Study of Social Media Investor Attention and Sentiment’s Influence on Chinese Stock Market[J]. Journal of Central University of Finance & Economics, 2017(7):45-53.)
[19] Li B, Chan K C, Ou C , el al. Discovering Public Sentiment in Social Media for Predicting Stock Movement of Publicly Listed Companies[J]. Information Systems, 2017,69:81-92.
doi: 10.1016/j.is.2016.10.001
[20] He G, Zhu S Z, Gu H F . A PLS Approach to Measuring Investor Sentiment in Chinese Stock Marke[J]. Discrete Dynamics in Nature and Society, 2017: Article ID 2387543.
doi: 10.1155/2013/720818 pmid: 25083120
[21] Nguyen T H, Shiral K, Velcin J , et al. Sentiment Analysis on Social Media for Stock Movement Prediction[J]. Expert Systems with Applications, 2015,42(24):9603-9611.
doi: 10.1016/j.eswa.2015.07.052
[22] Patel J, Shah S, Thakkar P , et al. Predicting Stock and Stock Price Index Movement Using Trend Deterministic Data Preparation and Machine Learning Techniques[J]. Expert Systems with Applications, 2015,42(1):259-268.
doi: 10.1016/j.eswa.2014.07.040
[23] Patel J, Shah S, Thakkar P , et al. Predicting Stock Market Index Using Fusion of Machine Learning Techniques[J]. Expert Systems with Applications, 2015,42(4):2162-2172.
doi: 10.1016/j.eswa.2014.10.031
[24] Sun A, Lachanski M, Fabozzi F J . Trade the Tweet: Social Media Text Mining and Sparse Matrix Factorization for Stock Market Prediction[J]. International Review of Financial Analysis, 2016,48:272-281.
doi: 10.1016/j.irfa.2016.10.009
[25] Chen C, Wu D X, Hou C Y , et al. Exploiting Social Media for Stock Market Prediction with Factorization Machine [C]// Proceedings of the 2014 IEEE/WIC/ACM International Joint Conferences on Web Intelligence and Intelligent Agent Technologies. 2014,2:142-149.
[26] 陈卫华, 徐国祥 . 基于深度学习和股票论坛数据的股市波动率预测精度研究[J]. 管理世界, 2018,34(1):180-181.
[26] ( Chen Weihua, Xu Guoxiang . Research on Prediction Accuracy of Stock Market Volatility Based on Deep Learning and Stock Forum Data[J]. Management World, 2018,34(1):180-181.)
[27] López-Cabarcos M A, Piñeiro-Chousa J, Pérez-Pico A M . The Impact Technical and Non-Technical Investors Have on the Stock Market: Evidence from the Sentiment Extracted from Social Networks[J]. Journal of Behavioral and Experimental Finance, 2017,15:15-20.
doi: 10.1016/j.jbef.2017.07.003
[28] 王聪, 柴时军, 田存志 , 等. 家庭社会网络与股市参与[J]. 世界经济, 2015,38(5):105-124.
[28] ( Wang Cong, Chai Shijun, Tian Cunzhi , et al. Home Social Networks and Stock Participation[J]. The Journal of World Economy, 2015,38(5):105-124.)
[29] 刘海飞, 许金涛, 柏巍 , 等. 社交网络、投资者关注与股价同步性[J]. 管理科学学报, 2017,20(2):53-62.
[29] ( Liu Haifei, Xu Jintao, Bai Wei , et al. Social Networks, Investor Attention and Stock Price Synchronicity[J]. Journal of Management Sciences in China, 2017,20(2):53-62.)
[30] Granger C W J . Investigating Causal Relations by Econometric Models and Cross-spectral Methods[J]. Econometrica, 1969,37(3):424-438.
doi: 10.2307/1912791
[31] 徐恪, 张赛, 陈昊 , 等. 在线社会网络的测量与分析[J]. 计算机学报, 2014,37(1):165-188.
[31] ( Xu Ke, Zhang Sai, Chen Hao , et al. Measurement and Analysis of Online Social Networks[J]. Chinese Journal of Computers, 2014,37(1):165-188.)
[32] Daniel K, Hirshleifer D, Subrahmanyam A . Investor Psychology and Security Market Under- and Overreactions[J]. The Journal of Finance, 1998,53(6):1839-1885.
doi: 10.1111/0022-1082.00077
[1] Yan Wen,Lijian Ma,Qingtian Zeng,Wenyan Guo. POI Recommendation Based on Geographic and Social Relationship Preferences[J]. 数据分析与知识发现, 2019, 3(8): 30-39.
[2] Ming Yi,Tingting Zhang. Ranking Answer Quality of Popular Q&A Community[J]. 数据分析与知识发现, 2019, 3(6): 12-20.
[3] Xiaolan Wu,Chengzhi Zhang. Analysis of Knowledge Flow Based on Academic Social Networks:
A Case Study of ScienceNet.cn
[J]. 数据分析与知识发现, 2019, 3(4): 107-116.
[4] Jiang Wu,Yinghui Zhao,Jiahui Gao. Research on Weibo Opinion Leaders Identification and Analysis in Medical Public Opinion Incidents[J]. 数据分析与知识发现, 2019, 3(4): 53-62.
[5] Wang Daoping,Jiang Zhongyang,Zhang Boqing. Collaborative Filtering Algorithm Based on Gray Correlation Analysis and Time Factor[J]. 数据分析与知识发现, 2018, 2(6): 102-109.
[6] Wu Pengmin,Chen Ting,Wang Xiaomei. The Correlation Between Altmetrics and Citations[J]. 数据分析与知识发现, 2018, 2(6): 58-69.
[7] Li Dong,Tong Shouchuan,Li Jiang. Analyzing Interdisciplinarity and Scientists’ Academic Impacts[J]. 数据分析与知识发现, 2018, 2(12): 1-11.
[8] He Yue,Zhu Can. Sentiment Analysis of Weibo Opinion Leaders——Case Study of “Illegal Vaccine” Event[J]. 数据分析与知识发现, 2017, 1(9): 65-73.
[9] Yu Liping. New Method to Evaluate Academic Journals: Case Study of Mathematics Journals[J]. 现代图书情报技术, 2016, 32(7-8): 94-100.
[10] Liu Haoxia, Peng Shanglian. A Community Detection Algorithm via Neighborhood Node Influence Based Label Propagation[J]. 现代图书情报技术, 2015, 31(4): 58-64.
[11] Bi Dayu, Xia Xiaoxu, Wang Jing. The Analysis of Credit Standing of E-businessman Based on the Data Mining of Users' Online Evaluation[J]. 现代图书情报技术, 2014, 30(7): 77-83.
[12] Tan Xueqing, Huang Cuicui, Luo Lin. A Review of Research on Trust Recommendation in Social Networks[J]. 现代图书情报技术, 2014, 30(11): 10-16.
[13] Yu Yan, Qiu Guanghua, Chen Aiping. Friend Recommendation Algorithm Based on Mixed Graph in Online Social Networks[J]. 现代图书情报技术, 2011, (11): 54-59.
[14] Kan Detao. Design and Implementation of Service Quality Analysis System[J]. 现代图书情报技术, 2009, 25(5): 76-80.
[15] Huang Yuanyuan,Zhu Donghua,Ren Zhijun,Zhang Cheng . Applicatian Study of Correlation Analysis in Patent Information Analysis[J]. 现代图书情报技术, 2006, 1(10): 60-65.
  Copyright © 2016 Data Analysis and Knowledge Discovery   Tel/Fax:(010)82626611-6626,82624938   E-mail:jishu@mail.las.ac.cn