|
| 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: 2023-10-30 12:00:00 |
| 9 | + |
| 10 | +title: "Method of moments for ex-Gaussian distributed data" |
| 11 | +chapter: "Probability Distributions" |
| 12 | +section: "Univariate continuous distributions" |
| 13 | +topic: "ex-Gaussian distribution" |
| 14 | +theorem: "Method of moments" |
| 15 | + |
| 16 | +sources: |
| 17 | + |
| 18 | +proof_id: "P424" |
| 19 | +shortcut: "exg-mome" |
| 20 | +username: "tomfaulkenberry" |
| 21 | +--- |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +**Theorem:** Let $y = \left\lbrace y_1, \ldots, y_n \right\rbrace$ be a set of observed data [independent and identically distributed](/D/iid) according to an [ex-Gaussian distribution](/D/exg) with parameters $\mu$, $\sigma$, and $\lambda$: |
| 26 | + |
| 27 | +$$ \label{eq:exq} |
| 28 | +y_i \sim \mathrm{ex-Gaussian}(\mu,\sigma,\lambda), \quad i = 1, \ldots, n \; . |
| 29 | +$$ |
| 30 | + |
| 31 | +Then, the [method-of-moments estimates](/D/mome) for the parameters $\mu$, $\sigma$, and $\lambda$ are given by |
| 32 | + |
| 33 | +$$ \label{eq:exg-MoM} |
| 34 | +\begin{split} |
| 35 | +\hat{\mu} &= \bar{y} - \sqrt[3]{\frac{\bar{s}\cdot \bar{v}^{3/2}}{2}}\\ |
| 36 | +\hat{\sigma} &= \sqrt{\bar{v}\cdot\left(1 - \sqrt[3]{\frac{\bar{s}^2}{4}}\right)}\\ |
| 37 | +\hat{\lambda} &= \sqrt[3]{\frac{2}{\bar{s}\cdot \bar{v}^{3/2}}} \; , |
| 38 | +\end{split} |
| 39 | +$$ |
| 40 | + |
| 41 | +where $\bar{y}$ is the [sample mean](/D/mean-samp) and $\bar{v}$ is the [sample variance](/D/var-samp), and $\bar{s}$ is the [sample skewness](/D/skew-samp) |
| 42 | + |
| 43 | +$$ \label{eq:y-mean-var-skew} |
| 44 | +\begin{split} |
| 45 | +\bar{y} &= \frac{1}{n} \sum_{i=1}^n y_i \\ |
| 46 | +\bar{v} &= \frac{1}{n-1} \sum_{i=1}^n (y_i - \bar{y})^2 \\ |
| 47 | +\bar{s} &= \frac{\frac{1}{n}\sum_{i=1}^n (y_i-\bar{y})^3}{\left[\frac{1}{n}\sum_{i=1}^n(y_i-\bar{y})^2\right]^{3/2}} \; . |
| 48 | +\end{split} |
| 49 | +$$ |
| 50 | + |
| 51 | + |
| 52 | +**Proof:** The [mean](/P/exg-mean), [variance](/P/exg-var), and [skewness](/P/exg-skew) of the [ex-Gaussian distribution](/D/exg) in terms of the parameters $\mu$, $\sigma$, and $\lambda$ are given by |
| 53 | + |
| 54 | +$$ \label{eq:exg-E-Var-Skew} |
| 55 | +\begin{split} |
| 56 | +\mathrm{E}(X) &= \mu + \frac{1}{\lambda} \\ |
| 57 | +\mathrm{Var}(X) &= \sigma^2 + \frac{1}{\lambda^2}\\ |
| 58 | +\mathrm{Skew}(X) &= \frac{2}{\lambda^3\left(\sigma^2+\frac{1}{\lambda^2}\right)^{3/2}} \; . |
| 59 | +\end{split} |
| 60 | +$$ |
| 61 | + |
| 62 | +Thus, [matching the moments](/D/mome) requires us to solve the following system of equations for $\mu$, $\sigma$, and $\lambda$: |
| 63 | + |
| 64 | +$$ \label{eq:exg-mean-var-skew} |
| 65 | +\begin{split} |
| 66 | +\bar{y} &= \mu + \frac{1}{\lambda} \\ |
| 67 | +\bar{v} &= \sigma^2 + \frac{1}{\lambda^2}\\ |
| 68 | +\bar{s} &= \frac{2}{\lambda^3\left(\sigma^2+\frac{1}{\lambda^2}\right)^{3/2}} \; . |
| 69 | +\end{split} |
| 70 | +$$ |
| 71 | + |
| 72 | +To this end, our first step is to substitute the second equation of \eqref{eq:exg-mean-var-skew} into the third equation: |
| 73 | + |
| 74 | +$$ \label{eq:lambda-s1} |
| 75 | +\begin{split} |
| 76 | +\bar{s} &= \frac{2}{\lambda^3\left(\sigma^2+\frac{1}{\lambda^2}\right)^{3/2}} \\ |
| 77 | +&= \frac{2}{\lambda^3\cdot \bar{v}^{3/2}} \; . |
| 78 | +\end{split} |
| 79 | +$$ |
| 80 | + |
| 81 | +Re-expressing \eqref{eq:lambda-s1} in terms of $\lambda^3$ and taking the cube root gives: |
| 82 | + |
| 83 | +$$ \label{eq:lambda-s2} |
| 84 | +\lambda = \sqrt[3]{\frac{2}{\bar{s}\cdot \bar{v}^{3/2}}} \; . |
| 85 | +$$ |
| 86 | + |
| 87 | +Next, we solve the first equation of \eqref{eq:exg-mean-var-skew} for $\mu$ and substitute \eqref{eq:lambda-s2}: |
| 88 | + |
| 89 | +$$ \label{eq:mu-s1} |
| 90 | +\begin{split} |
| 91 | +\mu &= \bar{y} - \frac{1}{\lambda}\\ |
| 92 | +&= \bar{y} - \sqrt[3]{\frac{\bar{s}\cdot\bar{v}^{3/2}}{2}} \; . |
| 93 | +\end{split} |
| 94 | +$$ |
| 95 | + |
| 96 | +Finally, we solve the second equation of \eqref{eq:exg-mean-var-skew} for $\sigma$: |
| 97 | + |
| 98 | +$$ \label{eq:sigma-s1} |
| 99 | +\sigma^2 = \bar{v} - \frac{1}{\lambda^2} \; . |
| 100 | +$$ |
| 101 | + |
| 102 | +Taking the square root gives and substituting \eqref{eq:lambda-s2} gives: |
| 103 | + |
| 104 | +$$ \label{eq:sigma-s2} |
| 105 | +\begin{split} |
| 106 | +\sigma &= \sqrt{\bar{v}-\frac{1}{\lambda^2}} \\ |
| 107 | +&= \sqrt{\bar{v} - \left(\sqrt[3]{\frac{\bar{s}\cdot \bar{v}^{3/2}}{2}}\right)^2} \\ |
| 108 | +&= \sqrt{\bar{v} - \bar{v}\cdot\sqrt[3]{\frac{\bar{s}^2}{4}}} \\ |
| 109 | +&= \sqrt{\bar{v}\cdot \left(1- \sqrt[3]{\frac{\bar{s}^2}{4}}\right)} \; . |
| 110 | +\end{split} |
| 111 | +$$ |
| 112 | + |
| 113 | +Together, \eqref{eq:mu-s1}, \eqref{eq:sigma-s2}, and \eqref{eq:lambda-s2} constitute the method-of-moment estimates of $\mu$, $\sigma$, and $\lambda$. |
0 commit comments