Trump's Twitter Ratio this year and his most unpopular tweets

Twitter Ratio is an unofficial measure of how unpopular a particular tweet is. It is calculated simply by dividing the number of replies to the tweet by the number of favorites (or retweets). The logic being if its a crappy tweet, you would get fewer favorites and more replies. Thus higher the ratio, worse the tweet. In this post, I look at Trump’s twitter ratio since the day of his inauguration and his most unpopular tweets (as in tweets with highest twitter ratio). ...

October 20, 2017 · 4 min · Rajesh Korde

Switching from Base R to tidyverse

One of the most transformative changes in my coding has been switching to tidyverse packages from base R. Tidy code is easier to write, read, maintain and almost always faster than the base R counterparts. While there has been some debate on whether base R should be taught to newcomers first or should they jump right into tidyverse, I havent heard anyone deny that ultimately, everyone should be be using tidyverse. A lot of online courses continue to use base R to teach students R programming. Hopefully the table below helps you switch from base R to their equivalent tidyverse commands when you are ready. ...

October 5, 2017 · 3 min · Rajesh Korde

Divided States of America

America has gotten more and more politically polarized over the years. This polarization is reflected in several states voting consistently red or blue in the presidential elections year after year. This analysis investigates several red-blue stereotypes popular in the media and measures how well they align with the actual voting patterns. ...

September 21, 2016 · 6 min · Rajesh Korde

Trump's emotional graph this year

Last week, David Robinson published an excellent analysis of Trump’s tweets. Given below is a relatively straightforward extension of his work where I plot various emotions in Trump’s tweets over time. Each line is smoothed to remove noise. The y-axis is proportion of a given sentiment in all tweets sent per week. The sentiments were calculated using the NRC word-emotion lexicon. The tweets considered here are limited to ones sent from Android because David’s analysis showed that Trump most likely only tweets from his Android phone. ...

August 17, 2016 · 1 min · Rajesh Korde

Beer vs Wine consumption in the US

Do you prefer wine or beer? Does the US state you live in prefer wine or beer? And how drunk is your state in general? These are important questions that must be answered. ...

February 15, 2015 · 2 min · Rajesh Korde

The most successful hollywood movies of 2014

So what do you think is the most successful Hollywood Movie of 2014? Transformers? Lego movie? Interstellar? There’s one movie that stood head and shoulders above the rest when it comes to financial success and if you’re like me, you may have never heard of it. ...

January 26, 2015 · 3 min · Rajesh Korde

Unpredictability of results in One Day International cricket matches

Ask any fan of any sports team and they would claim their team to be the most unpredictable with no guarantee of any result on a given day. The glorious uncertainties of cricket have been extolled by many a commentator over the years. In this post, I do an analysis of One Day International results to see how unpredictability in cricket has fared over the years and finally answer the question: Which is the most unpredictable team in international cricket? ...

January 15, 2015 · 3 min · Rajesh Korde