About

Created by: Oliver K. Ernst (2020)
Source code: GitHub


Explanation

This application allows you to explore what your vote is worth in the electoral college system in the United States. It uses 2010 census data for the population of each state.

For any given population of the states, the app ultimately computes the vote fraction defined as:



The first fraction here is the state's share of the electoral college votes:



If there were no electoral college, we can view this as if each person could vote in the electoral college:



and the vote fraction would be unity for every state:



In the electoral college system, each state has different vote fractions. With the 2010 census populations, California has the lowest fraction: 0.84809, while Wyoming has the highest fraction: 3.03964. This means that every vote cast in California is worth c.a. 0.27 the vote of a voter in Wyoming, or equivalently every voter in Wyoming has the power of 3.58 Californians in deciding the U.S. presidential race.

In this application, you can also shift the populations from one state to another to explore how the vote fraction changes. For example, as the c.a. 35 million people in California are redistributed to the other states, the number of house representatives decreases, such that the electoral college votes decreases, such that the vote fraction grows - first to unity, and then beyond.

The number of electoral college votes for each state is equal to:

For any given population distribution among the states, it remains to determine how many representatives are assigned to each state. This process is not trivial, using a priority list algorithm implemented in this application:

This calculation is performed every time the population distribution in the application is adjusted. From this, the electoral votes and the vote fraction are determined.


Image source

U.S. map source; released under Creative Commons Attribution-Share Alike 3.0 Unported.


License

Distributed under MIT License:

Copyright 2020 Oliver K. Ernst
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.