Seth Stephens-Davidowitz has a fascinating bit of research into the effect of racism on the vote for Barack Obama:
… many Americans use Google to find racially charged material. I performed the somewhat unpleasant task of ranking states and media markets in the United States based on the proportion of their Google searches that included the word “nigger(s).” This word was included in roughly the same number of Google searches as terms like “Lakers,” “Daily Show,” “migraine” and “economist.”
A huge proportion of the searches I looked at were for jokes about African-Americans. (I did not include searches that included the word “nigga” because these searches were mostly for rap lyrics.) I used data from 2004 to 2007 because I wanted a measure not directly influenced by feelings toward Mr. Obama. From 2008 onward, “Obama” is a prevalent term in racially charged searches.
The state with the highest racially charged search rate in the country was West Virginia. Other areas with high percentages included western Pennsylvania, eastern Ohio, upstate New York and southern Mississippi.
Once I figured out which parts of the country had the highest racially charged search rates, I could test whether Mr. Obama underperformed in these areas. I predicted how many votes Mr. Obama should have received based on how many votes John Kerry received in 2004 plus the average gain achieved by other 2008 Democratic Congressional candidates. The results were striking: The higher the racially charged search rate in an area, the worse Mr. Obama did.
The conclusions for 2012 are not cheering.