1
cdfnbn Scilab Group Scilab Function cdfnbn
3
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)
13
: six real vectors of the same size.
16
: The cumulation from 0 to S of the negative binomial distribution.
19
S : The upper limit of cumulation of the binomial distribution.
20
There are F or fewer failures before the XNth success. Input
21
range: [0, +infinity). Search range: [0, 1E300]
23
Xn : The number of successes. Input range: [0, +infinity).
24
Search range: [0, 1E300]
26
Pr : The probability of success in each binomial trial. Input
27
range: [0,1]. Search range: [0,1].
29
Ompr : 1-PR Input range: [0,1]. Search range: [0,1] PR + OMPR =
33
Calculates any one parameter of the negative binomial distribution given
34
values for the others.
36
The cumulative negative binomial distribution returns the
37
probability that there will be F or fewer failures before the XNth
38
success in binomial trials each of which has probability of success PR.
40
The individual term of the negative binomial is the probability of S
41
failures before XN successes and is Choose( S, XN+S-1 ) * PR^(XN) *
44
Formula 26.5.26 of Abramowitz and Stegun, Handbook of
45
Mathematical Functions (1966) is used to reduce calculation of the
46
cumulative distribution function to that of an incomplete beta.
48
Computation of other parameters involve a seach for a value that produces
49
the desired value of P. The search relies on the monotinicity of P
50
with the other parameter.
52
From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
53
Functions, Inverses, and Other Parameters (February, 1994) Barry W.
54
Brown, James Lovato and Kathy Russell. The University of Texas.