Skip to content

Commit fba44cd

Browse files
Tom's Dec 23 first edits of SVD lecture
1 parent 8aacf8a commit fba44cd

File tree

1 file changed

+65
-5
lines changed

1 file changed

+65
-5
lines changed

lectures/svd_intro.md

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,87 @@ where
9797

9898
* $\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
9999

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$
101101

102102
* When $U$ is a complex valued matrix, $U^T$ denotes the **conjugate-transpose** or **Hermitian-transpose** of $U$, meaning that
103103
$U_{ij}^T$ is the complex conjugate of $U_{ji}$.
104104

105105
* Similarly, when $V$ is a complex valued matrix, $V^T$ denotes the **conjugate-transpose** or **Hermitian-transpose** of $V$
106106

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.
108108

109109

110110

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.
112112

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.
133+
134+
Let's write the full SVD of X as
135+
136+
$$
137+
X = \begin{bmatrix} U_L & U_R \end{bmatrix} \begin{bmatrix} \Sigma_p & 0 \cr 0 & 0 \end{bmatrix}
138+
\begin{bmatrix} V_L & V_R \end{bmatrix}^T
139+
$$
140+
141+
where
142+
143+
$$
144+
\begin{aligned}
145+
U_L & = \begin{bmatrix}u_1 & \cdots & u_p \end{bmatrix}, \quad U_R = \begin{bmatrix}u_{p+1} & \cdots u_m \end{bmatrix} \cr
146+
V_L & = \begin{bmatrix}v_1 & \cdots & v_p \end{bmatrix} , \quad U_R = \begin{bmatrix}v_{p+1} & \cdots u_n \end{bmatrix}
147+
\end{aligned}
148+
$$
149+
150+
151+
These matrices are related to the four fundamental subspaces of $X$ in the following ways:
152+
153+
$$
154+
\begin{aligned}
155+
{\mathcal C}(X) & = {\mathcal C}(U_L) \cr
156+
{\mathcal N}(X) & = {\mathcal C} (V_R) \cr
157+
{\mathcal R}(X) & \equiv {\mathcal C}(X^T) = {\mathcal C} (V_L) \cr
158+
{\mathcal N}(X^T) & = {\mathcal C}(U_R)
159+
\end{aligned}
160+
$$ (eq:fourspaceSVD)
114161
115-
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)$.
116162
163+
Here ${\mathcal C}$ denotes a column space, ${\mathcal N}$ denotes a null space, and ${\mathcal R}$ denotes a row space.
117164
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$
118171
119172
## Properties of Full and Reduced SVD's
120173
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)$.
121181
122182
123183
You can read about reduced and full SVD here

0 commit comments

Comments
 (0)