The beta distribution is defined using the beta function. The beta distribution can also be naturally generated as order statistics by sampling from the uniform distribution. This post presents a generalization of the standard beta distribution.

There are many generalized beta distributions. This post defines a “basic” generalized beta distribution that has four parameters. Recall that the standard beta distribution has two parameters and . Both and drive the shape of the beta distribution, e.g. its skewness is driven by the magnitude of . The generalized beta distribution defined here has four parameters , , and . The value is an exponent parameter and the parameter is a scale parameter to translate the distribution to an interval other than the unit interval. The generalized beta distribution discussed here is called the generalized beta distribution of the first kind (see the paper listed in the reference section).

The role of the parameter is interesting in that it affects the shape of the new distribution, e.g. making the distribution more skewed or less skewed. Yet it is not a strictly a shape parameter. But it can greatly accentuate or reduce the skewness of the starting beta distribution depending on the value of (see the last section below).

_______________________________________________________________________________________________

**Example 1**

Before formally define the distribution, let’s look at the effect of the two additional parameters and through an example. The parameter is a translation parameter. First, look at the effect of adding .

Let be a random variable that follows the beta distribution with parameters and . The following is the density function of .

Consider the following random variables:

Essentially is the square of and is the square root of . To know more about the random variables and , let’s look at the graphs of the density functions. The following diagram shows the density functions of (blue curve), (tall red curve) and (black curve).

*Figure 1*

The standard beta density curve for the random variable has moderate right skewness (the blue curve). Squaring produces a density curve with much more pronounced skewness (the red curve). This is because the action of squaring puts more probabilities on the smaller numbers. Squaring tends to shift the data closer to the origin. For example, 0.9 becomes 0.81, 0.5 becomes 0.25, 0.1 becomes 0.01, 0.001 becomes 0.000001 and so on.

Yet taking the square root on the standard beta has the opposite effect. The effect is to push the data toward 1.0, producing a density curve (the black curve) that is slightly negatively skewed (it looks almost symmetric).

Even though the random variable is obtained by squaring the beta , the density function of is via a square root. On the other hand, while the random variable is obtained by taking square root of , the density function of is obtained via squaring. The following are the density functions of and .

Because and are defined by raising to a power, the properties involving moments can be derived from the beta distribution on , via and . The following table shows the first four moments of and (using the formula for beta moments found here).

The following table shows a comparison of the three random variables.

The variance is calculated by letting the second moment subtracting the square of the first moment. The standard deviation is the square root of the variance. CV stands for coefficient of variation, which is the ratio of the standard deviation to the mean. The skewness is the third central moment divided by the cube of the standard deviation.

Note that the skewness calculation confirms what we see in the three density curves in Figure 1. The skewness of the beta distribution is moderate (right skewed). Squaring the beta distribution has the effect of pushing the data to the origin, hence the standard deviation is smaller and the right skew is more pronounced (3 times as strong). Taking the square root of the beta distribution goes the opposite direction, leading to a slightly left skewed distribution.

The above discussion only focuses on the effect of the parameter (the effect of raising the base distribution to a power). The other parameter is a scale parameter that translates the transformed distribution from the interval to the interval . The following diagrams show the density function of (Figure 2) and the density function of (Figure 3).

*Figure 2*

*Figure 3*

Multiplying by 5 certainly affects the mean and variance. The CV and skewness remain the same. Thus the scale parameter does not change the shape.

_______________________________________________________________________________________________

**Basic Properties**

Let , , and be some fixed positive real numbers. A random variable follows the generalized beta distribution with parameters , , and if

where is a random variable that follows the beta distribution with parameters and . In other words, if we start with a standard beta distribution, raising it to a power and then multiplying a scale parameter would produce a generalized beta distribution. On the other hand, if we start with a generalized beta distribution, dividing it by a parameter called and then raising it to a power would produce a standard beta distribution. In this post, we prefer to work with the first progression – defining the generalized beta from the standard beta.

We first derive the density function of the random variable , i.e. the generalized beta distribution without the parameter . The new random variable is obtained by raising the old to . As a result, the new density function is obtained by plugging into the old density function and multiplying the derivative of .

Now add the scale parameter. The effect is that is plugged into the density function of and that the density function is multiplied by (the derivative).

Recall that the cumulative distribution function of the standard beta can be expressed using the incomplete beta function.

The CDF in has no closed form. Since and are obtained by raising to a power, their CDFs can still be expressed using the incomplete beta function.

For the standard beta distribution, all positive moments exist, i.e. is defined for all positive real numbers . As a result, all positive moments exist for the generalized and as well.

Once the moments are known, distributional quantities such as variance, coefficient of variation and skewness and kurtosis can be routinely calculated.

_______________________________________________________________________________________________

**How the Shape Can Change by the Parameter **

The parameters and are both shape parameters for the standard beta distribution. the larger the one of them (in relation to the other), the more stronger the skewness. The direction of the skew depends on which one is larger. The beta distribution has a right skew if is larger (the parameter associated with the term in the beta density function) and has a left skew if is larger (the parameter associated with the term in the beta density). The additional parameter can further tweak the skewness of the beta distribution.

In the example discussed above, the starting beta distribution with and is a right skewed distribution. Squaring it () produces a stronger skewness to the right (see Figure 1). Taking a square root () produces a weaker skewness to the right (in fact a slight skewness to the left).

Consider the case . Raising the beta to the power of has the effect of pushing the data toward the origin. As a result, this action makes the random variable to become right skewed. If the standard beta is already right skewed, raising it to the power of will make the right skew stronger. If the standard beta is symmetric, raising it to the power of will produce a moderate right skew. If the standard beta is left skewed, raising it to the power of will reduce the magnitude of the left skew (possibly producing a slight right skew).

Now consider that case that . Raising the beta to the power of has the effect of pushing the data toward the end point of the interval at 1. As a result, this action makes the random variable to become left skewed. If the standard beta is already left skewed, raising it to the power of will make the left skew stronger. If the standard beta is symmetric, raising it to the power of will produce a moderate left skew. If the standard beta is right skewed, raising it to the power of will reduce the magnitude of the right skew (possibly producing a slight left skew).

The following example illustrates the idea of alternating the skewness by the parameter . The calculation is left as an exercise.

The Beta with and has a left skew since dominates. Raising it to with pushes the data to the origin and thus reducing the left skew greatly. On the other hand, Raising it to with pushes the data to 1.0 and as a result making the left skew even stronger.

Starting with the symmetric Beta with and , the case of produces a moderate right skew (pushing the data to the origin) and the case of produces a moderate left skew (pushing the data to 1.0).

The right skewed Beta with and has the opposite dynamics as for the beta with and and is illustrated in Figure 1 above.

_______________________________________________________________________________________________

**Reference**

- McDonald, J. B.,
*Some generalization functions for the size distribution of income*, Econometrica, 52, 3, 647-663 (1984).

_______________________________________________________________________________________________