[SentiSteem report #2] Twitter popularity analysis of the word "Trump" from 2013-01-01 till 2017-12-31

sentiment.png

Hello world! Welcome to report where I'm using machine learning to analyze tweets about specified topic and present results in form of various and easy to understand charts. The sentiment analysis algorithm has been developed as part of my Master Thesis in 2017/2018.

This report is currently being published exclusively on Steemit and Whaleshares.

Power House Creatives Logos FINAL.png

Parameters

Today's analysis has been executed on tweets which contain word "trump" and were published between 2013-01-01 and 2017-12-31. Detailed specification of the data is shown in the following list:

  • Keyword: trump
  • From: 2013-01-01
  • To: 2017-12-31
  • Number of analyzed tweets: 25000
  • Tweets per week: 95
  • Language: en
  • Geographical location: Not specified

text16.png

Results

Sentiment

After downloading 25000 tweets between the specified dates, sentiment analysis has been executed on each and every one of those tweets. Sentiment score has been then aggregated over weeks and months, to lower the granularity of results on the time axis and then plotted as a following linechart.

sentiment.png

Sentiment of tweets for keyword "trump"

My subjective comment on the chart: It's very clear his popularity is slowly getting lower and lower

Aggregation using heatmaps

To show the general trend/pattern in the sentiment, linechart works great. We can see the bigger timeframe and estimate the long-term direction. But if you're interested in particular month or week, it's hard and in case of weeks actually impossible to see the change. Has an athlete put the great performance in particular match? Has the brand/company released a new line of product? So see such low lever changes, following 2 heatmaps are to be used.

heatMap.png

Chart shows average sentiment per month where 0.54 is the worst and 0.72 the best achieved score

My subjective comment on the chart:We can clearly see a huge spike in October 2013. I've googled what happened back then and I believe it was caused by Trump's sudden appearance on Fox News to deliver his sage advice regarding government shutdowns. Click here for more info.

heatMapWeekly.png

Chart shows average sentiment per week where 0.00 is the worst and 0.75 the best achieved score

My subjective comment on the chart:Nothing especially new here. The score in last week in 2017 was probably caused by bug, will have a look on that :)

Most frequently used words


Another very interesting aspect to look into are the repeatedly used words using wordclouds. Even more interesting is to compare two wordclouds generated from different time - usually before and after some event/change happened. If you give this a second though, the problem here is that many short words (like "and", "or", "with" and so on) are used almost in every sentence and would also show up in wordclouds. To mitigate this, I've removed list of 153 so called stopwords. Additionally I've also removed words typical for this area listed in the end of the report*.

CommonWords.png

Most often used words in tweets containing word "trump" before and after 2015-10-10.

My subjective comment on the chart:I'd clear that his move to politics shows also in the social media sphere. Words like "Obama", "vote" or "president" weren't present before at all. Also, I'm sorry for the quality of the picture, since I've migrated to 18.04 Ubuntu, this happened. Will try to resolve it asap.

Most frequently used UNIQUE words

As we can see in the previous worldcloud, there are many words which are actually shared in both wordclouds. That makes all the sense as there are many areas which will be forever connected with trump. But I went one step further and decided to create wordclouds which contain only unique words with don't appear in the opposite wordcloud.

UniqueWords.png

Most often UNIQUE used words in tweets containing word "trump" before and after 2015-10-10.

My subjective comment on the chart: I love this chart. In the first cloud we can see the word "miller" which refers to rapper Mac Miller who made a song named Donald Trump. Also big word is "apprentice" which changes for "president" in the second cloud. His politics probably also caused words like "nazi" and "racist" to increase in popularity

* words excluded from all 4 wordclouds are: yii,bit.ly,.ly,donald,trump,donaldtrump

BONUS - shaped wordcloud from all words!

This one is just for fun :) It's generated from 1000 most popular words in all tweets, not divided into before and after groups. Click it to open.

shapedWords3.png

Power House Creatives Logos FINAL.png

About project

This series of posts shows the power of machine learning and it's application in the real life. It also makes kind of symbolical point of analyzing Twitter and publishing it here on Steemit. Technology of the future is being used on the social media of the future ;)

How to get your report


Twitter sentiment analysis reports are being sold for quite some dollars in the world outside of Steemit. In our tiny word of Steemit, such price would be way too much - that's why I'm offering to generate& send you a report with your chosen keyword and dates for a laughable price - 10 STEEM. Order 3 and get the fourth one for free :)

Interested in how's you favorite coin doing on Twitter? Or favorite athlete? Politician, actor or clothes company? . Just DM me on Discord (MatkoDurko#3758) and you'll get the full report under 48 hours :)

Power House Creatives Logos FINAL.png

Hope you enjoyed! Matko.

Power House Creatives Logos FINAL.png

You can find my latest posts here:

šŸ† My STEEMMONSTERS trophies/scalps šŸ†

ATS_NIGHT VIEW-2.jpg
Reached #16 in leaderboard
ATS_NIGHT VIEW.jpg
One-sided win over JoeParys
ATS_NIGHT VIEW.jpg
Proud owner of legendary Hydra

PHC-Footer-05.gif

Join me and learn new skills on Skillshare! :)

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
16 Comments