Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monogenea/95c375393d9f8c426c738c71352ddd97 to your computer and use it in GitHub Desktop.
Save monogenea/95c375393d9f8c426c738c71352ddd97 to your computer and use it in GitHub Desktop.
n <- 1:20
den <- dbinom(n, 20, 0.7)
plot(den, ylab = "Density", xlab = "Number of successes")
sum(den) # = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment