Skip to content

inverse CDF for Gamma/Beta distributions #20358

@alexxthiery

Description

@alexxthiery

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3 (no schedule)We have no plan to work on this and, if it is unassigned, we would be happy to review a PRenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions