The general formula for the probability density function of the beta distribution is ( f(x) = \frac{(x-a)^{p-1}(b-x)^{q-1}}{B(p,q) (b-a)^{p+q-1}}
\hspace{.3in} a \le x \le b; p, q > 0 ) where p and q are the shape parameters, a and b are the lower and upper bounds, respectively, of the distribution, and B(p,q) is the beta function. The beta function has the formula B(α,β)=∫01tα−1(1−t)β−1dt The case where a = 0 and b = 1 is called the standard beta distribution. The equation for the standard beta distribution is ( f(x) = \frac{x^{p-1}(1-x)^{q-1}}{B(p,q)} \hspace{.3in}
0 \le x \le 1; p, q > 0 ) Typically we define the general form of a distribution in terms of location and scale parameters. The beta is different in that we define the general distribution in terms of the lower and upper bounds. However, the location and scale parameters can be defined in terms of the lower and upper limits as follows: location = a scale = b - a Since the general form of probability functions can be expressed in terms of the standard distribution, all subsequent formulas in this section are given for the standard form of the function. The following is the plot of the beta probability density function for four different values of the shape parameters.
Cumulative Distribution Function
The formula for the cumulative distribution function of the beta distribution is also called the incomplete beta function ratio (commonly denoted by Ix) and is defined as ( F(x) = I_{x}(p,q) = \frac{\int_{0}^{x}{t^{p-1}(1-t)^{q-1}dt}}{B(p,q)}
\hspace{.2in} 0 \le x \le 1; p, q > 0 ) where B is the beta function defined above. The following is the plot of the beta cumulative distribution function with the same values of the shape parameters as the pdf plots above.
Percent Point Function
The formula for the percent point function of the beta distribution does not exist in a simple closed form. It is computed numerically. The following is the plot of the beta percent point function with the same values of the shape parameters as the pdf plots above.
Other Probability Functions
Since the beta distribution is not typically used for reliability applications, we omit the formulas and plots for the hazard, cumulative hazard, survival, and inverse survival probability functions.
Common Statistics
The formulas below are for the case where the lower limit is zero and the upper limit is one.
Parameter Estimation
First consider the case where a and b are assumed to be known. For this case, the method of moments estimates are p=xˉ(s2xˉ(1−xˉ)−1)q=(1−xˉ)(s2xˉ(1−xˉ)−1) where xˉ is the sample mean and s2 is the sample variance. If a and b are not 0 and 1, respectively, then replace xˉ with b−axˉ−a and s2 with (b−a)2s2 in the above equations. For the case when a and b are known, the maximum likelihood estimates can be obtained by solving the following set of equations ( \psi(\hat{p}) - \psi(\hat{p} + \hat{q}) = \frac{1}{n}
\sum_{i=1}^{n}{\log(\frac{b - Y_i}{b - a})} ) Maximum likelihood estimation for the case when a and b are not known can sometimes be problematic. Chapter 14 of Bury discusses both moment and maximum likelihood estimation for this case.
Software
Most general purpose statistical software programs support at least some of the probability functions for the beta distribution.