2.4 Distribution of A Simple Function of Gamma Variables

In this post, we look at a nifty result presented in [11] where the probability density function (pdf) of the function r1c+r2 two independent Gamma distributed random variables r1𝒢(k1,θ1) and r2𝒢(k2,θ2) is derived.

The derivation is an exercise (for the scalar case) in computing the pdf of functions of variables by constructing the joint pdf and marginalizing based on the Jacobian. A similar approach can also be used for matrix-variate distributions (which will probably be a good topic for another post.)

Theorem 6.

Let c>0, and let r1𝒢(k1,θ1) and r2𝒢(k2,θ2) be independent random variables, then, the pdf of r=r1c+r2, denoted by pr(r;k1,θ1,k2,θ2,c), is given by

Krrk11exp(rcθ1)U(k2,k1+k2+1;c(rθ1+1θ2)), (2.42)

where

U(a,b;z)=1Γ(a)0+exp(zx)xa1(1+x)ba1dx

is the hypergeometric U-function [15, Chapter 13, Kummer function], and Kr is a constant ensuring that the integral over the pdf equals one.

Proof.

As r1 and r2 are independent, their joint pdf, denoted by pr1,r2(r1,r2;k1,θ1,k2,θ2), is given by

1Γ(k1)θ1k1Γ(k2)θ2k2r1k11r2k21exp(r1θ1r2θ2). (2.43)

Applying transformation r=r1c+r2 with Jacobian dr1dr=c+r2, we obtain the transformed pdf, pr,r2(r,r2;k1,θ1,k2,θ2,c), as

Krrk11(c+r2)k1r2k21exp(rcθ1(rθ1+1θ2)r2), (2.44)

where Kr is a constant ensuring that the integral over the pdf equals one. Next, pr(r;k1,θ1,k2,θ2,c) is obtained by marginalization as

pr(r;k1,θ1,k2,θ2,c)=0+pr,r2(r,r2;k1,θ1,k2,θ2,c)dr2, (2.45)

where the integration is conducted using the integral representation of the hypergeometric U-function from [15, Chapter 13, Kummer function] to obtain the expression in the theorem statement. ∎

Version History

  1. 1.

    First published: 19th Oct. 2021 on aravindhk-math.blogspot.com

  2. 2.

    Modified: 17th Dec. 2023 – Style updates for