Skip to content

Commit e1c816e

Browse files
committed
corrected some pages
Several small corrections were done to several proofs and definitions.
1 parent fdfdc88 commit e1c816e

7 files changed

Lines changed: 27 additions & 29 deletions

File tree

P/ind-self.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ username: "JoramSoch"
3636
**Theorem:** Let $E$ be a [random event](/D/reve). Then, $E$ is [independent of itself](/D/ind), if and only if its [probability](/D/prob) is zero or one:
3737

3838
$$ \label{eq:ind-self}
39-
E \text{ self-independent} \quad \Leftrightarrow \quad p(E) = 0 \quad \text{or} \quad p(E) = 1 \; .
39+
E \; \text{self-independent} \quad \Leftrightarrow \quad p(E) = 0 \quad \text{or} \quad p(E) = 1 \; .
4040
$$
4141

4242

P/lognorm-mode.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ $$
6565

6666
$$ \label{eq:lognorm-pdf-der2}
6767
\begin{split}
68-
f''_X(x) &= \frac{1}{\sqrt{2\pi}\sigma^2x^3} \mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \cdot \left( \ln x -\mu \right) \cdot \left(1 + \frac{ \ln x -\mu}{\sigma^2}\right) \\
69-
&+ \frac{\sqrt{2}}{\sqrt{\pi}x^3}\mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \cdot \left(1 + \frac{ \ln x -\mu}{\sigma^2}\right) \\
70-
&- \frac{1}{\sqrt{2\pi}\sigma^2x^3} \mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \; .
68+
f''_X(x) &= \frac{1}{\sqrt{2\pi}\sigma^2 x^3} \cdot \mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \cdot \left( \ln x -\mu \right) \cdot \left(1 + \frac{ \ln x -\mu}{\sigma^2}\right) \\
69+
&+ \frac{\sqrt{2}}{\sqrt{\pi}x^3} \cdot \mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \cdot \left(1 + \frac{ \ln x -\mu}{\sigma^2}\right) \\
70+
&- \frac{1}{\sqrt{2\pi}\sigma^2 x^3} \cdot \mathrm{exp} \left[ -\frac{\left( \ln x -\mu \right)^2}{2 \sigma^2} \right] \; .
7171
\end{split}
7272
$$
7373

@@ -85,10 +85,10 @@ By plugging this value into the second derivative \eqref{eq:lognorm-pdf-der2},
8585

8686
$$ \label{eq:lognorm-mode-s2}
8787
\begin{split}
88-
f''_X(e^{(\mu-\sigma^2)}) &= \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \cdot \left( \sigma^2 \right) \cdot \left(0\right) \\
89-
&+ \frac{\sqrt{2}}{\sqrt{\pi}(e^{(\mu-\sigma^2)})^3} \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \cdot \left(0 \right) \\
90-
&- \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \\
91-
&= - \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] < 0 \; ,
88+
f''_X(e^{(\mu-\sigma^2)}) &= \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \cdot \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \cdot \left( \sigma^2 \right) \cdot \left(0\right) \\
89+
&+ \frac{\sqrt{2}}{\sqrt{\pi}(e^{(\mu-\sigma^2)})^3} \cdot \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \cdot \left(0 \right) \\
90+
&- \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \cdot \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] \\
91+
&= - \frac{1}{\sqrt{2\pi}\sigma^2(e^{(\mu-\sigma^2)})^3} \cdot \mathrm{exp} \left[ -\frac{\sigma^2}{2} \right] < 0 \; ,
9292
\end{split}
9393
$$
9494

P/med-mae.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $$ \label{eq:med-mae-s1}
5858
E(\lvert X_i - a \rvert) = \int_{-\infty}^a (a - x) f(x) \, \mathrm{d}x + \int_{a}^\infty (x - a) f(x) \, \mathrm{d}x \; .
5959
$$
6060

61-
Now note that $\lvert\frac{\partial}{\partial a}(a - x)f(x)\rvert = \lvert\frac{\partial}{\partial a}(x - a)f(x)\rvert = f(x)$. Consequently, $\int_{-\infty}^af(x) = P(X_i < a)$ and $\int_{a}^\infty f(x) = P(X_i > a)$, both of which must be finite by the [axioms of probability](/D/prob-ax). Therefore, these integrals meet the conditions for application of Leibniz's rule.
61+
Now note that $\lvert\frac{\partial}{\partial a}(a - x)f(x)\rvert = \lvert\frac{\partial}{\partial a}(x - a)f(x)\rvert = f(x)$. Consequently, $\int_{-\infty}^a f(x) = \mathrm{Pr}(X_i < a)$ and $\int_{a}^\infty f(x) = \mathrm{Pr}(X_i > a)$, both of which must be finite by the [axioms of probability](/D/prob-ax). Therefore, these integrals meet the conditions for application of Leibniz's rule.
6262

