David Robinson, data scientist at StackOverflow, tweeted:
Fun fact: the more a county uses R (measuring by % of Stack Overflow traffic), the less it voted for Trump #rstats pic.twitter.com/G9p2PkPj6o
— David Robinson (@drob) November 17, 2016
Of course this is because of a confounder. Namely, R comes out of the statistics community, which is concentrated in places with universities, which also tend to be pro-Democratic in the current political environment. Python, he finds, is also anti-correlated with Trump voting; C# and PHP are correlated with Trump voting, he finds:
R and Python are both negatively correlated with Trump support by county
Correlated with Trump support? C# and PHP#rstats pic.twitter.com/eM5giUPa0s
— David Robinson (@drob) November 17, 2016
Interpret this as you will. (Seriously, I don’t know enough about who uses C# and PHP to comment anywhere near intelligently.)
The data on language usage by county is not public, but the data on voting is, David Taylor has assembled vote counts by county, and David Robinson has some code for manipulating them and making some plots. Fun fact: the county(-equivalent) with the lowest percentage of Trump voters is the one Trump doesn’t want to move to.
What’s Perl correlated with?