DescrStatsW.tconfint_mean()
statsmodels.stats.weightstats.DescrStatsW.tconfint_mean
-
DescrStatsW.tconfint_mean(alpha=0.05, alternative='two-sided')
[source] -
two-sided confidence interval for weighted mean of data
If the data is 2d, then these are separate confidence intervals for each column.
Parameters: alpha : float
significance level for the confidence interval, coverage is
1-alpha
alternative : string
This specifies the alternative hypothesis for the test that corresponds to the confidence interval. The alternative hypothesis, H1, has to be one of the following
‘two-sided’: H1: mean not equal to value (default) ‘larger’ : H1: mean larger than value ‘smaller’ : H1: mean smaller than value
Returns: lower, upper : floats or ndarrays
lower and upper bound of confidence interval
Notes
In a previous version, statsmodels 0.4, alpha was the confidence level, e.g. 0.95
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.weightstats.DescrStatsW.tconfint_mean.html