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’Calls
sm..binom_test
.‘chi2’Callssm..proportions_chisquare
.‘z’Callssm..proportions_ztest
.
- Returns: