I want to use the python function scipy.stats.nbinom.isf(q, n, p) to calculate how many times i have to simulate in my Monte-Carlo simulation until i have 95% of successes. But I have some problems understanding the official documentation. What does the q in the input refer to ? Is it the fraction of success, so 95% in my case ? And what does the survival function return?
Thank you in advance :)