1
.TH cdfnbn 1 "Dec 1997" "Scilab Group" "Scilab Function"
4
cdfnbn - cumulative distribution function negative binomial distribution
7
[P,Q]=cdfnbn("PQ",S,Xn,Pr,Ompr)
8
[S]=cdfnbn("S",Xn,Pr,Ompr,P,Q)
9
[Xn]=cdfnbn("Xn",Pr,Ompr,P,Q,S)
10
[Pr,Ompr]=cdfnbn("PrOmpr",P,Q,S,Xn)
15
: six real vectors of the same size.
18
: The cumulation from 0 to S of the negative
19
binomial distribution.
23
: The upper limit of cumulation of the binomial distribution.
24
There are F or fewer failures before the XNth success.
25
Input range: [0, +infinity).
26
Search range: [0, 1E300]
29
: The number of successes.
30
Input range: [0, +infinity).
31
Search range: [0, 1E300]
34
: The probability of success in each binomial trial.
44
Calculates any one parameter of the negative binomial
45
distribution given values for the others.
47
The cumulative negative binomial distribution returns the
48
probability that there will be F or fewer failures before the
49
XNth success in binomial trials each of which has probability of
52
The individual term of the negative binomial is the probability of
53
S failures before XN successes and is
54
Choose( S, XN+S-1 ) * PR^(XN) * (1-PR)^S
56
Formula 26.5.26 of Abramowitz and Stegun, Handbook of
57
Mathematical Functions (1966) is used to reduce calculation of
58
the cumulative distribution function to that of an incomplete
61
Computation of other parameters involve a seach for a value that
62
produces the desired value of P. The search relies on the
63
monotinicity of P with the other parameter.
65
From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
66
Functions, Inverses, and Other Parameters (February, 1994)
67
Barry W. Brown, James Lovato and Kathy Russell. The University of