jax.scipy.stats.binom.logpmf#
- jax.scipy.stats.binom.logpmf(k, n, p, loc=0)[source]#
Binomial log probability mass function.
JAX implementation of
scipy.stats.binom
logpmf
.The binomial probability mass function is defined as
\[f(k, n, p) = {n \choose k}p^k(1-p)^{n-k}\]for \(0\le p\le 1\) and non-negative integers \(k\).
- 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 logpmf values.
- Return type:
See also