binomial probabilities
r = binomial_prob(n,p,k)
positive integer
real number
nonnegative integer
real number or vector of real numbers
binomial_prob(n,p)
returns a row vector of probabilities
p(X=k)
for k
beginning
at 0 to n
when X
follows a binomial distribution
with parameters n
and p
.
binomial_prob(n,p,k)
returns the probability
p(X=k)
for k
between 0 and
n
when X
follows a binomial distribution with
parameters n
and p
.