Skip to content

Commit 4a29cdd

Browse files
authored
Merge pull request #87 from StatProofBook/master
update to master
2 parents e2bea83 + 4109226 commit 4a29cdd

3 files changed

Lines changed: 24 additions & 5 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ GEM
7070
terminal-table (1.8.0)
7171
unicode-display_width (~> 1.1, >= 1.1.1)
7272
thread_safe (0.3.6)
73-
tzinfo (1.2.5)
73+
tzinfo (1.2.10)
7474
thread_safe (~> 0.1)
7575
tzinfo-data (1.2019.2)
7676
tzinfo (>= 1.0.0)

P/mvn-ind.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,31 @@ $$ \label{eq:x-ind-dev}
6969
\end{split}
7070
$$
7171

72-
which, given the laws for matrix determinants and matrix inverses, is only fulfilled if
72+
which is only fulfilled by a diagonal covariance matrix
7373

7474
$$ \label{eq:Sigma-diag-qed}
75-
\Sigma = \mathrm{diag}\left( \left[ \sigma^2_1, \ldots, \sigma^2_n \right] \right) \; .
75+
\Sigma = \mathrm{diag}\left( \left[ \sigma^2_1, \ldots, \sigma^2_n \right] \right) \; ,
76+
$$
77+
78+
because the determinant of a diagonal matrix is a product
79+
80+
$$ \label{eq:diag-det}
81+
| \mathrm{diag}\left( \left[ a_1, \ldots, a_n \right] \right) | = \prod_{i=1}^n a_i \; ,
7682
$$
7783

84+
the inverse of a diagonal matrix is a diagonal matrix
85+
86+
$$ \label{eq:diag-inv}
87+
\mathrm{diag}\left( \left[ a_1, \ldots, a_n \right] \right)^{-1} = \mathrm{diag}\left( \left[ 1/a_1, \ldots, 1/a_n \right] \right)
88+
$$
89+
90+
and the squared form with a diagonal matrix is
91+
92+
$$ \label{eq:diag-sqr}
93+
x^\mathrm{T} \mathrm{diag}\left( \left[ a_1, \ldots, a_n \right] \right) x = \sum_{i=1}^n a_i x_i^2 \; .
94+
$$
95+
96+
7897
<br>
7998
2) Let
8099

P/ug-ttest2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ $$ \label{eq:t}
4848
t = \frac{(\bar{y}_1-\bar{y}_2)-\mu_\Delta}{s_p \cdot \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}
4949
$$
5050

51-
with [sample means](/D/mean-samp) $\bar{y}_1$ and $\bar{y}_2$ and [pooled standard deviation](/D/std-pool) $s_p$ follows a [Student's t-distribution](/D/t) with $n_1+n_2-1$ [degrees of freedom](/D/dof)
51+
with [sample means](/D/mean-samp) $\bar{y}_1$ and $\bar{y}_2$ and [pooled standard deviation](/D/std-pool) $s_p$ follows a [Student's t-distribution](/D/t) with $n_1+n_2-2$ [degrees of freedom](/D/dof)
5252

5353
$$ \label{eq:t-dist}
54-
t \sim \mathrm{t}(n_1+n_2-1)
54+
t \sim \mathrm{t}(n_1+n_2-2)
5555
$$
5656

5757
under the [null hypothesis](/D/h0)

0 commit comments

Comments
 (0)