How to solve for small gamma in the integral equation in Scipy ? I recognize it has to be solved with both the numerical integral and a root solver (Newton's method)
$$ \int_{\gamma}^{+\infty}f(x) dx = 0.01 $$
The function f isn't a known analytical function, it is a probability distribution represented by an array of samples of a histogram.
So essentially the integral is :
$$ \sum_{k = \gamma}^{+\infty} f[k] \Delta x \approx 0.01 $$