scipy.stats.mstats.median_cihs#

scipy.stats.mstats.median_cihs(data, alpha=0.05, axis=None)[source]#

Computes the alpha-level confidence interval for the median of the data.

Uses the Hettmasperger-Sheather method.

Parameters:
dataarray_like

Input data. Masked values are discarded. The input should be 1D only, or axis should be set to None.

alphafloat, optional

Confidence level of the intervals.

axisint or None, optional

Axis along which to compute the quantiles. If None, use a flattened array.

Returns:
median_cihs

Alpha level confidence interval.