6363
Applying Leibniz's integral rule, we can differentiate the objective function as follows:
6464

@@ -74,17 +74,17 @@ Canceling non-integral terms and setting this derivative to 0, it must be true t
7474
$$\label{eq:dmed-da}
7575
\int_{-\infty}^a f(x) \, \mathrm{d}x - \int_{a}^\infty f(x) \, \mathrm{d}x = 0
7676
\quad \Rightarrow \quad
77-
P(X_i < a) = P(X_i > a) \; .
77+
\mathrm{Pr}(X_i < a) = \mathrm{Pr}(X_i > a) \; .
7878
$$
7979

8080
Together with the [probability of the complement](/P/prob-comp), this yields the implication
8181

8282
$$\label{eq:med-mae-qed}
83-
P(X_i < a) = P(X_i > a)
83+
\mathrm{Pr}(X_i < a) = \mathrm{Pr}(X_i > a)
8484
\quad \Rightarrow \quad
85-
P(X_i < a) = 1 - P(X_i < a)
85+
\mathrm{Pr}(X_i < a) = 1 - \mathrm{Pr}(X_i < a)
8686
\quad \Rightarrow \quad
87-
P(X_i < a) = 0.5
87+
\mathrm{Pr}(X_i < a) = 0.5
8888
$$
8989

9090
As a result, $a$ satisfies the [definition of a median](/D/med) at the critical point of the objective function.

P/norm-dent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $$ \label{eq:norm-dent-s1}
6161
\end{split}
6262
$$
6363

64-
Note that $\mathrm{E}\left[ (x-\mu)^2 \right]$ [corresponds to the variance](/D/var) of $X$ and the [variance of the normal distribution](/P/norm-var) is $\sigma^2$. Thus, we can proceed:
64+
Note that $\mathrm{E}\left[ (x-\mu)^2 \right]$ [corresponds to the variance](/P/momcent-2nd) of $X$ and the [variance of the normal distribution](/P/norm-var) is $\sigma^2$. Thus, we can proceed:
6565

6666
$$ \label{eq:norm-dent-s2}
6767
\begin{split}

P/snr-rsq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ $$
8383
Rearranging this equation for the [coefficient of determination](/D/rsq), we have
8484

8585
$$ \label{eq:R2-SNR-qed}
86-
R^2 = \frac{\mathrm{SNR}}{\mathrm{1+\mathrm{SNR}}} \; ,
86+
R^2 = \frac{\mathrm{SNR}}{\mathrm{1+\mathrm{SNR}}} \; .
8787
$$

P/ug-ttest1power.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ z_x = \Phi^{-1}(1 - x)
3333
\quad \Leftrightarrow \quad
3434
\Phi(z_x) = 1 - x
3535
\quad \Leftrightarrow \quad
36-
\mathbb{P}(Z \leq z_x) = 1 - x \Leftrightarrow \mathbb{P}(z_x \leq Z) = x \; .
36+
\mathrm{Pr}(Z \leq z_x) = 1 - x \Leftrightarrow \mathrm{Pr}(z_x \leq Z) = x \; .
3737
$$
3838

3939
1) One-sided one-sample t-test:
@@ -97,20 +97,20 @@ $$
9797
So the [power](/D/power) of the test is
9898

9999
$$ \label{eq:one-sided-power-prob}
100-
\mathbb{P}\left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} > z_\alpha\right) \; .
100+
\mathrm{Pr}\left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} > z_\alpha\right) \; .
101101
$$
102102

103103
If the true mean is $\mu = \mu_0 + \delta$, where $\delta > 0$, then the power is
104104

105105
$$ \label{eq:one-sided-power-shift}
106-
\mathbb{P}\left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{s} > z_\alpha\right) \; .
106+
\mathrm{Pr}\left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{s} > z_\alpha\right) \; .
107107
$$
108108

109109
Now that we're subtracting the true mean, the first term in the sum has a [t-distribution](/D/t), which we approximate with a $\mathcal{N}(0,1)$ distribution, denoted as $Z$. We also approximate $s$ with $\sigma$, since it should be a good approximation, and the error here doesn't make much difference to the calculation. The power is therefore approximately
110110

