-
-
Save keithmcnulty/b1dce511bc1611cbf0220dbd734a27ec to your computer and use it in GitHub Desktop.
Additive process distribution
This file contains 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
library(ggplot2) | |
set.seed(123) | |
add <- replicate(10000, sum(runif(10))) | |
ggplot() + | |
geom_histogram(aes(x = add, y = ..density..), fill = "lightblue") + | |
geom_density(aes(x = add), fill = "pink", alpha = 0.4) + | |
theme_minimal() + | |
labs(x = "Sum") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment