# Beta function

{{#invoke:Hatnote|hatnote}}

Contour plot of the beta function
A plot of the beta function for positive x and y values

In mathematics, the beta function, also called the Euler integral of the first kind, is a special function defined by

${\displaystyle \mathrm {\mathrm {B} } (x,y)=\int _{0}^{1}t^{x-1}(1-t)^{y-1}\,\mathrm {d} t\!}$

The beta function was studied by Euler and Legendre and was given its name by Jacques Binet; its symbol Β is a Greek capital β rather than the similar Latin capital B.

## Properties

The beta function is symmetric, meaning that

${\displaystyle \mathrm {B} (x,y)=\mathrm {B} (y,x).\!}$[1]

When x and y are positive integers, it follows from the definition of the gamma function ${\displaystyle \Gamma \ }$ that:

${\displaystyle \mathrm {B} (x,y)={\dfrac {(x-1)!\,(y-1)!}{(x+y-1)!}}\!}$

It has many other forms, including:

${\displaystyle \mathrm {B} (x,y)={\dfrac {\Gamma (x)\,\Gamma (y)}{\Gamma (x+y)}}\!}$[1]
${\displaystyle \mathrm {B} (x,y)=2\int _{0}^{\pi /2}(\sin \theta )^{2x-1}(\cos \theta )^{2y-1}\,\mathrm {d} \theta ,\qquad \mathrm {Re} (x)>0,\ \mathrm {Re} (y)>0\!}$[2]
${\displaystyle \mathrm {B} (x,y)=\int _{0}^{\infty }{\dfrac {t^{x-1}}{(1+t)^{x+y}}}\,{\mathrm {d} }t,\qquad {\mathrm {Re} }(x)>0,\ {\mathrm {Re} }(y)>0\!}$[2]
${\displaystyle \mathrm {B} (x,y)=\sum _{n=0}^{\infty }{\dfrac {n-y \choose n}{x+n}},\!}$
${\displaystyle \mathrm {B} (x,y)={\frac {x+y}{xy}}\prod _{n=1}^{\infty }\left(1+{\dfrac {xy}{n(x+y+n)}}\right)^{-1},\!}$

The Beta function has several interesting properties, including

${\displaystyle \mathrm {B} (x,y)=\mathrm {B} (x,y+1)+\mathrm {B} (x+1,y)\!}$
${\displaystyle \mathrm {B} (x+1,y)=\mathrm {B} (x,y)\cdot {\dfrac {x}{x+y}}\!}$
${\displaystyle \mathrm {B} (x,y+1)=\mathrm {B} (x,y)\cdot {\dfrac {y}{x+y}}\!}$
${\displaystyle \mathrm {B} (x,y)\cdot (t\mapsto t_{+}^{x+y-1})=(t\to t_{+}^{x-1})*(t\to t_{+}^{y-1})\qquad x\geq 1,y\geq 1,\!}$
${\displaystyle \mathrm {B} (x,y)\cdot \mathrm {B} (x+y,1-y)={\dfrac {\pi }{x\sin(\pi y)}},\!}$

where ${\displaystyle t\mapsto t_{+}^{x}}$ is a truncated power function and the star denotes convolution. The lowermost identity above shows in particular ${\displaystyle \Gamma ({\tfrac {1}{2}})={\sqrt {\pi }}}$. Some of these identities, e.g. the trigonometric formula, can be applied to deriving the volume of an n-ball in Cartesian coordinates.

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

${\displaystyle \displaystyle (1-e^{2\pi i\alpha })(1-e^{2\pi i\beta })\mathrm {B} (\alpha ,\beta )=\int _{C}t^{\alpha -1}(1-t)^{\beta -1}\,\mathrm {d} t.}$

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:

${\displaystyle {n \choose k}={\frac {1}{(n+1)\mathrm {B} (n-k+1,k+1)}}.}$

Moreover, for integer n, ${\displaystyle \mathrm {B} \,}$ can be integrated to give a closed form, an interpolation function for continuous values of k:

${\displaystyle {n \choose k}=(-1)^{n}n!{\cfrac {\sin(\pi k)}{\pi \prod _{i=0}^{n}(k-i)}}.}$

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.

## Relationship between gamma function and beta function

To derive the integral representation of the beta function, write the product of two factorials as

${\displaystyle \Gamma (x)\Gamma (y)=\int _{0}^{\infty }\ e^{-u}u^{x-1}\,\mathrm {d} u\int _{0}^{\infty }\ e^{-v}v^{y-1}\,\mathrm {d} v=\!}$
${\displaystyle =\int _{0}^{\infty }\int _{0}^{\infty }\ e^{-u-v}u^{x-1}v^{y-1}\,\mathrm {d} u\,\mathrm {d} v.\!}$

Changing variables by putting u=zt, v=z(1-t) shows that this is

${\displaystyle \int _{z=0}^{\infty }\int _{t=0}^{1}e^{-z}(zt)^{x-1}(z(1-t))^{y-1}z\,\mathrm {d} t\,\mathrm {d} z=\int _{z=0}^{\infty }e^{-z}z^{x+y-1}\,\mathrm {d} z\int _{t=0}^{1}t^{x-1}(1-t)^{y-1}\,\mathrm {d} t.\!}$

Hence

${\displaystyle \Gamma (x)\,\Gamma (y)=\Gamma (x+y)\mathrm {B} (x,y).}$

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

${\displaystyle f(u):=e^{-u}u^{x-1}1_{\mathbb {R} _{+}}}$ and ${\displaystyle g(u):=e^{-u}u^{y-1}1_{\mathbb {R} _{+}}}$, one has:
${\displaystyle \Gamma (x)\Gamma (y)=\left(\int _{\mathbb {R} }f(u)\mathrm {d} u\right)\left(\int _{\mathbb {R} }g(u)\mathrm {d} u\right)=\int _{\mathbb {R} }(f*g)(u)\mathrm {d} u=\mathrm {B} (x,y)\,\Gamma (x+y)}$.

## Derivatives

We have

${\displaystyle {\partial \over \partial x}\mathrm {B} (x,y)=\mathrm {B} (x,y)\left({\Gamma '(x) \over \Gamma (x)}-{\Gamma '(x+y) \over \Gamma (x+y)}\right)=\mathrm {B} (x,y)(\psi (x)-\psi (x+y)),}$

## Integrals

The Nörlund–Rice integral is a contour integral involving the beta function.

## Approximation

Stirling's approximation gives the asymptotic formula

${\displaystyle \mathrm {B} (x,y)\sim {\sqrt {2\pi }}{\frac {x^{x-{\frac {1}{2}}}y^{y-{\frac {1}{2}}}}{\left({x+y}\right)^{x+y-{\frac {1}{2}}}}}}$

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

${\displaystyle \mathrm {B} (x,y)\sim \Gamma (y)\,x^{-y}.}$

## Incomplete beta function

The incomplete beta function, a generalization of the beta function, is defined as

${\displaystyle \mathrm {B} (x;\,a,b)=\int _{0}^{x}t^{a-1}\,(1-t)^{b-1}\,\mathrm {d} t.\!}$

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:

${\displaystyle I_{x}(a,b)={\dfrac {\mathrm {B} (x;\,a,b)}{\mathrm {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 of a random variable X from a binomial distribution, where the "probability of success" is p and the sample size is n:

${\displaystyle F(k;n,p)=\Pr(X\leq k)=I_{1-p}(n-k,k+1)=1-I_{p}(k+1,n-k).}$

### Properties

${\displaystyle I_{0}(a,b)=0\,}$
${\displaystyle I_{1}(a,b)=1\,}$
${\displaystyle I_{x}(a,1)=x^{a}\,}$
${\displaystyle I_{x}(1,b)=1-(1-x)^{b}\,}$
${\displaystyle I_{x}(a,b)=1-I_{1-x}(b,a)\,}$
${\displaystyle I_{x}(a+1,b)=I_{x}(a,b)-{\frac {x^{a}(1-x)^{b}}{aB(a,b)}}\,}$
${\displaystyle I_{x}(a,b+1)=I_{x}(a,b)+{\frac {x^{a}(1-x)^{b}}{bB(a,b)}}\,}$.

## Multivariate beta function

The beta function can be extended to a function with more than two arguments, used in the definition of the Dirichlet distribution:

${\displaystyle \mathrm {B} ({\boldsymbol {\alpha }})={\frac {\prod _{i=1}^{K}\Gamma (\alpha _{i})}{\Gamma \left(\sum _{i=1}^{K}\alpha _{i}\right)}},\qquad {\boldsymbol {\alpha }}=(\alpha _{1},\cdots ,\alpha _{K}).}$

## 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.
The text passage provides a detailed overview of the beta function, including its definition, properties, and relationships with other mathematical functions. It does not contain any specific mathematical questions or problems to solve, nor does it provide answers to such questions.
no_question
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
# Beta function

{{#invoke:Hatnote|hatnote}}

Contour plot of the beta function
A plot of the beta function for positive x and y values

In mathematics, the beta function, also called the Euler integral of the first kind, is a special function defined by

${\displaystyle \mathrm {\mathrm {B} } (x,y)=\int _{0}^{1}t^{x-1}(1-t)^{y-1}\,\mathrm {d} t\!}$

The beta function was studied by Euler and Legendre and was given its name by Jacques Binet; its symbol Β is a Greek capital β rather than the similar Latin capital B.

## Properties

The beta function is symmetric, meaning that

${\displaystyle \mathrm {B} (x,y)=\mathrm {B} (y,x).\!}$[1]

When x and y are positive integers, it follows from the definition of the gamma function ${\displaystyle \Gamma \ }$ that:

${\displaystyle \mathrm {B} (x,y)={\dfrac {(x-1)!\,(y-1)!}{(x+y-1)!}}\!}$

It has many other forms, including:

${\displaystyle \mathrm {B} (x,y)={\dfrac {\Gamma (x)\,\Gamma (y)}{\Gamma (x+y)}}\!}$[1]
${\displaystyle \mathrm {B} (x,y)=2\int _{0}^{\pi /2}(\sin \theta )^{2x-1}(\cos \theta )^{2y-1}\,\mathrm {d} \theta ,\qquad \mathrm {Re} (x)>0,\ \mathrm {Re} (y)>0\!}$[2]
${\displaystyle \mathrm {B} (x,y)=\int _{0}^{\infty }{\dfrac {t^{x-1}}{(1+t)^{x+y}}}\,{\mathrm {d} }t,\qquad {\mathrm {Re} }(x)>0,\ {\mathrm {Re} }(y)>0\!}$[2]
${\displaystyle \mathrm {B} (x,y)=\sum _{n=0}^{\infty }{\dfrac {n-y \choose n}{x+n}},\!}$
${\displaystyle \mathrm {B} (x,y)={\frac {x+y}{xy}}\prod _{n=1}^{\infty }\left(1+{\dfrac {xy}{n(x+y+n)}}\right)^{-1},\!}$

The Beta function has several interesting properties, including

${\displaystyle \mathrm {B} (x,y)=\mathrm {B} (x,y+1)+\mathrm {B} (x+1,y)\!}$
${\displaystyle \mathrm {B} (x+1,y)=\mathrm {B} (x,y)\cdot {\dfrac {x}{x+y}}\!}$
${\displaystyle \mathrm {B} (x,y+1)=\mathrm {B} (x,y)\cdot {\dfrac {y}{x+y}}\!}$
${\displaystyle \mathrm {B} (x,y)\cdot (t\mapsto t_{+}^{x+y-1})=(t\to t_{+}^{x-1})*(t\to t_{+}^{y-1})\qquad x\geq 1,y\geq 1,\!}$
${\displaystyle \mathrm {B} (x,y)\cdot \mathrm {B} (x+y,1-y)={\dfrac {\pi }{x\sin(\pi y)}},\!}$

where ${\displaystyle t\mapsto t_{+}^{x}}$ is a truncated power function and the star denotes convolution. The lowermost identity above shows in particular ${\displaystyle \Gamma ({\tfrac {1}{2}})={\sqrt {\pi }}}$. Some of these identities, e.g. the trigonometric formula, can be applied to deriving the volume of an n-ball in Cartesian coordinates.

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

${\displaystyle \displaystyle (1-e^{2\pi i\alpha })(1-e^{2\pi i\beta })\mathrm {B} (\alpha ,\beta )=\int _{C}t^{\alpha -1}(1-t)^{\beta -1}\,\mathrm {d} t.}$

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:

${\displaystyle {n \choose k}={\frac {1}{(n+1)\mathrm {B} (n-k+1,k+1)}}.}$

Moreover, for integer n, ${\displaystyle \mathrm {B} \,}$ can be integrated to give a closed form, an interpolation function for continuous values of k:

${\displaystyle {n \choose k}=(-1)^{n}n!{\cfrac {\sin(\pi k)}{\pi \prod _{i=0}^{n}(k-i)}}.}$

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.

## Relationship between gamma function and beta function

To derive the integral representation of the beta function, write the product of two factorials as

${\displaystyle \Gamma (x)\Gamma (y)=\int _{0}^{\infty }\ e^{-u}u^{x-1}\,\mathrm {d} u\int _{0}^{\infty }\ e^{-v}v^{y-1}\,\mathrm {d} v=\!}$
${\displaystyle =\int _{0}^{\infty }\int _{0}^{\infty }\ e^{-u-v}u^{x-1}v^{y-1}\,\mathrm {d} u\,\mathrm {d} v.\!}$

Changing variables by putting u=zt, v=z(1-t) shows that this is

${\displaystyle \int _{z=0}^{\infty }\int _{t=0}^{1}e^{-z}(zt)^{x-1}(z(1-t))^{y-1}z\,\mathrm {d} t\,\mathrm {d} z=\int _{z=0}^{\infty }e^{-z}z^{x+y-1}\,\mathrm {d} z\int _{t=0}^{1}t^{x-1}(1-t)^{y-1}\,\mathrm {d} t.\!}$

Hence

${\displaystyle \Gamma (x)\,\Gamma (y)=\Gamma (x+y)\mathrm {B} (x,y).}$

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

${\displaystyle f(u):=e^{-u}u^{x-1}1_{\mathbb {R} _{+}}}$ and ${\displaystyle g(u):=e^{-u}u^{y-1}1_{\mathbb {R} _{+}}}$, one has:
${\displaystyle \Gamma (x)\Gamma (y)=\left(\int _{\mathbb {R} }f(u)\mathrm {d} u\right)\left(\int _{\mathbb {R} }g(u)\mathrm {d} u\right)=\int _{\mathbb {R} }(f*g)(u)\mathrm {d} u=\mathrm {B} (x,y)\,\Gamma (x+y)}$.

## Derivatives

We have

${\displaystyle {\partial \over \partial x}\mathrm {B} (x,y)=\mathrm {B} (x,y)\left({\Gamma '(x) \over \Gamma (x)}-{\Gamma '(x+y) \over \Gamma (x+y)}\right)=\mathrm {B} (x,y)(\psi (x)-\psi (x+y)),}$

## Integrals

The Nörlund–Rice integral is a contour integral involving the beta function.

## Approximation

Stirling's approximation gives the asymptotic formula

${\displaystyle \mathrm {B} (x,y)\sim {\sqrt {2\pi }}{\frac {x^{x-{\frac {1}{2}}}y^{y-{\frac {1}{2}}}}{\left({x+y}\right)^{x+y-{\frac {1}{2}}}}}}$

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

${\displaystyle \mathrm {B} (x,y)\sim \Gamma (y)\,x^{-y}.}$

## Incomplete beta function

The incomplete beta function, a generalization of the beta function, is defined as

${\displaystyle \mathrm {B} (x;\,a,b)=\int _{0}^{x}t^{a-1}\,(1-t)^{b-1}\,\mathrm {d} t.\!}$

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:

${\displaystyle I_{x}(a,b)={\dfrac {\mathrm {B} (x;\,a,b)}{\mathrm {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 of a random variable X from a binomial distribution, where the "probability of success" is p and the sample size is n:

${\displaystyle F(k;n,p)=\Pr(X\leq k)=I_{1-p}(n-k,k+1)=1-I_{p}(k+1,n-k).}$

### Properties

${\displaystyle I_{0}(a,b)=0\,}$
${\displaystyle I_{1}(a,b)=1\,}$
${\displaystyle I_{x}(a,1)=x^{a}\,}$
${\displaystyle I_{x}(1,b)=1-(1-x)^{b}\,}$
${\displaystyle I_{x}(a,b)=1-I_{1-x}(b,a)\,}$
${\displaystyle I_{x}(a+1,b)=I_{x}(a,b)-{\frac {x^{a}(1-x)^{b}}{aB(a,b)}}\,}$
${\displaystyle I_{x}(a,b+1)=I_{x}(a,b)+{\frac {x^{a}(1-x)^{b}}{bB(a,b)}}\,}$.

## Multivariate beta function

The beta function can be extended to a function with more than two arguments, used in the definition of the Dirichlet distribution:

${\displaystyle \mathrm {B} ({\boldsymbol {\alpha }})={\frac {\prod _{i=1}^{K}\Gamma (\alpha _{i})}{\Gamma \left(\sum _{i=1}^{K}\alpha _{i}\right)}},\qquad {\boldsymbol {\alpha }}=(\alpha _{1},\cdots ,\alpha _{K}).}$

## 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.
user
The text passage provides a detailed overview of the beta function, including its definition, properties, and relationships with other mathematical functions. It does not contain any specific mathematical questions or problems to solve, nor does it provide answers to such questions.

TYPE: NO_QUESTION