PHP.nl

stats_dens_pmf_binomial

stats_dens_pmf_binomial

Probability mass function of the binomial distribution

float **stats_dens_pmf_binomial** float $x float $n float $pi

Returns the probability mass at , where the random variable follows the binomial distribution of which the number of trials is and the success rate is . x``n``pi

xThe value at which the probability mass is calculated

nThe number of trials of the distribution

piThe success rate of the distribution

The probability mass at or false for failure. x