-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Hi!
I was wondering whether there is a way to get an equivalent of the Gamma/Beta (and other standard distributions) quantile function: scipy.stats.gamma.ppf
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gamma.html
https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.gammaincinv.html
The inverse cumulative function is already implemented for the Gaussian distribution, but not for the Gamma / Beta distributions.
Although this may not be the best way to do so [1], this could be useful for using the "reparametrization trick" for Gamma / Beta distributions.
Thanks!
Alex.
[1]: Figurnov, Mikhail, Shakir Mohamed, and Andriy Mnih. "Implicit reparameterization gradients." Advances in neural information processing systems 31 (2018).