diff --git a/doc/pub/week35/html/week35-bs.html b/doc/pub/week35/html/week35-bs.html index e22a4cc7b..b5c92388f 100644 --- a/doc/pub/week35/html/week35-bs.html +++ b/doc/pub/week35/html/week35-bs.html @@ -183,10 +183,10 @@ Automatically generated HTML file from DocOnce source None, 'note-about-svd-calculations'), ('Friday September 3', 2, None, 'friday-september-3'), - ('Matheamtics of the SVD and implications', + ('Mathematics of the SVD and implications', 2, None, - 'matheamtics-of-the-svd-and-implications'), + 'mathematics-of-the-svd-and-implications'), ('Example Matrix', 2, None, 'example-matrix'), ('Setting up the Matrix to be inverted', 2, @@ -350,7 +350,7 @@ MathJax.Hub.Config({
$$
-\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=(\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right^{-1}\boldsymbol{X}^T)\boldsymbol{y}.
+\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=\left[\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right)^{-1}\boldsymbol{X}^T\right]\boldsymbol{y}.
$$
Let us take a closer look at the mathematics of the SVD and the various implications for machine learning studies.
@@ -2007,14 +2007,14 @@ Let us take a closer look at the mathematics of the SVD and the various implicat
Our starting point is our design matrix \( \boldsymbol{X} \) of dimension \( n\times p \)
This means, using the orthogonality of \( \boldsymbol{V} \), that we get
@@ -2267,7 +2267,7 @@ function, that is we have
We have defined the residual error as
$$
-\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=(\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right^{-1}\boldsymbol{X}^T)\boldsymbol{y}.
+\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=\left[\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right)^{-1}\boldsymbol{X}^T\right]\boldsymbol{y}.
$$
@@ -2085,7 +2085,7 @@ More material will be added here, see handwritten notes also. Note that this m
Let us take a closer look at the mathematics of the SVD and the various implications for machine learning studies.
@@ -2093,14 +2093,14 @@ Let us take a closer look at the mathematics of the SVD and the various implicat
Our starting point is our design matrix \( \boldsymbol{X} \) of dimension \( n\times p \)
$$
-\boldsymbol{X}=
-\begin{bmatrix}
-x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots & x_{0,p-1}\\
-x_{1,0} & x_{1,1} & x_{1,2& \dots & \dots & x_{1,p-1}\\
-x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots & x_{2,p-1}\\
-\dots& \dots &\dots & \dots & \dots &\dots\\
-x_{n-1,0} & x_{n-1,1} & x_{n-1,2} & \dots & \dots & x_{n-1,p-1}\\
-\end{bmatrix}
+\boldsymbol{X}=\begin{bmatrix}
+x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots x_{0,p-1}\\
+x_{1,0} & x_{1,1} & x_{1,2}& \dots & \dots x_{1,p-1}\\
+x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots x_{2,p-1}\\
+\dots & \dots & \dots & \dots \dots & \dots \\
+x_{n-2,0} & x_{n-2,1} & x_{n-2,2}& \dots & \dots x_{n-2,p-1}\\
+x_{n-1,0} & x_{n-1,1} & x_{n-1,2}& \dots & \dots x_{n-1,p-1}\\
+\end{bmatrix}.
$$
@@ -2205,7 +2205,7 @@ $$
\boldsymbol{X}^T\boldsymbol{X}=\boldsymbol{V}\boldsymbol{\Sigma}^T\boldsymbol{\Sigma}\boldsymbol{V}^T.
$$
-We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( \p \times p \).
+We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( p \times p \).
This means, using the orthogonality of \( \boldsymbol{V} \), that we get
@@ -2311,7 +2311,7 @@ least squares is proportional to the second derivative of the cost
function, that is we have
$$
-\frac{\partial}{\partial \boldsymbol{\beta}^T}\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
+\frac{\partial^2 C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}^T\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
$$
This quantity defines was what is called the Hessian matrix (the second derivative of a function we want to optimize).
@@ -2707,7 +2707,7 @@ where the tilde-matrix \( \tilde{\boldsymbol{\Sigma}} \) is a matrix of dimensio
$$
\tilde{\boldsymbol{\Sigma}}=\begin{bmatrix} \sigma_0 & 0 & 0 & \dots & 0 & 0 \\
0 & \sigma_1 & 0 & \dots & 0 & 0 \\
- 0 & 0 & \sigma_2 & \dots & 0 & 0 \
+ 0 & 0 & \sigma_2 & \dots & 0 & 0 \\
0 & 0 & 0 & \dots & \sigma_{p-2} & 0 \\
0 & 0 & 0 & \dots & 0 & \sigma_{p-1} \\
\end{bmatrix},
diff --git a/doc/pub/week35/html/week35.html b/doc/pub/week35/html/week35.html
index 2fbf430b4..ba815752f 100644
--- a/doc/pub/week35/html/week35.html
+++ b/doc/pub/week35/html/week35.html
@@ -208,10 +208,10 @@ div { text-align: justify; text-justify: inter-word; }
None,
'note-about-svd-calculations'),
('Friday September 3', 2, None, 'friday-september-3'),
- ('Matheamtics of the SVD and implications',
+ ('Mathematics of the SVD and implications',
2,
None,
- 'matheamtics-of-the-svd-and-implications'),
+ 'mathematics-of-the-svd-and-implications'),
('Example Matrix', 2, None, 'example-matrix'),
('Setting up the Matrix to be inverted',
2,
@@ -1731,7 +1731,7 @@ We can then interpret our optimal model \( \tilde{\boldsymbol{y}} \) as being re
We have defined the residual error as
$$
-\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=(\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right^{-1}\boldsymbol{X}^T)\boldsymbol{y}.
+\boldsymbol{\epsilon}=\boldsymbol{y}-\tilde{\boldsymbol{y}}=\left[\boldsymbol{I}-\boldsymbol{X}\left(\boldsymbol{X}^T\boldsymbol{X}\right)^{-1}\boldsymbol{X}^T\right]\boldsymbol{y}.
$$
@@ -2090,7 +2090,7 @@ More material will be added here, see handwritten notes also. Note that this m
Let us take a closer look at the mathematics of the SVD and the various implications for machine learning studies.
@@ -2098,14 +2098,14 @@ Let us take a closer look at the mathematics of the SVD and the various implicat
Our starting point is our design matrix \( \boldsymbol{X} \) of dimension \( n\times p \)
$$
-\boldsymbol{X}=
-\begin{bmatrix}
-x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots & x_{0,p-1}\\
-x_{1,0} & x_{1,1} & x_{1,2& \dots & \dots & x_{1,p-1}\\
-x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots & x_{2,p-1}\\
-\dots& \dots &\dots & \dots & \dots &\dots\\
-x_{n-1,0} & x_{n-1,1} & x_{n-1,2} & \dots & \dots & x_{n-1,p-1}\\
-\end{bmatrix}
+\boldsymbol{X}=\begin{bmatrix}
+x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots x_{0,p-1}\\
+x_{1,0} & x_{1,1} & x_{1,2}& \dots & \dots x_{1,p-1}\\
+x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots x_{2,p-1}\\
+\dots & \dots & \dots & \dots \dots & \dots \\
+x_{n-2,0} & x_{n-2,1} & x_{n-2,2}& \dots & \dots x_{n-2,p-1}\\
+x_{n-1,0} & x_{n-1,1} & x_{n-1,2}& \dots & \dots x_{n-1,p-1}\\
+\end{bmatrix}.
$$
@@ -2210,7 +2210,7 @@ $$
\boldsymbol{X}^T\boldsymbol{X}=\boldsymbol{V}\boldsymbol{\Sigma}^T\boldsymbol{\Sigma}\boldsymbol{V}^T.
$$
-We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( \p \times p \).
+We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( p \times p \).
This means, using the orthogonality of \( \boldsymbol{V} \), that we get
@@ -2316,7 +2316,7 @@ least squares is proportional to the second derivative of the cost
function, that is we have
$$
-\frac{\partial}{\partial \boldsymbol{\beta}^T}\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
+\frac{\partial^2 C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}^T\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
$$
This quantity defines was what is called the Hessian matrix (the second derivative of a function we want to optimize).
@@ -2712,7 +2712,7 @@ where the tilde-matrix \( \tilde{\boldsymbol{\Sigma}} \) is a matrix of dimensio
$$
\tilde{\boldsymbol{\Sigma}}=\begin{bmatrix} \sigma_0 & 0 & 0 & \dots & 0 & 0 \\
0 & \sigma_1 & 0 & \dots & 0 & 0 \\
- 0 & 0 & \sigma_2 & \dots & 0 & 0 \
+ 0 & 0 & \sigma_2 & \dots & 0 & 0 \\
0 & 0 & 0 & \dots & \sigma_{p-2} & 0 \\
0 & 0 & 0 & \dots & 0 & \sigma_{p-1} \\
\end{bmatrix},
diff --git a/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz b/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz
index f1916750f..706923914 100644
Binary files a/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz and b/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz differ
diff --git a/doc/pub/week35/ipynb/week35.ipynb b/doc/pub/week35/ipynb/week35.ipynb
index 55177c1d4..7db8aacb8 100644
--- a/doc/pub/week35/ipynb/week35.ipynb
+++ b/doc/pub/week35/ipynb/week35.ipynb
@@ -1992,7 +1992,7 @@
"metadata": {},
"source": [
"$$\n",
- "\\boldsymbol{\\epsilon}=\\boldsymbol{y}-\\tilde{\\boldsymbol{y}}=(\\boldsymbol{I}-\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right^{-1}\\boldsymbol{X}^T)\\boldsymbol{y}.\n",
+ "\\boldsymbol{\\epsilon}=\\boldsymbol{y}-\\tilde{\\boldsymbol{y}}=\\left[\\boldsymbol{I}-\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\right]\\boldsymbol{y}.\n",
"$$"
]
},
@@ -2457,7 +2457,7 @@
"More material will be added here, see handwritten notes also. Note that this material will be cleaned up after the lecture of Friday September 3. See the handwritten notes from Friday's lecture at
@@ -1998,7 +1998,7 @@ More material will be added here, see handwritten notes also. Note that this m
Matheamtics of the SVD and implications
+Mathematics of the SVD and implications
$$
-\boldsymbol{X}=
-\begin{bmatrix}
-x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots & x_{0,p-1}\\
-x_{1,0} & x_{1,1} & x_{1,2& \dots & \dots & x_{1,p-1}\\
-x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots & x_{2,p-1}\\
-\dots& \dots &\dots & \dots & \dots &\dots\\
-x_{n-1,0} & x_{n-1,1} & x_{n-1,2} & \dots & \dots & x_{n-1,p-1}\\
-\end{bmatrix}
+\boldsymbol{X}=\begin{bmatrix}
+x_{0,0} & x_{0,1} & x_{0,2}& \dots & \dots x_{0,p-1}\\
+x_{1,0} & x_{1,1} & x_{1,2}& \dots & \dots x_{1,p-1}\\
+x_{2,0} & x_{2,1} & x_{2,2}& \dots & \dots x_{2,p-1}\\
+\dots & \dots & \dots & \dots \dots & \dots \\
+x_{n-2,0} & x_{n-2,1} & x_{n-2,2}& \dots & \dots x_{n-2,p-1}\\
+x_{n-1,0} & x_{n-1,1} & x_{n-1,2}& \dots & \dots x_{n-1,p-1}\\
+\end{bmatrix}.
$$
@@ -2138,7 +2138,7 @@ $$
$$
-We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( \p \times p \).
+We define $\boldsymbol{\Sigma}^T\boldsymbol{\sigma}=\boldsymbol{D}^2, where \( \boldsymbol{D} \) is a diagonal matrix containing only the singular values squared. It has dimensionality \( p \times p \).
$$
-\frac{\partial}{\partial \boldsymbol{\beta}^T}\frac{\partial C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
+\frac{\partial^2 C(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}^T\partial \boldsymbol{\beta}} =\frac{2}{n}\boldsymbol{X}^T\boldsymbol{X}.
$$
@@ -2706,7 +2706,7 @@ where the tilde-matrix \( \tilde{\boldsymbol{\Sigma}} \) is a matrix of dimensio
$$
\tilde{\boldsymbol{\Sigma}}=\begin{bmatrix} \sigma_0 & 0 & 0 & \dots & 0 & 0 \\
0 & \sigma_1 & 0 & \dots & 0 & 0 \\
- 0 & 0 & \sigma_2 & \dots & 0 & 0 \
+ 0 & 0 & \sigma_2 & \dots & 0 & 0 \\
0 & 0 & 0 & \dots & \sigma_{p-2} & 0 \\
0 & 0 & 0 & \dots & 0 & \sigma_{p-1} \\
\end{bmatrix},
diff --git a/doc/pub/week35/html/week35-solarized.html b/doc/pub/week35/html/week35-solarized.html
index 02bae429b..bd108cb8e 100644
--- a/doc/pub/week35/html/week35-solarized.html
+++ b/doc/pub/week35/html/week35-solarized.html
@@ -203,10 +203,10 @@ div { text-align: justify; text-justify: inter-word; }
None,
'note-about-svd-calculations'),
('Friday September 3', 2, None, 'friday-september-3'),
- ('Matheamtics of the SVD and implications',
+ ('Mathematics of the SVD and implications',
2,
None,
- 'matheamtics-of-the-svd-and-implications'),
+ 'mathematics-of-the-svd-and-implications'),
('Example Matrix', 2, None, 'example-matrix'),
('Setting up the Matrix to be inverted',
2,
@@ -1726,7 +1726,7 @@ We can then interpret our optimal model \( \tilde{\boldsymbol{y}} \) as being re
-Matheamtics of the SVD and implications
+Mathematics of the SVD and implications
-Matheamtics of the SVD and implications
+Mathematics of the SVD and implications