Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « scipy.special »

Fonction bdtri - module scipy.special

Signature de la fonction bdtri

Description

bdtri.__doc__

bdtri(x1, x2, x3, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj])

bdtri(k, n, y)

Inverse function to `bdtr` with respect to `p`.

Finds the event probability `p` such that the sum of the terms 0 through
`k` of the binomial probability density is equal to the given cumulative
probability `y`.

Parameters
----------
k : array_like
    Number of successes (float), rounded down to the nearest integer.
n : array_like
    Number of events (float)
y : array_like
    Cumulative probability (probability of `k` or fewer successes in `n`
    events).

Returns
-------
p : ndarray
    The event probability such that `bdtr(\lfloor k \rfloor, n, p) = y`.

See also
--------
bdtr
betaincinv

Notes
-----
The computation is carried out using the inverse beta integral function
and the relation,::

    1 - p = betaincinv(n - k, k + 1, y).

Wrapper for the Cephes [1]_ routine `bdtri`.

References
----------
.. [1] Cephes Mathematical Functions Library,
       http://www.netlib.org/cephes/