Re:Why Are US Presidential Elections So Close?
by ryanmonroe on Thursday November 03, 2016 @06:07PM
(#12868446)
Pretty amazing. If the outcome is determined by 100 million independent coin flips, the probability of a margin greater than one tenth of a percent is 1.5e-23. In R
n <- 100000000
diff <- 0.1/100
a_wins <- n*(1-diff)/2
b_wins <- n*(1+diff)/2
p1 <- pbinom(a_wins, size = n, prob = 0.5)
p2 <- pbinom(b_wins, size = n, prob = 0.5, lower.tail = F)
p1 + p2 # = 1.523959e-23
Re:Why Are US Presidential Elections So Close?
by foota on Thursday November 03, 2016 @05:18PM
(#12868044)
Parent is saying if we randomly chose the outcome, not the votes.
Re:Why Are US Presidential Elections So Close?
by AnimalMuppet on Thursday November 03, 2016 @05:37PM
(#12868218)
Sure. But why should we expect random percentages to have any relationship to reality?
(I would argue that random votes isn't related to reality either...)
Here's a quick Python snippet to test it empirically:
(I strongly recommend using pypy to run it. CPython takes forever to complete.)With 8 runs, I got these results:
All of which require at least two decimal places in the percentage to be distinguishable from 50% each way.