IDEAS home Printed from https://ideas.repec.org/a/mbr/jmonec/v15y2020i3p235-251.html
   My bibliography  Save this article

Forecasting Stock Price Movements Based on Opinion Mining and Sentiment Analysis: An Application of Support Vector Machine and Twitter Data

Author

Listed:
  • Sohrabi, Babak

    (Faculty of Management, University of Tehran)

  • Khalili Jafarabad, Ahmad

    (Faculty of Management, University of Tehran)

  • Hadizadeh, Ardalan

    (Faculty of Management, University of Tehran)

Abstract

Today, social networks are fast and dynamic communication intermediaries that are a vital business tool. This study aims at examining the views of those involved with Facebook stocks so that we can summarize their views to predict the general behavior of this stock and collectively consider possible Facebook stock price movements, and create a more accurate pattern compared to previous patterns. In this study, we have analyzed two statistical samples, the first being a large dataset containing a variety of tweets with an emotional tag. That is, it needed a set that had already been extracted from each individual tweet by a trusted human or machine. Consequently, we have collected posts on Facebook in an eighty-day period. In this study, we used a tagged dataset using Python's programming language and vector-to-word algorithm. The research results show that, we need stock change information, machine learning and sentiment analysis, and on paper we conclude that positive news about a company excites people to have positive opinions about it which in turn results in people encouraging each other to buy and hold stocks. Meanwhile, the opposite trend is also true, but everything will not always be easy and clear, and it is in areas of high complexity and mental uncertainty that the art of using the three elements mentioned above is evident.

