e01.org

Beta distribution

{{Probability distribution | name = Beta | type = density | pdf_image = | cdf_image = | notation = Beta(α, β) | parameters = α > 0 shape (real) β > 0 shape (real) | support = x \in [0, 1]\! or x \in (0, 1)\! | pdf = \frac{x^{\alpha-1}(1-x)^{\beta-1}} {\Beta(\alpha,\beta)}\! where \Beta(\alpha,\beta) = \frac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha + \beta)} and \Gamma is the Gamma function. | cdf = I_x(\alpha,\beta)\! (the regularized incomplete beta function) | mean = \operatorname{E}[X] = \frac{\alpha}{\alpha+\beta}\! \operatorname{E}[\ln X] = \psi(\alpha) - \psi(\alpha + \beta)\! \operatorname{E}[X \, \ln X] = \frac{\alpha}{\alpha+\beta}\,\left[\psi(\alpha+1)-\psi(\alpha+\beta+1)\right]\! (see section: Geometric mean) where \psi is the digamma function | median = \begin{matrix}I_{\frac{1}{2}}^{[-1]}(\alpha,\beta)\text{ (in general) }\\[0.5em] \approx \frac{ \alpha - \tfrac{1}{3} }{ \alpha + \beta - \tfrac{2}{3} }\text{ for }\alpha, \beta >1\end{matrix} | mode =...

