Perform a test that the probability of success is p.
This is an exact, two-sided test of the null hypothesis that the probability of success in a Bernoulli experiment is p.
Parameters: | count : integer or array_like
nobs : integer
prop : float, optional
alternative : string in [‘two-sided’, ‘smaller’, ‘larger’]
|
---|---|
Returns: | p-value : float
|
Notes
This uses scipy.stats.binom_test for the two-sided alternative.