Beta function

From LaTeX CAS translator demo
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(x,y)=01tx1(1t)y1dt

for complex number inputs x, y such that Re x > 0, Re y > 0.

The beta function was studied by Euler and Legendre and was given its name by Jacques Binet; its symbol Β is a Greek capital beta.

Properties

The beta function is symmetric, meaning that

B(x,y)=B(y,x)

for all inputs x and y.[1]

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

B(x,y)=Γ(x)Γ(y)Γ(x+y).

(A proof is given below in § Relationship to the gamma function.)

The beta function is also closely related to binomial coefficients. When x and y are positive integers, it follows from the definition of the gamma function Γ that[2]

B(x,y)=(x1)!(y1)!(x+y1)!=x+yxy1(x+yx).

Relationship to the gamma function

A simple derivation of the relation B(x,y)=Γ(x)Γ(y)Γ(x+y) can be found in Emil Artin's book The Gamma Function, page 18–19.[3] To derive this relation, write the product of two factorials as

Γ(x)Γ(y)=u=0euux1duv=0evvy1dv=v=0u=0euvux1vy1dudv.

Changing variables by u = zt and v = z(1 − t) produces

Γ(x)Γ(y)=z=0t=01ez(zt)x1(z(1t))y1zdtdz=z=0ezzx+y1dzt=01tx1(1t)y1dt=Γ(x+y)B(x,y).

Dividing both sides by Γ(x+y) 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):=euux11+g(u):=euuy11+,

one has:

Γ(x)Γ(y)=f(u)dug(u)du=(f*g)(u)du=B(x,y)Γ(x+y).

Derivatives

We have

xB(x,y)=B(x,y)(Γ(x)Γ(x)Γ(x+y)Γ(x+y))=B(x,y)(ψ(x)ψ(x+y)),

where ψ(x) is 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 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

The integral defining the beta function may be rewritten in a variety of ways, including the following: B(x,y)=20π/2(sinθ)2x1(cosθ)2y1dθ,=0tx1(1+t)x+ydt,=n01tnx1(1tn)y1dt, where in the last identity n is any positive real number. (One may move from the first integral to the second one by substituting t=tan2(θ).)

The beta function can be written as an infinite sum

B(x,y)=n=0(nyn)x+n[dubious ]

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.

For x,y1, the beta function may be written in terms of a convolution involving the truncated power function ttx
+
: 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∉[4]

By taking x=12 in this last formula, one may conclude in particular that Γ(1/2) = π. One may also generalize the last formula into a bivariate identity for a product of beta functions: 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 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).

The beta function 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.

Reciprocal beta function

The reciprocal beta function is the function about the form

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

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

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

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

For x = 1, 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.

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

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)=(1)aB(xx1;a,1ab)

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.

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 Excel, for example, the complete beta value can be calculated from the GammaLn function:

Value = Exp(GammaLn(a) + GammaLn(b) − GammaLn(a + b))

An incomplete beta value can be calculated as:

Value = BetaDist(x, a, b) * Exp(GammaLn(a) + GammaLn(b) − GammaLn(a + b)).

These result follow from the properties listed above.

Similarly, betainc (incomplete beta function) in MATLAB and GNU Octave, pbeta (probability of beta distribution) in R, or special.betainc in Python's SciPy package compute the regularized incomplete beta function—which is, in fact, the cumulative beta distribution—and so, to get the actual incomplete beta function, one must multiply the result of 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

References

  1. 1.0 1.1 Davis (1972) 6.2.2 p.258
  2. Davis (1972) 6.2.1 p.258
  3. Artin, Emil. The Gamma Function (PDF). pp. 18–19. Archived from the original (PDF) on 2016-11-12. Retrieved 2016-11-11.
  4. "Euler's Reflection Formula - ProofWiki". proofwiki.org. Retrieved 2020-09-02.
  5. Paris, R. B. (2010), "Beta Function", in Olver, Frank W. J.; Lozier, Daniel M.; Boisvert, Ronald F.; Clark, Charles W. (eds.), NIST Handbook of Mathematical Functions, Cambridge University Press, ISBN 978-0-521-19225-5, MR 2723248

External links