jax.scipy.stats.nbinom.logpmf#
- jax.scipy.stats.nbinom.logpmf(k, n, p, loc=0)[source]#
Negative-binomial log probability mass function.
JAX implementation of
scipy.stats.nbinom
logpmf
.The negative-binomial probability mass function is given by
\[f(k) = {{k+n-1} \choose {n-1}}p^n(1-p)^k\]for \(k \ge 0\) and \(0 \le p \le 1\).
- Parameters:
k (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, value at which to evaluate the PMF
n (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, distribution shape parameter
p (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, distribution shape parameter
loc (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, distribution offset parameter
- Returns:
array of logpdf values.
- Return type:
See also