Re:Statistics for Hackers [video]
by kensai on Wednesday June 15, 2016 @02:23PM
(#11911000)
Really nice. Is there a similar video in R?
[ Parent
| on HN ]
Is python matters here?
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)