mqr.inference.proportion.

test_1sample#

mqr.inference.proportion.test_1sample(count, nobs, H0_prop, alternative='two-sided', method='binom')#

Hypothesis test for the proportion of “true” elements in a sample.

Null-hypothesis

count / nobs == H0_prop

Parameters:
countint

Number of “true” observations.

nobsint

Total number of observations.

H0_propfloat

Null-hypothesis proportion.

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

Sense of alternative hypothesis. Valid for methods ‘binom’ and ‘z’; method ‘chi2’ supports only two-sided tests.

method{‘binom’, ‘chi2’, ‘z’}, optional
‘binom’
‘chi2’
‘z’
Returns:
mqr.inference.hyptest.HypothesisTest