mqr.inference.mean.

confint_2sample#

mqr.inference.mean.confint_2sample(x, y, conf=0.95, pooled=True, bounded='both', method='t')#

Confidence interval for difference of two unpaired means.

Parameters:
x, yarray_like

Calculate interval for difference between means of these samples.

conffloat

Confidence level that determines the width of the interval.

pooledbool

When True, the samples have the same variance, False otherwise.

bounded{‘both’, ‘below’, ‘above’}, optional

Which sides of the interval to close.

method{‘t’, ‘z’}, optional
‘t’
Interval based on Student’s t distribution. Calls sm..tconfint_diff.
‘z’
Interval based on z-scores. Calls sm..zconfint_diff.
Returns:
mqr.inference.confint.ConfidenceInterval