hypothesized probability of a success. [pout]=myBinomTest(51, 235, 1/6) (generally two-tailed, but can optionally perform a one-tailed test). In Stata, use bitest. In Microsoft Excel, use Binom.Dist. The function takes parameters (Number of successes, Trials, Probability of Success, Cumulative). The "Cumulative" parameter takes a boolean True or False, with True giving the Cumulative probability of finding this many successes (a left-tailed test), and False the exact probability of finding this many successes. See also p-value Lady tasting tea experiment References External links Binomial Probability Calculator Statistical tests Articles with example R code Articles with example Python (programming language) code Articles with example MATLAB/Octave code Articles with example Java code