Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<stats_dens_pmf_hypergeometricstats_dens_pmf_poisson>
^Statistic FunctionsLast updated: Mon, 26 Oct 2026

stats_dens_pmf_negative_binomial

(PECL stats >= 1.0.0)

stats_dens_pmf_negative_binomial — Probability mass function of the negative binomial distribution

Description

function stats_dens_pmf_negative_binomial(float $x, float $n, float $pi): float

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

Parameters

x

The value at which the probability mass is calculated

n

The number of the success of the distribution

pi

The success rate of the distribution

Return Values

The probability mass at x or false for failure.


<stats_dens_pmf_hypergeometricstats_dens_pmf_poisson>
^Statistic FunctionsLast updated: Mon, 26 Oct 2026