FUNCTION REFERENCE
binocdf
Binomial cumulative distribution function.
Binomial cumulative distribution function.
Syntax
Y = binocdf(X, N, P)Syntax
Y = binocdf(X, N, P, 'upper')P(X' <= X) for the binomial distribution with N trials (a nonnegative integer) and success probability P in [0, 1]. With 'upper' it returns P(X' > X), computed directly in that tail so small upper probabilities keep their digits. X is rounded down to an integer. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.
Example
binocdf(3, 10, 0.4)Example
binocdf(3, 10, 0.4, 'upper')These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.