Expand description
Inverses of the regularized incomplete gamma and beta functions (SciPy’s gammaincinv,
gammainccinv and betaincinv): an initial approximation, then Halley’s method on the
function itself, whose first two derivatives are known in closed form.
See the book entry Log-domain functions and inverse incomplete integrals.
Functions§
- betaincinv
- The
x ∈ [0, 1]withI_x(a, b) = p(SciPy’sbetaincinv). The start is the normal-based approximation of Abramowitz and Stegun 26.5.22 fora, b ≥ 1and the small-xand small-1 − xpower laws otherwise; then Halley steps withI' = x^{a−1}(1−x)^{b−1} / B(a, b). - gammainccinv
- The
x ≥ 0withQ(a, x) = 1 − P(a, x) = q(SciPy’sgammainccinv). Both inverses iterate on the smaller of the two tails,PorQ, which is computed with full relative accuracy; the other target is formed exactly, since1 − tis exact fort ∈ [½, 1]. - gammaincinv
- The
x ≥ 0withP(a, x) = p(SciPy’sgammaincinv). The start is the Wilson-Hilferty approximation fora > 1and the small-xseries fora ≤ 1; then Halley stepsx ← x − u / (1 − ½ u ((a−1)/x − 1))withu = (P − p)/P'andP' = x^{a−1} e^{−x} / Γ(a).