bnp = binopdf(x, nt, p) returns the probability density function of the binomial distribution with parameters nt and p.
where and
. With
and
. Given a number of success
and sample size
, the Maximum Likelihood Estimates (MLE) of
is
.