The beta function, denoted , is a function of two variables defined, for parameters with positive real parts, by
It is closely related to the gamma function through
The beta function provides exact values for many definite integrals, supplies the normalizing constant of the beta distribution, and extends to complex parameters by analytic continuation. Its incomplete forms are important in probability calculations and statistical computation.
Definition and convergence
For real parameters and , the defining integral is positive and finite. Its convergence is determined by the two endpoints:
- Near , the integrand behaves like , which is integrable precisely when .
- Near , it behaves like , which is integrable precisely when .
For complex parameters, the same integral converges absolutely when
Because and are positive inside the interval of integration, their complex powers are unambiguously defined using their real logarithms:
The integral defines an analytic function of both parameters in this domain. Values outside it require an extension of the function rather than ordinary evaluation of the original improper integral.
Relationship with the gamma function
The beta–gamma identity is
It connects a two-parameter integral on a finite interval with products of one-parameter gamma integrals.
For , begin with
Make the change of variables
where and . The absolute value of the Jacobian determinant is , so
The first factor is , giving the identity.
This factorization also explains why beta and gamma distributions frequently appear together in probability theory: the variables and separate a total magnitude from a proportion.
Symmetry, recurrence relations, and special values
The substitution gives the symmetry relation
The gamma identity, or integration by parts, yields the recurrence relations
Consequently,
These formulas hold directly in the convergence domain and extend as identities between meromorphic functions.
For positive integers ,
where the exclamation marks denote factorials. In particular,
and
Using ,
Euler's reflection formula for the gamma function also gives
As an ordinary beta integral, this identity applies when ; elsewhere it is understood through meromorphic continuation.
Alternative integral representations
Several changes of variables make the beta function useful for recognizing apparently different integrals.
With ,
Thus
provided
With ,
For real , this becomes
This representation is particularly useful in calculus and in geometric integrals expressed through angular coordinates.
More generally, for ,
The scaling factor follows immediately from .
Analytic continuation
The gamma quotient provides an analytic continuation of the beta function to a meromorphic function of two complex variables:
The gamma function has simple poles at the nonpositive integers and no zeros; its reciprocal is entire and vanishes at those integers. Accordingly, the beta function has polar divisors along
For a generic fixed value of one parameter, these produce simple poles in the other. Special fixed parameter values can cause cancellations.
For example, fixing gives
whose only pole is at , although the separate gamma factors have poles at other nonpositive integers. Such cancellations must be handled through the meromorphic expression or an appropriate limit, not by separately assigning infinite values to its factors.
The beta function is therefore distinct from its defining integral: the continued function can have finite values at parameter pairs for which the original integral diverges.
Incomplete and regularized beta functions
The incomplete beta function truncates the upper limit of integration:
For real and , the regularized incomplete beta function is
The distinction is important: is an unnormalized integral, whereas ranges from zero to one.
Its endpoint values and complement identity are
Differentiation with respect to the endpoint gives
Extensions to complex require choices of branches and integration paths because the integrand can have branch points at and .
Probability and statistics
Beta distributions
For positive parameters , the beta distribution has probability density function
The beta function is exactly the constant needed to make the density integrate to one.
If has this distribution, its real moments satisfy
In particular, its mean and variance are
Its cumulative distribution function is
Gamma variables and proportions
If and are independent variables with gamma distributions, having shapes and the same scale parameter, then
Moreover, this ratio is independent of the sum . The result follows from the same change of variables used to derive the beta–gamma identity.
Binomial probabilities and Bayesian inference
For ,
Thus incomplete beta routines can compute binomial tail probabilities without explicitly summing many individual terms.
In Bayesian inference, a beta prior is a conjugate prior for a Bernoulli or binomial success probability. If a beta prior has parameters , and the observations contain successes and failures, the posterior has parameters
Ratios of beta functions then appear in integrated likelihoods and predictive probabilities.
Multivariate generalization
The multivariate beta function is
It is the normalizing integral for the Dirichlet distribution, the multivariate counterpart of the beta distribution.
Writing , its integral representation is
For , this reduces to the ordinary beta integral.
Numerical evaluation
Directly evaluating
can overflow or underflow in floating-point arithmetic, even when the final result is representable. For positive real parameters, a standard approach is to compute
and exponentiate only if the beta value itself is required. Keeping results in logarithmic form is often preferable in likelihood calculations.
Logarithmic evaluation does not remove every source of error: subtraction of large, nearly equal quantities can still reduce accuracy. Specialized implementations use parameter-dependent transformations, recurrences, and asymptotic formulas.
Incomplete beta evaluation additionally uses power series, continued fractions, and asymptotic expansions in different parameter regions. For tail probabilities, numerical stability may require computing the small complementary tail directly rather than subtracting a value close to one from one.