The beta function was studied by Leonhard Euler and Adrien-Marie Legendre and was given its name by Jacques Binet; its symbol Β is a Greek capital beta.
Properties
The beta function is symmetric, meaning that
for all inputs and .[1]
A key property of the beta function is its close relationship to the gamma function:[1]
The beta function is also closely related to binomial coefficients. When m (or n, by symmetry) is a positive integer, it follows from the definition of the gamma function Γ that[1]
Relationship to the gamma function
To derive this relation, write the product of two factorials as integrals. Since they are integrals in two separate variables, we can combine them into an iterated integral:
Changing variables by u = st and v = s(1 − t), because u + v = s and u / (u+v) = t, we have that the limits of integrations for s are 0 to ∞ and the limits of integration for t are 0 to 1. Thus produces
Dividing both sides by gives the desired result.
The stated identity may be seen as a particular case of the identity for the integral of a convolution. Taking
one has:
See The Gamma Function, page 18–19[2] for a derivation of this relation.
If on the other hand x is large and y is fixed, then
Other identities and formulas
The integral defining the beta function may be rewritten in a variety of ways, including the following:
where in the second-to-last identity n is any positive real number. One may move from the first integral to the second one by substituting .
For values we have:
The beta function can be written as an infinite sum[3]
If and are equal to a number we get:
where is the rising factorial,
and as an infinite product
The beta function satisfies several identities analogous to corresponding identities for binomial coefficients, including a version of Pascal's identity
The positive integer values of the beta function are also the partial derivatives of a 2D function: for all nonnegative integers and ,
where
The Pascal-like identity above implies that this function is a solution to the first-order partial differential equation
The incomplete beta function, a generalization of the beta function, is defined as[7][8]
For x = 1, the incomplete beta function coincides with the complete beta function. For positive integers a and b, the incomplete beta function will be a polynomial of degree a + b − 1 with rational coefficients.
By the substitution and , we can show that
The regularized incomplete beta function (or regularized beta function for short) is defined in terms of the incomplete beta function and the complete beta function:
converges rapidly when is not close to 1. The and convergents are less than , while the and convergents are greater than .
For , the function may be evaluated more efficiently using .[8]
Multivariate beta function
The beta function can be extended to a function with more than two arguments:
This multivariate beta function is used in the definition of the Dirichlet distribution. Its relationship to the beta function is analogous to the relationship between multinomial coefficients and binomial coefficients. For example, it satisfies a similar version of Pascal's identity:
Applications
The beta function is useful in computing and representing the scattering amplitude for Regge trajectories. Furthermore, it was the first known scattering amplitude in string theory, first conjectured by Gabriele Veneziano. It also occurs in the theory of the preferential attachment process, a type of stochastic urn process. The beta function is also important in statistics, e.g. for the beta distribution and beta prime distribution. As briefly alluded to previously, the beta function is closely tied with the gamma function and plays an important role in calculus.
Software implementation
Even if unavailable directly, the complete and incomplete beta function values can be calculated using functions commonly included in spreadsheet or computer algebra systems.
In Microsoft Excel, for example, the complete beta function can be computed with the GammaLn function (or special.gammaln in Python's SciPy package):
Value = Exp(GammaLn(a) + GammaLn(b) − GammaLn(a + b))
This result follows from the properties listed above.
The incomplete beta function cannot be directly computed using such relations and other methods must be used. In GNU Octave, it is computed using a continued fraction expansion.
The incomplete beta function has existing implementation in common languages. For instance, betainc (incomplete beta function) in MATLAB and GNU Octave, pbeta (probability of beta distribution) in R and betainc in SymPy. In SciPy, special.betainc computes the regularized incomplete beta function—which is, in fact, the cumulative beta distribution. To get the actual incomplete beta function, one can multiply the result of special.betainc by the result returned by the corresponding beta function. In Mathematica, Beta[x, a, b] and BetaRegularized[x, a, b] give and , respectively.
Press, W. H.; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007), "Section 6.1 Gamma Function, Beta Function, Factorials", Numerical Recipes: The Art of Scientific Computing (3rd ed.), New York: Cambridge University Press, ISBN 978-0-521-88068-8, archived from the original on 2021-10-27, retrieved 2011-08-09