Beta Distribution

DOWNLOAD Mathematica Notebook BetaDistribution

A general type of statistical distribution which is related to the gamma distribution. Beta distributions have two free parameters, which are labeled according to one of two notational conventions. The usual definition calls these alpha and beta, and the other uses beta^'=beta-1 and alpha^'=alpha-1 (Beyer 1987, p. 534). The beta distribution is used as a prior distribution for binomial proportions in Bayesian analysis (Evans et al. 2000, p. 34). The above plots are for various values of (alpha,beta) with alpha=1 and beta ranging from 0.25 to 3.00.

The domain is [0,1], and the probability function P(x) and distribution function D(x) are given by

P(x)=((1-x)^(beta-1)x^(alpha-1))/(B(alpha,beta))
(1)
=(Gamma(alpha+beta))/(Gamma(alpha)Gamma(beta))(1-x)^(beta-1)x^(alpha-1)
(2)
D(x)=I(x;a,b),
(3)

where B(a,b) is the beta function, I(x;a,b) is the regularized beta function, and alpha,beta>0. The beta distribution is implemented in the Wolfram Language as BetaDistribution[alpha, beta].

The distribution is normalized since

 int_0^1P(x)dx=1.
(4)

The characteristic function is

phi(t)=int_0^1(x^(a-1)(1-x)^(b-1))/(beta(a,b))e^(-2piixt)dx
(5)
=_1F_1(a;a+b;it),
(6)

where _1F_1(a;b;z) is a confluent hypergeometric function of the first kind.

The raw moments are given by

mu_r^'=int_0^1P(x)x^rdx
(7)
=(Gamma(alpha+beta)Gamma(alpha+r))/(Gamma(alpha+beta+r)Gamma(alpha))
(8)

(Papoulis 1984, p. 147), and the central moments by

 mu_r=(-alpha/(alpha+beta))^r_2F_1(alpha,-r;alpha+beta;(alpha+beta)/alpha),
(9)

where _2F_1(a,b;c;x) is a hypergeometric function.

The mean, variance, skewness, and kurtosis are therefore given by

mu=alpha/(alpha+beta)
(10)
sigma^2=(alphabeta)/((alpha+beta)^2(alpha+beta+1))
(11)
gamma_1=(2(beta-alpha)sqrt(1+alpha+beta))/(sqrt(alphabeta)(2+alpha+beta))
(12)
gamma_2=(6[alpha^3+alpha^2(1-2beta)+beta^2(1+beta)-2alphabeta(2+beta)])/(alphabeta(alpha+beta+2)(alpha+beta+3)).
(13)

The mode of a variate distributed as beta(alpha,beta) is

 x^^=(alpha-1)/(alpha+beta-2).
(14)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.