This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).
An exact (two-sided) test of the null hypothesis that the probability of success in a Bernoulli experiment is p.
Inputs:
- x – Number of successes (or a vector of length 2 giving the
- number of successes and number of failures respectively)
n – Number of trials (ignored if x has length 2) p – Hypothesized probability of success