statsmodels.stats.weightstats.CompareMeans.ttest_ind#
- CompareMeans.ttest_ind(alternative='two-sided', usevar='pooled', value=0)[source]#
ttest for the null hypothesis of identical means
this should also be the same as onewaygls, except for ddof differences
- Parameters:
- alternative{“two-sided”, “larger”, “smaller”},
optional The alternative hypothesis, H1, has to be one of the following ‘two-sided’: H1: difference in means not equal to value (default) ‘larger’ : H1: difference in means larger than value ‘smaller’ : H1: difference in means smaller than value
- usevar{“pooled”, “unequal”},
optional If
pooled, then the standard deviation of the samples is assumed to be the same. Ifunequal, then Welch ttest with Satterthwait degrees of freedom is used- value
float,optional difference between the means under the Null hypothesis.
- alternative{“two-sided”, “larger”, “smaller”},
- Returns:
Notes
The result is independent of the user specified ddof.