Research Article

TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION

Volume: 20 Number: 1 December 31, 2024
  • Burak Kucukaslan *
  • Oktay Tas

TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION

Abstract

Purpose- This research investigates the efficacy of social media sentiment analysis in constructing alpha-generating investment portfolios. Specifically, the study examines whether Twitter-derived sentiment indicators can be leveraged to develop systematic trading strategies that generate risk-adjusted returns exceeding benchmark performance. The research aims to establish quantitative criteria for position initiation and termination based on sentiment metrics, with the ultimate objective of creating a portfolio that demonstrates significant outperformance relative to the reference index. Methodology – The study encompasses 16 companies of the Nasdaq 100 index, selected to represent diverse market sectors while controlling for liquidity and market impact considerations. The dataset comprises 708,080 Twitter posts pertaining to the selected companies throughout the 2022 calendar year, extracted via programmatic data collection methodologies. Sentiment quantification was performed utilizing the Natural Language Toolkit (NLTK) in Python, generating normalized sentiment scores within a [-1, +1] interval. The investigation employed a sophisticated aggregation methodology to compute both daily and weekly sentiment indicators for each security, deliberately excluding neutral sentiment scores (0) to enhance signal clarity. A systematic portfolio construction framework was implemented, whereby securities were hierarchically ranked based on their aggregate sentiment scores on a weekly basis. Multiple portfolio permutations were tested, incorporating various combinations of long positions in top-ranked securities and short positions in bottom-ranked securities. Position entry and exit prices were determined using weekly opening and closing prices, respectively. Portfolio performance was evaluated through the calculation of weekly returns and cumulative performance metrics over the observation period. Findings- The empirical results reveal that portfolios constructed exclusively with short positions demonstrated superior cumulative returns compared to long-only portfolios. This observation can be contextualized within the broader market environment, specifically the Nasdaq 100's negative 33% return in 2022. The research identified statistically significant outperformance in portfolios implementing a combined long-short strategy, with these portfolios generating positive absolute returns despite the challenging market conditions. Conclusion- The empirical evidence substantiates the hypothesis that Twitter sentiment analysis can be effectively utilized as a signal generation mechanism for systematic portfolio construction. The results demonstrate statistically significant alpha generation capabilities, particularly when implementing a long-short strategy, suggesting potential applications for institutional investors and quantitative fund managers.

Keywords

References

  1. Mendoza-Urdiales, R. A., Núñez-Mora, J. A., Santillán-Salgado, R. J., & Valencia-Herrera, H. (2022). Twitter Sentiment Analysis and Influence on Stock Performance Using Transfer Entropy and EGARCH Methods. MDPI, Entropy, 24, 874.
  2. Yang, S. Y., Mo, S. Y. K., Liu, A., & Kirilenko, A. A. (2017). Genetic programming optimization for a sentiment feedback strength-based trading strategy. Neurocomputing, 264, 29–41.
  3. Leow, E. K. W., Nguyen, B. P., & Chua, M. C. H. (2021). "Robo-advisor using genetic algorithm and BERT sentiments from tweets for hybrid portfolio optimization. Expert Systems with Applications, 179, 115060.
  4. Makrehchi, M., Shah, S., & Liao, W. (2013). Stock Prediction Using Event-based Sentiment Analysis. 2013 IEEE/WIC/ACM International Conferences on Web Intelligence (WI) and Intelligent Agent Technology (IAT).
  5. Ranco, G., Aleksovski, D., Caldarelli, G., Grčar, M., & Mozetič, I. (2015). The Effects of Twitter Sentiment on Stock Price Returns. PLoS ONE, 10(9).
  6. Oliveira, N., Cortez, P., & Areal, N. (2017). "The impact of microblogging data for stock market prediction: Using Twitter to predict returns, volatility, trading volume and survey sentiment indices. Expert Systems with Applications, 73, 125–144.
  7. Granholm, J., & Gustafsson, P. (2017). The Quest for the Abnormal Return: A Study of Trading Strategies Based on Twitter Sentiment. Umeå School of Business and Economics, Spring semester 2017, Degree project.
  8. Azar, P. D., & Lo, A. W. (2016). The Wisdom of Twitter Crowds: Predicting Stock Market Reactions to FOMC Meetings via Twitter Feeds. The Journal of Portfolio Management - Special Issue 2016.

Details

Primary Language

English

Subjects

Labor Economics, Microeconomics (Other), Finance, Finance and Investment (Other), Business Administration

Journal Section

Research Article

Authors

Burak Kucukaslan * This is me
0000-0002-3245-706X
Türkiye

Publication Date

December 31, 2024

Submission Date

October 1, 2024

Acceptance Date

December 2, 2024

Published in Issue

Year 2024 Volume: 20 Number: 1

APA
Kucukaslan, B., & Tas, O. (2024). TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION. PressAcademia Procedia, 20(1), 17-23. https://doi.org/10.17261/Pressacademia.2024.1919
AMA
1.Kucukaslan B, Tas O. TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION. PAP. 2024;20(1):17-23. doi:10.17261/Pressacademia.2024.1919
Chicago
Kucukaslan, Burak, and Oktay Tas. 2024. “TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION”. PressAcademia Procedia 20 (1): 17-23. https://doi.org/10.17261/Pressacademia.2024.1919.
EndNote
Kucukaslan B, Tas O (December 1, 2024) TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION. PressAcademia Procedia 20 1 17–23.
IEEE
[1]B. Kucukaslan and O. Tas, “TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION”, PAP, vol. 20, no. 1, pp. 17–23, Dec. 2024, doi: 10.17261/Pressacademia.2024.1919.
ISNAD
Kucukaslan, Burak - Tas, Oktay. “TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION”. PressAcademia Procedia 20/1 (December 1, 2024): 17-23. https://doi.org/10.17261/Pressacademia.2024.1919.
JAMA
1.Kucukaslan B, Tas O. TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION. PAP. 2024;20:17–23.
MLA
Kucukaslan, Burak, and Oktay Tas. “TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION”. PressAcademia Procedia, vol. 20, no. 1, Dec. 2024, pp. 17-23, doi:10.17261/Pressacademia.2024.1919.
Vancouver
1.Burak Kucukaslan, Oktay Tas. TWITTER SENTIMENT ANALYSIS FOR OPTIMAL PORTFOLIO CONSTRUCTION. PAP. 2024 Dec. 1;20(1):17-23. doi:10.17261/Pressacademia.2024.1919

PressAcademia Procedia (PAP) publishes proceedings of conferences, seminars and symposiums. PressAcademia Procedia aims to provide a source for academic researchers, practitioners and policy makers in the area of social and behavioral sciences, and engineering.

PressAcademia Procedia invites academic conferences for publishing their proceedings with a review of editorial board. Since PressAcademia Procedia is an double blind peer-reviewed open-access book, the manuscripts presented in the conferences can easily be reached by numerous researchers. Hence, PressAcademia Procedia increases the value of your conference for your participants. 

PressAcademia Procedia provides an ISBN for each Conference Proceeding Book and a DOI number for each manuscript published in this book.

PressAcademia Procedia is currently indexed by DRJI, J-Gate, International Scientific Indexing, ISRA, Root Indexing, SOBIAD, Scope, EuroPub, Journal Factor Indexing and InfoBase Indexing. 

Please contact to contact@pressacademia.org for your conference proceedings.