project141b


Collaborative Project by: Patrick Vacek, Graham Smith, and Edie Espejo.

View the Project on GitHub

Collaborators

This project, although hosted on my site, was a collaborative project between myself and two outstanding others.

See Patrick Vacek’s profile and Graham Smith’s profile for data science brilliance.

Project Contents

Our project has been organized into separate Jupyter notebooks. You can read through by starting with our first link, then continuing on by navigating with the “Previous” and “Next” links at the top and bottom of all of our webpages. If you have any questions, you can email us.

  1. Data Acquisition
  2. Preliminary Petition Success Model Fitting
  3. Exploring Language of White House Petitions
  4. Fitting Random Forests On Petition Language
  5. Applying Algorithm on Political Tweets
  6. Adding Language Facet to Prediction Model
  7. Conclusions

Finding Bias in Political Language

It’s no secret that we live in an age of perpetual information overload. The days where most Americans would get their news from large, monolithic television networks and print outlets is long past. As of 2016, adults under the age of 50 get roughly half of their news from the internet - the single largest source being Facebook[1]. One would believe that the democratization of information would cause people to regress towards some mean consensus which would resemble true information.

Sadly, this has not been the case. The post-truth “alternative facts” ethos of our new Executive branch aside the American public has never been as divided as it is now. While not a perfect proxy, we can look at data involving political polarization and see that more than 60% of people find they have less in common with members of the opposite party after talking to them about politics, and 87% say that their opponents policies are actively dangerous[2]. These are not numbers you’d see from people simply differing with each other on values. These are numbers you’d expect to see from people who fundamentally disagreed on what reality they were all living in.

Predicting Success of Petitions

The right to petition, guaranteed by the First Amendment, is supported by the We the People platform. Those who wish to petition the government for change may do so by creating a petition online through We The People. If the online petition reaches 100,000 signatures in 30 days, then the petition is to be reviewed by the White House for response.

Our Algorithm

All that being said, it is even more critical that everyone become both involved in the political process and active consumers of information - a word here which means to be aware of the source, thoroughness, and intent behind the information. To this end our group created a two part algorithm to represent both of these goals. The first part was the construction of a logistic regression model to predict whether or not a White House Petition would hit the 100,000-signature threshold necessary for the president to be legally required to respond, based on the rate at which it receives signatures. Second was to create a classifier for determining the probability that a particular petition is ‘Liberal’ or ‘Conservative’ based on word choice. Finally, we brought these two pieces together in a generalized algorithm that looks at both signature rate over time and vocabulary to determine how likely it is that a petition will succeed.

To test our belief that our algorithm can be used in general to classify other text sources to uncover linguistic bias, we will apply our text processing algorithm to tweets from 23 political sources.

Start Here

Next Step: Data Acquisition