문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top