|
| 1 | +--- |
| 2 | +layout: proof |
| 3 | +mathjax: true |
| 4 | + |
| 5 | +author: "Thomas J. Faulkenberry" |
| 6 | +affiliation: "Tarleton State University" |
| 7 | +e_mail: "faulkenberry@tarleton.edu" |
| 8 | +date: 2020-09-13 12:00:00 |
| 9 | + |
| 10 | +title: "Moment-generating function of the Wald distribution" |
| 11 | +chapter: "Probability Distributions" |
| 12 | +section: "Univariate continuous distributions" |
| 13 | +topic: "Wald distribution" |
| 14 | +theorem: "Moment-generating function" |
| 15 | + |
| 16 | +sources: |
| 17 | + - authors: "Siegrist, K." |
| 18 | + year: 2020 |
| 19 | + title: "The Wald Distribution" |
| 20 | + in: "Random (formerly Virtual Laboratories in Probability and Statistics)" |
| 21 | + pages: "retrieved on 2020-09-13" |
| 22 | + url: "https://www.randomservices.org/random/special/Wald.html" |
| 23 | + |
| 24 | + - authors: "National Institute of Standards and Technology" |
| 25 | + year: 2020 |
| 26 | + title: "NIST Digital Library of Mathematical Functions" |
| 27 | + pages: "retrieved on 2020-09-13" |
| 28 | + url: "https://dlmf.nist.gov" |
| 29 | + |
| 30 | +proof_id: "P168" |
| 31 | +shortcut: "wald-mgf" |
| 32 | +username: "tomfaulkenberry" |
| 33 | +--- |
| 34 | + |
| 35 | + |
| 36 | +**Theorem:** Let $X$ be a positive [random variable](/D/rvar) following a [Wald distribution](/D/wald): |
| 37 | + |
| 38 | +$$ \label{eq:wald} |
| 39 | +X \sim \mathrm{Wald}(\gamma, \alpha) \; . |
| 40 | +$$ |
| 41 | + |
| 42 | + |
| 43 | +Then, the [moment-generating function](/D/mgf) of $X$ is |
| 44 | + |
| 45 | + |
| 46 | +$$ \label{eq:wald-mgf} |
| 47 | +M_X(t) = \exp \left[ \alpha\gamma-\sqrt{\alpha^2(\gamma^2-2t)}\right]. |
| 48 | +$$ |
| 49 | + |
| 50 | + |
| 51 | +**Proof:** The [probability density function of the Wald distribution](/P/wald-pdf) is |
| 52 | + |
| 53 | +$$ \label{eq:wald-pdf} |
| 54 | +f_X(x) = \frac{\alpha}{\sqrt{2\pi x^3}}\exp\left(-\frac{(\alpha-\gamma x)^2}{2x}\right) |
| 55 | +$$ |
| 56 | + |
| 57 | +and the [moment-generating function](/D/mgf) is defined as |
| 58 | + |
| 59 | +$$ \label{eq:mgf-var} |
| 60 | +M_X(t) = \mathrm{E} \left[ e^{tX} \right] \; . |
| 61 | +$$ |
| 62 | + |
| 63 | +Using the definition of [expected value for continuous random variables](/D/mean), the moment-generating function of $X$ therefore is |
| 64 | + |
| 65 | +$$ \label{eq:wald-mgf-s1} |
| 66 | +\begin{split} |
| 67 | +M_X(t) &= \int_0^{\infty} e^{tx} \cdot \frac{\alpha}{\sqrt{2\pi x^3}}\cdot \exp\left[-\frac{(\alpha-\gamma x)^2}{2x}\right]dx\\ |
| 68 | +&= \frac{\alpha}{\sqrt{2\pi}}\int_0^{\infty} x^{-3/2}\cdot \exp\left[tx - \frac{(\alpha-\gamma x)^2}{2x}\right]dx\\ |
| 69 | +\end{split} |
| 70 | +$$ |
| 71 | + |
| 72 | +To evaluate this integral, we will need two identities about [modified Bessel functions of the second kind](https://dlmf.nist.gov/10.25), denoted $K_{p}$. The function $K_{p}$ (for $p\in \mathbb{R}$) is one of the two linearly independent solutions of the differential equation |
| 73 | + |
| 74 | +$$ \label{eq:bessel-de} |
| 75 | +x^2\frac{d^2y}{dx^2} + x\frac{dy}{dx}-(x^2+p^2)y=0 \; . |
| 76 | +$$ |
| 77 | + |
| 78 | +The first of these [identities](https://dlmf.nist.gov/10.39.2) gives an explicit solution for $K_{-1/2}$: |
| 79 | + |
| 80 | +$$ \label{eq:bessel-fact1} |
| 81 | +K_{-1/2}(x) = \sqrt{\frac{\pi}{2x}} e^{-x} \; . |
| 82 | +$$ |
| 83 | + |
| 84 | +The second of these [identities](https://dlmf.nist.gov/10.32.10) gives an integral representation of $K_p$: |
| 85 | + |
| 86 | +$$ \label{eq:bessel-fact2} |
| 87 | +K_p(\sqrt{ab}) = \frac{1}{2}\left(\frac{a}{b}\right)^{p/2} \int_0^{\infty}x^{p-1}\cdot \exp\left[-\frac{1}{2}\left(ax + \frac{b}{x}\right)\right]dx \; . |
| 88 | +$$ |
| 89 | + |
| 90 | +Starting from \eqref{eq:wald-mgf-s1}, we can expand the binomial term and rearrange the moment generating function into the following form: |
| 91 | + |
| 92 | +$$ \label{eq:wald-mgf-s2} |
| 93 | +\begin{split} |
| 94 | +M_X(t) &= \frac{\alpha}{\sqrt{2\pi}} \int_0^{\infty} x^{-3/2}\cdot \exp\left[ tx - \frac{\alpha^2}{2x} + \alpha\gamma - \frac{\gamma^2x}{2}\right]dx\\ |
| 95 | + &= \frac{\alpha}{\sqrt{2\pi}}\cdot e^{\alpha \gamma} \int_0^{\infty} x^{-3/2}\cdot \exp\left[\left(t-\frac{\gamma^2}{2}\right)x - \frac{\alpha^2}{2x}\right]dx\\ |
| 96 | + &= \frac{\alpha}{\sqrt{2\pi}}\cdot e^{\alpha \gamma} \int_0^{\infty} x^{-3/2}\cdot \exp \left[-\frac{1}{2}\left(\gamma^2-2t\right)x - \frac{1}{2}\cdot \frac{\alpha^2}{x}\right]dx\\ \; . |
| 97 | +\end{split} |
| 98 | +$$ |
| 99 | + |
| 100 | +The integral now has the form of the integral in \eqref{eq:bessel-fact2} with $p=-1/2$, $a=\gamma^2-2t$, and $b=\alpha^2$. This allows us to write the moment-generating function in terms of the modified Bessel function $K_{-1/2}$: |
| 101 | + |
| 102 | +$$ \label{eq:wald-mgf-s3} |
| 103 | +M_X(t) = \frac{\alpha}{\sqrt{2\pi}}\cdot e^{\alpha \gamma}\cdot 2\left(\frac{\gamma^2-2t}{\alpha^2}\right)^{1/4}\cdot K_{-1/2}\left(\sqrt{\alpha^2(\gamma^2-2t)}\right). |
| 104 | +$$ |
| 105 | + |
| 106 | +Combining with \eqref{eq:bessel-fact1} and simplifying gives |
| 107 | + |
| 108 | +$$ \label{eq:wald-mgf-s4} |
| 109 | +\begin{split} |
| 110 | + M_X(t) &= \frac{\alpha}{\sqrt{2\pi}}\cdot e^{\alpha \gamma}\cdot 2\left(\frac{\gamma^2-2t}{\alpha^2}\right)^{1/4} \cdot \sqrt{\frac{\pi}{2\sqrt{\alpha^2(\gamma^2-2t)}}}\cdot \exp\left[-\sqrt{\alpha^2(\gamma^2-2t)}\right]\\ |
| 111 | + &= \frac{\alpha}{\sqrt{2}\cdot \sqrt{\pi}}\cdot e^{\alpha \gamma}\cdot 2 \cdot \frac{(\gamma^2-2t)^{1/4}}{\sqrt{\alpha}}\cdot \frac{\sqrt{\pi}}{\sqrt{2}\cdot \sqrt{\alpha}\cdot (\gamma^2-2t)^{1/4}}\cdot \exp\left[-\sqrt{\alpha^2(\gamma^2-2t)}\right]\\ |
| 112 | + &= e^{\alpha \gamma} \cdot \exp\left[-\sqrt{\alpha^2(\gamma^2-2t)}\right]\\ |
| 113 | + &= \exp\left[\alpha \gamma-\sqrt{\alpha^2(\gamma^2-2t)}\right]\\ \; . |
| 114 | +\end{split} |
| 115 | +$$ |
| 116 | + |
| 117 | +This finishes the proof of \eqref{eq:wald-mgf}. |
0 commit comments