statsmodels.stats.proportion.binom_test_reject_interval#

statsmodels.stats.proportion.binom_test_reject_interval(value, nobs, alpha=0.05, alternative='two-sided')[source]#

Rejection region for binomial test for one sample proportion

The interval includes the end points of the rejection region.

Parameters:
valuefloat

proportion under the Null hypothesis

nobsint

the number of trials or observations.

alphafloat

Significance level of the test, default 0.05.

alternativestr in [‘two-sided’, ‘smaller’, ‘larger’]

alternative hypothesis, which can be two-sided or either one of the one-sided tests.

Returns:
x_low, x_uppint

lower and upper bound of rejection region