Beta distribution
Probability density function | |||
Cumulative distribution function | |||
Parameters |
shape (real) shape (real) | ||
---|---|---|---|
Support | |||
CDF | |||
Mean | |||
Median | no closed form | ||
Mode | for | ||
Variance | |||
Skewness | |||
Excess kurtosis | see text | ||
Entropy | see text | ||
MGF | |||
CF |
In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval (0, 1) parameterized by two positive shape parameters, typically denoted by α and β. The beta distribution can be suited to the statistical modelling of proportions in applications where values of proportions equal to 0 or 1 do not occur. One theoretical case where the beta distribution arises is as the distribution of the ratio formed by one random variable having a Gamma distribution divided by the sum of it and another independent random variable also having a Gamma distribution with the same scale parameter (but possibly different shape parameter).
The usual formulation of the beta distribution is also known as the beta distribution of the first kind, whereas beta distribution of the second kind is an alternative name for the beta prime distribution.
Characterization
Probability density function
The probability density function of the beta distribution is:
where is the gamma function. The beta function, B, appears as a normalization constant to ensure that the total probability integrates to unity.
A random variable X that is Beta-distributed with shape α and β is denoted
Cumulative distribution function
The cumulative distribution function is
where is the incomplete beta function and is the regularized incomplete beta function.
Properties
The mode of a Beta distributed random variable X with parameters α > 1 and β > 1 is:
The expected value (mean) (), variance (second central moment), skewness (third central moment), and kurtosis excess (fourth central moment) of a Beta distribution random variable X with parameters α and β are:
The skewness is
The kurtosis excess is:
or:
In general, the th raw moment is given by
where is a Pochhammer symbol representing rising factorial. It can also be written in a recursive form as
One can also show that
Quantities of information
Given two beta distributed random variables, X ~ Beta(α, β) and Y ~ Beta(α', β'), the information entropy of X is [2]
where is the digamma function.
The cross entropy is
It follows that the Kullback–Leibler divergence between these two beta distributions is
Shapes
The beta density function can take on different shapes depending on the values of the two parameters:
- is the uniform [0,1] distribution
- is U-shaped (blue plot)
- is the arcsine distribution
- or is strictly decreasing (red plot)
- or is strictly increasing (green plot)
- is strictly convex
- is a straight line
- is strictly concave
- is unimodal (magenta & cyan plots)
Moreover, if then the density function is symmetric about 1/2 (blue & teal plots).
Parameter estimation
Let
be the sample mean and
be the sample variance. The method-of-moments estimates of the parameters are
When the distribution is required over an interval other than [0, 1], say , then replace with and with in the above equations.[3][4]
There is no closed-form of the maximum likelihood estimates for the parameters.
Generating beta-distributed random variates
If and are independent, with and then , so one algorithm for generating beta variates is to generate X/(X+Y), where X is a gamma variate with parameters () and Y is an independent gamma variate with parameters ().[5]
Also, the kth order statistic of the uniform distribution is , so an alternative if and are small integers is to generate uniform variates and choose the -th largest.[6]
Related distributions
Transformations
- If then
- If then . The beta prime distribution, also called "beta distribution of the second kind".
- If then (assuming n>0 and m>0)
- If then where PERT denotes a distribution used in PERT analysis.[citation needed]
- If then Kumaraswamy distribution with parameters
- If then Kumaraswamy distribution with parameters
- If then
Special and limiting cases
- the standard uniform distribution.
- If and then Wigner semicircle distribution.
- is the Jeffreys prior for a proportion and is equivalent to arcsine distribution.
- the exponential distribution
- the gamma distribution
Derived from other distributions
- The kth order statistic of a sample of size n from the uniform distribution is a beta random variable, [6]
- If and then
- If and then
- If and then .
- If , then , which is a special case of the Beta distribution called the power-function distribution.[clarification needed]
Combination with other distributions
- and then for all x > 0.
Compounding with other distributions
- If and then beta-binomial distribution
- If and then beta negative binomial distribution
Generalisations
- The Dirichlet distribution is a multivariate generalization of the beta distribution. Univariate marginals of the Dirichlet distribution have a beta distribution.
- The beta distribution is a special case of the Pearson type I distribution
- the noncentral beta distribution
Other
- Binomial opinions in subjective logic are equivalent to Beta distributions.[citation needed]
Applications
Order statistics
The beta distribution has an important application in the theory of order statistics. A basic result is that the distribution of the k'th largest of a sample of size n from a continuous uniform distribution has a beta distributuion.[6] This result is summarized as:
From this, and application of the theory related to the probability integral transform, the distribution of any individual order statistic from any continuous distribution can be derived.[6]
Rule of succession
A classic application of the beta distribution is the rule of succession, introduced in the 18th century by Pierre-Simon Laplace in the course of treating the sunrise problem. It states that, given s successes in n conditionally independent Bernoulli trials with probability p, that p should be estimated as . This estimate may be regarded as the expected value of the posterior distribution over p, namely Beta(s + 1, n − s + 1), which is given by Bayes' rule if one assumes a uniform prior over p (i.e., Beta(1, 1)) and then observes that p generated s successes in n trials.
Bayesian inference
Beta distributions are used extensively in Bayesian inference, since beta distributions provide a family of conjugate prior distributions for binomial (including Bernoulli) and geometric distributions. The Beta(0,0) distribution is an improper prior and sometimes used to represent ignorance of parameter values.
The domain of the beta distribution can be viewed as a probability, and in fact the beta distribution is often used to describe the distribution of an unknown probability value — typically, as the prior distribution over a probability parameter, such as the probability of success in a binomial distribution or Bernoulli distribution. In fact, the beta distribution is the conjugate prior of the binomial distribution and Bernoulli distribution.
The beta distribution is the special case of the Dirichlet distribution with only two parameters, and the beta is conjugate to the binomial and Bernoulli distributions in exactly the same way as the Dirichlet distribution is conjugate to the multinomial distribution and categorical distribution.
In Bayesian inference, the beta distribution can be derived as the posterior probability of the parameter p of a binomial distribution after observing α − 1 successes (with probability p of success) and β − 1 failures (with probability 1 − p of failure). Another way to express this is that placing a prior distribution of Beta(α,β) on the parameter p of a binomial distribution is equivalent to adding α pseudo-observations of "success" and β pseudo-observations of "failure" to the actual number of successes and failures observed, then estimating the parameter p by the proportion of successes over both real- and pseudo-observations. If α and β are greater than 0, this has the effect of smoothing out the distribution of the parameters by ensuring that some positive probability mass is assigned to all parameters even when no actual observations corresponding to those parameters is observed. Values of α and β less than 1 favor sparsity, i.e. distributions where the parameter p is close to either 0 or 1. In effect, α and β, when operating together, function as a concentration parameter; see that article for more details.
Task duration modeling
The beta distribution can be used to model events which are constrained to take place within an interval defined by a minimum and maximum value. For this reason, the beta distribution — along with the triangular distribution — is used extensively in PERT, critical path method (CPM) and other project management / control systems to describe the time to completion of a task. In project management, shorthand computations are widely used to estimate the mean and standard deviation of the beta distribution:
where a is the minimum, c is the maximum, and b is the most likely value.
Using this set of approximations is known as three-point estimation and are exact only for particular values of α and β, specifically when[7]:
or vice versa.
These are notably poor approximations for most other beta distributions exhibiting average errors of 40% in the mean and 549% in the variance[8][9][10]
Alternative parameterizations
Mean and sample size
The beta distribution may also be reparameterized in terms of its mean μ (0 ≤ μ ≤ 1) and sample size ν = α + β (ν > 0). This is useful in Bayesian parameter estimation if one wants to place an unbiased (uniform) prior over the mean. For example, one may administer a test to a number of individuals. If it is assumed that each person's score (0 ≤ θ ≤ 1) is drawn from a population-level Beta distribution, then an important statistic is the mean of this population-level distribution. The mean and sample size parameters are related to the shape parameters α and β via[11]
Under this parameterization, one can place a uniform prior over the mean, and a vague prior (such as an exponential or gamma distribution) over the positive reals for the sample size.
The Balding–Nichols model is a similar two-parameter reparameterization of the beta distribution.
Four parameters
A beta distribution with the two shape parameters α and β is supported on the range [0,1]. It is possible to alter the location and scale of the distribution by introducing two further parameters representing the minimum and maximum values of the distribution.[12]
The probability density function of the four parameter beta distribution is given by
The mean, mode and variance of the four parameters Beta distribution are:
The standard form can be obtained by letting
References
- ^ Johnson, Norman L., Samuel Kotz, and N. Balakrishnan (1995). "Continuous Univariate Distributions, Vol. 2", Wiley, ISBN 978-0471584940.
- ^ A. C. G. Verdugo Lazo and P. N. Rathie. "On the entropy of continuous probability distributions," IEEE Trans. Inf. Theory, IT-24:120–122,1978.
- ^ Engineering Statistics Handbook
- ^ Brighton Webs Ltd. Data & Analysis Services for Industry & Education
- ^ van der Waerden, B. L., "Mathematical Statistics", Springer, ISBN 978-3540045076.
- ^ a b c d David, H. A., Nagaraja, H. N. (2003) Order Statistics (3rd Edition). Wiley, New Jersey pp 458. ISBN 0-471-38926-9
- ^ Grubbs, Frank E. (1962). Attempts to Validate Certain PERT Statistics or ‘Picking on PERT’. Operations Research 10(6), p. 912–915.
- ^ Keefer, Donald L. and Verdini, William A. (1993). Better Estimation of PERT Activity Time Parameters. Management Science 39(9), p. 1086–1091.
- ^ Keefer, Donald L. and Bodily, Samuel E. (1983). Three-point Approximations for Continuous Random variables. Management Science 29(5), p. 595–609.
- ^ DRMI Newsletter, Issue 12, April 8, 2005
- ^ Kruschke, J. (2011). Doing Bayesian data analysis: A tutorial with R and BUGS. Academic Press / Elsevier, p. 83.
- ^ Beta4 distribution
External links
- Weisstein, Eric W. "Beta Distribution". MathWorld.
- "Beta Distribution" by Fiona Maclachlan, the Wolfram Demonstrations Project, 2007.
- Beta Distribution – Overview and Example, xycoon.com
- Beta Distribution, brighton-webs.co.uk