111111
$$ \label{eq:one-sided-power-final}
112-
\mathbb{P}\left(Z > z_\alpha - \frac{\delta\sqrt{n}}{\sigma}\right)
113-
= \mathbb{P}\left(Z < \frac{\delta\sqrt{n}}{\sigma} - z_\alpha\right)
112+
\mathrm{Pr}\left(Z > z_\alpha - \frac{\delta\sqrt{n}}{\sigma}\right)
113+
= \mathrm{Pr}\left(Z < \frac{\delta\sqrt{n}}{\sigma} - z_\alpha\right)
114114
= \Phi\left(\frac{\delta\sqrt{n}}{\sigma} - z_\alpha\right) \; .
115115
$$
116116

@@ -151,13 +151,13 @@ $$
151151
So the [power](/D/power) of the test is
152152

153153
$$ \label{eq:two-sided-power-prob}
154-
\mathbb{P}\left(\left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} > z_{\alpha/2}\right) \wedge \left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} < -z_{\alpha/2}\right)\right) \; .
154+
\mathrm{Pr}\left(\left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} > z_{\alpha/2}\right) \wedge \left(\frac{\bar{Y} - \mu_0}{s/\sqrt{n}} < -z_{\alpha/2}\right)\right) \; .
155155
$$
156156

157157
If the true mean is $\mu = \mu_0 + \delta$ (where $\delta > 0$ without loss of generality), then the power is
158158

159159
$$ \label{eq:two-sided-power-shift}
160-
\mathbb{P}\left(\left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{\sigma} > z_{\alpha/2}\right) \wedge \left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{\sigma} < -z_{\alpha/2}\right)\right) \; .
160+
\mathrm{Pr}\left(\left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{\sigma} > z_{\alpha/2}\right) \wedge \left(\frac{\bar{Y} - \mu_0 - \delta}{s/\sqrt{n}} + \frac{\delta\sqrt{n}}{\sigma} < -z_{\alpha/2}\right)\right) \; .
161161
$$
162162

163163
As before, we use a $\mathcal{N}(0,1)$ distribution and we approximate $s$ with $\sigma$. The power is therefore approximately

P/wald-skew.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ username: "tomfaulkenberry"
2121
---
2222

2323

24-
2524
**Theorem:** Let $X$ be a [random variable](/D/rvar) following a [Wald distribution](/D/wald):
2625

2726
$$ \label{eq:wald}
@@ -34,21 +33,20 @@ $$ \label{eq:wald-skew}
3433
\mathrm{Skew}(X) = \frac{3}{\sqrt{\alpha\gamma}} \; .
3534
$$
3635

37-
**Proof:**
3836

39-
To compute the skewness of $X$, we [partition the skewness into expected values](/P/skew-mean):
37+
**Proof:** To compute the skewness of $X$, we [partition the skewness into expected values](/P/skew-mean):
4038

4139
$$ \label{eq:skew-mean}
4240
\mathrm{Skew}(X) = \frac{\mathrm{E}(X^3)-3\mu\sigma^2-\mu^3}{\sigma^3} \; ,
4341
$$
4442

45-
where $\mu$ and $\sigma$ are the mean and standard deviation of $X$, respectively. Since $X$ follows an [Wald distribution](/D/wald), the [mean](/P/wald-mean) of $X$ is given by
43+
where $\mu$ and $\sigma$ are the mean and standard deviation of $X$, respectively. Since $X$ follows a [Wald distribution, the mean](/P/wald-mean) of $X$ is given by
4644

4745
$$ \label{eq:wald-mean}
4846
\mu = \mathrm{E}(X) = \frac{\alpha}{\gamma}
4947
$$
5048

51-
and the [standard deviation](/P/wald-var) of $X$ is given by
49+
and [the standard deviation](/P/wald-var) of $X$ is given by
5250

5351
$$ \label{eq:wald-var}
5452
\sigma = \sqrt{\mathrm{Var}(X)} = \sqrt{\frac{\alpha}{\gamma^3}}\; .
@@ -116,7 +114,7 @@ $$ \label{eq:wald-skew-split2}
116114
g(t) = \frac{\alpha}{(\gamma^2-2t)^{3/2}}\exp\left[\alpha\gamma-\sqrt{\alpha^2(\gamma^2-2t)}\right] \; .
117115
$$
118116

119-
With this decomposition, $M_X'''(t) = f'(t) + g'(t)$. Applying the product rule to $f$ gives:
117+
With this decomposition, $M_X''\'(t) = f'(t) + g'(t)$. Applying the product rule to $f$ gives:
120118

121119
$$ \label{eq:wald-skew-f}
122120
\begin{split}
@@ -161,4 +159,4 @@ $$ \label{eq:wald-skew-s5}
161159
\end{split}
162160
$$
163161

164-
This completes the proof of \eqref{eq:wald-skew}.
162+
This completes the proof of \eqref{eq:wald-skew}.

0 commit comments

Comments
 (0)