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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « scipy.special »

Fonction nctdtridf - module scipy.special

Signature de la fonction nctdtridf

def nctdtridf(*args, **kwargs) 

Description

help(scipy.special.nctdtridf)

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

nctdtridf(p, nc, t, out=None)

Calculate degrees of freedom for non-central t distribution.

See `nctdtr` for more details.

Parameters
----------
p : array_like
    CDF values, in range (0, 1].
nc : array_like
    Noncentrality parameter. Should be in range (-1e6, 1e6).
t : array_like
    Quantiles, i.e., the upper limit of integration.
out : ndarray, optional
    Optional output array for the function results

Returns
-------
df : scalar or ndarray
    The degrees of freedom. If all inputs are scalar, the return will be a
    float. Otherwise, it will be an array.

See Also
--------
nctdtr :  CDF of the non-central `t` distribution.
nctdtrit : Inverse CDF (iCDF) of the non-central t distribution.
nctdtrinc : Calculate non-centrality parameter, given CDF iCDF values.

Examples
--------
>>> from scipy.special import nctdtr, nctdtridf

Compute the CDF for several values of `df`:

>>> df = [1, 2, 3]
>>> p = nctdtr(df, 0.25, 1)
>>> p
array([0.67491974, 0.716464  , 0.73349456])

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

>>> nctdtridf(p, 0.25, 1)
array([1., 2., 3.])


Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé