Description Usage Arguments Value Examples
View source: R/Functions_Workout3.R
bin_probability
1 | bin_probability(k, n, p)
|
k |
numeric value for number of successes |
n |
numeric value for number of trials |
p |
numeric value for probability of one success |
probability of k successes
1 2 3 4 5 6 7 8 | #probability of 2 successes in 5 trials with success rate of 0.5
bin_probability(2, 5, 0.5)
#probability of 0:2 successes in 5 trials with success rate of 0.5
bin_probability(0:2, 5, 0.5)
#probability of 55 successes in 100 trials with success rate of 0.45
bin_probability(55, 100, .45)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.