Permalink
Browse files

add 2004 and 2008 predictions

  • Loading branch information...
1 parent 52ddecb commit 162acc7864de2cae55c840794d052e5f4b033cd0 @chris-taylor committed Nov 5, 2012
View
Oops, something went wrong.
View
Oops, something went wrong.
@@ -0,0 +1,51 @@
+Alabama,9
+Alaska,3
+Arizona,11
+Arkansas,6
+California,55
+Colorado,9
+Connecticut,7
+D.C.,3
+Delaware,3
+Florida,29
+Georgia,16
+Hawaii,4
+Idaho,4
+Illinois,20
+Indiana,11
+Iowa,6
+Kansas,6
+Kentucky,8
+Louisiana,8
+Maine,4
+Maryland,10
+Massachusetts,11
+Michigan,16
+Minnesota,10
+Mississippi,6
+Missouri,10
+Montana,3
+Nebraska,5
+Nevada,6
+New Hampshire,4
+New Jersey,14
+New Mexico,5
+New York,29
+North Carolina,15
+North Dakota,3
+Ohio,18
+Oklahoma,7
+Oregon,7
+Pennsylvania,20
+Rhode Island,4
+South Carolina,9
+South Dakota,3
+Tennessee,11
+Texas,38
+Utah,6
+Vermont,3
+Virginia,13
+Washington,12
+West Virginia,5
+Wisconsin,10
+Wyoming,3
@@ -0,0 +1,51 @@
+Alabama,AL
+Alaska,AK
+Arizona,AZ
+Arkansas,AR
+California,CA
+Colorado,CO
+Connecticut,CT
+D.C.,DC
+Delaware,DE
+Florida,FL
+Georgia,GA
+Hawaii,HI
+Idaho,ID
+Illinois,IL
+Indiana,IN
+Iowa,IA
+Kansas,KS
+Kentucky,KY
+Louisiana,LA
+Maine,ME
+Maryland,MD
+Massachusetts,MA
+Michigan,MI
+Minnesota,MN
+Mississippi,MS
+Missouri,MO
+Montana,MT
+Nebraska,NE
+Nevada,NV
+New Hampshire,NH
+New Jersey,NJ
+New Mexico,NM
+New York,NY
+North Carolina,NC
+North Dakota,ND
+Ohio,OH
+Oklahoma,OK
+Oregon,OR
+Pennsylvania,PA
+Rhode Island,RI
+South Carolina,SC
+South Dakota,SD
+Tennessee,TN
+Texas,TX
+Utah,UT
+Vermont,VT
+Virginia,VA
+Washington,WA
+West Virginia,WV
+Wisconsin,WI
+Wyoming,WY
@@ -0,0 +1,52 @@
+State,Winner,Confidence
+Alabama,REP,100%
+Alaska,REP,100%
+Arizona,REP,100%
+Arkansas,REP,90%
+California,DEM,100%
+Colorado,REP,96%
+Connecticut,DEM,90%
+D.C.,DEM,100%
+Delaware,DEM,85%
+Florida,REP,68%
+Georgia,REP,100%
+Hawaii,REP,54%
+Idaho,REP,100%
+Illinois,DEM,97%
+Indiana,REP,100%
+Iowa,REP,63%
+Kansas,REP,100%
+Kentucky,REP,100%
+Louisiana,REP,100%
+Maine,DEM,97%
+Maryland,DEM,100%
+Massachusetts,DEM,98%
+Michigan,DEM,90%
+Minnesota,DEM,97%
+Mississippi,REP,88%
+Missouri,REP,95%
+Montana,REP,100%
+Nebraska,REP,100%
+Nevada,REP,98%
+New Hampshire,DEM,86%
+New Jersey,DEM,99%
+New Mexico,REP,54%
+New York,DEM,100%
+North Carolina,REP,99%
+North Dakota,REP,100%
+Ohio,DEM,62%
+Oklahoma,REP,100%
+Oregon,DEM,98%
+Pennsylvania,DEM,98%
+Rhode Island,DEM,100%
+South Carolina,REP,100%
+South Dakota,REP,100%
+Tennessee,REP,100%
+Texas,REP,100%
+Utah,REP,100%
+Vermont,DEM,96%
+Virginia,REP,99%
+Washington,DEM,97%
+West Virginia,REP,89%
+Wisconsin,REP,53%
+Wyoming,REP,100%
@@ -0,0 +1,52 @@
+State,Winner,Confidence
+Alabama,REP,100%
+Alaska,REP,100%
+Arizona,REP,94%
+Arkansas,REP,99%
+California,DEM,100%
+Colorado,DEM,100%
+Connecticut,DEM,100%
+D.C.,DEM,100%
+Delaware,DEM,100%
+Florida,DEM,98%
+Georgia,REP,98%
+Hawaii,DEM,100%
+Idaho,REP,100%
+Illinois,DEM,100%
+Indiana,REP,69%
+Iowa,DEM,100%
+Kansas,REP,100%
+Kentucky,REP,100%
+Louisiana,REP,99%
+Maine,DEM,100%
+Maryland,DEM,100%
+Massachusetts,DEM,100%
+Michigan,DEM,100%
+Minnesota,DEM,100%
+Mississippi,REP,100%
+Missouri,DEM,70%
+Montana,REP,75%
+Nebraska,REP,99%
+Nevada,DEM,99%
+New Hampshire,DEM,100%
+New Jersey,DEM,100%
+New Mexico,DEM,99%
+New York,DEM,100%
+North Carolina,DEM,77%
+North Dakota,DEM,61%
+Ohio,DEM,100%
+Oklahoma,REP,100%
+Oregon,DEM,100%
+Pennsylvania,DEM,100%
+Rhode Island,DEM,100%
+South Carolina,REP,100%
+South Dakota,REP,93%
+Tennessee,REP,94%
+Texas,REP,100%
+Utah,REP,100%
+Vermont,DEM,100%
+Virginia,DEM,100%
+Washington,DEM,100%
+West Virginia,REP,95%
+Wisconsin,DEM,100%
+Wyoming,REP,100%
@@ -1,51 +0,0 @@
-Alabama,REP,0.006080,0.993920
-Alaska,REP,0.001290,0.998710
-Arizona,REP,0.299100,0.700900
-Arkansas,REP,0.000040,0.999960
-California,DEM,1.000000,0.000000
-Colorado,DEM,0.567190,0.432810
-Connecticut,DEM,1.000000,0.000000
-D.C.,DEM,1.000000,0.000000
-Delaware,DEM,0.999290,0.000710
-Florida,REP,0.250060,0.749940
-Georgia,REP,0.071940,0.928060
-Hawaii,DEM,0.999850,0.000150
-Idaho,REP,0.000000,1.000000
-Illinois,DEM,0.995230,0.004770
-Indiana,REP,0.000640,0.999360
-Iowa,DEM,0.852270,0.147730
-Kansas,REP,0.030710,0.969290
-Kentucky,REP,0.029400,0.970600
-Louisiana,REP,0.031870,0.968130
-Maine,DEM,0.967640,0.032360
-Maryland,DEM,0.999980,0.000020
-Massachusetts,DEM,1.000000,0.000000
-Michigan,DEM,0.996920,0.003080
-Minnesota,DEM,0.995000,0.005000
-Mississippi,REP,0.052810,0.947190
-Missouri,REP,0.013070,0.986930
-Montana,REP,0.006840,0.993160
-Nebraska,REP,0.000500,0.999500
-Nevada,DEM,0.881210,0.118790
-New Hampshire,DEM,0.694160,0.305840
-New Jersey,DEM,0.999760,0.000240
-New Mexico,DEM,0.994770,0.005230
-New York,DEM,1.000000,0.000000
-North Carolina,REP,0.191020,0.808980
-North Dakota,REP,0.000000,1.000000
-Ohio,DEM,0.976010,0.023990
-Oklahoma,REP,0.000220,0.999780
-Oregon,DEM,0.929180,0.070820
-Pennsylvania,DEM,0.994810,0.005190
-Rhode Island,DEM,0.998770,0.001230
-South Carolina,REP,0.194970,0.805030
-South Dakota,REP,0.144240,0.855760
-Tennessee,REP,0.000340,0.999660
-Texas,REP,0.017420,0.982580
-Utah,REP,0.000000,1.000000
-Vermont,DEM,1.000000,0.000000
-Virginia,DEM,0.649800,0.350200
-Washington,DEM,1.000000,0.000000
-West Virginia,REP,0.026990,0.973010
-Wisconsin,DEM,0.973830,0.026170
-Wyoming,REP,0.000000,1.000000
@@ -0,0 +1,52 @@
+State,Winner,Confidence
+Alabama,REP,99%
+Alaska,REP,100%
+Arizona,REP,70%
+Arkansas,REP,100%
+California,DEM,100%
+Colorado,DEM,56%
+Connecticut,DEM,100%
+D.C.,DEM,100%
+Delaware,DEM,100%
+Florida,REP,74%
+Georgia,REP,93%
+Hawaii,DEM,100%
+Idaho,REP,100%
+Illinois,DEM,100%
+Indiana,REP,100%
+Iowa,DEM,85%
+Kansas,REP,97%
+Kentucky,REP,97%
+Louisiana,REP,97%
+Maine,DEM,97%
+Maryland,DEM,100%
+Massachusetts,DEM,100%
+Michigan,DEM,100%
+Minnesota,DEM,99%
+Mississippi,REP,95%
+Missouri,REP,99%
+Montana,REP,99%
+Nebraska,REP,100%
+Nevada,DEM,88%
+New Hampshire,DEM,77%
+New Jersey,DEM,100%
+New Mexico,DEM,99%
+New York,DEM,100%
+North Carolina,REP,81%
+North Dakota,REP,100%
+Ohio,DEM,98%
+Oklahoma,REP,100%
+Oregon,DEM,93%
+Pennsylvania,DEM,99%
+Rhode Island,DEM,100%
+South Carolina,REP,80%
+South Dakota,REP,96%
+Tennessee,REP,100%
+Texas,REP,98%
+Utah,REP,100%
+Vermont,DEM,100%
+Virginia,DEM,73%
+Washington,DEM,100%
+West Virginia,REP,97%
+Wisconsin,DEM,97%
+Wyoming,REP,100%
@@ -1,53 +0,0 @@
-State Winner Certainty
--------------------------------------
-California DEM 100%
-Connecticut DEM 100%
-D.C. DEM 100%
-Massachusetts DEM 100%
-New York DEM 100%
-Vermont DEM 100%
-Washington DEM 100%
-Maryland DEM 100%
-Hawaii DEM 100%
-New Jersey DEM 100%
-Delaware DEM 100%
-Rhode Island DEM 100%
-Michigan DEM 100%
-Illinois DEM 100%
-Minnesota DEM 100%
-Pennsylvania DEM 99%
-New Mexico DEM 99%
-Ohio DEM 98%
-Wisconsin DEM 97%
-Maine DEM 97%
-Oregon DEM 93%
-Nevada DEM 88%
-Iowa DEM 85%
-New Hampshire DEM 69%
-Virginia DEM 65%
-Colorado DEM 57%
-Arizona REP 70%
-Florida REP 75%
-South Carolina REP 81%
-North Carolina REP 81%
-South Dakota REP 86%
-Georgia REP 93%
-Mississippi REP 95%
-Louisiana REP 97%
-Kansas REP 97%
-Kentucky REP 97%
-West Virginia REP 97%
-Texas REP 98%
-Missouri REP 99%
-Montana REP 99%
-Alabama REP 99%
-Alaska REP 100%
-Indiana REP 100%
-Nebraska REP 100%
-Tennessee REP 100%
-Oklahoma REP 100%
-Arkansas REP 100%
-Idaho REP 100%
-North Dakota REP 100%
-Utah REP 100%
-Wyoming REP 100%
@@ -0,0 +1,12 @@
+function data = loadAbbreviations()
+
+ fid = fopen('data/state-abbreviations.csv');
+
+ csv = textscan(fid,'%s %s','delimiter',',');
+
+ fclose(fid);
+
+ data.state = csv{1};
+ data.abbr = csv{2};
+
+end
@@ -0,0 +1,12 @@
+function data = loadElectoralVotes()
+
+ fid = fopen('data/electoral-college-votes.csv');
+
+ csv = textscan(fid,'%s %d','delimiter',',');
+
+ fclose(fid);
+
+ data.state = csv{1};
+ data.ev = csv{2};
+
+end
Oops, something went wrong.

0 comments on commit 162acc7

Please sign in to comment.