| Statistics Toolbox | Search  Help Desk |
| nbinpdf | Examples See Also |
Negative binomial probability density function.
Syntax
Y = nbinpdf(X,R,P)
Description
nbinpdf(X,R,P) returns the negative binomial probability density function with parameters R and P at the values in X.
Note that the density function is zero unless X is an integer.
The size of Y is the common size of the input arguments. A scalar input functions as a constant matrix of the same size as the other inputs.
The negative binomial pdf is: 
P, of success. The parameter, R, is the number of successes required before stopping.
Example
x = (0:10); y = nbinpdf(x,3,0.5); plot(x,y,'+') set(gca,'Xlim',[-0.5,10.5])
![]()
See Also
nbincdf,nbininv,nbinrnd,nbinstat,