Created
October 16, 2017 13:52
-
-
Save jmunozal/0c3acbf4f692f8f750abc2bfc8eacaed to your computer and use it in GitHub Desktop.
CLT sampling 5 values from normal distribution and histogram (R)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s <- NULL | |
for (i in 1:5000) { | |
# 5 values normal distribution mean 40 sd 6 | |
t<-sum(rnorm(5, 40, 6)) | |
s[i] <- t | |
} | |
hist(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment