statsmodels.stats.weightstats.DescrStatsW.zconfint_mean

method

DescrStatsW.zconfint_mean(alpha=0.05, alternative='two-sided')[source]

two-sided confidence interval for weighted mean of data

Confidence interval is based on normal distribution. If the data is 2d, then these are separate confidence intervals for each column.

Parameters
alphafloat

significance level for the confidence interval, coverage is 1-alpha

alternativestring

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, upperfloats 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