bin_probability: bin_probability

Description Usage Arguments Value Examples

Description

calculate the probability of getting k successes with probability p in n trials

Usage

1
bin_probability(k, n, p)

Arguments

k

number of successes

n

number of trials

p

probability of success

Value

the probability of getting k successes with probability p in n trials

Examples

1
2
3
bin_probability(k = 2, n = 5, p = 0.5)

bin_probability(k = 0:2, n = 5, p = 0.5)

rainayanglw/workout03 documentation built on June 1, 2019, 12:52 p.m.