(PECL stats >= 1.0.0)
stats_dens_pmf_binomial — Probability mass function of the binomial distribution
$x
, float $n
, float $pi
): float
Returns the probability mass at x
, where the random variable
follows the binomial distribution of which the number of trials is n
and the success rate is pi
.
x
The value at which the probability mass is calculated
n
The number of trials of the distribution
pi
The success rate of the distribution
The probability mass at x
or false
for failure.