Re:Statistics for Hackers [video]
by babo on Wednesday June 15, 2016 @06:07PM
(#11912520)
Is python matters here?
[ Parent
| on HN ]
No. Does your comment answer my own question?
Is that code answers your question? No offense but the main message of that talk is if you can do a for loop than you can do statistics simulation in any programming environment. Like in R.
m <- 0 nexp <- 100000
for (i in 1:nexp) { if (sum(rnorm(30, mean=0, sd=1) < 0) >= 22) { m <- m + 1 } }
print(m / nexp)