Skip to content

The inverse of the regularized incomplete beta function #1581

@leandrolcampos

Description

@leandrolcampos

Hello TFP community,

I’d like to work on the implementation of the inverse of the regularized incomplete beta function (special.betaincinv in SciPy).

To do this, I plan to study the following references:

  • Majumder, Kantilal L., and G. P. Bhattacharjee. “Algorithm AS 64: Inverse of the incomplete beta function ratio.” Journal of the Royal Statistical Society. Series C (Applied Statistics) 22.3 (1973): 411-414. Link: https://www.jstor.org/stable/2346798.

  • Cran, G. W., K. J. Martin, and G. E. Thomas. “Remark as r19 and algorithm as 109: A remark on algorithms: As 63: The incomplete beta integral as 64: Inverse of the incomplete beta function ratio.” Journal of the Royal Statistical Society. Series C (Applied Statistics) 26.1 (1977): 111-114. Link: https://www.jstor.org/stable/2346887.

  • Berry, K. J., and P. W. Mielke. “A remark on algorithm AS 109: inverse of the incomplete beta function ratio.” Applied statistics 39.2 (1990): 309-310. Link: https://www.jstor.org/stable/2347779.

  • YouTube video “Newton Bisection Hybrid (Newt-Safe)”. Link: https://youtu.be/FD3BPTMGJds.

For the partial derivatives, I can take advantage of the fact that this function and tfp_math.betainc are inverses of each other (the same strategy used for computing the gradients of tfp_math.igammainv). By the way, I worked on some improvements for evaluating the partial derivatives of tfp_math.betainc: see the PR #1580.

Can I work on this task?

All the best,

Leandro Campos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions