Computing MGF for Gamma Distribution
Let 𝑋 be a gamma variable with parameters 𝜆 and 𝛼 be defined as:
- 𝑓(𝑥) = (1/[𝛤(𝛼)𝜆𝛼]) · 𝑥𝛼-1· 𝑒-𝑥/𝜆# for 𝑥 > 0
The moment generating function (MGF) of 𝑋 is defined as:
Computation Steps
Let 𝑋 be a gamma distribution with parameters 𝜆 and 𝛼. Thus:
- 𝑓(𝑥) = (1/[𝛤(𝛼)𝜆𝛼]) · 𝑥𝛼-1· 𝑒-𝑥/𝜆# for 𝑥 > 0
where:
- 𝛼 - number of events
- 𝜆 - number of events per unit of time
- 𝛤(𝛼) = gamma function = (𝛼 - 1)!
Let’s compute the moment generating function (MGF) of 𝑋:
- 𝑓(𝑥) = (1/[𝛤(𝛼)𝜆𝛼]) · 𝑥𝛼-1· 𝑒-𝑥/𝜆# for 𝑥 > 0
- We know:
Using the MGF to Compute Moments
Expand ui
Expand ui
Computing Variance(𝑋)
Variance is defined as:
- 𝑉𝑎𝑟(𝑋) = 𝐄[𝑋2] - 𝐄[𝑋]2
Let’s use the MGF of a Bernoulli distribution to calculate the variance of 𝑋:
- 𝑉𝑎𝑟(𝑋) = 𝐄[𝑋2] - 𝐄[𝑋]2
- 𝑉𝑎𝑟(𝑋) = [𝛼2𝜆2 + 𝛼𝜆2] - [𝛼𝜆]2 # from above
- 𝑉𝑎𝑟(𝑋) = 𝛼2𝜆2 + 𝛼𝜆2 - 𝛼2𝜆2
- 𝑉𝑎𝑟(𝑋) = 𝛼𝜆2