Tuesday, June 6, 2017

Educational Attainment and the % Uninsured Explain Trump's % of the Vote with Philly Considered

I know it's been a while since I've posted last.  I've been busy with running for city council and other personal issues.  In my last big data post, I looked at county level simple correlations with education, uninsured, child abuse, and Trump's % of the vote.  This post will look at multiple regression for county level variables.  This is to sort out which effects are strongest when adjusting for the the others.

When adding the variables education (defined as % of population with a bachelor's degree or higher), % uninsured, and % change in child abuse cases with Trump % of the vote gives the following model with Philadelphia County included in the data set.  The coefficients are the values for the regression equation:

Trump % = 105.86 - 1.31* (% Bachelors) - 1.85*(% Uninsured) 

both variables are statistically significant (with a p-value of less than 0.05) and the model accounts for 62% of the variability in Trump's % of the vote.  Of this the % with a bachelor's degree accounts for 58% of the variability.


Coefficients
Standard Error
t Stat
P-value
Lower 95%
Upper 95%
Intercept
105.86
7.56
14.00
3.74E-21
90.75
120.96
Bachelors %
-1.31
0.13
-10.05
8.83E-15
-1.57
-1.05
Uninsured %
-1.85
0.77
-2.42
0.02
-3.38
-0.32
 

The scatterplot below shows the actual values for each county (in blue) and the predicted values (in orange) for the above equation.  For example, Forest county had an actual % of the vote for Trump of 70.1% but the model predicts 79.3% for Trump with a predictor value of 8.3% uninsured and 8.5% with a bachelors degree or higher.


The coefficient for the % uninsured is significant if Philadelphia county is included but not if it is not.  The graph below shows that the association is weaker for this relationship accounting for only 4% of the variability.  Both charts show that Philadelphia county is considered. 


Philadelphia county is an outlier for the counties in Pennsylvania in much the same way as Washington, DC is for the other states. It had a big influence on the uninsured data so it was included in this model.  Both Philadelphia and DC are demographically different from the surrounding counties and states respectively.  The % of the white population in the counties and the states may be an important explanatory variable for the model. 

**Related Posts** 

Concentration of Hate Groups Predict Hate Crimes (if you consider DC) and Trump Vote (if you don't)

 

Hate Groups and Trump's Vote%: Predictive effect present when education and poverty are considered

 

More Hate Groups in States Where Trump and Clinton Win (and in DC Where He Lost)