jax.scipy.stats.betabinom.pmf

Contents

jax.scipy.stats.betabinom.pmf#

jax.scipy.stats.betabinom.pmf(k, n, a, b, loc=0)[source]#

Beta-binomial probability mass function.

JAX implementation of scipy.stats.betabinom pmf.

The beta-binomial distribution’s probability mass function is defined as

\[f(k, n, a, b) = {n \choose k}\frac{B(k+a,n-k-b)}{B(a,b)}\]

where \(B(a, b)\) is the beta() function. It is defined for \(n\ge 0\), \(a>0\), \(b>0\), and non-negative integers k.

Parameters:
Returns:

array of pmf values

Return type:

Array