| Each probability distribution in R has an r*** function (for “random”), a
| d*** function (for “density”), a p*** (for “probability”), and q*** (for
| “quantile”). We are most interested in the r*** functions in this lesson, but
| I encourage you to explore the others on your own.
dbinom(x, size, prob, log = FALSE)
pbinom(q, size, prob, lower.tail = TRUE, log.p = FALSE)
qbinom(p, size, prob, lower.tail = TRUE, log.p = FALSE)
rbinom(n, size, prob)
The Poisson Distribution
Density, distribution function, quantile function and random generation for the Poisson distribution with parameter lambda.
dpois(x, lambda, log = FALSE)
ppois(q, lambda, lower.tail = TRUE, log.p = FALSE)
qpois(p, lambda, lower.tail = TRUE, log.p = FALSE)
rpois(n, lambda)
| All of the standard probability distributions are built into R, including
| exponential (rexp()), chi-squared (rchisq()), gamma (rgamma()), ….