Home

Awesome

U.S. Senators: A Voting Pattern Study

NOTE: Please create a file named "api_key.txt" in the project root folder containing your Prorepublica Congress API Key as a line before running the notebook

Introduction

Predicting how Congressional legislators vote is important for understanding their past and future behavior. In this project, we explore U.S. senators voting patterns using a network-based approach.

Research questions

  1. Can we predict the political stances of individuals as well as which senators are the closest to their ideology ?
  2. Can a specific subset of senators, called the swing votes, be used to accurately predict the outcome of a vote ?

Notebooks

Helper functions

Our project required some boilerplate code, especially for graph visualization that we chose to factorize in helper modules. Their contents are briefly summarized below.