In a sequence of independent Bernoulli trials, the number of trials needed toΒ obtain π‘˜Β successes has Negative Binomial (Pascal) Distribution

Negative Binomial Distribution has two parameters:

  • π‘˜ = number of needed successes
  • 𝑝 = probability of success

With π‘˜=1, it becomes a Geometric Distribution

A Negative Binomial Variable 𝑿 can be represented as a sum of π‘˜ independent Geometric Variables (𝑋1+ … + π‘‹π‘˜):

  • 𝑿 = 𝑋1+ … + π‘‹π‘˜

Probability Mass Function

  • 𝐏(𝑋=π‘₯) = 𝐏{ the π‘₯π‘‘β„Ž Bernoulli trial results in the π‘˜π‘‘β„ŽΒ success }
  • 𝐏(𝑋=π‘₯) = 𝐏{ (π‘˜-1) successes in the first (π‘₯-1) Bernoulli trials AND the last Bernoulli trial is success }
  • 𝐏(𝑋=π‘₯) = 𝐏{ (π‘˜-1) successes in the first (π‘₯-1) trials } 𝐏{ the last trial is success }
  • 𝐏(𝑋=π‘₯) = 𝐏(𝐗=π‘˜-1; 𝑝,𝑛=π‘₯-1) 𝐏(𝑋=π‘₯) # where:
    • 𝐏(𝐗=π‘˜-1; 𝑝,𝑛=π‘₯-1) - Binomial Distribution
    • 𝐏(𝑋=π‘₯) - Bernoulli Distribution
  • 𝐏(𝑋=π‘₯) =Β [(π‘₯-1) choose (π‘˜-1)]Β (1-𝑝)π‘₯-π‘˜π‘π‘˜-1𝑝
  • 𝐏(𝑋=π‘₯) = [(π‘₯-1) choose (π‘˜-1)] (1-𝑝)π‘₯-π‘˜π‘π‘˜
  • 𝐏(𝑋=π‘₯) = [(π‘₯-1)!/[(π‘˜-1)!(π‘₯-π‘˜)!]] (1-𝑝)π‘₯-π‘˜π‘π‘˜

Expectation

𝐄[𝑿] = π‘˜/𝑝

Variance

π‘‰π‘Žπ‘Ÿ(𝑿)Β = π‘˜(1 - 𝑝) / 𝑝2

Subpages

TODO

Negative Binomial Distribution #1
  • the number of trials need to obtain k successes
  • is the sum of k i.i.d. geometric distributions
  • P(X=x) = (x-1 choose k-1) p^k (1-p)
  • E[X] Β  = k/p
  • Var[X] = k(1-p) / p
  • M_X(t) = [ pe^t / (1 - qe^t) ]
Negative Binomial Distribution #2
  • the number of failures before k successes
  • P(X=x) = (x+k-1 choose x) (1-p)^x p
  • E[X] Β  = k(1-p)/p
  • Var[X] = k(1-p)/p
  • M_X(t) = [ p / (1 - qe^t) ]