0

This post is really helpful:

How can I efficiently calculate the binomial cumulative distribution function?

(Title = How can I efficiently calculate the binomial cumulative distribution function?)

However, I need the negative binomial cumulative distribution function.

Is there a way to tweek the code to get a negative cumulative distribution function?

Community
  • 1
  • 1
user380719
  • 9,663
  • 15
  • 54
  • 89

1 Answers1

0

You can compute the CDF by summing the terms of the PMF taking advantage of the recurrence relationship the terms satisfy. The terms in the series are a little complicated, but the ratio of consecutive terms is simple.

John D. Cook
  • 29,517
  • 10
  • 67
  • 94
  • Sorry, my mistake. I wrote "PDF" when I meant to say "CDF" -- cumulative density function. "PMF" is probability mass function, the probability of each value. – John D. Cook Oct 28 '10 at 19:40