You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/svd_intro.md
+65-5Lines changed: 65 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -97,27 +97,87 @@ where
97
97
98
98
* $\Sigma$ is an $m \times n$ matrix in which the first $p$ places on its main diagonal are positive numbers $\sigma_1, \sigma_2, \ldots, \sigma_p$ called **singular values**; remaining entries of $\Sigma$ are all zero
99
99
100
-
* The $p$ singular values are square roots of the eigenvalues of the $m \times m$ matrix $X X^T$ and the $n \times n$ matrix $X^T X$
100
+
* The $p$ singular values are positive square roots of the eigenvalues of the $m \times m$ matrix $X X^T$ and the $n \times n$ matrix $X^T X$
101
101
102
102
* When $U$ is a complex valued matrix, $U^T$ denotes the **conjugate-transpose** or **Hermitian-transpose** of $U$, meaning that
103
103
$U_{ij}^T$ is the complex conjugate of $U_{ji}$.
104
104
105
105
* Similarly, when $V$ is a complex valued matrix, $V^T$ denotes the **conjugate-transpose** or **Hermitian-transpose** of $V$
106
106
107
-
In what is called a **full** SVD, the shapes of $U$, $\Sigma$, and $V$ are $\left(m, m\right)$, $\left(m, n\right)$, $\left(n, n\right)$, respectively.
107
+
What we have described above is called a **full** SVD.
108
108
109
109
110
110
111
-
There is also an alternative shape convention called an **economy** or **reduced** SVD .
111
+
Here the shapes of $U$, $\Sigma$, and $V$ are $\left(m, m\right)$, $\left(m, n\right)$, $\left(n, n\right)$, respectively.
112
112
113
-
Thus, note that because we assume that $X$ has rank $p$, there are only $p$ nonzero singular values, where $p=\textrm{rank}(X)\leq\min\left(m, n\right)$.
113
+
Later we'll also describe an **economy** or **reduced** SVD.
114
+
115
+
But first we'll say a little more about properties of a **full** SVD.
116
+
117
+
118
+
## Relationship of Full SVD to Four Fundamental Subspaces
119
+
120
+
121
+
Let's start with a reminder about definitions of the four fundamental subspaces of an $m \times n$
122
+
matrix $X$ of rank $p$.
123
+
124
+
* The **column space** of $X$, denoted ${\mathcal C}(X)$, is the span of the columns of $X$, i.e., all vectors $y$ that can be written as a linear combination of columns of $X$. Its dimension is $p$.
125
+
* The **null space** of $X$, denoted ${\mathcal N}(X)$ consists of all vectors $y$ that satisfy
126
+
$X y = 0$. Its dimension is $m-p$.
127
+
* The **row space** of $X$, denoted ${\mathcal R}(X)$ is the column space of $X^T$. It consists of all
128
+
vectors $z$ that can be written as a linear combination of rows of $X$. Its dimension is $p$.
129
+
* The **left null space** of $X$, denoted ${\mathcal N}(X^T)$, consist of all vectors $z$ such that
130
+
$X^T z =0$. Its dimension is $n-p$.
131
+
132
+
A full SVD of a matrix $X$ contains orthogonal bases for all four subspaces.
A **reduced** SVD uses this fact to express $U$, $\Sigma$, and $V$ as matrices with shapes $\left(m, p\right)$, $\left(p, p\right)$, $\left( n, p\right)$.
116
162
163
+
Here ${\mathcal C}$ denotes a column space, ${\mathcal N}$ denotes a null space, and ${\mathcal R}$ denotes a row space.
117
164
165
+
Collection {eq}`eq:fourspaceSVD` asserts that
166
+
167
+
* $U_L$ is an orthonormal basis for the column space of $X$
168
+
* $V_R$ is an orthonormal basis for the null space of $X$
169
+
* $V_L$ is an orthonormal basis for the range space of $X$
170
+
* $U_R$ is an orthonormal basis for the column space of $X^T$
118
171
119
172
## Properties of Full and Reduced SVD's
120
173
174
+
Up to now we have described properties of a **full** SVD in which shapes of $U$, $\Sigma$, and $V$ are $\left(m, m\right)$, $\left(m, n\right)$, $\left(n, n\right)$, respectively.
175
+
176
+
There is also an alternative shape convention called an **economy** or **reduced** SVD in which the shapes of $U, \Sigma$ and $V$ are different from what they are in a full SVD.
177
+
178
+
Thus, note that because we assume that $X$ has rank $p$, there are only $p$ nonzero singular values, where $p=\textrm{rank}(X)\leq\min\left(m, n\right)$.
179
+
180
+
A **reduced** SVD uses this fact to express $U$, $\Sigma$, and $V$ as matrices with shapes $\left(m, p\right)$, $\left(p, p\right)$, $\left( n, p\right)$.
0 commit comments