To implement the negative binomial distribution using R programming.
dnbinom(x, size= ,prob=)
pnbinom(x, size= ,prob=)
qnbinom(p, size= ,prob=)
rnbinom(x, size= ,prob=)
#Negative Binomial Distribution
#dnbinom
x y plot(x,y,col=”blue”)
#pnbinom
y plot(x,y,col=”red”)
#qnbinom
y print(y)
#rnbinom
x hist(x,col=285)