35
$\begingroup$

I've learned sum of exponential random variables follows Gamma distribution.

But everywhere I read the parametrization is different. For instance, Wiki describes the relationship, but don't say what their parameters actually mean? Shape, scale, rate, 1/rate?

Exponential distribution: $x$~$exp(\lambda)$ $$f(x|\lambda )=\lambda {{e}^{-\lambda x}}$$ $$E[x]=1/ \lambda$$ $$var(x)=1/{{\lambda}^2}$$

Gamma distribution: $\Gamma(\text{shape}=\alpha, \text{scale}=\beta)$ $$f(x|\alpha ,\beta )=\frac{1}{{{\beta }^{\alpha }}}\frac{1}{\Gamma (\alpha )}{{x}^{\alpha -1}}{{e}^{-\frac{x}{\beta }}}$$ $$E[x]=\alpha\beta$$ $$var[x]=\alpha{\beta}^{2}$$

In this setting, what is $\sum\limits_{i=1}^{n}{{{x}_{i}}}$? What would the correct parametrization be? How about extending this to chi-square?

$\endgroup$
6
  • 13
    $\begingroup$ As a rough-and-ready rule of thumb, probabilists tend to use $\Gamma(t,\lambda)$ to denote a Gamma distribution with mean $\frac{t}{\lambda}$ (that is, $f(x) = \frac{\lambda}{\Gamma(t)}\cdot (\lambda x)^{t-1}\exp(-\lambda x)\mathbf 1_{(0,\infty)}$ while statisticians tend to use $\Gamma(\alpha,\beta)$ to denote a Gamma random variable with mean $\alpha\beta$, not $\alpha/\beta$ the way you have it. Wikipedia describes both conventions. $\endgroup$ Commented May 6, 2012 at 21:32
  • $\begingroup$ sorry, you are correct. $\endgroup$
    – edwin
    Commented May 6, 2012 at 21:43
  • 1
    $\begingroup$ Two hints: 1. remember to check by dimensionality consistency. (eg. does the parameter have the same dimensionality of $x$, or its recyprocal...?) 2. because here the parameter of the gamma is an integer, it might be slightly easier to use plain factorials, and the Erlang distribution (of course, it's the same) $\endgroup$
    – leonbloy
    Commented May 6, 2012 at 21:44
  • $\begingroup$ @edwin So please edit your question to correct the expressions for mean and variance. $\endgroup$ Commented May 6, 2012 at 21:47
  • $\begingroup$ @DilipSarwate edited! $\endgroup$
    – edwin
    Commented May 6, 2012 at 21:52

4 Answers 4

24
$\begingroup$

The sum of $n$ independent Gamma random variables $\sim \Gamma(t_i, \lambda)$ is a Gamma random variable $\sim \Gamma\left(\sum_i t_i, \lambda\right)$. It does not matter what the second parameter means (scale or inverse of scale) as long as all $n$ random variable have the same second parameter. This idea extends readily to $\chi^2$ random variables which are a special case of Gamma random variables.

$\endgroup$
5
  • 1
    $\begingroup$ The thing that confuses me is some books write $exp(\lambda)$ where $\lambda$ is the rate, while others meant 1/rate. Is there a consistent notation? Unless I see the pdf, I will not know what they mean. $\endgroup$
    – edwin
    Commented May 6, 2012 at 22:25
  • 5
    $\begingroup$ If you think that is confusing, wait till you encounter normal random variables. There are at least three different interpretations of $X \sim N(\mu,s)$ that statisticians use. $\endgroup$ Commented May 7, 2012 at 0:57
  • $\begingroup$ lol, that is just ruining innocent souls that want to study the subject. I personally think that is just poorly written on the author's part, at the same time, I do agree that I need to adapt the ability to spot wrong things. But still, not when I am taking baby steps. $\endgroup$
    – edwin
    Commented May 7, 2012 at 1:42
  • $\begingroup$ Oh well, as the author of the Answer to the other Question, I am disappointed that you think that that Answer is poorly written. Suggestions for improving it are most welcome. $\endgroup$ Commented May 7, 2012 at 1:51
  • 7
    $\begingroup$ I am not referring to your link. $\endgroup$
    – edwin
    Commented May 7, 2012 at 3:09
27
$\begingroup$

The sum of $n$ iid exponential distributions with scale $\theta$ (rate $\theta^{-1}$) is gamma-distributed with shape $n$ and scale $\theta$ (rate $\theta^{-1}$).

$\endgroup$
3
  • $\begingroup$ So, if an event such as time for a webpage to process a hit request was exponentially distributed, Gamma might be used to model the time it takes to process x hit requests? (Assumes only 1 hit could be processed at a time, which is an illustrative assumption but not a practical/plausible one.) $\endgroup$
    – jbuddy_13
    Commented Oct 8, 2021 at 18:06
  • 1
    $\begingroup$ @jbuddy_13 Yes. $\endgroup$
    – Neil G
    Commented Oct 8, 2021 at 18:38
  • $\begingroup$ So, a Gamma dist is both an rv and a process (collection of rvs indexed over time or space.) I always figured it was one or the other, but sounds like a process is a special type of rv. $\endgroup$
    – jbuddy_13
    Commented Oct 8, 2021 at 19:10
5
$\begingroup$

gamma distribution is made of exponential distribution that is exponential distribution is base for gamma distribution. then if $f(x|\lambda)=\lambda e^{−\lambda x}$ we have $\sum_n x_i \sim \text{Gamma}(n,\lambda)$, as long as all $X_i$ are independent.

$$f(x|\alpha,\beta)=\frac{\beta^α}{\Gamma(\alpha)} \cdot x^{\alpha−1} \cdot e^{−x\beta} $$

$\endgroup$
2
  • $\begingroup$ I formatted the maths part of your answer. Please check if this is still what you wanted to express. $\endgroup$
    – Andy
    Commented Aug 3, 2015 at 8:42
  • 5
    $\begingroup$ Your assertion $\sum x_i \sim \text{Gamma}(n,\lambda)$ is incorrect unless you qualify it by insisting that the $x_i$ are independent random variables. $\endgroup$ Commented Aug 3, 2015 at 12:19
0
$\begingroup$
  1. Exponential distribution is a special case of Gamma distribution. If $X$ is a r.v. and

    $X \sim Exp(\lambda) \implies f(x) = \lambda e^{-\lambda x} = \frac{\lambda^1}{\Gamma(1)} x^{1-1}e^{-\lambda x}=\frac{\lambda^1}{\Gamma(\alpha)} x^{\alpha-1}e^{-\lambda x}$, where $\alpha=1$

    $\implies X \sim \Gamma(1,\lambda)$

    i.e., $X$ follows a Gamma distribution with shape parameter $=\alpha=1$ and rate paramater $=\lambda$

  2. Sum of two independent Gamma r.v.s sharing the same rate parameter value, is a Gamma r.v. again. From here and here,

    $X_1\sim\Gamma(\alpha_1, \beta)$ and $X_2\sim\Gamma(\alpha_2, \beta)$ with $X_1\perp X_2 \implies X_1 + X_2 \sim \Gamma(\alpha_1+\alpha_2,\beta)$.

    By Induction then we have,

    $X_i\sim\Gamma(\alpha_i, \beta)$, for $i=1\ldots n$ and mutually independent $X_i$ r.v.s, $\implies\sum\limits_{i=1}^{n}X_i\sim \Gamma\left(\sum\limits_{i=1}^{n}\alpha_i, \beta\right)$

Now, combining (1) and (2),

$X_i\sim Exp(\lambda)$, for $i=1\ldots n$ and i.i.d. r.v.s $X_i$, we have $X_i\sim \Gamma(1,\lambda)\;,\forall{i} \implies \sum\limits_{i=1}^{n}X_i\sim \Gamma(n,\lambda)$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.