Let me start by saying that I'm still working on figuring out the problem for the most recent election, but I think I'm making some progress and wanted to share the progress while the real problem is computing. There are a lot of possible coalition sets. But there are a number of ways to strategically reduce the number of sets in the solution space. The first cut we can make is defining the minimum number of states required to obtain an electoral college majority. For 2012, the minimum number of states to reach 270 is 12.
California - 55
Texas - 38
Florida, New York - 29
Illinois, Pennsylvania - 20
Ohio, 18
Georgia, Michigan - 16
North Carolina - 15
New Jersey - 14
Virginia - 13
This reduces the number of possible combinations from 2251799813685247
to 2251735594475336
. That is not a big reduction, but I'm working on some methods to make further cuts.
I thought it would be interesting to look at a more manageable problem, the first Presidential election in 1788. In 1788 there were 69 total electoral votes from 10 states.
Connecticut - 7
Delaware - 3
Georgia - 5
Maryland - 6
Massachusetts - 10
New Hampshire - 5
New Jersey - 6
Pennsylvania - 10
South Carolina - 7
Virginia - 10
In this case a coalition needed a majority of the 69 total votes, 35 votes, to be on the winning side. This translates to a minimum coalition size of four states. There are 848
total coalitions that contain at least four states. Now testing each possible coalition
{Connecticut, Delaware, Georgia, Maryland}
{Connecticut, Delaware, Georgia, Massachusetts}
{Connecticut, Delaware, Georgia, New Hampshire}
...
...
{Connecticut, Delaware, Georgia, Maryland, Massachusetts, New Hampshire, New Jersey, Pennsylvania, South Carolina, Virginia}
it is possible to determine the probability that a particular state is part of the coalition that selects the president. During the first election, the probabilities are:
Connecticut - 0.353774
Delaware - 0.316038
Georgia - 0.334906
Maryland - 0.346698
Massachusetts - 0.39033
New Hampshire - 0.334906
New Jersey - 0.346698
Pennsylvania - 0.39033
South Carolina - 0.353774
Virginia - 0.39033
I'll be sure to update if I can make any progress on the current election cycle.