cdf_negative_binomial

function cdf_negative_binomial(x:Integer, k:Integer, ρ:Real) -> Real

CDF of a negative binomial variate.

  • x: The variate (number of failures).
  • k: Number of successes before the experiment is stopped.
  • ρ: Probability of success.

Return: the cumulative probability.