Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Shivering Jemmy

(900 posts)
Fri Nov 2, 2012, 09:52 PM Nov 2012

Swing State Win Probabilities

It's too late in the season to build a statistical model of the election, but I am interested in doing so. If anyone wants to put together a DU model for use in the next electoral cycle(s) please inbox me. It could be really fun.

But I did write a simple script to calculate probabilities of a win based on the last week of polls for arbitrary states. I assumed normal statistics and simply calculated 1- the probability Obama - Romney was less than zero. I call that the probability we are really ahead as of this moment.

Simple really. Anyhow here are some probabilities we are currently leading in several swing states:

Virginia 83
Ohio 99
Wisconsin 98
Florida 91
Colorado 26
Iowa 94

Interestingly, our probability of being ahead in Ohio is higher than anywhere else. This is in part a consequence of the high polling density that Ohio has experienced.

on edit: sorry, I forget that "normal statistics" isnt' self-explanatory to non-statisticians. Basically I assume that the error in a measurement is distributed according to a bell curve. So mean values are likely to be "close" to the center of the distribution. Large excursions from this value are assumed to fall off, in their probability of occurrence, as the bell curve falls off. Using this curve, it's possible to calculate the probability that the "true mean difference" is actually on the other side of zero (that Romney is really ahead).

Compare the valuefor Florida from a month ago, in the week after the first debate, to see how far we've come. Then there was only a 26% chance that we were in the lead.

4 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Swing State Win Probabilities (Original Post) Shivering Jemmy Nov 2012 OP
Interesting! Thanks and can courseofhistory Nov 2012 #1
I put a little more explanation into the body Shivering Jemmy Nov 2012 #2
Thanks! stevend56 Nov 2012 #3
I'm suspicious of the Florida numbers Shivering Jemmy Nov 2012 #4

Shivering Jemmy

(900 posts)
2. I put a little more explanation into the body
Fri Nov 2, 2012, 10:06 PM
Nov 2012

basically I'm just using MATLAB's ttest function to generate a p-value (probability value) assuming that the data are really random and dsitributed according to a bell curve. Long story short: random fluctuations cannot explain Obama's lead in Ohio.

I edited the post with a somewhat qualitative explanation.


To win, we just have to hope the polls aren't systematically wrong. Hopefully evangelicals are answering their phones as much as anyone else.

stevend56

(36 posts)
3. Thanks!
Fri Nov 2, 2012, 10:17 PM
Nov 2012

Yea, it's been a few decades since I did any probability calculations. But, I could understand your post. We could be looking at another electoral college landslide.

Shivering Jemmy

(900 posts)
4. I'm suspicious of the Florida numbers
Fri Nov 2, 2012, 10:26 PM
Nov 2012

it's only just recently swung our way. Throw in polls from earlier, and it goes away, sad to say.

But the only thing keeping me up nights now is that our turnout machine gets cocky and doesn't perform.

Latest Discussions»Retired Forums»2016 Postmortem»Swing State Win Probabili...