In August 2016 a data anayst made the news by proving that Donald Trump’s Twitter account was being used by at least two separate people. The story made the Washington post. http://varianceexplained.org/r/trump-tweets/
Today, Donald Trump tweeted some complementary comments about women (on international women’s day). http://www.politico.com/story/2017/03/trump-womens-day-tweet-235814 The problem is that the nice comments all came from an IPhone. David Robinson’s analysis showed that Trump himself uses an Android device.
David Robinson has claimed that he is no longer analysing Trump’s tweets due to the adverse reaction he provoked. However no one is going to notice my reanalysis, so I pulled down his code, tweaked it a little, and re ran it to see if Trump and his team have swopped devices.
I pulled down the maximum of 3200 tweets, but decided to only use those written this year. That includes a few pre-inauguration tweets for good measure, when Trump may have been feeling more optimistic about things to come.
The key indicator that seemed to confirm that two devices were being used was the time of day on which the tweets were sent. Early in the day angry tweets were sent from an android device during the campaign. More measured tweets came from an Iphone later on. Is this still happening?
It certainly appears so!
It is interesting to look at the raw vocabulary being used.
Donald Trump’s android device is used to rant about the press.
What sort of sentiments are used in the tweets and is there any relationship between the sentiment and the device of origin?
source | sentiment | total_words | words |
---|---|---|---|
Android | negative | 2299 | 288 |
Android | positive | 2299 | 287 |
Android | trust | 2299 | 192 |
Android | fear | 2299 | 159 |
Android | anger | 2299 | 157 |
Android | sadness | 2299 | 151 |
Android | anticipation | 2299 | 145 |
Android | disgust | 2299 | 121 |
Android | joy | 2299 | 102 |
iPhone | positive | 729 | 95 |
iPhone | trust | 729 | 71 |
Android | surprise | 2299 | 56 |
iPhone | joy | 729 | 40 |
iPhone | anticipation | 729 | 36 |
iPhone | negative | 729 | 26 |
iPhone | surprise | 729 | 24 |
iPhone | fear | 729 | 20 |
iPhone | anger | 729 | 12 |
iPhone | disgust | 729 | 9 |
iPhone | sadness | 729 | 9 |
So 288 of the 2299 words in the Android tweets were associated with “anger”). To measure how much more likely the Android account is to use an emotionally-charged term relative to the iPhone account a Poisson test can be used.
Notice that one of the accounts does not mention of America nor of jobs. In fact Russia figures larger in Trunp’s android account. The IPhone account is much more positive and focussed on political issues that may matter to the electorate.