Beta function

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
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 Re(z1),Re(z2)>0.

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

[edit | edit source]

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 § Relationship to the gamma function.

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]

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

Relationship to the gamma function

[edit | edit source]

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:

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

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

Γ(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

[edit | edit source]

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

[edit | edit source]

Stirling's approximation gives the asymptotic formula

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

for large x and large y.

If on the other hand x is large and y is fixed, then

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

Other identities and formulas

[edit | edit source]

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 n 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:[4]

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

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[5] B(x,1x)=πsin(πx),x∉

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).

Also, using Legendre duplication formula, we get 2z1B(z/2,z/2)=B(1/2,z/2).

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

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

This Pochhammer contour integral converges for all values of α and β 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 n, Β can be factored to give a closed form interpolation function for continuous values of k: (nk)=(1)nn!sin(πk)πi=0n(ki).

Reciprocal beta function

[edit | edit source]

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

[edit | edit source]

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

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

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 t=sin2θ and t=11+s, we can 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 X following a binomial distribution with probability of single success p and number of Bernoulli trials n:

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

Properties

[edit | edit source]

I0(a,b)=0,I1(a,b)=1,Ix(a,1)=xa,Ix(1,b)=1(1x)b,Ix(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

[edit | edit source]

The continued fraction expansion is

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

with odd and even coefficients given by

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

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).

It converges rapidly for x<(a+1)/(a+b+2). For x>(a+1)/(a+b+2) or 1x<(b+1)/(a+b+2), the function may be evaluated more efficiently through the relation B(x;a,b)=B(a,b)B(1x;b,a).[8]

Multivariate beta function

[edit | edit source]

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

[edit | edit source]

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

[edit | edit source]

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

[edit | edit source]

References

[edit | edit source]
  1. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).. Specifically, see 6.2 Beta Function.
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  8. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
[edit | edit source]

Lua error in Module:Authority_control at line 153: attempt to index field 'wikibase' (a nil value).