This first analysis explores the relations between fraction of Trump votes and correlated demographic data by county, specifically education level. We look deeper into Trump’s statement: “I Love the Poorly Educated”. Does he have a reason to? This analysis was done in a Beaker Notebook which can be found in the Github repository.
Let’s look at the correlation between education level by county and the fraction of votes for Trump.
We define a function, CorrelationCoeff(X,Y) that calculates the Pearson product-moment correlation coefficient. This is effectively the same as np.corrcoef but I decided to write it myself to see the math.
Create a scatter plot of the percent of people over 25 who have a high school diploma against the fraction of votes for Trump and calculate the correlation coefficient.
r = -0.545799193326
Now we do the same for the percent of people over 25 with at least a Bachelor’s degree.
r = -0.327623669208
We see that while there is decent negative correlation between Trump votes and high school education, the correlations fades slightly when we move to higher education.
Let’s take a broader look at what factors (if any) are strongly correlated with votes for Trump.
(0.40672375787172882, '=>', 'RHI225214', ':', 'Black or African American alone, percent, 2014')
(0.40730601678816586, '=>', 'RHI325214', ':', 'American Indian and Alaska Native alone, percent, 2014')
(0.42260601886587457, '=>', 'LFE305213', ':', 'Mean travel time to work (minutes), workers age 16+, 2009-2013')
(0.43286826102909864, '=>', 'RHI625214', ':', 'Two or More Races, percent, 2014')
(0.52447986169016847, '=>', 'PVY020213', ':', 'Persons below poverty level, percent, 2009-2013')
(-0.54579919332622884, '=>', 'EDU635213', ':', 'High school graduate or higher, percent of persons age 25+, 2009-2013')
(-0.53826096465961426, '=>', 'RHI825214', ':', 'White alone, not Hispanic or Latino, percent, 2014')
(-0.36983458926806523, '=>', 'INC110213', ':', 'Median household income, 2009-2013')
(-0.46410188934079311, '=>', 'RHI125214', ':', 'White alone, percent, 2014')
(-0.35483869853880573, '=>', 'INC910213', ':', 'Per capita money income in past 12 months (2013 dollars), 2009-2013')
It looks like Trump was right: he does have a reason to love the poorly educated. Also interestingly, counties with higher populations of white people were less likely to be a trump victory.
Where is Trump doing very well? It seems Trump votes are best positively correlated with areas of high poverty rates. To reinforce the idea that Trump does not do well with areas of white people: he’s doing well in areas of multiethnic people, American Indians and Alaskan Natives, and Black or African Americans.