Processing math: 100%
SciPy

This is documentation for an old release of SciPy (version 0.18.1). Search for this page in the documentation of the latest stable release (version 1.15.1).

scipy.special.btdtri

scipy.special.btdtri(a, b, p) = <ufunc 'btdtri'>

The p-th quantile of the beta distribution.

This function is the inverse of the beta cumulative distribution function, btdtr, returning the value of x for which btdtr(a, b, x) = p, or

p=x0Γ(a+b)Γ(a)Γ(b)ta1(1t)b1dt
Parameters:

a : array_like

Shape parameter (a > 0).

b : array_like

Shape parameter (b > 0).

p : array_like

Cumulative probability, in [0, 1].

Returns:

x : ndarray

The quantile corresponding to p.

See also

betaincinv, btdtr

Notes

The value of x is found by interval halving or Newton iterations.

Wrapper for the Cephes [R329] routine incbi, which solves the equivalent problem of finding the inverse of the incomplete beta integral.

References

[R329](1, 2) Cephes Mathematical Functions Library, http://www.netlib.org/cephes/index.html

Previous topic

scipy.special.btdtr

Next topic

scipy.special.btdtria