The Banzhaf Power Index of States for Presidential Candidates

Pursuant to article II section 1 of the United States Constitution and the 12th amendment, the United States elects a president by first having each state cast a specified number of votes in an electoral college. By tradition, almost all states cast their vote as a block, all for the candidate receiving the most votes from voters within the state (the popular vote). To elect a president via the electoral college requires at least a 270 vote majority of the 538 total votes. Absent attaining such a majority, each state votes (through its membership in the House of Representatives) from among the top three candidates in the electoral college, and it takes 26 states to win via this method.
This Demonstration examines the power the electoral college gives states in which the outcome of the popular election is unclear. It measures the power of these undecided states using the Banzhaf power index, which basically considers the relative power of each voting block (here the states) to "swing" the election, that is, cast a vote that changes the outcome. You choose whether the allocation of electoral votes is based on the 2000 census or the projected results of the 2010 census. You choose the candidate for whom the power of the undecided states is being considered—the power indices are often but not always similar for the varying candidates. You choose whether you want the Demonstration to produce a pie chart or a grid showing the relative power of the undecided states. You also choose whether you wish to display information comparing that power with the relative population of the undecided states. The relative population then appears as the inner circle of the pie chart or as the rightmost column of the grid. Finally, you assign states to one of the four possible candidates or leave the state undecided.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The method for computing the Banzhaf power index, along with a Mathematica program, is found in J. M. Bilbao, J. R. Fernández, A. J. Losada, and J. J. López, "Generating Functions for Computing Power Indices Efficiently," TOP, 8, 2000, pp. 191–213. (TOP is published by Springer and is an official journal of the Spanish Society of Statistics and Operations Research.)
Currently two states (Maine and Nebraska) do not necessarily vote as a block in the electoral college. This Demonstration ignores that complication and assumes that all states vote as a block. The computations conducted by this Demonstration would not be valid if many states failed to vote as a block in the electoral college.
Usually, when the number of undecided states is large, the Banzhaf power index closely matches the relative populations of the remaining states, although the less populous states have a bit of an advantage owing to the automatic assignment of two votes to all states. When the number of undecided states is small, however, the Banzahf power index may depart from the relative population in ways that are difficult to predict.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+