International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 186 - Number 77 |
Year of Publication: 2025 |
Authors: Adnan Krndžija, Amina Kodžaga, Amila Čaušević, Dželila Mehanović, Mirza Krupić |
![]() |
Adnan Krndžija, Amina Kodžaga, Amila Čaušević, Dželila Mehanović, Mirza Krupić . Sentiment Analysis of 2020 US Presidential Election Tweets using Naive Bayes and Decision Trees. International Journal of Computer Applications. 186, 77 ( Apr 2025), 27-31. DOI=10.5120/ijca2025924658
This paper performs sentiment analysis of the political tweets in the US presidential elections 2020 centered around Biden and Trump, using the implementation of machine learning algorithms such as Decision Trees, Naive Bayes, Dummy Classifier, and Extreme Gradient Boosting. The present study shows how Naive Bayes can trace minute variations of sentiment about political discourses on social media. It follows that the best model among those analyzed is the Naive Bayes classifier (62% for Biden and 74% for Trump) on sentiment analysis in political tweets from the 2020 election, since it is a very instructive case of what public opinion was in the digital era.