bdtri#
- scipy.special.bdtri(k,n,y,out=None)#
Inverse function to
bdtrwith respect top.Finds the event probabilityp such that the sum of the terms 0 throughk of the binomial probability density is equal to the given cumulativeprobabilityy.
- Parameters:
- karray_like
Number of successes (float), rounded down to the nearest integer.
- narray_like
Number of events (float)
- yarray_like
Cumulative probability (probability ofk or fewer successes innevents).
- outndarray, optional
Optional output array for the function values
- Returns:
- pscalar or ndarray
The event probability such thatbdtr(lfloor k rfloor, n, p) = y.
See also
Notes
The computation is carried out using the inverse beta integral functionand the relation,:
1-p=betaincinv(n-k,k+1,y).
Wrapper for the Cephes[1] routine
bdtri.Array API Standard Support
bdtrihas experimental support for Python Array API Standard compatiblebackends in addition to NumPy. Please consider testing these featuresby setting an environment variableSCIPY_ARRAY_API=1and providingCuPy, PyTorch, JAX, or Dask arrays as array arguments. The followingcombinations of backend and device (or other capability) are supported.Library
CPU
GPU
NumPy
✅
n/a
CuPy
n/a
✅
PyTorch
✅
⛔
JAX
⚠️ no JIT
⛔
Dask
✅
n/a
SeeSupport for the array API standard for more information.
References
[1]Cephes Mathematical Functions Library,http://www.netlib.org/cephes/