diff_binom_confint.ConfidenceInterval#

class diff_binom_confint.ConfidenceInterval(lower_bound: float, upper_bound: float, estimate: float, level: float, method: str, sides: str = 'two-sided')[source]#

Dataclass for holding meta information of a confidence interval.

lower_bound#

The lower bound of the confidence interval.

Type:

float

upper_bound#

The upper bound of the confidence interval.

Type:

float

estimate#

Estimate of (the difference of) the binomial proportion.

Type:

float

level#

Confidence level, should be inside the interval (0, 1).

Type:

float

method#

Computation method of the confidence interval.

Type:

str

sides#

Sides of the confidence interval, should be one of

  • “two-sided” (aliases “2-sided”, “two_sided”, “2_sided”, “2-sides”, “two_sides”, “two-sides”, “2_sides”, “ts”, “t”, “two”, “2”),

  • “left-sided” (aliases “left_sided”, “left”, “ls”, “l”),

  • “right-sided” (aliases “right_sided”, “right”, “rs”, “r”),

case insensitive.

Type:

str, default “two-sided”

__init__(lower_bound: float, upper_bound: float, estimate: float, level: float, method: str, sides: str = 'two-sided') None#

Methods

__init__(lower_bound, upper_bound, estimate, ...)

astuple()

Attributes

sides

lower_bound

upper_bound

estimate

level

method