statsmodels.stats.nonparametric.RankCompareResult.conf_int

RankCompareResult.conf_int(value=None, alpha=0.05, alternative='two-sided')[source]

Confidence interval for probability that sample 1 has larger values

Confidence interval is for the shifted probability

P(x1 > x2) + 0.5 * P(x1 = x2) - value

Parameters:
  • value (float) – Value, default 0, shifts the confidence interval, e.g. value=0.5 centers the confidence interval at zero.

  • 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: prob - value not equal to 0.

    • ’larger’ : H1: prob - value > 0

    • ’smaller’ : H1: prob - value < 0

Returns:

  • lower (float or ndarray) – Lower confidence limit. This is -inf for the one-sided alternative “smaller”.

  • upper (float or ndarray) – Upper confidence limit. This is inf for the one-sided alternative “larger”.