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

Kr⁢rk1−1⁢exp⁡(−r⁢cθ1)⁢U⁢(k2,k1+k2+1;c⁢(rθ1+1θ2)), (2.42)

where

U⁢(a,b;z)=1Γ⁢(a)⁢∫0+∞exp⁡(−z⁢x)⁢xa−1⁢(1+x)b−a−1⁢dx

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)⁢θ2k2⁢r1k1−1⁢r2k2−1⁢exp⁡(−r1θ1−r2θ2). (2.43)

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

Kr′⁢rk1−1⁢(c+r2)k1⁢r2k2−1⁢exp⁡(−r⁢cθ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