mqr.inference.mean.

test_2sample#

mqr.inference.mean.test_2sample(x, y, H0_diff=0.0, pooled=True, alternative='two-sided', method='t')#

Hypothesis test for the difference between means of two unpaired samples.

Null-hypothesis

mean(x) - mean(y) == H0_diff

Parameters:
x, yarray_like

Test the difference between means of these samples.

H0_difffloat, optional

Null-hypothesis difference.

pooledbool, optional

True when the samples are taken from the same population, False otherwise.

alternative{‘two-sided’, ‘less’, ‘greater’}, optional

Sense of alternative hypothesis.

method{‘t’, ‘z’}, optional
‘t’
Test based on Student’s t distribution Calls sm..ttest_ind.
‘z’
Test based on z-score. Calls sm..ztest.
Returns:
mqr.inference.hyptest.HypothesisTest