skbio.stats.power.confidence_bound#

skbio.stats.power.confidence_bound(vec, alpha=0.05, df=None, axis=None)[source]#

Calculate a confidence bound assuming a normal distribution.

Parameters:
vecarray_like

The array of values to use in the bound calculation.

alphafloat, optional

The critical value, used for the confidence bound calculation.

dffloat, optional

The degrees of freedom associated with the distribution. If None is given, df is assumed to be the number of elements in specified axis.

axispositive int, optional

The axis over which to take the deviation. When axis is None, a single value will be calculated for the whole matrix.

Returns:
boundfloat

The confidence bound around the mean. The confidence interval is [mean - bound, mean + bound].