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 ? Programmation Python
Les compléments
Voir le programme détaillé
Module « scipy.stats.mstats »

Fonction ttest_ind - module scipy.stats.mstats

Signature de la fonction ttest_ind

def ttest_ind(a, b, axis=0, equal_var=True, alternative='two-sided') 

Description

help(scipy.stats.mstats.ttest_ind)

Calculates the T-test for the means of TWO INDEPENDENT samples of scores.

Parameters
----------
a, b : array_like
    The arrays must have the same shape, except in the dimension
    corresponding to `axis` (the first, by default).
axis : int or None, optional
    Axis along which to compute test. If None, compute over the whole
    arrays, `a`, and `b`.
equal_var : bool, optional
    If True, perform a standard independent 2 sample test that assumes equal
    population variances.
    If False, perform Welch's t-test, which does not assume equal population
    variance.

    .. versionadded:: 0.17.0
alternative : {'two-sided', 'less', 'greater'}, optional
    Defines the alternative hypothesis.
    The following options are available (default is 'two-sided'):

    * 'two-sided': the means of the distributions underlying the samples
      are unequal.
    * 'less': the mean of the distribution underlying the first sample
      is less than the mean of the distribution underlying the second
      sample.
    * 'greater': the mean of the distribution underlying the first
      sample is greater than the mean of the distribution underlying
      the second sample.

    .. versionadded:: 1.7.0

Returns
-------
statistic : float or array
    The calculated t-statistic.
pvalue : float or array
    The p-value.

Notes
-----
For more details on `ttest_ind`, see `scipy.stats.ttest_ind`.



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