Git Product home page Git Product logo

methodsmatter's Introduction

Methods Matter

Have you ever wondered what the outcome of US elections would be if if the voting system didn't use the winner takes all seats approach? Specially after the 2016 election it was evident that the current method wasn't the most representative, after Hillary Clinton won the popular vote by nearly 3 million votes but failed to win the election.

Method Matter is an attempt to estimate the outcome of US elections from 1976 to 2020 if other common methods of seat allocation were used instead like the D'Hondt method or the Largest Remainder method.

The goal is to explore how these different methods can greatly influence the outcome of an election. Are they prone to form coalitions? Do they favor smaller or larger parties? How representative are they?

It is however important to note that the results obtained are by no means facts as to what would actually happen if the system was different. This is because both candidates and voters would change their strategy depending on how the elections worked.

Sources

Most of the data regarding the elections came from the MIT Election Data + Science Lab dataset.

Information regarding the number of electoral votes each state was conceded in the election years between 1976 and 2020 was taken from 270toWin.

Information about each method was mostly gathered from Wikipedia and some papers. They can be found in the explanation of each method in the More Information section (on the website).

Technology

This project is built with React and bootstrapped with Create React App with Sass to help with the CSS.
To get the Wikipedia pages of each candidate, calls to the Wikipedia API are made using the wikijs package.
The US map representation is made possible using the react-usa-map package.
The website is currently hosted on Netlify.

Contacts

If you encounter any bugs or want to request some feature feel free to open an issue on this repository!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.