Beta prime distribution is defined for x > 0 {\displaystyle x>0} with two parameters α and β, having the probability density function:
where B is the Beta function.
The cumulative distribution function is
where I is the regularized incomplete beta function.
While the related beta distribution is the conjugate prior distribution of the parameter of a Bernoulli distribution expressed as a probability, the beta prime distribution is the conjugate prior distribution of the parameter of a Bernoulli distribution expressed in odds. The distribution is a Pearson type VI distribution.2
The mode of a variate X distributed as β ′ ( α , β ) {\displaystyle \beta '(\alpha ,\beta )} is X ^ = α − 1 β + 1 {\displaystyle {\hat {X}}={\frac {\alpha -1}{\beta +1}}} . Its mean is α β − 1 {\displaystyle {\frac {\alpha }{\beta -1}}} if β > 1 {\displaystyle \beta >1} (if β ≤ 1 {\displaystyle \beta \leq 1} the mean is infinite, in other words it has no well defined mean) and its variance is α ( α + β − 1 ) ( β − 2 ) ( β − 1 ) 2 {\displaystyle {\frac {\alpha (\alpha +\beta -1)}{(\beta -2)(\beta -1)^{2}}}} if β > 2 {\displaystyle \beta >2} .
For − α < k < β {\displaystyle -\alpha <k<\beta } , the k-th moment E [ X k ] {\displaystyle E[X^{k}]} is given by
For k ∈ N {\displaystyle k\in \mathbb {N} } with k < β , {\displaystyle k<\beta ,} this simplifies to
The cdf can also be written as
where 2 F 1 {\displaystyle {}_{2}F_{1}} is the Gauss's hypergeometric function 2F1 .
The beta prime distribution may also be reparameterized in terms of its mean μ > 0 and precision ν > 0 parameters (3 p. 36).
Consider the parameterization μ = α/(β − 1) and ν = β − 2, i.e., α = μ(1 + ν) and β = 2 + ν. Under this parameterization E[Y] = μ and Var[Y] = μ(1 + μ)/ν.
Two more parameters can be added to form the generalized beta prime distribution β ′ ( α , β , p , q ) {\displaystyle \beta '(\alpha ,\beta ,p,q)} :
having the probability density function:
with mean
and mode
Note that if p = q = 1 then the generalized beta prime distribution reduces to the standard beta prime distribution.
This generalization can be obtained via the following invertible transformation. If y ∼ β ′ ( α , β ) {\displaystyle y\sim \beta '(\alpha ,\beta )} and x = q y 1 / p {\displaystyle x=qy^{1/p}} for q , p > 0 {\displaystyle q,p>0} , then x ∼ β ′ ( α , β , p , q ) {\displaystyle x\sim \beta '(\alpha ,\beta ,p,q)} .
The compound gamma distribution4 is the generalization of the beta prime when the scale parameter, q is added, but where p = 1. It is so named because it is formed by compounding two gamma distributions:
where G ( x ; a , b ) {\displaystyle G(x;a,b)} is the gamma pdf with shape a {\displaystyle a} and inverse scale b {\displaystyle b} .
The mode, mean and variance of the compound gamma can be obtained by multiplying the mode and mean in the above infobox by q and the variance by q2.
Another way to express the compounding is if r ∼ G ( β , q ) {\displaystyle r\sim G(\beta ,q)} and x ∣ r ∼ G ( α , r ) {\displaystyle x\mid r\sim G(\alpha ,r)} , then x ∼ β ′ ( α , β , 1 , q ) {\displaystyle x\sim \beta '(\alpha ,\beta ,1,q)} . This gives one way to generate random variates with compound gamma, or beta prime distributions. Another is via the ratio of independent gamma variates, as shown below.
Johnson et al (1995), p 248 ↩
Bourguignon, M.; Santos-Neto, M.; de Castro, M. (2021). "A new regression model for positive random variables with skewed and long tail". Metron. 79: 33–55. doi:10.1007/s40300-021-00203-y. S2CID 233534544. /wiki/Doi_(identifier) ↩
Dubey, Satya D. (December 1970). "Compound gamma, beta and F distributions". Metrika. 16: 27–31. doi:10.1007/BF02613934. S2CID 123366328. /wiki/Doi_(identifier) ↩