quantile_negative_binomial


function quantile_negative_binomial(P:Real, k:Integer, ρ:Real) -> Integer

Quantile of a negative binomial distribution.

  • P: The cumulative probability.
  • k: Number of successes before the experiment is stopped.
  • ρ: Probability of success.

Return: the quantile.