Skip to content

Commit 7bddcb6

Browse files
Merge pull request #214 from tomfaulkenberry/master
Added skew-samp, exg-mome, and wald-mome
2 parents 95bbd60 + e9ba641 commit 7bddcb6

3 files changed

Lines changed: 250 additions & 0 deletions

File tree

D/skew-samp.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: definition
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: "Sample skewness"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Skewness"
14+
definition: "Sample skewness"
15+
16+
sources:
17+
- authors: "Joanes, D. N. and Gill, C. A."
18+
year: 1998
19+
title: "Comparing measures of sample skewness and kurtosis"
20+
in: "The Statistician"
21+
pages: "vol. 47, part 1, pp. 183-189"
22+
url: "https://www.jstor.org/stable/2988433"
23+
24+
def_id: "D190"
25+
shortcut: "skew-samp"
26+
username: "tomfaulkenberry"
27+
---
28+
29+
30+
**Definition:** Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ be a [sample](/D/samp) from a [random variable](/D/rvar) $X$. Then, the sample skewness of $x$ is given by
31+
32+
$$ \label{eq:skew-samp}
33+
\hat{s} = \frac{\frac{1}{n}\sum_{i=1}^n (x_i-\bar{x})^3}{\left[\frac{1}{n}\sum_{i=1}^n(x_i-\bar{x})^2\right]^{3/2}} \; ,
34+
$$
35+
36+
where $\bar{x}$ is the [sample mean](/D/mean-samp).

P/exg-mome.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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$.

P/wald-mome.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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 Wald distributed data"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Wald distribution"
14+
theorem: "Method of moments"
15+
16+
sources:
17+
18+
proof_id: "P423"
19+
shortcut: "wald-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 a [Wald distribution](/D/wald) with drift rate $\gamma$ and threshold $\alpha$:
26+
27+
$$ \label{eq:wald}
28+
y_i \sim \mathrm{Wald}(\gamma,\alpha), \quad i = 1, \ldots, n \; .
29+
$$
30+
31+
Then, the [method-of-moments estimates](/D/mome) for the parameters $\gamma$ and $\alpha$ are given by
32+
33+
$$ \label{eq:wald-MoM}
34+
\begin{split}
35+
\hat{\gamma} &= \sqrt{\frac{\bar{y}}{\bar{v}}} \\
36+
\hat{\alpha} &= \sqrt{\frac{\bar{y}^3}{\bar{v}}}
37+
\end{split}
38+
$$
39+
40+
where $\bar{y}$ is the [sample mean](/D/mean-samp) and $\bar{v}$ is the [unbiased sample variance](/D/var-samp):
41+
42+
$$ \label{eq:y-mean-var}
43+
\begin{split}
44+
\bar{y} &= \frac{1}{n} \sum_{i=1}^n y_i \\
45+
\bar{v} &= \frac{1}{n-1} \sum_{i=1}^n (y_i - \bar{y})^2 \; .
46+
\end{split}
47+
$$
48+
49+
50+
**Proof:** The [mean](/P/wald-mean) and [variance](/P/wald-var) of the [Wald distribution](/D/wald) in terms of the parameters $\gamma$ and $\alpha$ are given by
51+
52+
$$ \label{eq:wald-E-Var}
53+
\begin{split}
54+
\mathrm{E}(X) &= \frac{\alpha}{\gamma} \\
55+
\mathrm{Var}(X) &= \frac{\alpha}{\gamma^3} \; .
56+
\end{split}
57+
$$
58+
59+
Thus, [matching the moments](/D/mome) requires us to solve the following system of equations for $\gamma$ and $\alpha$:
60+
61+
$$ \label{eq:wald-mean-var}
62+
\begin{split}
63+
\bar{y} &= \frac{\alpha}{\gamma} \\
64+
\bar{v} &= \frac{\alpha}{\gamma^3} \; .
65+
\end{split}
66+
$$
67+
68+
To this end, our first step is to express the second equation of \eqref{eq:wald-mean-var} as follows:
69+
70+
$$ \label{eq:gamma-s1}
71+
\begin{split}
72+
\bar{v} &= \frac{\alpha}{\gamma^3} \\
73+
& = \frac{\alpha}{\gamma} \cdot \gamma^{-2}\\
74+
& = \bar{y} \cdot \gamma^{-2} \; .
75+
\end{split}
76+
$$
77+
78+
Rearranging \eqref{eq:gamma-s1} gives
79+
80+
$$ \label{eq:gamma-s2}
81+
\gamma^2 = \frac{\bar{y}}{\bar{v}} \; ,
82+
$$
83+
84+
or equivalently,
85+
86+
$$ \label{eq:gamma-s3}
87+
\gamma = \sqrt{\frac{\bar{y}}{\bar{v}}} \; .
88+
$$
89+
90+
Our final step is to solve the first equation of \eqref{eq:wald-mean-var} for $\alpha$ and substitute \eqref{eq:gamma-s3} for $\gamma$:
91+
92+
$$ \label{eq:alpha-s1}
93+
\begin{split}
94+
\alpha & = \bar{y} \cdot \gamma \\
95+
& = \bar{y} \cdot \sqrt{\frac{\bar{y}}{\bar{v}}}\\
96+
&= \sqrt{\bar{y}^2} \cdot \sqrt{\frac{\bar{y}}{\bar{v}}}\\
97+
&= \sqrt{\frac{\bar{y}^3}{\bar{v}}} \; .
98+
\end{split}
99+
$$
100+
101+
Together, \eqref{eq:gamma-s3} and \eqref{eq:alpha-s1} constitute the method-of-moment estimates of $\gamma$ and $\alpha$.

0 commit comments

Comments
 (0)