project-plebiscite

Project Plebiscite

Using the Census & neural nets to learn more about voting behavior.

Click here for the GitHub repo.

Description & Questions

This is a project I completed as an undergraduate. I combined US Census data at the block level with individual entries in the voter file, and used regression and an MLP neural net to investigate two concepts:

  1. Assortative habitation. Are people more likely to vote if their neighbors vote? Do the characteristics of a set of neighbors help to understand the voting behavior of a group?
  2. Prediciton of turnout. Can we better predict if someone is likely to vote if we know things about their neighbors, or their demographics at an aggregate level? I chose to use Philadelphia for the simple reason that I had lived there for 22 years and already had a copy of the voter file, with results from 2016.

Outcomes

My conclusions were that we can better predict whether an individual voted in the 2016 election by incorporating block-level demographic data (slightly better with a logistic regression, much better with a neural net). This suggested to me that people behave similarly to their neighbors, but it was beyond the scope (and deadline!) of the project to do an additional analysis. At the very least, we can predict individual behavior using aggregate data.

Read the full report here.

Notes

Replicability

This is seriously amateur code, before I had read & adopted a style guide. Replicate at your own risk – but be warned, this repository includes none of the raw data in .csv or .shp formats. You may download some of the additional data at this link, but the voter file is not included. Some of the .Rdata objects may work in its place, but I can’t say I’ve maintained this code.

If you have any questions, or if it is somehow important for you to replicate this project, please don’t hesitate to reach out.