betai
Betai is a common notation in numerical libraries for the incomplete beta function, a special function with strong ties to the beta distribution. In practice, betai(a, b, x) may refer to either the incomplete beta function B_x(a, b) or its regularized form I_x(a, b), depending on the software. The incomplete beta function is foundational in probability and statistics, while the regularized version is widely used as a CDF for the Beta distribution. The safe mathematical definitions are:
- B_x(a, b) = ∫_0^x t^{a-1} (1−t)^{b−1} dt, for a > 0, b > 0, 0 ≤ x ≤ 1.
- B(a, b) = ∫_0^1 t^{a-1} (1−t)^{b−1} dt = Γ(a)Γ(b)/Γ(a+b).
- I_x(a, b) = B_x(a, b) / B(a, b), the regularized incomplete beta function.
Key properties include the symmetry I_x(a, b) = 1 − I_{1−x}(b, a) and the derivative d/dx I_x(a, b) =
Computation typically relies on stable representations such as continued fractions for the ratio I_x(a, b) when
Applications of betai (and I_x) include computing the CDF of the Beta distribution, Bayesian inference with
---