Who did I donate to?

My first name is...

and I'm from

State Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware District Of Columbia Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming

My occupation is

and I donated

$

to the 2016 presidential campaign for

Predict Candidate

× Loading... The server is taking longer than expected. Please check out the The server is taking longer than expected. Please check out the IPython Notebook and return back.

Knowing nothing about you, the probability that you chose Sanders is 25.1%

Can attributes like first name and occupation reveal which presidential candidate you prefer? Around 900,000 records of data from the Federal Election Commission say the answer is yes, fairly well. This app uses a random forest classifier trained on public FEC data to predict a candidate given some info, and on an unseen test set it's accurate over 60% of the time. See the IPython notebook here.

Technologies used: Python (Sci-kit Learn, Pandas, Flask), JavaScript (d3.js, jQuery) and Semantic-UI.