Ex. 3.8
Ex. 3.8
Consider the \(QR\) decomposition of the uncentered \(N\times (p+1)\) matrix \(\textbf{X}\) (whose first column is all ones), and the SVD of the \(N\times p\) centered matrix \(\tilde{\textbf{X}}\). Show that \(\textbf{Q}_2\) and \(\textbf{U}\) span the same subspace, where \(\textbf{Q}_2\) is the sub-matrix of \(\textbf{Q}\) with the first column removed. Under what circumstances will they be the same, up to sign flips?
Soln. 3.8
Let \(\textbf{x}_i=(x\_{1i}, ..., x\_{Ni})^T\in \mathbb{R}^{N\times 1}\) and \(\textbf{1} = (1,...,1)^T\in \mathbb{R}^{N\times 1}\) be the column vectors of \(\textbf{X}\).
Let \(\textbf{q}_i = (q\_{1i}, ..., q\_{Ni})^T\in \mathbb{R}^{N\times 1}\) be the column vectors of \(\textbf{Q}\).
We can write the QR decomposition of \(X\) as
Similarly, let \(r_{ij}\) be the entry of \(\textbf{R}\) at \(i\)-th row and \(j\)-th column. Note that \(\textbf{Q}\in\mathbb{R}^{N\times (p+1)}\) and is orthogonal. The matrix \(\textbf{R}\in\mathbb{R}^{(p+1)\times(p+1)}\) is upper triangular.
By matrix multiplication we can verify that
Since \(\textbf{Q}\) is orthogonal, we obtain \(q_{10}=q_{20} =...=q_{N0}=\frac{1}{\sqrt N}\), i.e., \(\textbf{q}_0=\frac{1}{\sqrt N}\textbf{1}\), and \(r_{00}=\sqrt N\). Therefore, for \(j=1,...,p\), we have
Let \(\bar x_i = \frac{1}{N}\sum_{k=1}^Nx_{ki}\) and \(\tilde{\textbf{x}}_i = \textbf{x}_i - \bar x_i \textbf{1}\). By QR decomposition of \(X\) we can verify that for \(1\le j \le p\),
so that
Now, we can see for \(1\le j\le p\),
Now we are ready to finish the proof.
Let
We write the SVD decomposition of \(\tilde{\textbf{X}}\) as
Here \(\textbf{U}\) and \(\textbf{V}\) are \(N\times p\) and \(p\times p\) orthogonal matrices, with columns of \(\textbf{U}\) spanning the column space of \(\tilde{\textbf{X}}\), and the columns of \(\textbf{V}\) spanning the row space. \(\textbf{D}\) is a \(p\times p\) diagonal matrix, with diagonal entries \(d_1\ge d_2\ge ... \ge d_p\ge 0\) called the singular values of \(\tilde{\textbf{X}}\) (see page 65 and 66 in the text).
Therefore, it suffices to prove that \(\textbf{Q}_2\) spans the column space of \(\tilde{\textbf{X}}\) (because \(\textbf{U}\) does). However, note that columns in \(\textbf{Q}_2\) are orthogonal, and \(\eqref{eq:3-8b}\), the proof is complete.