3.11.18. statsmodels.stats.proportion

Tests and Confidence Intervals for Binomial Proportions

Created on Fri Mar 01 00:23:07 2013

Author: Josef Perktold License: BSD-3

3.11.18.1. Functions

binom_test(count, nobs[, prop, alternative]) Perform a test that the probability of success is p.
binom_test_reject_interval(value, nobs[, ...]) rejection region for binomial test for one sample proportion
binom_tost(count, nobs, low, upp) exact TOST test for one proportion using binomial distribution
binom_tost_reject_interval(low, upp, nobs[, ...]) rejection region for binomial TOST
power_binom_tost(low, upp, nobs[, p_alt, alpha])
power_ztost_prop(low, upp, nobs, p_alt[, ...]) Power of proportions equivalence test based on normal distribution
proportion_confint(count, nobs[, alpha, method]) confidence interval for a binomial proportion
proportion_effectsize(prop1, prop2[, method]) effect size for a test comparing two proportions
proportions_chisquare(count, nobs[, value]) test for proportions based on chisquare test
proportions_chisquare_allpairs(count, nobs) chisquare test of proportions for all pairs of k samples
proportions_chisquare_pairscontrol(count, nobs) chisquare test of proportions for pairs of k samples compared to control
proportions_ztest(count, nobs[, value, ...]) test for proportions based on normal (z) test
proportions_ztost(count, nobs, low, upp[, ...]) Equivalence test based on normal distribution
samplesize_confint_proportion(proportion, ...) find sample size to get desired confidence interval length
std_prop(prop, nobs) standard error for the estimate of a proportion

3.11.18.2. Classes

AllPairsResults(pvals_raw, all_pairs[, ...]) Results class for pairwise comparisons, based on p-values