Closed
Description
Before
No response
After
No response
Context for the issue:
I would like to initiate this matter to formally request the inclusion of the following functions:
betaincinv
: Inverse of the regularized incomplete beta function, or quantile function for the beta distribution.gammaincinv
: Inverse to the regularized lower incomplete gamma function.
The implementation of these functions will allow us to implement quantile/ICDF functions for distributions like Beta, Gamma, ChiSquared and StudentT distributions, being fundamental to the issue: pymc-devs/pymc#6845
Some references I think might be useful:
betaincinv
function in SciPy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.gammaincinv.htmlgammaincinv
function in SciPy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.betaincinv.html- CEPHES implementation of betaincinv: https://github.com/scipy/scipy/blob/main/scipy/special/cephes/incbi.c
- CEPHES implementation of gammaincinv: https://github.com/scipy/scipy/blob/main/scipy/special/cephes/igami.c
- Very neat implementation of betaincinv for TensorFlow probability: The inverse of the regularized incomplete beta function tensorflow/probability#1581