Click or drag to resize

Negative Binomial

The negative binomial distribution is a discrete probability distribution of the number of successes in a sequence of Bernoulli trials before a specified (non-random) number r of failures occurs.

Suppose there is a sequence of independent Bernoulli trials, each trial having two potential outcomes called “success” and “failure”. In each trial the probability of success is p and of failure is (1 − p). We are observing this sequence until a predefined number r of failures has occurred. Then the random number of successes we have seen, X, will have the negative binomial distribution:

DNBinomial

This topic contains the following sections:

Constructor

Constructor

Description

Performance

set success probability and number of failures

Creates new instance of NegativeBinomial with user specified parameters.

methodNegativeBinomial(Int32, Double)

set random generator

Creates new instance of NegativeBinomial with user specified parameters and generator.

methodNegativeBinomial(RandomGenerator, Int32, Double)

Methods

Method

Description

Performance

sample

Generate random variable sample.

methodSample

Fill in array with random variable series in place:

methodSample(Int32)

Static method which generates new sample of negative binomial distribution variate with specified parameters:

StaticSample(Int32, Double)

StaticSample(RandomGenerator, Int32, Double)

pmf

Probability mass function.

DNBinomial Pmf

methodPmf(Int32)

Static probability mass function.

StaticPmf(Int32, Int32, Double)

cdf

Cumulative distribution function.

DNBinomial Cdf

methodCdf(Int32)

Static cumulative distribution function.

StaticCdf(Int32, Int32, Double)

inverse cdf

Inverse cumulative distribution function. Is useful for quantile calculation. Function will return value of random variable such that likelihood for this random variable to occur less than or equal to returned value equal to specified pvalue parameter.

StaticInverseCdf(Double, Int32, Double)

Properties

Property

Description

Performance

number of failures

Number of failures until the experiment is stopped.

PropertyNumberOfFailures

success probability

Success probability in each trial.

PropertySuccessProbability

mean

Mean of the distribution.

DNBin Mean

PropertyMean

mode

Mode of distribution.

DNBin Mode

PropertyMode

kurtosis

Excess Kurtosis of distribution.

DNBin Kurtosis

PropertyKurtosis

skewness

Skewness of distribution.

DNBin Skewness

PropertySkewness

variance

Variance of the distribution.

DNBin Variance

PropertyVariance