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 ncfdtri - module scipy.special

Signature de la fonction ncfdtri

Description

ncfdtri.__doc__

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

ncfdtri(dfn, dfd, nc, p)

Inverse with respect to `f` of the CDF of the non-central F distribution.

See `ncfdtr` for more details.

Parameters
----------
dfn : array_like
    Degrees of freedom of the numerator sum of squares.  Range (0, inf).
dfd : array_like
    Degrees of freedom of the denominator sum of squares.  Range (0, inf).
nc : array_like
    Noncentrality parameter.  Should be in range (0, 1e4).
p : array_like
    Value of the cumulative distribution function.  Must be in the
    range [0, 1].

Returns
-------
f : float
    Quantiles, i.e., the upper limit of integration.

See Also
--------
ncfdtr : CDF of the non-central F distribution.
ncfdtridfd : Inverse of `ncfdtr` with respect to `dfd`.
ncfdtridfn : Inverse of `ncfdtr` with respect to `dfn`.
ncfdtrinc : Inverse of `ncfdtr` with respect to `nc`.

Examples
--------
>>> from scipy.special import ncfdtr, ncfdtri

Compute the CDF for several values of `f`:

>>> f = [0.5, 1, 1.5]
>>> p = ncfdtr(2, 3, 1.5, f)
>>> p
array([ 0.20782291,  0.36107392,  0.47345752])

Compute the inverse.  We recover the values of `f`, as expected:

>>> ncfdtri(2, 3, 1.5, p)
array([ 0.5,  1. ,  1.5])