nbincdf
Negative binomial cumulative distribution function (CDF).
For each element of x, compute the cumulative distribution function (CDF) at x of the negative binomial distribution with parameters n and ps. The size of p is the common size of x, n, and ps. A scalar input functions as a constant matrix of the same size as the other inputs.
The algorithm uses the cumulative sums of the binomial masses.
p = nbincdf (x, n, ps, "upper")
computes the
upper tail probability of the lognormal distribution.
When n is integer this is the Pascal distribution. When n is extended to real numbers this is the Polya distribution.
The number of failures in a Bernoulli experiment with success probability ps before the n-th success follows this distribution.
See also: nbininv, nbinpdf, nbinrnd, nbinstat
Source Code: nbincdf