statsmodels.stats.weightstats._tconfint_generic#
- statsmodels.stats.weightstats._tconfint_generic(mean, std_mean, dof, alpha, alternative)[source]#
generic t-confint based on summary statistic
- Parameters:
- mean
floatorndarray Point estimate, for example the mean or the difference of means of two samples.
- std_mean
floatorndarray Standard error of mean.
- dof
intorfloat Degrees of freedom
- alpha
float Significance level for the confidence interval, coverage is
1-alpha.- alternative
str The alternative hypothesis, H1, has to be one of the following
‘two-sided’ : H1:
meannot equal to the null value.‘larger’ : H1:
meanlarger than the null value.‘smaller’ : H1:
meansmaller than the null value.
- mean
- Returns: