mqr.inference.mean.

test_1sample#

mqr.inference.mean.test_1sample(x, H0_mean=0.0, alternative='two-sided', method='t')#

Hypothesis test for the mean of a sample.

Null-hypothesis

mean(x) == H0_mean

Parameters:
xarray_like

Test mean of this sample.

H0_meanfloat, optional

Null-hypothesis mean.

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

Sense of alternative hypothesis.

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