arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.01402cs.LG
收藏

利用Twitter属性信息预测股票价格

Using Twitter Attribute Information to Predict Stock Prices

KTH Royal Institute of Technology(瑞典皇家理工学院)

Roderick Karlemstrand, Ebba Leckström

摘要:

能够预测股票价格可能是股票投资者不言而喻的愿望。虽然股票价格很难预测,但关于影响其走势的因素有很多理论,包括利率、新闻和社交媒体。在机器学习的帮助下,数据中的复杂模式可以超越人类的智力来识别。在这篇论文中,我们建立了一个时间序列预测的机器学习模型,并对股票价格进行了预测。该模型基于具有多层LSTM和全连接层的神经网络。它使用历史股票价值,技术指标和从社交媒体平台Twitter上的帖子中检索,提取和计算的Twitter属性信息进行训练。这些属性是情绪得分,收藏夹,追随者,转发以及帐户是否经过验证。为了从Twitter收集数据,使用了Twitter的API。使用VADER进行情感分析。结果表明,通过添加更多的Twitter属性,预测价格和实际价格之间的MSE提高了3%。考虑到技术分析,MSE从0.1617下降到0.1437,提高了约11%。这项研究的限制包括所选股票必须在股票市场公开上市,并在Twitter和个人投资者中流行。此外,股市的开放时间与Twitter不同,Twitter一直可用。因此,它可能会在模型中引入噪声。

英文摘要:

Being able to predict stock prices might be the unspoken wish of stock investors. Although stock prices are complicated to predict, there are many theories about what affects their movements, including interest rates, news and social media. With the help of Machine Learning, complex patterns in data can be identified beyond the human intellect. In this thesis, a Machine Learning model for time series forecasting is created and tested to predict stock prices. The model is based on a neural network with several layers of LSTM and fully connected layers. It is trained with historical stock values, technical indicators and Twitter attribute information retrieved, extracted and calculated from posts on the social media platform Twitter. These attributes are sentiment score, favourites, followers, retweets and if an account is verified. To collect data from Twitter, Twitter's API is used. Sentiment analysis is conducted with VADER. The results show that by adding more Twitter attributes, the MSE between the predicted prices and the actual prices improved by 3%. With technical analysis taken into account, MSE decreases from 0.1617 to 0.1437, which is an improvement of around 11%. The restrictions of this study include that the selected stock has to be publicly listed on the stock market and popular on Twitter and among individual investors. Besides, the stock markets' opening hours differ from Twitter, which constantly available. It may therefore introduce noises in the model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