Simply Statistics: On weather forecasts, Nate Silver, and the politicization of statistical illiteracy
As you know, we have a thing for statistical literacy here at Simply Stats. So of course this column over at Politico got our attention (via Chris V. and others). The column is an attack on Nate Silver, who has a blog where he tries to predict the outcome of elections in the…
I’ve revised your code for efficiency:
# Set initial parameters
percentObama = 0.505
sdObama = 0.01
n = 1000
# Simulate n elections
simulatedPercentObama = rnorm(n,mean=percentObama,sd=sdObama)
# Calculate the percent of times Obama wins
percentObamaWin = mean(simulatedPercentObama > 0.5)
percentObamaWin
14 Notes/ Hide
-
anghraine likes this
-
magicbeanlab reblogged this from simplystatistics
-
srqm reblogged this from simplystatistics
-
altn8suniverse reblogged this from simplystatistics
-
altn8suniverse likes this
-
fancybeans reblogged this from simplystatistics
-
jhresearchlog reblogged this from simplystatistics and added:
I’ve revised your...efficiency: # Set initial parameters percentObama = 0.505 sdObama =...
-
ivanoats likes this
-
yesslynn reblogged this from simplystatistics and added:
(biostatistics Professors from Johns Hopkins University) explain why...controversy...
-
fw3030 reblogged this from simplystatistics
-
robanhk reblogged this from adamlaiacano
-
jacob likes this
-
adamlaiacano reblogged this from simplystatistics and added:
winning” actually means.
-
simplystatistics posted this