statsmodels.stats.proportion.binom_test(count, nobs, prop=0.5, alternative='twosided')
[source]
Perform a test that the probability of success is p.
This is an exact, twosided test of the null hypothesis that the probability of success in a Bernoulli experiment is p
.
Parameters: 


Returns: 
pvalue – The pvalue of the hypothesis test 
Return type: 
float 
This uses scipy.stats.binom_test for the twosided alternative.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.proportion.binom_test.html