Suggested Citation

  • Sohrabi, Babak & Khalili Jafarabad, Ahmad & Hadizadeh, Ardalan, 2020. "Forecasting Stock Price Movements Based on Opinion Mining and Sentiment Analysis: An Application of Support Vector Machine and Twitter Data," Journal of Money and Economy, Monetary and Banking Research Institute, Central Bank of the Islamic Republic of Iran, vol. 15(3), pages 235-251, July.
  • Handle: RePEc:mbr:jmonec:v:15:y:2020:i:3:p:235-251
    as

    Download full text from publisher

    File URL: http://jme.mbri.ac.ir/article-1-489-en.pdf
    Download Restriction: no

    File URL: http://jme.mbri.ac.ir/article-1-489-en.html
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. You, Wanhai & Guo, Yawei & Zhu, Huiming & Tang, Yong, 2017. "Oil price shocks, economic policy uncertainty and industry stock returns in China: Asymmetric effects with quantile regression," Energy Economics, Elsevier, vol. 68(C), pages 1-18.
    2. Timmermann, Allan & Granger, Clive W. J., 2004. "Efficient market hypothesis and forecasting," International Journal of Forecasting, Elsevier, vol. 20(1), pages 15-27.
    3. Paul C. Tetlock, 2007. "Giving Content to Investor Sentiment: The Role of Media in the Stock Market," Journal of Finance, American Finance Association, vol. 62(3), pages 1139-1168, June.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Szymon Lis, 2022. "Investor Sentiment in Asset Pricing Models: A Review," Working Papers 2022-14, Faculty of Economic Sciences, University of Warsaw.
    2. Xu Gong & Mengjie Li & Keqin Guan & Chuanwang Sun, 2023. "Climate change attention and carbon futures return prediction," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 43(9), pages 1261-1288, September.
    3. Müller, Karsten, 2020. "German forecasters' narratives: How informative are German business cycle forecast reports?," Working Papers 23, German Research Foundation's Priority Programme 1859 "Experience and Expectation. Historical Foundations of Economic Behaviour", Humboldt University Berlin.
    4. Yan Luo & Linying Zhou, 2020. "Textual tone in corporate financial disclosures: a survey of the literature," International Journal of Disclosure and Governance, Palgrave Macmillan, vol. 17(2), pages 101-110, September.
    5. Jiao Ji & Oleksandr Talavera & Shuxing Yin, 2018. "The Hidden Information Content: Evidence from the Tone of Independent Director Reports," Working Papers 2018-28, Swansea University, School of Management.
    6. Lixiang Wang & Wendi Hou & Yupei Liu, 2023. "How do co‐shareholding networks affect negative media coverage? Evidence from China," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 63(4), pages 4221-4249, December.
    7. Kamaladdin Fataliyev & Aneesh Chivukula & Mukesh Prasad & Wei Liu, 2021. "Stock Market Analysis with Text Data: A Review," Papers 2106.12985, arXiv.org, revised Jul 2021.
    8. Bennani, Hamza, 2018. "Media coverage and ECB policy-making: Evidence from an augmented Taylor rule," Journal of Macroeconomics, Elsevier, vol. 57(C), pages 26-38.
    9. Keval Amin & Erica Harris, 2022. "The Effect of Investor Sentiment on Nonprofit Donations," Journal of Business Ethics, Springer, vol. 175(2), pages 427-450, January.
    10. King, Timothy & Srivastav, Abhishek & Williams, Jonathan, 2016. "What's in an education? Implications of CEO education for bank performance," Journal of Corporate Finance, Elsevier, vol. 37(C), pages 287-308.
    11. Kirtac, Kemal & Germano, Guido, 2024. "Sentiment trading with large language models," Finance Research Letters, Elsevier, vol. 62(PB).
    12. Raza, Syed Ali & Masood, Amna & Benkraiem, Ramzi & Urom, Christian, 2023. "Forecasting the volatility of precious metals prices with global economic policy uncertainty in pre and during the COVID-19 period: Novel evidence from the GARCH-MIDAS approach," Energy Economics, Elsevier, vol. 120(C).
    13. Zhang, Hao & Cai, Guixin & Yang, Dongxiao, 2020. "The impact of oil price shocks on clean energy stocks: Fresh evidence from multi-scale perspective," Energy, Elsevier, vol. 196(C).
    14. Sapkota, Niranjan, 2022. "News-based sentiment and bitcoin volatility," International Review of Financial Analysis, Elsevier, vol. 82(C).
    15. Chen, Cathy Yi-Hsuan & Fengler, Matthias R. & Härdle, Wolfgang Karl & Liu, Yanchu, 2022. "Media-expressed tone, option characteristics, and stock return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    16. Caporale, Guglielmo Maria & Spagnolo, Fabio & Spagnolo, Nicola, 2016. "Macro news and stock returns in the Euro area: A VAR-GARCH-in-mean analysis," International Review of Financial Analysis, Elsevier, vol. 45(C), pages 180-188.
    17. Baur, Dirk G. & Smales, Lee A., 2020. "Hedging geopolitical risk with precious metals," Journal of Banking & Finance, Elsevier, vol. 117(C).
    18. Gric, Zuzana & Ehrenbergerova, Dominika & Hodula, Martin, 2022. "The power of sentiment: Irrational beliefs of households and consumer loan dynamics," Journal of Financial Stability, Elsevier, vol. 59(C).
    19. Goldman, Eitan & Martel, Jordan & Schneemeier, Jan, 2022. "A theory of financial media," Journal of Financial Economics, Elsevier, vol. 145(1), pages 239-258.
    20. Paroissien, Emmanuel, 2020. "Forecasting bulk prices of Bordeaux wines using leading indicators," International Journal of Forecasting, Elsevier, vol. 36(2), pages 292-309.

    More about this item

    Keywords

    Social Networking; Stock Prediction; Group Emotion; Collective Emotion; Sentiment Analysis; Opinion Mining; Neural Network;
    All these keywords.

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • M15 - Business Administration and Business Economics; Marketing; Accounting; Personnel Economics - - Business Administration - - - IT Management

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:mbr:jmonec:v:15:y:2020:i:3:p:235-251. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: M. E. (email available below). General contact details of provider: https://edirc.repec.org/data/mbcbiir.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.