Beta function

From testwiki
Revision as of 20:26, 13 January 2025 by imported>PietroMarsili
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:About

Contour plot of the beta function

In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral

B(z1,z2)=01tz11(1t)z21dt

for complex number inputs z1,z2 such that (z1),(z2)>0.

The beta function was studied by Leonhard Euler and Adrien-Marie Legendre and was given its name by Jacques Binet; its symbol Template:Math is a Greek capital beta.

Properties

The beta function is symmetric, meaning that B(z1,z2)=B(z2,z1) for all inputs z1 and z2.[1]

A key property of the beta function is its close relationship to the gamma function:[1]

B(z1,z2)=Γ(z1)Γ(z2)Γ(z1+z2)

A proof is given below in Template:Slink.

The beta function is also closely related to binomial coefficients. When Template:Mvar (or Template:Mvar, by symmetry) is a positive integer, it follows from the definition of the gamma function Template:Math that[1]

B(m,n)=(m1)!(n1)!(m+n1)!=m+nmn/(m+nm)

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 then into an iterated integral:

Γ(z1)Γ(z2)=u=0 euuz11duv=0 evvz21dv=v=0u=0 euvuz11vz21dudv.

Changing variables by Template:Math and Template:Math, because Template:Math and Template:Math, we have that the limits of integrations for Template:Math are 0 to ∞ and the limits of integration for Template:Math are 0 to 1. Thus produces

Γ(z1)Γ(z2)=s=0t=01es(st)z11(s(1t))z21sdtds=s=0essz1+z21dst=01tz11(1t)z21dt=Γ(z1+z2)B(z1,z2).

Dividing both sides by Γ(z1+z2) gives the desired result.

The stated identity may be seen as a particular case of the identity for the integral of a convolution. Taking

f(u):=euuz111+g(u):=euuz211+,

one has:

Γ(z1)Γ(z2)=f(u)dug(u)du=(f*g)(u)du=B(z1,z2)Γ(z1+z2).

See The Gamma Function, page 18–19[2] for a derivation of this relation.

Differentiation of the beta function

We have

z1B(z1,z2)=B(z1,z2)(Γ(z1)Γ(z1)Γ(z1+z2)Γ(z1+z2))=B(z1,z2)(ψ(z1)ψ(z1+z2)),
zmB(z1,z2,,zn)=B(z1,z2,,zn)(ψ(zm)ψ(k=1nzk)),1mn,

where ψ(z) denotes the digamma function.

Approximation

Stirling's approximation gives the asymptotic formula

B(x,y)2πxx1/2yy1/2(x+y)x+y1/2

for large Template:Mvar and large Template:Mvar.

If on the other hand Template:Mvar is large and Template:Mvar is fixed, then

B(x,y)Γ(y)xy.

Other identities and formulas

The integral defining the beta function may be rewritten in a variety of ways, including the following:

B(z1,z2)=20π/2(sinθ)2z11(cosθ)2z21dθ,=0tz11(1+t)z1+z2dt,=n01tnz11(1tn)z21dt,=(1a)z201(1t)z11tz21(1at)z1+z2dtfor any a1,

where in the second-to-last identity Template:Mvar is any positive real number. One may move from the first integral to the second one by substituting t=tan2(θ).

For values z=z1=z21 we have:

B(z,z)=1z0π/21(sinθz+cosθz)2zdθ

The beta function can be written as an infinite sum[3]

B(x,y)=n=0(1x)n(y+n)n!

If x and y are equal to a number z we get:

B(z,z)=2n=0(2z+n1)n(1)n(z+n)n!=limx12n=0(2z)nxn(z+n)n!
(where (x)n is the rising factorial)

and as an infinite product

B(x,y)=x+yxyn=1(1+xyn(x+y+n))1.

The beta function satisfies several identities analogous to corresponding identities for binomial coefficients, including a version of Pascal's identity

B(x,y)=B(x,y+1)+B(x+1,y)

and a simple recurrence on one coordinate:

B(x+1,y)=B(x,y)xx+y,B(x,y+1)=B(x,y)yx+y.[4]

The positive integer values of the beta function are also the partial derivatives of a 2D function: for all nonnegative integers m and n,

B(m+1,n+1)=m+nhambn(0,0),

where

h(a,b)=eaebab.

The Pascal-like identity above implies that this function is a solution to the first-order partial differential equation

h=ha+hb.