{{Probability distribution | name = Beta | type = density | pdf_image = | cdf_image = | notation = Beta(α, β) | parameters = α > 0 shape (real) β > 0 shape (real) | support = x \in [0, 1]\! or x \in (0, 1)\! | pdf = \frac{x^{\alpha-1}(1-x)^{\beta-1}} {\Beta(\alpha,\beta)}\! where \Beta(\alpha,\beta) = \frac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha + \beta)} and \Gamma is the Gamma function. | cdf = I_x(\alpha,\beta)\! (the regularized incomplete beta function) | mean = \operatorname{E}[X] = \frac{\alpha}{\alpha+\beta}\! \operatorname{E}[\ln X] = \psi(\alpha) - \psi(\alpha + \beta)\! \operatorname{E}[X \, \ln X] = \frac{\alpha}{\alpha+\beta}\,\left[\psi(\alpha+1)-\psi(\alpha+\beta+1)\right]\! (see section: Geometric mean) where \psi is the digamma function | median = \begin{matrix}I_{\frac{1}{2}}^{[-1]}(\alpha,\beta)\text{ (in general) }\\[0.5em] \approx \frac{ \alpha - \tfrac{1}{3} }{ \alpha + \beta - \tfrac{2}{3} }\text{ for }\alpha, \beta >1\end{matrix} | mode = \frac{\alpha-1}{\alpha+\beta-2}\! for α, β > 1 Any value in the domain for α = β = 1 No mode if α  \operatorname{var}[X] = \frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}\! \operatorname{var}[\ln X] = \psi_1(\alpha) - \psi_1(\alpha + \beta)\! (see trigamma function and see section: Geometric variance) | skewness = \frac{2\,(\beta-\alpha)\sqrt{\alpha+\beta+1}}{(\alpha+\beta+2)\sqrt{\alpha\beta}} | kurtosis = \frac{6[(\alpha - \beta)^2 (\alpha +\beta + 1) - \alpha \beta (\alpha + \beta + 2)]}{\alpha \beta (\alpha + \beta + 2) (\alpha + \beta + 3)} | entropy = \begin{matrix}\ln\Beta(\alpha,\beta)-(\alpha-1)\psi(\alpha)-(\beta-1)\psi(\beta)\\[0.5em] {}+(\alpha+\beta-2)\psi(\alpha+\beta)\end{matrix} | mgf = 1 +\sum_{k=1}^\infty \left( \prod_{r=0}^{k-1} \frac{\alpha+r}{\alpha+\beta+r} \right) \frac{t^k}{k!} | char = {}_1F_1(\alpha; \alpha+\beta; i\,t)\! (see Confluent hypergeometric function) | fisher = \begin{bmatrix} \operatorname{var}[\ln X] &\operatorname{cov}[\ln X, \ln(1-X)] \\ \operatorname{cov}[\ln X, \ln(1-X)] & \operatorname{var}[\ln (1-X)]\end{bmatrix} see section: Fisher information matrix | moments = \alpha = \left(\frac{E[X](1 - E[X])}{V[X]} - 1 \right)E[X] \beta = \left(\frac{E[X](1 - E[X])}{V[X]} - 1 \right)(1 - E[X]) }} In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval [0, 1] or (0, 1) in terms of two positive parameters, denoted by alpha (α) and beta (β), that appear as exponents of the variable and its complement to 1, respectively, and control the shape of the distribution. The beta distribution has been applied to model the behavior of random variables limited to intervals of finite length in a wide variety of disciplines. The beta distribution is a suitable model for the random behavior of percentages and proportions. In Bayesian inference, the beta distribution is the conjugate prior probability distribution for the Bernoulli, binomial, negative binomial, and geometric distributions. The formulation of the beta distribution discussed here 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. The generalization to multiple variables is called a Dirichlet distribution. ==Definitions== ===Probability density function=== The probability density function (PDF) of the beta distribution, for 0 \leq x \leq 1 or 0 , and shape parameters \alpha , \beta > 0 , is a power function of the variable x and of its reflection (1-x) as follows: \begin{align} f(x;\alpha,\beta) & = \mathrm{constant}\cdot x^{\alpha-1}(1-x)^{\beta-1} \\[3pt] & = \frac{x^{\alpha-1}(1-x)^{\beta-1}}{\displaystyle \int_0^1 u^{\alpha-1} (1-u)^{\beta-1}\, du} \\[6pt] & = \frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}\, x^{\alpha-1}(1-x)^{\beta-1} \\[6pt] & = \frac{1}{\Beta(\alpha,\beta)} x^{\alpha-1}(1-x)^{\beta-1} \end{align} where \Gamma(z) is the gamma function. The beta function, \Beta , is a normalization constant to ensure that the total probability is 1. In the above equations x is a realization—an observed value that actually occurred—of a random variable X . Several authors, including N. L. Johnson and S. Kotz, use the symbols p and q (instead of \alpha and \beta ) for the shape parameters of the beta distribution, reminiscent of the symbols traditionally used for the parameters of the Bernoulli distribution, because the beta distribution approaches the Bernoulli distribution in the limit when both shape parameters \alpha and \beta approach zero. In the following, a random variable X beta-distributed with parameters \alpha and \beta will be denoted by: X \sim \operatorname{Beta}(\alpha, \beta) Other notations for beta-distributed random variables used in the statistical literature are X \sim \mathcal{B}e(\alpha, \beta) and X \sim \beta_{\alpha, \beta} . ===Cumulative distribution function=== The cumulative distribution function is F(x;\alpha,\beta) = \frac{\Beta{}(x;\alpha,\beta)}{\Beta{}(\alpha,\beta)} = I_x(\alpha,\beta) where \Beta(x;\alpha,\beta) is the incomplete beta function and I_x(\alpha,\beta) is the regularized incomplete beta function. For positive integers α and β, the cumulative distribution function of a beta distribution can be expressed in terms of the cumulative distribution function of a binomial distribution with F_{\text{beta}}(x;\alpha,\beta) = F_{\text{binomial}}(\beta-1;\alpha+\beta-1,1-x). ===Alternative parameterizations=== ====Two parameters==== =====Mean and sample size===== The beta distribution may also be reparameterized in terms of its mean μ and the sum of the two shape parameters ( p. 83). Denoting by αPosterior and βPosterior the shape parameters of the posterior beta distribution resulting from applying Bayes' theorem to a binomial likelihood function and a prior probability, the interpretation of the addition of both shape parameters to be sample size = ν = α·Posterior + β·Posterior is only correct for the Haldane prior probability Beta(0,0). Specifically, for the Bayes (uniform) prior Beta(1,1) the correct interpretation would be sample size = α·Posterior + β Posterior − 2, or ν = (sample size) + 2. For sample size much larger than 2, the difference between these two priors becomes negligible. (See section Bayesian inference for further details.) ν = α + β is referred to as the "sample size" of a beta distribution, but one should remember that it is, strictly speaking, the "sample size" of a binomial likelihood function only when using a Haldane Beta(0,0) prior in Bayes' theorem. This parametrization may be useful in Bayesian parameter estimation. 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 Under this parametrization, one may place an uninformative prior probability over the mean, and a vague prior probability (such as an exponential or gamma distribution) over the positive reals for the sample size, if they are independent, and prior data and/or beliefs justify it. =====Mode and concentration===== Concave beta distributions, which have \alpha,\beta>1 , can be parametrized in terms of mode and "concentration". The mode, \omega=\frac{\alpha-1}{\alpha+\beta-2} , and concentration, \kappa = \alpha + \beta , can be used to define the usual shape parameters as follows: \begin{align} \alpha &= \omega (\kappa - 2) + 1 \\ \beta &= (1 - \omega)(\kappa - 2) + 1 \end{align} For the mode, 0 , to be well-defined, we need \alpha,\beta>1 , or equivalently \kappa>2 . If instead we define the concentration as c=\alpha+\beta-2 , the condition simplifies to c>0 and the beta density at \alpha=1+c\omega and \beta=1+c(1-\omega) can be written as: f(x;\omega,c) = \frac{x^{c\omega}(1-x)^{c(1-\omega)}}{\Beta\bigl(1+c\omega,1+c(1-\omega)\bigr)} where c directly scales the sufficient statistics, \log(x) and \log(1-x) . Note also that in the limit, c\to0 , the distribution becomes flat. =====Mean and variance===== Solving the system of (coupled) equations given in the above sections as the equations for the mean and the variance of the beta distribution in terms of the original parameters α and β, one can express the α and β parameters in terms of the mean (μ) and the variance (var): \begin{align} \nu &= \alpha + \beta = \frac{\mu(1-\mu)}{\mathrm{var}}-1, \text{ where }\nu =(\alpha + \beta) >0,\text{ therefore: }\text{var} This parametrization of the beta distribution may lead to a more intuitive understanding than the one based on the original parameters α and β. For example, by expressing the mode, skewness, excess kurtosis and differential entropy in terms of the mean and the variance: ====Four parameters==== A beta distribution with the two shape parameters α and β is supported on the range [0,1] or (0,1). It is possible to alter the location and scale of the distribution by introducing two further parameters representing the minimum, a, and maximum c (c > a), values of the distribution, by a linear transformation substituting the non-dimensional variable x in terms of the new variable y (with support [a,c] or (a,c)) and the parameters a and c: y = x(c-a) + a, \text{ therefore } x = \frac{y-a}{c-a}. The probability density function of the four parameter beta distribution is equal to the two parameter distribution, scaled by the range (c − a), (so that the total area under the density curve equals a probability of one), and with the "y" variable shifted and scaled as follows: \begin{align} f(y; \alpha, \beta, a, c) = \frac{f(x;\alpha,\beta)}{c-a} &= \frac{\left(\frac{y-a}{c-a}\right)^{\alpha-1} \left (\frac{c-y}{c-a} \right)^{\beta-1} }{(c-a)B(\alpha, \beta)} \\[1ex] &= \frac{ (y-a)^{\alpha-1} (c-y)^{\beta-1} }{(c-a)^{\alpha+\beta-1}B(\alpha, \beta)}. \end{align} That a random variable Y is beta-distributed with four parameters α, β, a, and c will be denoted by: Y \sim \operatorname{Beta}(\alpha, \beta, a, c). Some measures of central location are scaled (by (c − a)) and shifted (by a), as follows: \begin{align} \mu_Y &= \mu_X(c-a) + a \\[1ex] & = \frac{\alpha}{\alpha+\beta} \left(c-a\right) + a = \frac{\alpha c+ \beta a}{\alpha+\beta} \end{align} \begin{align} \text{mode}(Y) &=\text{mode}(X)(c-a) + a \\[1ex] & = \frac{\alpha - 1}{\alpha+\beta - 2} \left(c-a\right) + a \\[1ex] & = \frac{(\alpha-1) c+(\beta-1) a}{\alpha+\beta-2}\ , & \text{ if } \alpha,\, \beta>1 \end{align} \begin{align} \text{median}(Y) &= \text{median}(X)(c-a) + a \\[1ex] & = I_{\frac{1}{2}}^{[-1]}(\alpha,\beta) \left(c-a\right)+a \end{align} Note: the geometric mean and harmonic mean cannot be transformed by a linear transformation in the way that the mean, median and mode can. The shape parameters of Y can be written in term of its mean and variance as \begin{align} \alpha &= \frac{\left(a - \mu_Y\right) \left(a \, c - a \, \mu_Y - c \, \mu_Y + \mu_Y^2 + \sigma_Y^2\right)}{\sigma_Y^2(c-a)} \\ \beta &= -\frac{\left(c - \mu_Y\right) \left(a \, c - a \, \mu_Y - c \, \mu_Y + \mu_Y^2 + \sigma_Y^2\right)}{\sigma_Y^2(c-a)} \end{align} The statistical dispersion measures are scaled (they do not need to be shifted because they are already centered on the mean) by the range (c − a), linearly for the mean deviation and nonlinearly for the variance: \begin{align} &\text{(mean deviation around mean)}(Y) \\[1ex] &= (\text{(mean deviation around mean)}(X))(c-a) \\ &= \frac{2 \alpha^\alpha \beta^\beta}{\Beta(\alpha,\beta)(\alpha + \beta)^{\alpha + \beta + 1}}(c-a) \end{align} \text{var}(Y) = \text{var}(X)(c-a)^2 =\frac{\alpha\beta (c-a)^2}{(\alpha+\beta)^2(\alpha+\beta+1)}. Since the skewness and excess kurtosis are non-dimensional quantities (as moments centered on the mean and normalized by the standard deviation), they are independent of the parameters a and c, and therefore equal to the expressions given above in terms of X (with support [0,1] or (0,1)): \text{skewness}(Y) =\text{skewness}(X) = \frac{2 (\beta - \alpha) \sqrt{\alpha + \beta + 1} }{(\alpha + \beta + 2) \sqrt{\alpha \beta}}. \text{kurtosis excess}(Y) =\text{kurtosis excess}(X) = \frac{6\left[(\alpha - \beta)^2 (\alpha +\beta + 1) - \alpha \beta (\alpha + \beta + 2)\right]} {\alpha \beta (\alpha + \beta + 2) (\alpha + \beta + 3)} ==Properties== ===Measures of central tendency=== ====Mode==== The mode of a beta distributed random variable X with α, β > 1 is the most likely value of the distribution (corresponding to the peak in the PDF), and is given by the following expression: \frac{\alpha - 1} {\alpha + \beta - 2} . When both parameters are less than one (α, β 1 the mode (resp. anti-mode when ), is at the center of the distribution: it is symmetric in those cases. See Shapes section in this article for a full list of mode cases, for arbitrary values of α and β. For several of these cases, the maximum value of the density function occurs at one or both ends. In some cases the (maximum) value of the density function occurring at the end is finite. For example, in the case of α = 2, β = 1 (or α = 1, β = 2), the density function becomes a right-triangle distribution which is finite at both ends. In several other cases there is a singularity at one end, where the value of the density function approaches infinity. For example, in the case α = β = 1/2, the beta distribution simplifies to become the arcsine distribution. There is debate among mathematicians about some of these cases and whether the ends (x = 0, and x = 1) can be called modes or not. Whether the ends are part of the domain of the density function Whether a singularity can ever be called a mode Whether cases with two maxima should be called bimodal ====Median==== The median of the beta distribution is the unique real number x = I_{1/2}^{[-1]}(\alpha,\beta) for which the regularized incomplete beta function I_x(\alpha,\beta) = \tfrac{1}{2} . There is no general closed-form expression for the median of the beta distribution for arbitrary values of α and β. Closed-form expressions for particular values of the parameters α and β follow: For symmetric cases α = β, median = 1/2. For α = 1 and β > 0, median =1-2^{-1/\beta} (this case is the mirror-image of the power function distribution) For α > 0 and β = 1, median = 2^{-1/\alpha} (this case is the power function distribution ) For α = 3 and β = 2, median = 0.6142724318676105..., the real solution to the quartic equation 1 − 8x 3 + 6x 4 = 0, which lies in [0,1]. For α = 2 and β = 3, median = 0.38572756813238945... = 1−median(Beta(3, 2)) The following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} \lim_{\beta \to 0} \text{median}= \lim_{\alpha \to \infty} \text{median} = 1,\\ \lim_{\alpha\to 0} \text{median}= \lim_{\beta \to \infty} \text{median} = 0. \end{align} A reasonable approximation of the value of the median of the beta distribution, for both α and β greater or equal to one, is given by the formula \text{median} \approx \frac{\alpha - \tfrac{1}{3}}{\alpha + \beta - \tfrac{2}{3}} \text{ for } \alpha, \beta \ge 1. When α, β ≥ 1, the relative error (the absolute error divided by the median) in this approximation is less than 4% and for both α ≥ 2 and β ≥ 2 it is less than 1%. The absolute error divided by the difference between the mean and the mode is similarly small: [[File:Relative Error for Approximation to Median of Beta Distribution for alpha and beta from 1 to 5 - J. Rodal.jpg|325px|Abs[(Median-Appr.)/Median] for beta distribution for 1 ≤ α ≤ 5 and 1 ≤ β ≤ 5 [[File:Error in Median Apprx. relative to Mean-Mode distance for Beta Distribution with alpha and beta from 1 to 5 - J. Rodal.jpg|325px|Abs[(Median-Appr.)/(Mean-Mode)] for beta distribution for 1 ≤ α ≤ 5 and 1 ≤ β ≤ 5 ====Mean==== The expected value (mean) (μ) of a beta distribution random variable X with two parameters α and β is a function of only the ratio β/α of these parameters: \begin{align} \mu = \operatorname{E}[X] &= \int_0^1 x f(x;\alpha,\beta)\,dx \\ &= \int_0^1 x \,\frac{x^{\alpha-1}(1-x)^{\beta-1}}{\Beta(\alpha,\beta)}\,dx \\ &= \frac{\alpha}{\alpha + \beta} \\ &= \frac{1}{1 + \frac{\beta}{\alpha}} \end{align} Letting in the above expression one obtains , showing that for the mean is at the center of the distribution: it is symmetric. Also, the following limits can be obtained from the above expression: \begin{align} \lim_{\frac{\beta}{\alpha} \to 0} \mu = 1\\ \lim_{\frac{\beta}{\alpha} \to \infty} \mu = 0 \end{align} Therefore, for β/α → 0, or for α/β → ∞, the mean is located at the right end, . For these limit ratios, the beta distribution becomes a one-point degenerate distribution with a Dirac delta function spike at the right end, , with probability 1, and zero probability everywhere else. There is 100% probability (absolute certainty) concentrated at the right end, . Similarly, for β/α → ∞, or for α/β → 0, the mean is located at the left end, . The beta distribution becomes a 1-point Degenerate distribution with a Dirac delta function spike at the left end, x = 0, with probability 1, and zero probability everywhere else. There is 100% probability (absolute certainty) concentrated at the left end, x = 0. Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} \lim_{\beta \to 0} \mu = \lim_{\alpha \to \infty} \mu = 1\\ \lim_{\alpha\to 0} \mu = \lim_{\beta \to \infty} \mu = 0 \end{align} While for typical unimodal distributions (with centrally located modes, inflexion points at both sides of the mode, and longer tails) (with Beta(α, β) such that ) it is known that the sample mean (as an estimate of location) is not as robust as the sample median, the opposite is the case for uniform or "U-shaped" bimodal distributions (with Beta(α, β) such that ), with the modes located at the ends of the distribution. As Mosteller and Tukey remark ( p. 207) "the average of the two extreme observations uses all the sample information. This illustrates how, for short-tailed distributions, the extreme observations should get more weight." By contrast, it follows that the median of "U-shaped" bimodal distributions with modes at the edge of the distribution (with Beta(α, β) such that ) is not robust, as the sample median drops the extreme sample observations from consideration. A practical application of this occurs for example for random walks, since the probability for the time of the last visit to the origin in a random walk is distributed as the arcsine distribution Beta(1/2, 1/2): the mean of a number of realizations of a random walk is a much more robust estimator than the median (which is an inappropriate sample measure estimate in this case). ====Geometric mean==== The logarithm of the geometric mean G X of a distribution with random variable X is the arithmetic mean of ln(X), or, equivalently, its expected value: \ln G_X = \operatorname{E}[\ln X] For a beta distribution, the expected value integral gives: \begin{align} \operatorname{E}[\ln X] &= \int_0^1 \ln x\, f(x;\alpha,\beta)\,dx \\[4pt] &= \int_0^1 \ln x \,\frac{ x^{\alpha-1}(1-x)^{\beta-1}}{\Beta(\alpha,\beta)}\,dx \\[4pt] &= \frac{1}{\Beta(\alpha,\beta)} \, \int_0^1 \frac{\partial x^{\alpha-1}(1-x)^{\beta-1}}{\partial \alpha}\,dx \\[4pt] &= \frac{1}{\Beta(\alpha,\beta)} \frac{\partial}{\partial \alpha} \int_0^1 x^{\alpha-1}(1-x)^{\beta-1}\,dx \\[4pt] &= \frac{1}{\Beta(\alpha,\beta)} \frac{\partial \Beta(\alpha,\beta)}{\partial \alpha} \\[4pt] &= \frac{\partial \ln \Beta(\alpha,\beta)}{\partial \alpha} \\[4pt] &= \frac{\partial \ln \Gamma(\alpha)}{\partial \alpha} - \frac{\partial \ln \Gamma(\alpha + \beta)}{\partial \alpha} \\[4pt] &= \psi(\alpha) - \psi(\alpha + \beta) \end{align} where ψ is the digamma function. Therefore, the geometric mean of a beta distribution with shape parameters α and β is the exponential of the digamma functions of α and β as follows: G_X = e^{\operatorname{E}[\ln X]}= e^{\psi(\alpha) - \psi(\alpha + \beta)} While for a beta distribution with equal shape parameters α = β, it follows that skewness = 0 and mode = mean = median = 1/2, the geometric mean is less than 1/2: . The reason for this is that the logarithmic transformation strongly weights the values of X close to zero, as ln(X) strongly tends towards negative infinity as X approaches zero, while ln(X) flattens towards zero as . Along a line , the following limits apply: \begin{align} &\lim_{\alpha = \beta \to 0} G_X = 0 \\ &\lim_{\alpha = \beta \to \infty} G_X =\tfrac{1}{2} \end{align} Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} \lim_{\beta \to 0} G_X = \lim_{\alpha \to \infty} G_X = 1\\ \lim_{\alpha\to 0} G_X = \lim_{\beta \to \infty} G_X = 0 \end{align} The accompanying plot shows the difference between the mean and the geometric mean for shape parameters α and β from zero to 2. Besides the fact that the difference between them approaches zero as α and β approach infinity and that the difference becomes large for values of α and β approaching zero, one can observe an evident asymmetry of the geometric mean with respect to the shape parameters α and β. The difference between the geometric mean and the mean is larger for small values of α in relation to β than when exchanging the magnitudes of β and α. N. L.Johnson and S. Kotz suggest the logarithmic approximation to the digamma function ψ(α) ≈ ln(α − 1/2) which results in the following approximation to the geometric mean: G_X \approx \frac{\alpha \, - \frac{1}{2}}{\alpha +\beta - \frac{1}{2}}\text{ if } \alpha, \beta > 1. Numerical values for the relative error in this approximation follow: [ ]; [ ]; [ ]; [ ]; [ ]; [ ]; [ ]; [ ]. Similarly, one can calculate the value of shape parameters required for the geometric mean to equal 1/2. Given the value of the parameter β, what would be the value of the other parameter, α, required for the geometric mean to equal 1/2?. The answer is that (for ), the value of α required tends towards as . For example, all these couples have the same geometric mean of 1/2: [ ], [ ], [ ], [ ], [ ], [ ], [ ]. The fundamental property of the geometric mean, which can be proven to be false for any other mean, is G{\left(\frac{X_i}{Y_i}\right)} = \frac{G(X_i)}{G(Y_i)} This makes the geometric mean the only correct mean when averaging normalized results, that is results that are presented as ratios to reference values. This is relevant because the beta distribution is a suitable model for the random behavior of percentages and it is particularly suitable to the statistical modelling of proportions. The geometric mean plays a central role in maximum likelihood estimation, see section "Parameter estimation, maximum likelihood." Actually, when performing maximum likelihood estimation, besides the geometric mean G X based on the random variable X, also another geometric mean appears naturally: the geometric mean based on the linear transformation –– , the mirror-image of X, denoted by G (1−X) : G_{1-X} = e^{\operatorname{E}[\ln(1-X)] } = e^{\psi(\beta) - \psi(\alpha + \beta)} Along a line , the following limits apply: \begin{align} &\lim_{\alpha = \beta \to 0} G_{1-X} =0 \\ &\lim_{\alpha = \beta \to \infty} G_{1-X} =\tfrac{1}{2} \end{align} Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} \lim_{\beta \to 0} G_{(1-X)} = \lim_{\alpha \to \infty} G_{(1-X)} = 0\\ \lim_{\alpha\to 0} G_{(1-X)} = \lim_{\beta \to \infty} G_{(1-X)} = 1 \end{align} It has the following approximate value: G_{(1-X)} \approx \frac{\beta - \frac{1}{2}}{\alpha+\beta-\frac{1}{2}}\text{ if } \alpha, \beta > 1. Although both G X and G 1−X are asymmetric, in the case that both shape parameters are equal , the geometric means are equal: G X = G (1−X) . This equality follows from the following symmetry displayed between both geometric means: G_X (\Beta(\alpha, \beta) ) = G_{1-X}(\Beta(\beta, \alpha) ). ====Harmonic mean==== The inverse of the harmonic mean (H X ) of a distribution with random variable X is the arithmetic mean of 1/X, or, equivalently, its expected value. Therefore, the harmonic mean (H X ) of a beta distribution with shape parameters α and β is: \begin{align} H_X &= \frac{1}{\operatorname{E}\left[\frac{1}{X}\right]} \\ &=\frac{1}{\int_0^1 \frac{f(x;\alpha,\beta)}{x}\,dx} \\ &=\frac{1}{\int_0^1 \frac{x^{\alpha-1}(1-x)^{\beta-1}}{x \Beta(\alpha,\beta)}\,dx} \\ &= \frac{\alpha - 1}{\alpha + \beta - 1}\text{ if } \alpha > 1 \text{ and } \beta > 0 \\ \end{align} The harmonic mean (H X ) of a beta distribution with α H_X = \frac{\alpha-1}{2\alpha-1}, showing that for α = β the harmonic mean ranges from 0, for α = β = 1, to 1/2, for α = β → ∞. Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} &\lim_{\alpha\to 0} H_X \text{ is undefined} \\ &\lim_{\alpha\to 1} H_X = \lim_{\beta \to \infty} H_X = 0 \\ &\lim_{\beta \to 0} H_X = \lim_{\alpha \to \infty} H_X = 1 \end{align} The harmonic mean plays a role in maximum likelihood estimation for the four parameter case, in addition to the geometric mean. Actually, when performing maximum likelihood estimation for the four parameter case, besides the harmonic mean H X based on the random variable X, also another harmonic mean appears naturally: the harmonic mean based on the linear transformation (1 − X), the mirror-image of X, denoted by H 1 − X : H_{1-X} = \frac{1}{\operatorname{E} \left[\frac 1 {1-X}\right]} = \frac{\beta - 1}{\alpha + \beta-1} \text{ if } \beta > 1, \text{ and } \alpha> 0. The harmonic mean (H (1 − X) ) of a beta distribution with β H_{(1-X)} = \frac{\beta-1}{2\beta-1}, showing that for α = β the harmonic mean ranges from 0, for α = β = 1, to 1/2, for α = β → ∞. Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} &\lim_{\beta\to 0} H_{1-X} \text{ is undefined} \\ &\lim_{\beta\to 1} H_{1-X} = \lim_{\alpha\to \infty} H_{1-X} = 0 \\ &\lim_{\alpha\to 0} H_{1-X} = \lim_{\beta\to \infty} H_{1-X} = 1 \end{align} Although both H X and H 1−X are asymmetric, in the case that both shape parameters are equal α = β, the harmonic means are equal: H X = H 1−X . This equality follows from the following symmetry displayed between both harmonic means: H_X (\Beta(\alpha, \beta) )=H_{1-X}(\Beta(\beta, \alpha) ) \text{ if } \alpha, \beta> 1. ===Measures of statistical dispersion=== ====Variance==== The variance (the second moment centered on the mean) of a beta distribution random variable X with parameters α and β is: \operatorname{var}(X) = \operatorname{E}\left[(X - \mu)^2\right] = \frac{\alpha \beta}{\left(\alpha + \beta\right)^2 \left(\alpha + \beta + 1\right)} Letting α = β in the above expression one obtains \operatorname{var}(X) = \frac{1}{4(2\beta + 1)}, showing that for α = β the variance decreases monotonically as increases. Setting in this expression, one finds the maximum variance var(X) = 1/4 which only occurs approaching the limit, at . The beta distribution may also be parametrized in terms of its mean μ and sample size ( ) (see subsection Mean and sample size): \begin{align} \alpha &= \mu \nu, & \text{ where }\nu = (\alpha + \beta) > 0,\\ \beta &= (1 - \mu) \nu, & \text{ where } \nu = (\alpha + \beta) > 0. \end{align} Using this parametrization, one can express the variance in terms of the mean μ and the sample size ν as follows: \operatorname{var}(X) = \frac{\mu (1-\mu)}{1 + \nu} Since , it follows that . For a symmetric distribution, the mean is at the middle of the distribution, , and therefore: \operatorname{var}(X) = \frac{1}{4 (1 + \nu)} \text{ if } \mu = \tfrac{1}{2} Also, the following limits (with only the noted variable approaching the limit) can be obtained from the above expressions: \begin{align} &\lim_{\beta\to 0} \operatorname{var}(X) = \lim_{\alpha \to 0} \operatorname{var}(X) =\lim_{\beta\to \infty} \operatorname{var}(X) = \lim_{\alpha \to \infty} \operatorname{var}(X) = 0 \\ &\lim_{\nu \to \infty} \operatorname{var}(X) =\lim_{\mu \to 0} \operatorname{var}(X) = \lim_{\mu \to 1} \operatorname{var}(X) = 0 \\ &\lim_{\nu \to 0} \operatorname{var}(X) = \mu (1-\mu) \end{align} ====Geometric variance and covariance==== The logarithm of the geometric variance, ln(var GX ), of a distribution with random variable X is the second moment of the logarithm of X centered on the geometric mean of X, ln(G X ): \begin{align} \ln \operatorname{var}_{GX} &= \operatorname{E} \left [\left(\ln X - \ln G_X\right)^2 \right ] \\ &= \operatorname{E}\left[\left(\ln X - \operatorname{E}\left [\ln X\right]\right)^2 \right] \\ &= \operatorname{E}\left[\left(\ln X\right)^2 \right] - \left(\operatorname{E}[\ln X]\right)^2\\ &= \operatorname{var}[\ln X] \end{align} and therefore, the geometric variance is: \operatorname{var}_{GX} = e^{\operatorname{var}[\ln X]} In the Fisher information matrix, and the curvature of the log likelihood function, the logarithm of the geometric variance of the reflected variable 1 − X and the logarithm of the geometric covariance between X and 1 − X appear: \begin{align} \ln \operatorname{var_{G(1-X)}} &= \operatorname{E}\left[\left(\ln (1-X) - \ln G_{1-X}\right)^2\right] \\ &= \operatorname{E}\left[\left(\ln (1-X) - \operatorname{E}[\ln (1-X)]\right)^2\right] \\ &= \operatorname{E}\left[(\ln (1-X))^2\right] - \left(\operatorname{E}[\ln (1-X)]\right)^2 \\ &= \operatorname{var}[\ln (1-X)] \\ & \\ \operatorname{var_{G(1-X)}} &= e^{\operatorname{var}[\ln (1-X)]} \\ & \\ \ln \operatorname{cov_{G{X,1-X}}} &= \operatorname{E}[(\ln X - \ln G_X)(\ln (1-X) - \ln G_{1-X})] \\ &= \operatorname{E}[(\ln X - \operatorname{E}[\ln X])(\ln (1-X) - \operatorname{E}[\ln (1-X)])] \\ &= \operatorname{E}\left[\ln X \ln(1-X)\right] - \operatorname{E}[\ln X]\operatorname{E}[\ln(1-X)]\\ &= \operatorname{cov}[\ln X, \ln(1-X)] \\ & \\ \operatorname{cov}_{G{X,(1-X)}} &= e^{\operatorname{cov}[\ln X, \ln(1-X)]} \end{align} For a beta distribution, higher order logarithmic moments can be derived by using the representation of a beta distribution as a proportion of two gamma distributions and differentiating through the integral. They can be expressed in terms of higher order poly-gamma functions. See the section . The variance of the logarithmic variables and covariance of ln X and ln(1−X) are: \operatorname{var}[\ln X]= \psi_1(\alpha) - \psi_1(\alpha + \beta) \operatorname{var}[\ln (1-X)] = \psi_1(\beta) - \psi_1(\alpha + \beta) \operatorname{cov}[\ln X, \ln(1-X)] = -\psi_1(\alpha+\beta) where the trigamma function, denoted ψ 1 (α), is the second of the polygamma functions, and is defined as the derivative of the digamma function: \psi_1(\alpha) = \frac{d^2\ln\Gamma(\alpha)}{d\alpha^2} = \frac{d \psi(\alpha)}{d\alpha}. Therefore, \ln \operatorname{var}_{GX}=\operatorname{var}[\ln X]= \psi_1(\alpha) - \psi_1(\alpha + \beta) \ln \operatorname{var}_{G(1-X)} =\operatorname{var}[\ln (1-X)] = \psi_1(\beta) - \psi_1(\alpha + \beta) \ln \operatorname{cov}_{GX,1-X} =\operatorname{cov}[\ln X, \ln(1-X)] = -\psi_1(\alpha+\beta) The accompanying plots show the log geometric variances and log geometric covariance versus the shape parameters α and β. The plots show that the log geometric variances and log geometric covariance are close to zero for shape parameters α and β greater than 2, and that the log geometric variances rapidly rise in value for shape parameter values α and β less than unity. The log geometric variances are positive for all values of the shape parameters. The log geometric covariance is negative for all values of the shape parameters, and it reaches large negative values for α and β less than unity. Following are the limits with one parameter finite (non-zero) and the other approaching these limits: \begin{align} &\lim_{\alpha\to 0} \ln \operatorname{var}_{GX} = \lim_{\beta\to 0} \ln \operatorname{var}_{G(1-X)} =\infty \\ &\lim_{\beta \to 0} \ln \operatorname{var}_{GX} = \lim_{\alpha \to \infty} \ln \operatorname{var}_{GX} = \lim_{\alpha \to 0} \ln \operatorname{var}_{G(1-X)} = \lim_{\beta\to \infty} \ln \operatorname{var}_{G(1-X)} = 0 \\ &\lim_{\alpha\to \infty} \ln \operatorname{cov}_{GX,(1-X)} = \lim_{\beta\to \infty} \ln \operatorname{cov}_{GX,(1-X)} = 0\\ &\lim_{\beta \to \infty} \ln \operatorname{var}_{GX} = \psi_1(\alpha)\\ &\lim_{\alpha\to \infty} \ln \operatorname{var}_{G(1-X)} = \psi_1(\beta)\\ &\lim_{\alpha\to 0} \ln \operatorname{cov}_{GX,(1-X)} = - \psi_1(\beta) \\ &\lim_{\beta \to 0} \ln \operatorname{cov}_{GX,(1-X)} = - \psi_1(\alpha) \end{align} Limits with two parameters varying: \begin{align} &\lim_{\alpha\to \infty}( \lim_{\beta \to \infty} \ln \operatorname{var}_{GX}) = \lim_{\beta \to \infty}( \lim_{\alpha \to \infty} \ln \operatorname{var}_{G(1-X)}) = \lim_{\alpha\to \infty} (\lim_{\beta \to 0} \ln \operatorname{cov}_{GX,(1-X)}) = \lim_{\beta\to \infty}( \lim_{\alpha\to 0} \ln \operatorname{cov}_{GX,(1-X)}) =0\\ &\lim_{\alpha\to \infty} (\lim_{\beta \to 0} \ln \operatorname{var}_{GX}) = \lim_{\beta\to \infty} (\lim_{\alpha\to 0} \ln \operatorname{var}_{G(1-X)}) = \infty\\ &\lim_{\alpha\to 0} (\lim_{\beta \to 0} \ln \operatorname{cov}_{GX,(1-X)}) = \lim_{\beta\to 0} (\lim_{\alpha\to 0} \ln \operatorname{cov}_{GX,(1-X)}) = - \infty \end{align} Although both ln(var GX ) and ln(var G(1 − X) ) are asymmetric, when the shape parameters are equal, α = β, one has: ln(var GX ) = ln(var G(1−X) ). This equality follows from the following symmetry displayed between both log geometric variances: \ln \operatorname{var}_{GX}(\Beta(\alpha, \beta))=\ln \operatorname{var}_{G(1-X)}(\Beta(\beta, \alpha)). The log geometric covariance is symmetric: \ln \operatorname{cov}_{GX,(1-X)}(\Beta(\alpha, \beta) )=\ln \operatorname{cov}_{GX,(1-X)}(\Beta(\beta, \alpha)) ====Mean absolute deviation around the mean==== The mean absolute deviation around the mean for the beta distribution with shape parameters α and β is: \operatorname{E}[|X - E[X]|] = \frac{2 \alpha^\alpha \beta^\beta}{\Beta(\alpha,\beta)(\alpha + \beta)^{\alpha + \beta + 1}} The mean absolute deviation around the mean is a more robust estimator of statistical dispersion than the standard deviation for beta distributions with tails and inflection points at each side of the mode, Beta(α, β) distributions with α,β > 2, as it depends on the linear (absolute) deviations rather than the square deviations from the mean. Therefore, the effect of very large deviations from the mean are not as overly weighted. Using Stirling's approximation to the Gamma function, N.L.Johnson and S.Kotz derived the following approximation for values of the shape parameters greater than unity (the relative error for this approximation is only −3.5% for α = β = 1, and it decreases to zero as α → ∞, β → ∞): \begin{align} \frac{\text{mean abs. dev. from mean}}{\text{standard deviation}} &=\frac{\operatorname{E}[|X - E[X]|]}{\sqrt{\operatorname{var}(X)}}\\ &\approx \sqrt{\frac{2}{\pi}} \left(1+\frac{7}{12 (\alpha+\beta)}{}-\frac{1}{12 \alpha}-\frac{1}{12 \beta} \right), \text{ if } \alpha, \beta > 1. \end{align} At the limit α → ∞, β → ∞, the ratio of the mean absolute deviation to the standard deviation (for the beta distribution) becomes equal to the ratio of the same measures for the normal distribution: \sqrt{\frac{2}{\pi}} . For α = β = 1 this ratio equals \frac{\sqrt{3}}{2} , so that from α = β = 1 to α, β → ∞ the ratio decreases by 8.5%. For α = β = 0 the standard deviation is exactly equal to the mean absolute deviation around the mean. Therefore, this ratio decreases by 15% from α = β = 0 to α = β = 1, and by 25% from α = β = 0 to α, β → ∞ . However, for skewed beta distributions such that α → 0 or β → 0, the ratio of the standard deviation to the mean absolute deviation approaches infinity (although each of them, individually, approaches zero) because the mean absolute deviation approaches zero faster than the standard deviation. Using the parametrization in terms of mean μ and sample size ν = α + β > 0: one can express the mean absolute deviation around the mean in terms of the mean μ and the sample size ν as follows: \operatorname{E}[| X - E[X]|] = \frac{2 \mu^{\mu\nu} (1-\mu)^{(1-\mu)\nu}}{\nu \Beta(\mu \nu,(1-\mu)\nu)} For a symmetric distribution, the mean is at the middle of the distribution, μ = 1/2, and therefore: \begin{align} \operatorname{E}[|X - E[X]|] = \frac{2^{1-\nu}}{\nu \Beta(\tfrac{\nu}{2} ,\tfrac{\nu}{2})} &= \frac{2^{1-\nu}\Gamma(\nu)}{\nu (\Gamma(\tfrac{\nu}{2}))^2 } \\ \lim_{\nu \to 0} \left (\lim_{\mu \to \frac{1}{2}} \operatorname{E}[|X - E[X]|] \right ) &= \frac{1}{2} \\ \lim_{\nu \to \infty} \left (\lim_{\mu \to \frac{1}{2}} \operatorname{E}[| X - E[X]|] \right ) &= 0 \end{align} Also, the following limits (with only the noted variable approaching the limit) can be obtained from the above expressions: \begin{align} \lim_{\beta\to 0} \operatorname{E}[|X - E[X]|] &=\lim_{\alpha \to 0} \operatorname{E}[|X - E[X]|]= 0 \\ \lim_{\beta\to \infty} \operatorname{E}[|X - E[X]|] &=\lim_{\alpha \to \infty} \operatorname{E}[|X - E[X]|] = 0\\ \lim_{\mu \to 0} \operatorname{E}[|X - E[X]|]&=\lim_{\mu \to 1} \operatorname{E}[|X - E[X]|] = 0\\ \lim_{\nu \to 0} \operatorname{E}[|X - E[X]|] &= \sqrt{\mu (1-\mu)} \\ \lim_{\nu \to \infty} \operatorname{E}[|X - E[X]|] &= 0 \end{align} ====Mean absolute difference==== The mean absolute difference for the beta distribution is: \begin{align} \mathrm{MD} &= \int_0^1 \int_0^1 f(x;\alpha,\beta)\,f(y;\alpha,\beta) \left|x-y\right| dx\,dy \\[1ex] &= \frac{4}{\alpha+\beta} \frac{B(\alpha+\beta,\alpha+\beta)}{B(\alpha,\alpha) B(\beta,\beta)} \end{align} The Gini coefficient for the beta distribution is half of the relative mean absolute difference: \mathrm{G} = \left(\frac{2}{\alpha}\right)\frac{B(\alpha+\beta,\alpha+\beta)}{B(\alpha,\alpha)B(\beta,\beta)} ===Skewness=== The skewness (the third moment centered on the mean, normalized by the 3/2 power of the variance) of the beta distribution is \gamma_1 = \frac{\operatorname{E}\left[\left(X - \mu\right)^3\right]}{\left(\operatorname{var}(X)\right)^{3/2}} = \frac{2 \left(\beta - \alpha\right) \sqrt{\alpha + \beta + 1}}{\left(\alpha + \beta + 2\right) \sqrt{\alpha \beta}} . Letting α = β in the above expression one obtains γ 1 = 0, showing once again that for α = β the distribution is symmetric and hence the skewness is zero. Positive skew (right-tailed) for α β. Using the parametrization in terms of mean μ and sample size ν = α + β: \begin{align} \alpha & = \mu \nu , &\text{ where }\nu =(\alpha + \beta) >0, \\ \beta & = (1 - \mu) \nu , &\text{ where }\nu =(\alpha + \beta) >0. \end{align} one can express the skewness in terms of the mean μ and the sample size ν as follows: \gamma_1 = \frac{\operatorname{E}[(X - \mu)^3]}{\left(\operatorname{var}(X)\right)^{3/2}} = \frac{2(1-2\mu)\sqrt{1+\nu}}{(2+\nu)\sqrt{\mu (1 - \mu)}}. The skewness can also be expressed just in terms of the variance var and the mean μ as follows: \gamma_1 =\frac{\operatorname{E}[(X - \mu)^3]}{(\operatorname{var}(X))^{3/2}} = \frac{2(1-2\mu)\sqrt{\operatorname{var}}}{ \mu(1-\mu) + \operatorname{var}}\text{ if } \operatorname{var} The accompanying plot of skewness as a function of variance and mean shows that maximum variance (1/4) is coupled with zero skewness and the symmetry condition (μ = 1/2), and that maximum skewness (positive or negative infinity) occurs when the mean is located at one end or the other, so that the "mass" of the probability distribution is concentrated at the ends (minimum variance). The following expression for the square of the skewness, in terms of the sample size ν = α + β and the variance var, is useful for the method of moments estimation of four parameters: (\gamma_1)^2 = \frac{\left(\operatorname{E}[(X - \mu)^3]\right)^2}{\left(\operatorname{var}(X)\right)^3} = \frac{4}{(2+\nu)^2}\left(\frac{1}{\operatorname{var}} - 4(1+\nu)\right) This expression correctly gives a skewness of zero for α = β, since in that case (see ): \operatorname{var} = \frac{1}{4 (1 + \nu)} . For the symmetric case (α = β), skewness = 0 over the whole range, and the following limits apply: \lim_{\alpha = \beta \to 0} \gamma_1 = \lim_{\alpha = \beta \to \infty} \gamma_1 =\lim_{\nu \to 0} \gamma_1=\lim_{\nu \to \infty} \gamma_1=\lim_{\mu \to \frac{1}{2}} \gamma_1 = 0 For the asymmetric cases (α ≠ β) the following limits (with only the noted variable approaching the limit) can be obtained from the above expressions: \begin{align} &\lim_{\alpha\to 0} \gamma_1 =\lim_{\mu\to 0} \gamma_1 = \infty\\ &\lim_{\beta \to 0} \gamma_1 = \lim_{\mu\to 1} \gamma_1= - \infty\\ &\lim_{\alpha\to \infty} \gamma_1 = -\frac{2}{\sqrt\beta},\quad \lim_{\beta \to 0}(\lim_{\alpha\to \infty} \gamma_1) = -\infty,\quad \lim_{\beta \to \infty}(\lim_{\alpha\to \infty} \gamma_1) = 0\\ &\lim_{\beta\to \infty} \gamma_1 = \frac{2}{\sqrt\alpha},\quad \lim_{\alpha \to 0}(\lim_{\beta \to \infty} \gamma_1) = \infty,\quad \lim_{\alpha \to \infty}(\lim_{\beta \to \infty} \gamma_1) = 0\\ &\lim_{\nu \to 0} \gamma_1 = \frac{1 - 2 \mu}{\sqrt{\mu (1-\mu)}},\quad \lim_{\mu \to 0}(\lim_{\nu \to 0} \gamma_1) = \infty,\quad \lim_{\mu \to 1}(\lim_{\nu \to 0} \gamma_1) = - \infty \end{align} ===Kurtosis=== The beta distribution has been applied in acoustic analysis to assess damage to gears, as the kurtosis of the beta distribution has been reported to be a good indicator of the condition of a gear. Kurtosis has also been used to distinguish the seismic signal generated by a person's footsteps from other signals. As persons or other targets moving on the ground generate continuous signals in the form of seismic waves, one can separate different targets based on the seismic waves they generate. Kurtosis is sensitive to impulsive signals, so it's much more sensitive to the signal generated by human footsteps than other signals generated by vehicles, winds, noise, etc. Unfortunately, the notation for kurtosis has not been standardized. Kenney and Keeping use the symbol γ 2 for the excess kurtosis, but Abramowitz and Stegun use different terminology. To prevent confusion between kurtosis (the fourth moment centered on the mean, normalized by the square of the variance) and excess kurtosis, when using symbols, they will be spelled out as follows: \begin{align} \text{excess kurtosis} &=\text{kurtosis} - 3\\ &=\frac{\operatorname{E}[(X - \mu)^4]} -3\\ &=\frac{6[\alpha^3-\alpha^2(2\beta - 1) + \beta^2(\beta + 1) - 2\alpha\beta(\beta + 2)]}{\alpha \beta (\alpha + \beta + 2)(\alpha + \beta + 3)}\\ &=\frac{6[(\alpha - \beta)^2 (\alpha +\beta + 1) - \alpha \beta (\alpha + \beta + 2)]} {\alpha \beta (\alpha + \beta + 2) (\alpha + \beta + 3)} . \end{align} Letting α = β in the above expression one obtains \text{excess kurtosis} =- \frac{6}{3+2\alpha} \text{ if } \alpha = \beta. Therefore, for symmetric beta distributions, the excess kurtosis is negative, increasing from a minimum value of −2 at the limit as {α = β} → 0, and approaching a maximum value of zero as {α = β} → ∞. The value of −2 is the minimum value of excess kurtosis that any distribution (not just beta distributions, but any distribution of any possible kind) can ever achieve. This minimum value is reached when all the probability density is entirely concentrated at each end x = 0 and x = 1, with nothing in between: a 2-point Bernoulli distribution with equal probability 1/2 at each end (a coin toss: see section below "Kurtosis bounded by the square of the skewness" for further discussion). The description of kurtosis as a measure of the "potential outliers" (or "potential rare, extreme values") of the probability distribution, is correct for all distributions including the beta distribution. When rare, extreme values can occur in the beta distribution, the higher its kurtosis; otherwise, the kurtosis is lower. For α ≠ β, skewed beta distributions, the excess kurtosis can reach unlimited positive values (particularly for α → 0 for finite β, or for β → 0 for finite α) because the side away from the mode will produce occasional extreme values. Minimum kurtosis takes place when the mass density is concentrated equally at each end (and therefore the mean is at the center), and there is no probability mass density in between the ends. Using the parametrization in terms of mean μ and sample size ν = α + β: \begin{align} \alpha & {} = \mu \nu ,\text{ where }\nu =(\alpha + \beta) >0\\ \beta & {} = (1 - \mu) \nu , \text{ where }\nu =(\alpha + \beta) >0. \end{align} one can express the excess kurtosis in terms of the mean μ and the sample size ν as follows: \text{excess kurtosis} =\frac{6}{3 + \nu}\bigg (\frac{(1 - 2 \mu)^2 (1 + \nu)}{\mu (1 - \mu) (2 + \nu)} - 1 \bigg ) The excess kurtosis can also be expressed in terms of just the following two parameters: the variance var, and the sample size ν as follows: \text{excess kurtosis} =\frac{6}{(3 + \nu)(2 + \nu)}\left(\frac{1}{\text{ var }} - 6 - 5 \nu \right)\text{ if }\text{var} and, in terms of the variance var and the mean μ as follows: \text{excess kurtosis} =\frac{6 \text{ var } (1 - \text{ var } - 5 \mu (1 - \mu) )}{(\text{var } + \mu (1 - \mu))(2\text{ var } + \mu (1 - \mu) )}\text{ if }\text{var} The plot of excess kurtosis as a function of the variance and the mean shows that the minimum value of the excess kurtosis (−2, which is the minimum possible value for excess kurtosis for any distribution) is intimately coupled with the maximum value of variance (1/4) and the symmetry condition: the mean occurring at the midpoint (μ = 1/2). This occurs for the symmetric case of α = β = 0, with zero skewness. At the limit, this is the 2 point Bernoulli distribution with equal probability 1/2 at each Dirac delta function end x = 0 and x = 1 and zero probability everywhere else. (A coin toss: one face of the coin being x = 0 and the other face being x = 1.) Variance is maximum because the distribution is bimodal with nothing in between the two modes (spikes) at each end. Excess kurtosis is minimum: the probability density "mass" is zero at the mean and it is concentrated at the two peaks at each end. Excess kurtosis reaches the minimum possible value (for any distribution) when the probability density function has two spikes at each end: it is bi-"peaky" with nothing in between them. On the other hand, the plot shows that for extreme skewed cases, where the mean is located near one or the other end (μ = 0 or μ = 1), the variance is close to zero, and the excess kurtosis rapidly approaches infinity when the mean of the distribution approaches either end. Alternatively, the excess kurtosis can also be expressed in terms of just the following two parameters: the square of the skewness, and the sample size ν as follows: \text{excess kurtosis} =\frac{6}{3 + \nu}\bigg(\frac{(2 + \nu)}{4} (\text{skewness})^2 - 1\bigg)\text{ if (skewness)}^2-2 From this last expression, one can obtain the same limits published over a century ago by Karl Pearson for the beta distribution (see section below titled "Kurtosis bounded by the square of the skewness"). Setting α + β = ν = 0 in the above expression, one obtains Pearson's lower boundary (values for the skewness and excess kurtosis below the boundary (excess kurtosis + 2 − skewness 2  = 0) cannot occur for any distribution, and hence Karl Pearson appropriately called the region below this boundary the "impossible region"). The limit of α + β = ν → ∞ determines Pearson's upper boundary. \begin{align} &\lim_{\nu \to 0}\text{excess kurtosis} = (\text{skewness})^2 - 2\\ &\lim_{\nu \to \infty}\text{excess kurtosis} = \tfrac{3}{2} (\text{skewness})^2 \end{align} therefore: (\text{skewness})^2-2 Values of ν = α + β such that ν ranges from zero to infinity, 0  \begin{align} &\lim_{\alpha = \beta \to 0} \text{excess kurtosis} = - 2 \\ &\lim_{\alpha = \beta \to \infty} \text{excess kurtosis} = 0 \\ &\lim_{\mu \to \frac{1}{2}} \text{excess kurtosis} = - \frac{6}{3 + \nu} \end{align} For the unsymmetric cases (α ≠ β) the following limits (with only the noted variable approaching the limit) can be obtained from the above expressions: \begin{align} &\lim_{\alpha\to 0}\text{excess kurtosis} =\lim_{\beta \to 0} \text{excess kurtosis} = \lim_{\mu \to 0}\text{excess kurtosis} = \lim_{\mu \to 1}\text{excess kurtosis} =\infty\\ &\lim_{\alpha \to \infty}\text{excess kurtosis} = \frac{6}{\beta},\text{ } \lim_{\beta \to 0}(\lim_{\alpha\to \infty} \text{excess kurtosis}) = \infty,\text{ } \lim_{\beta \to \infty}(\lim_{\alpha\to \infty} \text{excess kurtosis}) = 0\\ &\lim_{\beta \to \infty}\text{excess kurtosis} = \frac{6}{\alpha},\text{ } \lim_{\alpha \to 0}(\lim_{\beta \to \infty} \text{excess kurtosis}) = \infty,\text{ } \lim_{\alpha \to \infty}(\lim_{\beta \to \infty} \text{excess kurtosis}) = 0\\ &\lim_{\nu \to 0} \text{excess kurtosis} = - 6 + \frac{1}{\mu (1 - \mu)},\text{ } \lim_{\mu \to 0}(\lim_{\nu \to 0} \text{excess kurtosis}) = \infty,\text{ } \lim_{\mu \to 1}(\lim_{\nu \to 0} \text{excess kurtosis}) = \infty \end{align} ===Characteristic function=== symmetric case α = β ranging from 25 to 0 symmetric case α = β ranging from 0 to 25 β = α + 1/2; α ranging from 25 to 0 α = β + 1/2; β ranging from 25 to 0 α = β + 1/2; β ranging from 0 to 25 The characteristic function is the Fourier transform of the probability density function. The characteristic function of the beta distribution is Kummer's confluent hypergeometric function (of the first kind): \begin{align} \varphi_X(\alpha;\beta;t) &= \operatorname{E}\left[e^{itX}\right]\\ &= \int_0^1 e^{itx} f(x;\alpha,\beta) \, dx \\ &={}_1F_1(\alpha; \alpha+\beta; it)\!\\ &=\sum_{n=0}^\infty \frac {\alpha^\overline{n} (it)^n} {(\alpha+\beta)^\overline{n} n!}\\ &= 1 +\sum_{k=1}^{\infty} \left( \prod_{r=0}^{k-1} \frac{\alpha+r}{\alpha+\beta+r} \right) \frac{(it)^k}{k!} \end{align} where x^\overline{n}=x(x+1)(x+2)\cdots(x+n-1) is the rising factorial. The value of the characteristic function for t = 0, is one: \varphi_X(\alpha;\beta;0)={}_1F_1(\alpha; \alpha+\beta; 0) = 1. Also, the real and imaginary parts of the characteristic function enjoy the following symmetries with respect to the origin of variable t: \operatorname{Re} \left [ {}_1F_1(\alpha; \alpha+\beta; it) \right ] = \operatorname{Re} \left [ {}_1F_1(\alpha; \alpha+\beta; - it) \right ] \operatorname{Im} \left [ {}_1F_1(\alpha; \alpha+\beta; it) \right ] = - \operatorname{Im} \left [ {}_1F_1(\alpha; \alpha+\beta; - it) \right ] The symmetric case α = β simplifies the characteristic function of the beta distribution to a Bessel function, since in the special case α + β = 2α the confluent hypergeometric function (of the first kind) reduces to a Bessel function (the modified Bessel function of the first kind I_{\alpha-\frac 1 2} ) using Kummer's second transformation as follows: \begin{align} {}_1F_1(\alpha;2\alpha; it) &= e^{\frac{it}{2}} {}_0F_1 \left(; \alpha+\tfrac{1}{2}; \frac{(it)^2}{16} \right) \\ &= e^{\frac{it}{2}} \left(\frac{it}{4}\right)^{\frac{1}{2}-\alpha} \Gamma\left(\alpha+\tfrac{1}{2}\right) I_{\alpha-\frac 1 2} \left(\frac{it}{2}\right).\end{align} In the accompanying plots, the real part (Re) of the characteristic function of the beta distribution is displayed for symmetric (α = β) and skewed (α ≠ β) cases. ===Other moments=== ====Moment generating function==== It also follows that the moment generating function is \begin{align} M_X(\alpha; \beta; t) &= \operatorname{E}\left[e^{tX}\right] \\[4pt] &= \int_0^1 e^{tx} f(x;\alpha,\beta)\,dx \\[4pt] &= {}_1F_1(\alpha; \alpha+\beta; t) \\[4pt] &= \sum_{n=0}^\infty \frac {\alpha^\overline{n}} {(\alpha+\beta)^\overline{n}}\frac {t^n}{n!}\\[4pt] &= 1 +\sum_{k=1}^{\infty} \left( \prod_{r=0}^{k-1} \frac{\alpha+r}{\alpha+\beta+r} \right) \frac{t^k}{k!}. \end{align} In particular M X (α; β; 0) = 1. ====Higher moments==== Using the moment generating function, the k-th raw moment is given by the factor \prod_{r=0}^{k-1} \frac{\alpha+r}{\alpha+\beta+r} multiplying the (exponential series) term \left(\frac{t^k}{k!}\right) in the series of the moment generating function \operatorname{E}[X^k]= \frac{\alpha^\overline{k}}{(\alpha + \beta)^\overline{k}} = \prod_{r=0}^{k-1} \frac{\alpha+r}{\alpha+\beta+r} where (x) (k) is a Pochhammer symbol representing rising factorial. It can also be written in a recursive form as \operatorname{E}[X^k] = \frac{\alpha + k - 1}{\alpha + \beta + k - 1}\operatorname{E}[X^{k - 1}]. Since the moment generating function M_X(\alpha; \beta; \cdot) has a positive radius of convergence, the beta distribution is determined by its moments. ====Moments of transformed random variables==== =====Moments of linearly transformed, product and inverted random variables===== One can also show the following expectations for a transformed random variable, where the random variable X is Beta-distributed with parameters α and β: X ~ Beta(α, β). The expected value of the variable 1 − X is the mirror-symmetry of the expected value based on X: \begin{align} \operatorname{E}[1-X] &= \frac{\beta}{\alpha + \beta} \\ \operatorname{E}[X(1-X)] &= \operatorname{E}[(1-X)X] = \frac{\alpha\beta}{(\alpha+\beta)(\alpha+\beta+1)} \end{align} Due to the mirror-symmetry of the probability density function of the beta distribution, the variances based on variables X and 1 − X are identical, and the covariance on X(1 − X) is the negative of the variance: \operatorname{var}[(1-X)]=\operatorname{var}[X] = -\operatorname{cov}[X,(1-X)]= \frac{\alpha \beta}{(\alpha + \beta)^2(\alpha + \beta + 1)} These are the expected values for inverted variables, (these are related to the harmonic means, see ): \begin{align} \operatorname{E} \left [\frac{1}{X} \right ] &= \frac{\alpha+\beta-1 }{\alpha -1 } && \text{ if } \alpha > 1\\ \operatorname{E}\left [\frac{1}{1-X} \right ] &=\frac{\alpha+\beta-1 }{\beta-1 } && \text{ if } \beta > 1 \end{align} The following transformation by dividing the variable X by its mirror-image X/(1 − X)) results in the expected value of the "inverted beta distribution" or beta prime distribution (also known as beta distribution of the second kind or Pearson's Type VI): \begin{align} \operatorname{E}\left[\frac{X}{1-X}\right] &=\frac{\alpha}{\beta - 1 } && \text{ if }\beta > 1\\ \operatorname{E}\left[\frac{1-X}{X}\right] &=\frac{\beta}{\alpha- 1 } && \text{ if }\alpha > 1 \end{align} Variances of these transformed variables can be obtained by integration, as the expected values of the second moments centered on the corresponding variables: \begin{align} \operatorname{var} \left[\frac{1}{X} \right] &= \operatorname{E}\left[\left(\frac{1}{X} - \operatorname{E}\left[\frac{1}{X} \right ] \right )^2\right] = \operatorname{var}\left[\frac{1-X}{X} \right ] \\ &= \operatorname{E} \left [\left (\frac{1-X}{X} - \operatorname{E}\left [\frac{1-X}{X} \right ] \right )^2 \right ] = \frac{\beta (\alpha+\beta-1)}{\left(\alpha-2\right) \left(\alpha-1\right)^2 } \text{ if }\alpha > 2 \end{align} The following variance of the variable X divided by its mirror-image (X/(1−X) results in the variance of the "inverted beta distribution" or beta prime distribution (also known as beta distribution of the second kind or Pearson's Type VI): \begin{align} \operatorname{var} \left [\frac{1}{1-X} \right ] &= \operatorname{E} \left [\left(\frac{1}{1-X} - \operatorname{E} \left [\frac{1}{1-X} \right ] \right)^2 \right ] = \operatorname{var} \left [\frac{X}{1-X} \right ] \\[1ex] &= \operatorname{E} \left [\left (\frac{X}{1-X} - \operatorname{E} \left [\frac{X}{1-X} \right ] \right )^2 \right ] = \frac{\alpha(\alpha+\beta-1)}{\left(\beta-2\right) \left(\beta-1\right)^2 } \text{ if }\beta > 2 \end{align} The covariances are: \begin{align} \operatorname{cov}\left [\frac{1}{X},\frac{1}{1-X} \right ] &= \operatorname{cov}\left[\frac{1-X}{X},\frac{X}{1-X} \right] = \operatorname{cov}\left[\frac{1}{X},\frac{X}{1-X}\right ] \\[1ex] &= \operatorname{cov}\left[\frac{1-X}{X},\frac{1}{1-X} \right] = \frac{\alpha+\beta-1}{(\alpha-1)(\beta-1) } \text{ if } \alpha, \beta > 1 \end{align}   These expectations and variances appear in the four-parameter Fisher information matrix ( .) =====Moments of logarithmically transformed random variables===== Expected values for logarithmic transformations (useful for maximum likelihood estimates, see ) are discussed in this section. The following logarithmic linear transformations are related to the geometric means G X and G 1−X (see ): \begin{align} \operatorname{E}[\ln X] &= \psi(\alpha) - \psi(\alpha + \beta) = - \operatorname{E}\left[\ln \frac{1}{X} \right],\\ \operatorname{E}[\ln(1-X)] &=\psi(\beta) - \psi(\alpha + \beta)= - \operatorname{E} \left[\ln \frac{1}{1-X} \right]. \end{align} Where the digamma function ψ(α) is defined as the logarithmic derivative of the gamma function: \psi(\alpha) = \frac{d}{d\alpha} \ln\Gamma(\alpha) Logit transformations are interesting, as they usually transform various shapes (including J-shapes) into (usually skewed) bell-shaped densities over the logit variable, and they may remove the end singularities over the original variable: \begin{align} \operatorname{E}\left[\ln \frac{X}{1-X} \right] &= \psi(\alpha) - \psi(\beta)= \operatorname{E}[\ln X] +\operatorname{E} \left[\ln \frac{1}{1-X} \right],\\ \operatorname{E}\left [\ln \frac{1-X}{X} \right ] &=\psi(\beta) - \psi(\alpha)= - \operatorname{E} \left[\ln \frac{X}{1-X} \right] . \end{align} Johnson considered the distribution of the logit – transformed variable ln(X/1 − X), including its moment generating function and approximations for large values of the shape parameters. This transformation extends the finite support [0, 1] based on the original variable X to infinite support in both directions of the real line (−∞, +∞). The logit of a beta variate has the logistic-beta distribution. Higher order logarithmic moments can be derived by using the representation of a beta distribution as a proportion of two gamma distributions and differentiating through the integral. They can be expressed in terms of higher order poly-gamma functions as follows: \begin{align} \operatorname{E} \left [\ln^2(X) \right ] &= (\psi(\alpha) - \psi(\alpha + \beta))^2+\psi_1(\alpha)-\psi_1(\alpha+\beta), \\ \operatorname{E} \left [\ln^2(1-X) \right ] &= (\psi(\beta) - \psi(\alpha + \beta))^2+\psi_1(\beta)-\psi_1(\alpha+\beta), \\ \operatorname{E} \left [\ln (X)\ln(1-X) \right ] &=(\psi(\alpha) - \psi(\alpha + \beta))(\psi(\beta) - \psi(\alpha + \beta)) -\psi_1(\alpha+\beta). \end{align} therefore the variance of the logarithmic variables and covariance of ln(X) and ln(1−X) are: \begin{align} \operatorname{cov}[\ln X, \ln(1-X)] &= \operatorname{E}\left[\ln X \ln(1-X)\right] - \operatorname{E}[\ln X]\operatorname{E}[\ln(1-X)] \\ &= -\psi_1(\alpha+\beta) \\ & \\ \operatorname{var}[\ln X] &= \operatorname{E}[\ln^2 X] - (\operatorname{E}[\ln X])^2 \\ &= \psi_1(\alpha) - \psi_1(\alpha + \beta) \\ &= \psi_1(\alpha) + \operatorname{cov}[\ln X, \ln(1-X)] \\ & \\ \operatorname{var}[\ln (1-X)] &= \operatorname{E}[\ln^2 (1-X)] - (\operatorname{E}[\ln (1-X)])^2 \\ &= \psi_1(\beta) - \psi_1(\alpha + \beta) \\ &= \psi_1(\beta) + \operatorname{cov}[\ln X, \ln(1-X)] \end{align} where the trigamma function, denoted ψ 1 (α), is the second of the polygamma functions, and is defined as the derivative of the digamma function: \psi_1(\alpha) = \frac{d^2\ln\Gamma(\alpha)}{d\alpha^2}= \frac{d \psi(\alpha

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Beta distribution". 1791076969. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378359516

JSON record · API collection · citation policy