|
| 1 | +--- |
| 2 | +layout: proof |
| 3 | +mathjax: true |
| 4 | + |
| 5 | +author: "Joram Soch" |
| 6 | +affiliation: "BCCN Berlin" |
| 7 | +e_mail: "joram.soch@bccn-berlin.de" |
| 8 | +date: 2020-10-15 12:34:00 |
| 9 | + |
| 10 | +title: "Cumulative distribution function of the gamma distribution" |
| 11 | +chapter: "Probability Distributions" |
| 12 | +section: "Univariate continuous distributions" |
| 13 | +topic: "Gamma distribution" |
| 14 | +theorem: "Cumulative distribution function" |
| 15 | + |
| 16 | +sources: |
| 17 | + |
| 18 | +proof_id: "P178" |
| 19 | +shortcut: "gam-cdf" |
| 20 | +username: "JoramSoch" |
| 21 | +--- |
| 22 | + |
| 23 | + |
| 24 | +**Theorem:** Let $X$ be a positive [random variable](/D/rvar) following a [gamma distribution](/D/gam): |
| 25 | + |
| 26 | +$$ \label{eq:gam} |
| 27 | +X \sim \mathrm{Gam}(a, b) \; . |
| 28 | +$$ |
| 29 | + |
| 30 | +Then, the [cumulative distribution function](/D/cdf) of $X$ is |
| 31 | + |
| 32 | +$$ \label{eq:gam-cdf} |
| 33 | +F_X(x) = \frac{\gamma(a,bx)}{\Gamma(a)} |
| 34 | +$$ |
| 35 | + |
| 36 | +where $\Gamma(x)$ is the gamma function and $\gamma(s,x)$ is the lower incomplete gamma function. |
| 37 | + |
| 38 | + |
| 39 | +**Proof:** The [probability density function of the gamma distribution](/P/gam-pdf) is: |
| 40 | + |
| 41 | +$$ \label{eq:gam-pdf} |
| 42 | +f_X(x) = \frac{b^a}{\Gamma(a)} x^{a-1} \exp[-b x] \; . |
| 43 | +$$ |
| 44 | + |
| 45 | +Thus, the [cumulative distribution function](/D/cdf) is: |
| 46 | + |
| 47 | +$$ \label{eq:gam-cdf-s1} |
| 48 | +\begin{split} |
| 49 | +F_X(x) &= \int_{0}^{x} \mathrm{Gam}(z; a, b) \, \mathrm{d}z \\ |
| 50 | +&= \int_{0}^{x} \frac{b^a}{\Gamma(a)} z^{a-1} \exp[-b z] \, \mathrm{d}z \\ |
| 51 | +&= \frac{b^a}{\Gamma(a)} \int_{0}^{x} z^{a-1} \exp[-b z] \, \mathrm{d}z \; . |
| 52 | +\end{split} |
| 53 | +$$ |
| 54 | + |
| 55 | +Substituting $t = b z$, i.e. $z = t/b$, this becomes: |
| 56 | + |
| 57 | +$$ \label{eq:gam-cdf-s2} |
| 58 | +\begin{split} |
| 59 | +F_X(x) &= \frac{b^a}{\Gamma(a)} \int_{b \cdot 0}^{b x} \left(\frac{t}{b}\right)^{a-1} \exp\left[-b \left(\frac{t}{b}\right)\right] \, \mathrm{d}\left(\frac{t}{b}\right) \\ |
| 60 | +&= \frac{b^a}{\Gamma(a)} \cdot \frac{1}{b^{a-1}} \cdot \frac{1}{b} \int_{0}^{b x} t^{a-1} \exp[-t] \, \mathrm{d}t \\ |
| 61 | +&= \frac{1}{\Gamma(a)} \int_{0}^{b x} t^{a-1} \exp[-t] \, \mathrm{d}t \; . |
| 62 | +\end{split} |
| 63 | +$$ |
| 64 | + |
| 65 | +With the definition of the lower incomplete gamma function |
| 66 | + |
| 67 | +$$ \label{eq:li-gam-fct} |
| 68 | +\gamma(s,x) = \int_{0}^{x} t^{s-1} \exp[-t] \, \mathrm{d}t \; , |
| 69 | +$$ |
| 70 | + |
| 71 | +we arrive at the final result given by equation \eqref{eq:gam-cdf}: |
| 72 | + |
| 73 | +$$ \label{eq:gam-cdf-qed} |
| 74 | +F_X(x) = \frac{\gamma(a,bx)}{\Gamma(a)} \; . |
| 75 | +$$ |
0 commit comments