For x,y1, the beta function may be written in terms of a convolution involving the truncated power function tt+x:

B(x,y)(tt+x+y1)=(tt+x1)*(tt+y1)

Evaluations at particular points may simplify significantly; for example,

B(1,x)=1x

and

B(x,1x)=πsin(πx),x∉[5]

By taking x=12 in this last formula, it follows that Γ(1/2)=π. Generalizing this into a bivariate identity for a product of beta functions leads to:

B(x,y)B(x+y,1y)=πxsin(πy).

Euler's integral for the beta function may be converted into an integral over the Pochhammer contour Template:Mvar as

(1e2πiα)(1e2πiβ)B(α,β)=Ctα1(1t)β1dt.

This Pochhammer contour integral converges for all values of Template:Mvar and Template:Mvar and so gives the analytic continuation of the beta function.

Just as the gamma function for integers describes factorials, the beta function can define a binomial coefficient after adjusting indices:

(nk)=1(n+1)B(nk+1,k+1).

Moreover, for integer Template:Mvar, Template:Math can be factored to give a closed form interpolation function for continuous values of Template:Mvar:

(nk)=(1)nn!sin(πk)πi=0n(ki).

Reciprocal beta function

The reciprocal beta function is the function about the form

f(x,y)=1B(x,y)

Interestingly, their integral representations closely relate as the definite integral of trigonometric functions with product of its power and multiple-angle:[6]

0πsinx1θsinyθdθ=πsinyπ22x1xB(x+y+12,xy+12)
0πsinx1θcosyθdθ=πcosyπ22x1xB(x+y+12,xy+12)
0πcosx1θsinyθdθ=πcosyπ22x1xB(x+y+12,xy+12)
0π2cosx1θcosyθdθ=π2xxB(x+y+12,xy+12)

Incomplete beta function

The incomplete beta function, a generalization of the beta function, is defined as[7][8]

B(x;a,b)=0xta1(1t)b1dt.

For Template:Math, the incomplete beta function coincides with the complete beta function. The relationship between the two functions is like that between the gamma function and its generalization the incomplete gamma function. For positive integer a and b, the incomplete beta function will be a polynomial of degree a + b - 1 with rational coefficients.

By the substitution t=sin2θ and t=11+s, we show that

B(x;a,b)=20arcsinxsin2a1θcos2b1θdθ=1xxsb1(1+s)a+bds

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:

Ix(a,b)=B(x;a,b)B(a,b).

The regularized incomplete beta function is the cumulative distribution function of the beta distribution, and is related to the cumulative distribution function F(k;n,p) of a random variable Template:Mvar following a binomial distribution with probability of single success Template:Mvar and number of Bernoulli trials Template:Mvar:

F(k;n,p)=Pr(Xk)=I1p(nk,k+1)=1Ip(k+1,nk).

Properties

I0(a,b)=0I1(a,b)=1Ix(a,1)=xaIx(1,b)=1(1x)bIx(a,b)=1I1x(b,a)Ix(a+1,b)=Ix(a,b)xa(1x)baB(a,b)Ix(a,b+1)=Ix(a,b)+xa(1x)bbB(a,b)B(x;a,b)dx=xB(x;a,b)B(x;a+1,b)B(x;a,b)=(1)aB(xx1;a,1ab)

Continued fraction expansion

The continued fraction expansion

B(x;a,b)=xa(1x)ba(1+d11+d21+d31+d41+)

with odd and even coefficients respectively

d2m+1=(a+m)(a+b+m)x(a+2m)(a+2m+1)
d2m=m(bm)x(a+2m1)(a+2m)

converges rapidly when x is not close to 1. The 4m and 4m+1 convergents are less than B(x;a,b), while the 4m+2 and 4m+3 convergents are greater than B(x;a,b).

For x>a+1a+b+2, the function may be evaluated more efficiently using B(x;a,b)=B(a,b)B(1x;b,a).[8]

Multivariate beta function

The beta function can be extended to a function with more than two arguments:

B(α1,α2,αn)=Γ(α1)Γ(α2)Γ(αn)Γ(α1+α2++αn).

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:

B(α1,α2,αn)=B(α1+1,α2,αn)+B(α1,α2+1,αn)++B(α1,α2,αn+1).

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 B(x;a,b) and Ix(a,b), respectively.

See also

Template:More footnotes

References

Template:Reflist

Template:Authority control