dst_nbinom | R Documentation |
Makes a Negative Binomial distribution, corresponding to the number of failures in a sequence of independent trials until a given number of successes are observed.
dst_nbinom(size, prob)
size |
Number of successful trials; single positive numeric. |
prob |
Probability of a successful trial; single numeric between 0 and 1. |
A Negative Binomial distribution.
d <- dst_nbinom(10, 0.5)
# This version of the Negative Binomial distribution does not count
# the successes.
range(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.