Skip to content

Instantly share code, notes, and snippets.

@daviddalpiaz
Created October 11, 2016 21:13
Show Gist options
  • Save daviddalpiaz/7a47f41fabc0518a748cd1c512746517 to your computer and use it in GitHub Desktop.
Save daviddalpiaz/7a47f41fabc0518a748cd1c512746517 to your computer and use it in GitHub Desktop.
obs = replicate(10000, sum(runif(n = 48, min = -0.5, max = 0.5)))
hist(obs, breaks = 25, col = "darkorange", border = "dodgerblue")
mean(abs(obs) < 1 * 2)
mean(abs(obs) < 2 * 2)
mean(abs(obs) < 3 * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment