Discrete random variable

Negative binomial distribution

The negative binomial distribution 𝑋 NBin(𝑟,𝑝) describes the number of failures of independent Bernoulli trials with success probability 𝑝 before the 𝑟-th success. #m/def/prob It is thus the sum of 𝑟 independent geometrically distributed variables, whence follows the probability mass function

(𝑋=𝑥)=𝑝𝑟(𝑥+𝑟1𝑟1)(1𝑝)𝑥
Proof by induction

In the case 𝑋 NBin(1,𝑝) it reduces to the Geometric distribution 𝑋 Geom(𝑝). Now assume the probability mass function above is valid for 𝑋𝑟 NBin(𝑟,𝑝). Let 𝑌 Geom(𝑝) be independent so that 𝑋𝑟+1 =𝑋𝑟 +𝑌 NBin(𝑟 +1,𝑝). Then

(𝑋𝑟+1=𝑥)=(𝑋𝑟+𝑌=𝑥)=𝑥𝑖=0(𝑋𝑟+𝑌=𝑥𝑋𝑟=𝑖)(𝑋𝑟=𝑖)=𝑥𝑖=0(𝑌=𝑥𝑖)(𝑋𝑟=𝑖)=𝑥𝑖=0(1𝑝)𝑥𝑖𝑝𝑝𝑟(𝑖+𝑟1𝑟1)(1𝑝)𝑖=𝑝𝑟+1(1𝑝)𝑥𝑥𝑖=0(𝑖+𝑟1𝑟1)=𝑝𝑟+1(𝑥+𝑟𝑟)(1𝑝)𝑥

where on the final line we invoked ^P5.

Properties

Let 𝑋 NBin(𝑟,𝑝) and 𝑞 =1 𝑝

  1. Expectation: 𝜇 =𝔼[𝑋] =𝑟𝑞𝑝
  2. Variance: 𝜎2 =Var[𝑋] =𝑟𝑞𝑝2
  3. Moment-generating function: 𝑀𝑋(𝑡) =(𝑝1𝑞e𝑡)𝑟 for 𝑞e𝑡 <1
  4. Probability generating function: 𝑔𝑋(𝑡) =(𝑝1𝑞𝑡)𝑟
Proof of 1–3

^P1 follows from ^P1 by linearity of expectation, while ^P2 follows from ^P2 by ^P3 ^P3 follows from ^P3 by ^P1.

Relationship to other distributions


#state/develop | #lang/en | #SemBr