7.10.7.2. statsmodels.stats.weightstats.CompareMeans

class statsmodels.stats.weightstats.CompareMeans(d1, d2)[source]

class for two sample comparison

The tests and the confidence interval work for multi-endpoint comparison: If d1 and d2 have the same number of rows, then each column of the data in d1 is compared with the corresponding column in d2.

Parameters:d1, d2 : instances of DescrStatsW

Notes

The result for the statistical tests and the confidence interval are independent of the user specified ddof.

TODO: Extend to any number of groups or write a version that works in that case, like in SAS and SPSS.

assume d1, d2 hold the relevant attributes

__init__(d1, d2)[source]

assume d1, d2 hold the relevant attributes

Methods

__init__(d1, d2) assume d1, d2 hold the relevant attributes
dof_satt() degrees of freedom of Satterthwaite for unequal variance
std_meandiff_pooledvar() variance assuming equal variance in both data sets
std_meandiff_separatevar()
tconfint_diff([alpha, alternative, usevar]) confidence interval for the difference in means
ttest_ind([alternative, usevar, value]) ttest for the null hypothesis of identical means
ttost_ind(low, upp[, usevar]) test of equivalence for two independent samples, base on t-test
zconfint_diff([alpha, alternative, usevar]) confidence interval for the difference in means
ztest_ind([alternative, usevar, value]) z-test for the null hypothesis of identical means
ztost_ind(low, upp[, usevar]) test of equivalence for two independent samples, based on z-test