Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: