The ICA BookICA 学习书 Yuda Bi

Part I · Chapter 3第一部分 · 第 3 章

Whitening and the Geometry of ICA白化与 ICA 的几何

Second-order statistics determine the mixing matrix up to a rotation. Whitening, PCA reduction, and why a rotation is exactly what higher-order statistics must find.

二阶统计量只能把混合矩阵确定到一个旋转。白化、PCA 降维,以及为什么高阶统计量要找的恰好是这个旋转。

3.1 What the covariance can do协方差能做什么

Chapter 1第 1 章 counted parameters. For a square model with unit-variance sources, the covariance Cx=AA⊤\bC_{\bx} = \bA\bA^\top supplies n(n+1)/2n(n+1)/2 numbers about the n2n^2 entries of A\bA, and every AQ\bA\bQ with Q\bQ orthogonal has the same covariance (Section 1.4第 1.4 节). This chapter turns the count into a procedure. Whitening uses the covariance to remove everything except a rotation: after whitening, the mixing matrix is orthogonal, and ICA reduces to a search over orthogonal matrices.

Chapter 1第 1 章数过参数:对源为单位方差的方阵模型,协方差 Cx=AA⊤\bC_{\bx} = \bA\bA^\top 只提供关于 A\bA 的 n2n^2 个元素的 n(n+1)/2n(n+1)/2 个数,而且对任意正交矩阵 Q\bQ,AQ\bA\bQ 都有相同的协方差(Section 1.4第 1.4 节)。本章把这一计数变成一个具体步骤。白化利用协方差消去除旋转以外的一切:白化之后混合矩阵是正交的,ICA 归结为在正交矩阵中的搜索。

Most algorithms in this book use this reduction, from the angle search of Section 1.5第 1.5 节 to FastICA (Chapter 8第 8 章) and JADE (Chapter 9第 9 章); Comon (1994) built his ICA algorithm on it, and Hyvärinen, Karhunen and Oja (2001) give a textbook account. Figure 3.1图 3.1 shows its geometry. The reduction also has costs, which the second half of the chapter examines. When there are more sensors than sources, whitening is where the dimension is reduced and where noise enters (Section 3.6第 3.6 节). And because whitening is fixed before the rotation is estimated, its sampling error can never be corrected afterwards (Section 3.7第 3.7 节).

本书的大多数算法都采用这种约化,从Section 1.5第 1.5 节中的角度搜索,到 FastICA(Chapter 8第 8 章)和 JADE(Chapter 9第 9 章);Comon(1994)的 ICA 算法就建立在这种约化之上,Hyvärinen、Karhunen 与 Oja(2001)的教材也有系统的介绍。Figure 3.1图 3.1 展示了它的几何含义。这种约化也有代价,本章后半部分专门讨论。当传感器多于源时,降维和噪声的引入都发生在白化这一步(Section 3.6第 3.6 节)。而且白化在估计旋转之前就已固定,它的抽样误差事后再也无法纠正(Section 3.7第 3.7 节)。

3.2 Centering and covariance中心化与协方差

Let x∈Rm\bx \in \R^m have finite second moments. Centering replaces x\bx by x−E[x]\bx - \E[\bx]; in the model x=As\bx = \bA\bs this removes the source means, which can be restored at the end as WE[x]\bW\E[\bx] (Section 1.2第 1.2 节). From now on x\bx has zero mean and covariance Cx=E[xx⊤]\bC_{\bx} = \E[\bx\bx^\top]. Under the model, the source covariance Cs=E[ss⊤]\bC_{\bs} = \E[\bs\bs^\top] is diagonal because the sources are independent, and

设 x∈Rm\bx \in \R^m 的二阶矩有限。中心化就是用 x−E[x]\bx - \E[\bx] 代替 x\bx;在模型 x=As\bx = \bA\bs 中,这一步去掉了源的均值,而源的均值可以在最后用 WE[x]\bW\E[\bx] 恢复(Section 1.2第 1.2 节)。以下总设 x\bx 均值为零,协方差为 Cx=E[xx⊤]\bC_{\bx} = \E[\bx\bx^\top]。在模型之下,由于各源独立,源的协方差 Cs=E[ss⊤]\bC_{\bs} = \E[\bs\bs^\top] 是对角的,并且

Cx=A Cs A⊤,(3.1)\bC_{\bx} = \bA\,\bC_{\bs}\,\bA^\top,\tag{3.1}

which equals AA⊤\bA\bA^\top for unit-variance sources. The covariance is symmetric and positive semidefinite, and its rank equals that of A\bA, which is nn under Assumption 1.1假设 1.1. It is positive definite when m=nm = n. When m>nm > n it is singular in the noise-free model, and its null space is the orthogonal complement of the column space of A\bA.

对单位方差的源,它等于 AA⊤\bA\bA^\top。协方差是对称半正定矩阵,其秩等于 A\bA 的秩,在Assumption 1.1假设 1.1下为 nn。当 m=nm = n 时它正定。当 m>nm > n 时,在无噪声模型中它是奇异的,其零空间是 A\bA 列空间的正交补。

From samples x(1),…,x(T)\bx(1), \dots, \bx(T), collected as the columns of X∈Rm×T\bX \in \R^{m \times T}, the sample mean xˉ=1T∑tx(t)\bar\bx = \frac1T\sum_t \bx(t) and the sample covariance

给定样本 x(1),…,x(T)\bx(1), \dots, \bx(T),并把它们排成 X∈Rm×T\bX \in \R^{m \times T} 的各列,用样本均值 xˉ=1T∑tx(t)\bar\bx = \frac1T\sum_t \bx(t) 和样本协方差

C^x=1T∑t=1T(x(t)−xˉ)(x(t)−xˉ)⊤=1T X~X~⊤,X~=X−xˉ 1⊤,\hat\bC_{\bx} = \frac1T\sum_{t=1}^T \bigl(\bx(t) - \bar\bx\bigr)\bigl(\bx(t) - \bar\bx\bigr)^\top = \frac1T\,\tilde\bX\tilde\bX^\top, \qquad \tilde\bX = \bX - \bar\bx\,\mathbf{1}^\top,

replace their population counterparts. Dividing by T−1T - 1 instead of TT makes C^x\hat\bC_{\bx} unbiased; for ICA the choice is immaterial, since it rescales all whitened outputs by the same constant. When fourth moments are finite, each entry of C^x\hat\bC_{\bx} has a standard error of order T−1/2T^{-1/2}, a fact that returns in Section 3.7第 3.7 节. Because the centered samples sum to zero, C^x\hat\bC_{\bx} has rank at most T−1T - 1, so it is singular whenever m≥Tm \ge T, and a reduction of dimension is then unavoidable. This is the situation in temporal ICA of fMRI, where the voxels play the role of sensors (Section 14.3第 14.3 节).

来代替相应的总体量。分母用 T−1T - 1 代替 TT 可使 C^x\hat\bC_{\bx} 无偏;对 ICA 而言这无关紧要,因为它只是把所有白化后的输出乘上同一个常数。当四阶矩有限时,C^x\hat\bC_{\bx} 每个元素的标准误都是 T−1/2T^{-1/2} 量级,这一点在Section 3.7第 3.7 节中还会用到。由于中心化后的样本之和为零,C^x\hat\bC_{\bx} 的秩至多为 T−1T - 1,所以当 m≥Tm \ge T 时它必然奇异,此时降维不可避免。fMRI 的时间 ICA 就属于这种情形,在那里体素扮演传感器的角色(Section 14.3第 14.3 节)。

Numerically, the eigenvectors and eigenvalues of C^x\hat\bC_{\bx} are best obtained from the singular value decomposition X~=EΓF⊤\tilde\bX = \mathbf{E}\boldsymbol{\Gamma}\bF^\top: the eigenvectors are the columns of E\mathbf{E} and the eigenvalues are γi2/T\gamma_i^2/T. This avoids forming X~X~⊤\tilde\bX\tilde\bX^\top, which squares the condition number (Golub & Van Loan, 2013).

在数值计算上,C^x\hat\bC_{\bx} 的特征向量与特征值最好通过奇异值分解 X~=EΓF⊤\tilde\bX = \mathbf{E}\boldsymbol{\Gamma}\bF^\top 求得:特征向量是 E\mathbf{E} 的各列,特征值为 γi2/T\gamma_i^2/T。这样可以避免显式构造 X~X~⊤\tilde\bX\tilde\bX^\top,后者会把条件数平方(Golub & Van Loan, 2013)。

3.3 Whitening matrices白化矩阵

A random vector is white if its components are uncorrelated and have unit variance. Whitening transforms the data linearly so that they become white.

若一个随机向量的各分量互不相关且方差为一,则称它是白的。白化就是对数据作线性变换,使之变白。

Definition 3.1 (whitening)定义 3.1(白化)

Let x∈Rm\bx \in \R^m have zero mean and covariance Cx\bC_{\bx}. A matrix V∈Rk×m\bV \in \R^{k \times m} is a whitening matrix for x\bx if z=Vx\bz = \bV\bx satisfies E[zz⊤]=VCxV⊤=Ik\E[\bz\bz^\top] = \bV\bC_{\bx}\bV^\top = \bI_k. The vector z\bz is then called white, or sphered.

设 x∈Rm\bx \in \R^m 均值为零,协方差为 Cx\bC_{\bx}。若 z=Vx\bz = \bV\bx 满足 E[zz⊤]=VCxV⊤=Ik\E[\bz\bz^\top] = \bV\bC_{\bx}\bV^\top = \bI_k,则称矩阵 V∈Rk×m\bV \in \R^{k \times m} 为 x\bx 的白化矩阵,称 z\bz 是白的,或球化的。

Since rank⁡(VCxV⊤)≤rank⁡Cx\rank(\bV\bC_{\bx}\bV^\top) \le \rank\bC_{\bx}, necessarily k≤rank⁡Cxk \le \rank\bC_{\bx}. In the noise-free model rank⁡Cx=n\rank\bC_{\bx} = n, and whitening to k=nk = n components loses no information, because x\bx lies almost surely in the nn-dimensional column space of Cx\bC_{\bx}. Write the eigendecomposition of the covariance as Cx=EΛE⊤\bC_{\bx} = \mathbf{E}\bLambda\mathbf{E}^\top, with E\mathbf{E} orthogonal and Λ=diag⁡(λ1,…,λm)\bLambda = \diag(\lambda_1, \dots, \lambda_m), λ1≥⋯≥λm≥0\lambda_1 \ge \dots \ge \lambda_m \ge 0 (Section A.3第 A.3 节). Suppose first that m=nm = n, so that all eigenvalues are positive. Three whitening matrices are in common use:

由于 rank⁡(VCxV⊤)≤rank⁡Cx\rank(\bV\bC_{\bx}\bV^\top) \le \rank\bC_{\bx},必有 k≤rank⁡Cxk \le \rank\bC_{\bx}。在无噪声模型中 rank⁡Cx=n\rank\bC_{\bx} = n,而白化到 k=nk = n 个分量不会丢失任何信息,因为 x\bx 几乎必然落在 Cx\bC_{\bx} 的 nn 维列空间里。把协方差的特征分解写成 Cx=EΛE⊤\bC_{\bx} = \mathbf{E}\bLambda\mathbf{E}^\top,其中 E\mathbf{E} 正交,Λ=diag⁡(λ1,…,λm)\bLambda = \diag(\lambda_1, \dots, \lambda_m),λ1≥⋯≥λm≥0\lambda_1 \ge \dots \ge \lambda_m \ge 0(Section A.3第 A.3 节)。先设 m=nm = n,于是所有特征值都为正。常用的白化矩阵有三种:

  • PCA whitening, V=Λ−1/2E⊤\bV = \bLambda^{-1/2}\mathbf{E}^\top. The data are projected onto the principal axes, and each principal component is divided by its standard deviation.
  • Symmetric (ZCA) whitening, V=Cx−1/2=EΛ−1/2E⊤\bV = \bC_{\bx}^{-1/2} = \mathbf{E}\bLambda^{-1/2}\mathbf{E}^\top: PCA whitening followed by the rotation E\mathbf{E} back to the original axes. Bell and Sejnowski (1997) named it ZCA, for zero-phase component analysis. Among all whitening matrices it changes the data least, in the sense that it minimizes E∥Vx−x∥2\E\|\bV\bx - \bx\|^2 (Exercise 3.3习题 3.3; Kessy, Lewin and Strimmer (2018) discuss this and other optimality properties).
  • Cholesky whitening, V=L−1\bV = \mathbf{L}^{-1}, where Cx=LL⊤\bC_{\bx} = \mathbf{L}\mathbf{L}^\top with L\mathbf{L} lower triangular with a positive diagonal. Since L−1\mathbf{L}^{-1} is also lower triangular, z1z_1 depends only on x1x_1, z2z_2 on x1x_1 and x2x_2, and so on: Cholesky whitening is the Gram–Schmidt orthonormalization of x1,…,xmx_1, \dots, x_m in the inner product E[uv]\E[uv] (Exercise 3.1习题 3.1).
  • PCA 白化,V=Λ−1/2E⊤\bV = \bLambda^{-1/2}\mathbf{E}^\top。先把数据投影到主轴上,再把每个主成分除以它的标准差。
  • 对称(ZCA)白化,V=Cx−1/2=EΛ−1/2E⊤\bV = \bC_{\bx}^{-1/2} = \mathbf{E}\bLambda^{-1/2}\mathbf{E}^\top:先做 PCA 白化,再用旋转 E\mathbf{E} 转回原来的坐标轴。Bell 与 Sejnowski(1997)称之为 ZCA,即零相位成分分析(zero-phase component analysis)。在所有白化矩阵中,它对数据的改变最小,即它使 E∥Vx−x∥2\E\|\bV\bx - \bx\|^2 最小(Exercise 3.3习题 3.3;Kessy、Lewin 与 Strimmer(2018)讨论了这一性质及其他最优性)。
  • Cholesky 白化,V=L−1\bV = \mathbf{L}^{-1},其中 Cx=LL⊤\bC_{\bx} = \mathbf{L}\mathbf{L}^\top,L\mathbf{L} 是对角元为正的下三角矩阵。由于 L−1\mathbf{L}^{-1} 也是下三角的,z1z_1 只依赖于 x1x_1,z2z_2 只依赖于 x1x_1 与 x2x_2,依此类推:Cholesky 白化就是在内积 E[uv]\E[uv] 下对 x1,…,xmx_1, \dots, x_m 作 Gram–Schmidt 标准正交化(Exercise 3.1习题 3.1)。

Each of them satisfies VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI; for PCA whitening, for instance, Λ−1/2E⊤(EΛE⊤)EΛ−1/2=I\bLambda^{-1/2}\mathbf{E}^\top(\mathbf{E}\bLambda\mathbf{E}^\top)\mathbf{E}\bLambda^{-1/2} = \bI. They are far from the only ones, but the set of all whitening matrices has a simple structure.

它们都满足 VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI;以 PCA 白化为例,Λ−1/2E⊤(EΛE⊤)EΛ−1/2=I\bLambda^{-1/2}\mathbf{E}^\top(\mathbf{E}\bLambda\mathbf{E}^\top)\mathbf{E}\bLambda^{-1/2} = \bI。白化矩阵远不止这三种,但所有白化矩阵构成的集合有简单的结构。

Proposition 3.2 (whitening matrices differ by rotations)命题 3.2(白化矩阵之间只差一个旋转)

Let Cx\bC_{\bx} be positive definite and let V1∈Rm×m\bV_1 \in \R^{m \times m} be a whitening matrix. Then the m×mm \times m whitening matrices are exactly the matrices QV1\bQ\bV_1 with Q\bQ orthogonal. In particular, any two m×mm \times m whitening matrices satisfy V2=QV1\bV_2 = \bQ\bV_1 with Q=V2V1−1\bQ = \bV_2\bV_1^{-1} orthogonal, and the corresponding white vectors satisfy z2=Qz1\bz_2 = \bQ\bz_1.

设 Cx\bC_{\bx} 正定,V1∈Rm×m\bV_1 \in \R^{m \times m} 是一个白化矩阵。则全体 m×mm \times m 白化矩阵恰好是形如 QV1\bQ\bV_1 的矩阵,其中 Q\bQ 正交。特别地,任意两个 m×mm \times m 白化矩阵满足 V2=QV1\bV_2 = \bQ\bV_1,其中 Q=V2V1−1\bQ = \bV_2\bV_1^{-1} 是正交矩阵;相应的白向量满足 z2=Qz1\bz_2 = \bQ\bz_1。

Proof.证明

(QV1)Cx(QV1)⊤=QQ⊤=I(\bQ\bV_1)\bC_{\bx}(\bQ\bV_1)^\top = \bQ\bQ^\top = \bI, so every QV1\bQ\bV_1 whitens. Conversely, V1CxV1⊤=I\bV_1\bC_{\bx}\bV_1^\top = \bI shows that the square matrix V1\bV_1 is invertible and that Cx=V1−1V1−⊤\bC_{\bx} = \bV_1^{-1}\bV_1^{-\top}. If V2\bV_2 also whitens, then Q=V2V1−1\bQ = \bV_2\bV_1^{-1} satisfies QQ⊤=V2V1−1V1−⊤V2⊤=V2CxV2⊤=I\bQ\bQ^\top = \bV_2\bV_1^{-1}\bV_1^{-\top}\bV_2^\top = \bV_2\bC_{\bx}\bV_2^\top = \bI.

(QV1)Cx(QV1)⊤=QQ⊤=I(\bQ\bV_1)\bC_{\bx}(\bQ\bV_1)^\top = \bQ\bQ^\top = \bI,所以每个 QV1\bQ\bV_1 都是白化矩阵。反之,由 V1CxV1⊤=I\bV_1\bC_{\bx}\bV_1^\top = \bI 可知方阵 V1\bV_1 可逆,且 Cx=V1−1V1−⊤\bC_{\bx} = \bV_1^{-1}\bV_1^{-\top}。若 V2\bV_2 也是白化矩阵,则 Q=V2V1−1\bQ = \bV_2\bV_1^{-1} 满足 QQ⊤=V2V1−1V1−⊤V2⊤=V2CxV2⊤=I\bQ\bQ^\top = \bV_2\bV_1^{-1}\bV_1^{-\top}\bV_2^\top = \bV_2\bC_{\bx}\bV_2^\top = \bI。

Example 3.3 (three whitening matrices)例 3.3(三种白化矩阵)

Let Cx=(2112)\bC_{\bx} = \bigl(\begin{smallmatrix} 2 & 1 \\ 1 & 2 \end{smallmatrix}\bigr). Its eigenvalues are 3 and 1, with eigenvectors (1,1)⊤/2(1, 1)^\top/\sqrt2 and (−1,1)⊤/2(-1, 1)^\top/\sqrt2, so E=12(1−111)\mathbf{E} = \tfrac{1}{\sqrt2}\bigl(\begin{smallmatrix} 1 & -1 \\ 1 & 1 \end{smallmatrix}\bigr) is the rotation by 45°. The Cholesky factor is L=(201/23/2)\mathbf{L} = \bigl(\begin{smallmatrix} \sqrt2 & 0 \\ 1/\sqrt2 & \sqrt{3/2} \end{smallmatrix}\bigr), and the three whitening matrices are

设 Cx=(2112)\bC_{\bx} = \bigl(\begin{smallmatrix} 2 & 1 \\ 1 & 2 \end{smallmatrix}\bigr)。它的特征值为 3 与 1,对应的特征向量为 (1,1)⊤/2(1, 1)^\top/\sqrt2 与 (−1,1)⊤/2(-1, 1)^\top/\sqrt2,所以 E=12(1−111)\mathbf{E} = \tfrac{1}{\sqrt2}\bigl(\begin{smallmatrix} 1 & -1 \\ 1 & 1 \end{smallmatrix}\bigr) 是旋转 45° 的矩阵。Cholesky 因子为 L=(201/23/2)\mathbf{L} = \bigl(\begin{smallmatrix} \sqrt2 & 0 \\ 1/\sqrt2 & \sqrt{3/2} \end{smallmatrix}\bigr),三个白化矩阵分别是

Vpca=(1/61/6−1/21/2),Vchol=(1/20−1/62/3),\bV_{\mathrm{pca}} = \begin{pmatrix} 1/\sqrt6 & 1/\sqrt6 \\ -1/\sqrt2 & 1/\sqrt2 \end{pmatrix}, \qquad \bV_{\mathrm{chol}} = \begin{pmatrix} 1/\sqrt2 & 0 \\ -1/\sqrt6 & \sqrt{2/3} \end{pmatrix},
Vzca=12(1+1/31/3−11/3−11+1/3).\bV_{\mathrm{zca}} = \frac12\begin{pmatrix} 1 + 1/\sqrt3 & 1/\sqrt3 - 1 \\ 1/\sqrt3 - 1 & 1 + 1/\sqrt3 \end{pmatrix}.

Numerically, Vzca≈(0.789−0.211−0.2110.789)\bV_{\mathrm{zca}} \approx \bigl(\begin{smallmatrix} 0.789 & -0.211 \\ -0.211 & 0.789 \end{smallmatrix}\bigr). As Proposition 3.2命题 3.2 predicts, they differ by rotations: Vzca=E Vpca\bV_{\mathrm{zca}} = \mathbf{E}\,\bV_{\mathrm{pca}}, the rotation by 45°, and Vchol=Q Vpca\bV_{\mathrm{chol}} = \bQ\,\bV_{\mathrm{pca}} with Q=(3/2−1/21/23/2)\bQ = \bigl(\begin{smallmatrix} \sqrt3/2 & -1/2 \\ 1/2 & \sqrt3/2 \end{smallmatrix}\bigr), the rotation by 30°. Choosing the opposite sign for an eigenvector multiplies Vpca\bV_{\mathrm{pca}} on the left by a diagonal matrix of signs, that is, by a reflection, which is again an orthogonal factor.

数值上,Vzca≈(0.789−0.211−0.2110.789)\bV_{\mathrm{zca}} \approx \bigl(\begin{smallmatrix} 0.789 & -0.211 \\ -0.211 & 0.789 \end{smallmatrix}\bigr)。正如Proposition 3.2命题 3.2所预言,它们之间只差旋转:Vzca=E Vpca\bV_{\mathrm{zca}} = \mathbf{E}\,\bV_{\mathrm{pca}},即旋转 45°;Vchol=Q Vpca\bV_{\mathrm{chol}} = \bQ\,\bV_{\mathrm{pca}},其中 Q=(3/2−1/21/23/2)\bQ = \bigl(\begin{smallmatrix} \sqrt3/2 & -1/2 \\ 1/2 & \sqrt3/2 \end{smallmatrix}\bigr) 是旋转 30° 的矩阵。若把某个特征向量取成相反的符号,Vpca\bV_{\mathrm{pca}} 就被左乘一个对角元为 ±1\pm 1 的对角矩阵,即一个反射,这仍然是一个正交因子。

Figure 3.1图 3.1 applies the three transforms to a mixture of two uniform sources. Each whitened cloud is a square, the image of the source square under an orthogonal matrix, and the three squares differ by rotations.

Figure 3.1图 3.1 把这三种变换用于两个均匀分布源的混合。每个白化后的点云都是一个正方形,即源所在的正方形在某个正交矩阵下的像,而三个正方形之间只差旋转。

Four scatter plots: a parallelogram-shaped mixture of two uniform sources with its two principal axes, and three whitened versions of it (PCA, ZCA and Cholesky whitening), each a square rotated by a different angle, with two orthogonal arrows along its edges.
Figure 3.1. A mixture of two independent uniform sources with the principal axes of its covariance (a), and three whitened versions computed from the sample covariance (T=1500T = 1500): PCA whitening (b), ZCA whitening (c) and Cholesky whitening (d). The arrows mark the columns of the whitened mixing matrix VA\bV\bA, which are orthogonal and parallel to the edges of each square. The three squares differ only by rotations; ICA must still find the rotation that aligns the arrows with the axes.图 3.1 两个独立均匀分布源的混合及其协方差的主轴(a),以及由样本协方差(T=1500T = 1500)算出的三种白化结果:PCA 白化(b)、ZCA 白化(c)与 Cholesky 白化(d)。箭头标出白化后混合矩阵 VA\bV\bA 的列,它们相互正交,并与各正方形的边平行。三个正方形之间只差旋转;ICA 仍需找到把箭头转到坐标轴上的那个旋转。

3.4 The whitened model白化后的模型

Now apply a whitening matrix to the ICA model. If V∈Rn×m\bV \in \R^{n \times m} whitens x=As\bx = \bA\bs, then

现在把白化矩阵作用到 ICA 模型上。若 V∈Rn×m\bV \in \R^{n \times m} 是 x=As\bx = \bA\bs 的白化矩阵,则

z=Vx=A~ s,A~=VA∈Rn×n.(3.2)\bz = \bV\bx = \tilde\bA\,\bs, \qquad \tilde\bA = \bV\bA \in \R^{n \times n}.\tag{3.2}

The whitened data follow an ICA model with the same sources and a square mixing matrix A~\tilde\bA, which turns out to be orthogonal.

白化后的数据服从一个源不变、混合矩阵为方阵 A~\tilde\bA 的 ICA 模型,而 A~\tilde\bA 恰好是正交的。

Proposition 3.4 (the whitened mixing matrix is orthogonal)命题 3.4(白化后的混合矩阵是正交的)

Let x=As\bx = \bA\bs with A∈Rm×n\bA \in \R^{m \times n} of full column rank and E[ss⊤]=I\E[\bs\bs^\top] = \bI, and let V∈Rn×m\bV \in \R^{n \times m} be a whitening matrix for x\bx. Then A~=VA\tilde\bA = \bV\bA is orthogonal. If instead E[ss⊤]=D2\E[\bs\bs^\top] = \bD^2 with D\bD diagonal and positive, then A~D\tilde\bA\bD is orthogonal.

设 x=As\bx = \bA\bs,A∈Rm×n\bA \in \R^{m \times n} 列满秩,E[ss⊤]=I\E[\bs\bs^\top] = \bI,并设 V∈Rn×m\bV \in \R^{n \times m} 是 x\bx 的白化矩阵。则 A~=VA\tilde\bA = \bV\bA 是正交矩阵。若改设 E[ss⊤]=D2\E[\bs\bs^\top] = \bD^2,其中 D\bD 是对角元为正的对角矩阵,则 A~D\tilde\bA\bD 是正交矩阵。

Proof.证明

I=E[zz⊤]=VA E[ss⊤] A⊤V⊤=A~A~⊤\bI = \E[\bz\bz^\top] = \bV\bA\,\E[\bs\bs^\top]\,\bA^\top\bV^\top = \tilde\bA\tilde\bA^\top, and a square matrix with A~A~⊤=I\tilde\bA\tilde\bA^\top = \bI is orthogonal. With E[ss⊤]=D2\E[\bs\bs^\top] = \bD^2, the same computation gives (A~D)(A~D)⊤=I(\tilde\bA\bD)(\tilde\bA\bD)^\top = \bI.

I=E[zz⊤]=VA E[ss⊤] A⊤V⊤=A~A~⊤\bI = \E[\bz\bz^\top] = \bV\bA\,\E[\bs\bs^\top]\,\bA^\top\bV^\top = \tilde\bA\tilde\bA^\top,而满足 A~A~⊤=I\tilde\bA\tilde\bA^\top = \bI 的方阵是正交矩阵。若 E[ss⊤]=D2\E[\bs\bs^\top] = \bD^2,同样的计算给出 (A~D)(A~D)⊤=I(\tilde\bA\bD)(\tilde\bA\bD)^\top = \bI。

Three consequences follow. First, all white versions of the data differ by rotations, also when m>nm > n: if V1\bV_1 and V2\bV_2 both whiten, then zk=A~ks\bz_k = \tilde\bA_k\bs with A~k\tilde\bA_k orthogonal, so z2=A~2A~1⊤z1\bz_2 = \tilde\bA_2\tilde\bA_1^\top\bz_1. Second, ICA on whitened data is a search over orthogonal matrices. An orthogonal unmixing matrix U\bU for z\bz yields the global matrix P=UA~\bP = \bU\tilde\bA, which is again orthogonal; an orthogonal matrix of the form ΠD\bPi\bD must have D=diag⁡(±1)\bD = \diag(\pm 1) (Section A.2第 A.2 节), so the separating orthogonal matrices are exactly U=ΠDA~⊤\bU = \bPi\bD\tilde\bA^\top with ΠD\bPi\bD a signed permutation. (As elsewhere in the book, we loosely call such matrices rotations; strictly, those with determinant −1-1 also contain a reflection.) Whitening has fixed the scale of every output, E[yi2]=1\E[y_i^2] = 1, and only signs and order remain free. Third, the unmixing matrix for x\bx factors as

由此得到三个推论。第一,即使 m>nm > n,数据的所有白化版本之间也只差旋转:若 V1\bV_1 与 V2\bV_2 都是白化矩阵,则 zk=A~ks\bz_k = \tilde\bA_k\bs,A~k\tilde\bA_k 正交,所以 z2=A~2A~1⊤z1\bz_2 = \tilde\bA_2\tilde\bA_1^\top\bz_1。第二,对白化后的数据做 ICA,就是在正交矩阵中搜索。z\bz 的正交解混矩阵 U\bU 给出的全局矩阵 P=UA~\bP = \bU\tilde\bA 仍是正交的;而形如 ΠD\bPi\bD 的正交矩阵必有 D=diag⁡(±1)\bD = \diag(\pm 1)(Section A.2第 A.2 节),所以能实现分离的正交矩阵恰好是 U=ΠDA~⊤\bU = \bPi\bD\tilde\bA^\top,其中 ΠD\bPi\bD 是带符号的置换矩阵。(与全书其他地方一样,我们笼统地把这些矩阵称为旋转;严格说来,行列式为 −1-1 的那些还包含一次反射。)白化已经固定了每个输出的尺度 E[yi2]=1\E[y_i^2] = 1,只剩符号与顺序未定。第三,x\bx 的解混矩阵可以分解为

W=UV,U∈O(n),(3.3)\bW = \bU\bV, \qquad \bU \in O(n),\tag{3.3}

where O(n)O(n) is the group of n×nn \times n orthogonal matrices. For m=nm = n, the parameter count of Section 1.4第 1.4 节 is now explicit: the n2n^2 entries of W\bW split into the n(n+1)/2n(n+1)/2 numbers fixed by the covariance through V\bV and the n(n−1)/2n(n-1)/2 parameters of U\bU, the dimension of O(n)O(n) (Section A.2第 A.2 节). That is one angle for n=2n = 2, three for n=3n = 3, and 45 for n=10n = 10, against 100 entries of W\bW. Second-order statistics thus do more than half of the work. What remains is a rotation, and estimating it is the task of the higher-order methods of Parts II and III.

其中 O(n)O(n) 是 n×nn \times n 正交矩阵构成的群。对 m=nm = n,Section 1.4第 1.4 节中的参数计数现在一目了然:W\bW 的 n2n^2 个元素分成两部分,一部分是协方差通过 V\bV 确定的 n(n+1)/2n(n+1)/2 个数,另一部分是 U\bU 的 n(n−1)/2n(n-1)/2 个参数,即 O(n)O(n) 的维数(Section A.2第 A.2 节)。n=2n = 2 时只剩一个角度,n=3n = 3 时剩三个,n=10n = 10 时剩 45 个,而 W\bW 有 100 个元素。可见二阶统计量完成了一多半的工作。剩下的是一个旋转,估计它是第二、三部分中高阶方法的任务。

Different whitening matrices give different, but rotation-equivalent, whitened mixing matrices. ZCA whitening gives a particularly natural one: for unit-variance sources and m=nm = n, A~=Cx−1/2A=(AA⊤)−1/2A\tilde\bA = \bC_{\bx}^{-1/2}\bA = (\bA\bA^\top)^{-1/2}\bA is the orthogonal factor of the polar decomposition of A\bA, which is the orthogonal matrix closest to A\bA (Proposition A.4命题 A.4). When the mixing is mild, with A\bA close to the identity, ZCA-whitened data are therefore already nearly separated. For the A\bA used in Figure 3.1图 3.1, this A~\tilde\bA is a rotation by about 6°, visible in panel (c).

不同的白化矩阵给出不同的、但彼此只差旋转的白化混合矩阵。ZCA 白化给出的那一个尤其自然:对单位方差的源且 m=nm = n,A~=Cx−1/2A=(AA⊤)−1/2A\tilde\bA = \bC_{\bx}^{-1/2}\bA = (\bA\bA^\top)^{-1/2}\bA 正是 A\bA 的极分解中的正交因子,也就是离 A\bA 最近的正交矩阵(Proposition A.4命题 A.4)。因此当混合较弱、A\bA 接近单位阵时,ZCA 白化后的数据已经接近分离。对Figure 3.1图 3.1所用的 A\bA,这个 A~\tilde\bA 是约 6° 的旋转,在(c)中可以看到。

Methods that estimate W\bW directly among all invertible matrices, such as maximum likelihood with the natural gradient (Chapter 7第 7 章), do not need this reduction, although they are often run on whitened data. What the orthogonality constraint costs is examined in Section 3.7第 3.7 节.

直接在全体可逆矩阵中估计 W\bW 的方法,例如用自然梯度求最大似然(Chapter 7第 7 章),并不需要这种约化,尽管实践中也常在白化后的数据上运行。正交约束的代价将在Section 3.7第 3.7 节中讨论。

3.5 Why second-order statistics cannot do more为什么二阶统计量做不到更多

After whitening, the covariance is used up. For every orthogonal U\bU, the output y=Uz\by = \bU\bz is again white, E[yy⊤]=UU⊤=I\E[\by\by^\top] = \bU\bU^\top = \bI, so no criterion that depends on the data only through their covariance can prefer one rotation to another. To find U\bU, ICA must use statistics of order higher than two or, if the sources are time series, their temporal structure.

白化之后,协方差已经用尽。对任意正交矩阵 U\bU,输出 y=Uz\by = \bU\bz 仍然是白的,E[yy⊤]=UU⊤=I\E[\by\by^\top] = \bU\bU^\top = \bI;因此,任何只通过协方差依赖于数据的准则,都无法在不同旋转之间作出取舍。要找到 U\bU,ICA 必须利用二阶以上的统计量;若源是时间序列,也可以利用它们的时间结构。

For Gaussian sources nothing else is available. If s∼N(0,I)\bs \sim \Ncal(\bzero, \bI), then z=A~s∼N(0,I)\bz = \tilde\bA\bs \sim \Ncal(\bzero, \bI) and y=Uz∼N(0,I)\by = \bU\bz \sim \Ncal(\bzero, \bI) for every orthogonal U\bU (Exercise 1.3习题 1.3). The distribution of the outputs does not depend on U\bU at all, so every rotation is an equally good answer, and higher-order statistics cannot help, since all cumulants of order three and higher vanish (Proposition 2.8命题 2.8).

对高斯源,除协方差之外别无可用的信息。若 s∼N(0,I)\bs \sim \Ncal(\bzero, \bI),则 z=A~s∼N(0,I)\bz = \tilde\bA\bs \sim \Ncal(\bzero, \bI),并且对任意正交矩阵 U\bU 都有 y=Uz∼N(0,I)\by = \bU\bz \sim \Ncal(\bzero, \bI)(Exercise 1.3习题 1.3)。输出的分布与 U\bU 完全无关,每个旋转都是同样好的答案;高阶统计量也帮不上忙,因为三阶及以上的累积量全为零(Proposition 2.8命题 2.8)。

For non-Gaussian sources the higher-order cumulants are not rotation invariant. By (2.3) applied to z=A~s\bz = \tilde\bA\bs, the kurtosis of the projection onto a unit vector w\bw is

对非高斯源,高阶累积量在旋转下不再不变。把 (2.3) 用于 z=A~s\bz = \tilde\bA\bs,可得 z\bz 在单位向量 w\bw 上投影的峭度:

kurt⁡(w⊤z)=∑p=1nκp (w⊤a~p)4,\kurt(\bw^\top\bz) = \sum_{p=1}^n \kappa_p\,(\bw^\top\tilde\ba_p)^4,

where a~p\tilde\ba_p is the pp-th column of A~\tilde\bA. If some κp≠0\kappa_p \ne 0, this function is not constant on the unit sphere: with q=A~⊤w\bq = \tilde\bA^\top\bw and ep\be_p the pp-th coordinate vector, its values at q=ep\bq = \be_p and at q=(ep+er)/2\bq = (\be_p + \be_r)/\sqrt2 are κp\kappa_p and (κp+κr)/4(\kappa_p + \kappa_r)/4, and these can all be equal only if every κp\kappa_p is zero. Fourth-order statistics therefore distinguish directions, and Chapter 5第 5 章 proves that the local maxima of ∣kurt⁡(w⊤z)∣|\kurt(\bw^\top\bz)| are exactly the directions ±a~p\pm\tilde\ba_p of the sources with nonzero kurtosis (Theorem 5.3定理 5.3).

其中 a~p\tilde\ba_p 是 A~\tilde\bA 的第 pp 列。只要某个 κp≠0\kappa_p \ne 0,这个函数在单位球面上就不是常数:记 q=A~⊤w\bq = \tilde\bA^\top\bw,ep\be_p 为第 pp 个坐标向量,它在 q=ep\bq = \be_p 与 q=(ep+er)/2\bq = (\be_p + \be_r)/\sqrt2 处的值分别为 κp\kappa_p 与 (κp+κr)/4(\kappa_p + \kappa_r)/4,而这些值全部相等的唯一可能是所有 κp\kappa_p 都为零。所以四阶统计量能够区分方向;Chapter 5第 5 章将证明,∣kurt⁡(w⊤z)∣|\kurt(\bw^\top\bz)| 的局部极大点恰好是峭度非零的那些源的方向 ±a~p\pm\tilde\ba_p(Theorem 5.3定理 5.3)。

Between the two extremes, Chapter 4第 4 章 shows that a single Gaussian source does no harm, whereas with k≥2k \ge 2 Gaussian sources any rotation within the subspace they span leaves the distribution of z\bz unchanged, so only that subspace can be identified (Section 4.4第 4.4 节). The special role of the Gaussian is no accident: if a random vector with n≥2n \ge 2 independent components has a distribution that is invariant under all rotations, its components are Gaussian with a common variance (Exercise 3.5习题 3.5).

介于两种极端之间的情形,Chapter 4第 4 章证明:单个高斯源无碍大局;而当有 k≥2k \ge 2 个高斯源时,在它们张成的子空间内作任意旋转都不改变 z\bz 的分布,所以只能辨识出这个子空间(Section 4.4第 4.4 节)。高斯分布的这种特殊地位并非偶然:若一个具有 n≥2n \ge 2 个独立分量的随机向量,其分布在一切旋转下不变,则它的各分量都是方差相同的高斯变量(Exercise 3.5习题 3.5)。

Second-order statistics can do more when the samples are not i.i.d. If the sources are stationary time series, the lagged covariances of the whitened data are

当样本不再独立同分布时,二阶统计量可以做得更多。若各源是平稳时间序列,白化数据的时滞协方差为

Cz(τ)=E[z(t) z(t−τ)⊤]=A~ diag⁡(ρ1(τ),…,ρn(τ)) A~⊤,\bC_{\bz}(\tau) = \E\bigl[\bz(t)\,\bz(t - \tau)^\top\bigr] = \tilde\bA\,\diag\bigl(\rho_1(\tau), \dots, \rho_n(\tau)\bigr)\,\tilde\bA^\top,

where ρi(τ)=E[si(t) si(t−τ)]\rho_i(\tau) = \E[s_i(t)\,s_i(t - \tau)] is the autocorrelation of source ii. These matrices are not invariant under rotation. They determine A~\tilde\bA up to a signed permutation as soon as, for every pair of sources, the two autocorrelation functions differ at some lag, even if all sources are Gaussian; this is the basis of AMUSE and SOBI (Chapter 9第 9 章, Theorem 9.6定理 9.6). Under the i.i.d. model of Assumption 1.1假设 1.1, however, the covariance is all that second-order statistics provide.

其中 ρi(τ)=E[si(t) si(t−τ)]\rho_i(\tau) = \E[s_i(t)\,s_i(t - \tau)] 是源 ii 的自相关函数。这些矩阵在旋转下不是不变的。只要对每一对源,它们的自相关函数在某个时滞处不同,这些矩阵就能在带符号置换的意义下确定 A~\tilde\bA,即使所有源都是高斯的也是如此;这正是 AMUSE 与 SOBI 的基础(Chapter 9第 9 章,Theorem 9.6定理 9.6)。但在Assumption 1.1假设 1.1的独立同分布模型下,二阶统计量所能提供的只有协方差。

3.6 PCA dimension reductionPCA 降维

When there are more sensors than sources, m>nm > n, whitening also reduces the dimension. In the noise-free model, Cx=AA⊤\bC_{\bx} = \bA\bA^\top has rank nn, and its column space, the signal subspace, is the column space of A\bA. Let λ1≥⋯≥λn>0\lambda_1 \ge \dots \ge \lambda_n > 0 be its nonzero eigenvalues, En∈Rm×n\mathbf{E}_n \in \R^{m \times n} the corresponding orthonormal eigenvectors and Λn=diag⁡(λ1,…,λn)\bLambda_n = \diag(\lambda_1, \dots, \lambda_n), so that Cx=EnΛnEn⊤\bC_{\bx} = \mathbf{E}_n\bLambda_n\mathbf{E}_n^\top. Then V=Λn−1/2En⊤∈Rn×m\bV = \bLambda_n^{-1/2}\mathbf{E}_n^\top \in \R^{n \times m} satisfies VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI, and by Proposition 3.4命题 3.4 VA\bV\bA is an n×nn \times n orthogonal matrix. The reduction discards the m−nm - n directions in which the data have no variance.

当传感器多于源(m>nm > n)时,白化同时完成降维。在无噪声模型中,Cx=AA⊤\bC_{\bx} = \bA\bA^\top 的秩为 nn,它的列空间即信号子空间,就是 A\bA 的列空间。设 λ1≥⋯≥λn>0\lambda_1 \ge \dots \ge \lambda_n > 0 是它的非零特征值,En∈Rm×n\mathbf{E}_n \in \R^{m \times n} 是相应的标准正交特征向量,Λn=diag⁡(λ1,…,λn)\bLambda_n = \diag(\lambda_1, \dots, \lambda_n),于是 Cx=EnΛnEn⊤\bC_{\bx} = \mathbf{E}_n\bLambda_n\mathbf{E}_n^\top。则 V=Λn−1/2En⊤∈Rn×m\bV = \bLambda_n^{-1/2}\mathbf{E}_n^\top \in \R^{n \times m} 满足 VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI,并且由Proposition 3.4命题 3.4,VA\bV\bA 是 n×nn \times n 正交矩阵。降维丢掉的是数据方差为零的那 m−nm - n 个方向。

Real data contain noise, and the eigenvalues beyond the nn-th are then no longer zero. The simplest model in which the analysis stays exact adds isotropic noise.

真实数据含有噪声,第 nn 个以后的特征值不再为零。能让分析保持精确的最简单模型,是加上各向同性的噪声。

Proposition 3.5 (PCA with isotropic noise)命题 3.5(各向同性噪声下的 PCA)

Let x=As+n\bx = \bA\bs + \bn, where A∈Rm×n\bA \in \R^{m \times n} has full column rank, E[ss⊤]=I\E[\bs\bs^\top] = \bI, and the noise n\bn is independent of s\bs with E[n]=0\E[\bn] = \bzero and E[nn⊤]=σ2Im\E[\bn\bn^\top] = \sigma^2\bI_m. Let d1≥⋯≥dn>0d_1 \ge \dots \ge d_n > 0 be the nonzero eigenvalues of AA⊤\bA\bA^\top, and let En\mathbf{E}_n and Λn\bLambda_n hold the leading nn eigenvectors and eigenvalues of Cx\bC_{\bx}. Then:

设 x=As+n\bx = \bA\bs + \bn,其中 A∈Rm×n\bA \in \R^{m \times n} 列满秩,E[ss⊤]=I\E[\bs\bs^\top] = \bI,噪声 n\bn 与 s\bs 独立,E[n]=0\E[\bn] = \bzero,E[nn⊤]=σ2Im\E[\bn\bn^\top] = \sigma^2\bI_m。设 d1≥⋯≥dn>0d_1 \ge \dots \ge d_n > 0 是 AA⊤\bA\bA^\top 的非零特征值,En\mathbf{E}_n 与 Λn\bLambda_n 分别是 Cx\bC_{\bx} 的前 nn 个特征向量与特征值。则:

  1. the eigenvalues of Cx\bC_{\bx} are λi=di+σ2\lambda_i = d_i + \sigma^2 for i≤ni \le n and λi=σ2\lambda_i = \sigma^2 for i>ni > n;
  2. the columns of En\mathbf{E}_n span the column space of A\bA;
  3. V=Λn−1/2En⊤\bV = \bLambda_n^{-1/2}\mathbf{E}_n^\top whitens x\bx, but (VA)(VA)⊤=I−σ2Λn−1(\bV\bA)(\bV\bA)^\top = \bI - \sigma^2\bLambda_n^{-1}, so VA\bV\bA is not orthogonal when σ2>0\sigma^2 > 0;
  4. with V=(Λn−σ2I)−1/2En⊤\bV = (\bLambda_n - \sigma^2\bI)^{-1/2}\mathbf{E}_n^\top, the matrix VA\bV\bA is orthogonal, and Vx=VAs+Vn\bV\bx = \bV\bA\bs + \bV\bn, where the noise term has covariance σ2(Λn−σ2I)−1\sigma^2(\bLambda_n - \sigma^2\bI)^{-1}.
  1. Cx\bC_{\bx} 的特征值为:i≤ni \le n 时 λi=di+σ2\lambda_i = d_i + \sigma^2,i>ni > n 时 λi=σ2\lambda_i = \sigma^2;
  2. En\mathbf{E}_n 的各列张成 A\bA 的列空间;
  3. V=Λn−1/2En⊤\bV = \bLambda_n^{-1/2}\mathbf{E}_n^\top 能白化 x\bx,但 (VA)(VA)⊤=I−σ2Λn−1(\bV\bA)(\bV\bA)^\top = \bI - \sigma^2\bLambda_n^{-1},所以当 σ2>0\sigma^2 > 0 时 VA\bV\bA 不是正交矩阵;
  4. 取 V=(Λn−σ2I)−1/2En⊤\bV = (\bLambda_n - \sigma^2\bI)^{-1/2}\mathbf{E}_n^\top,则 VA\bV\bA 正交,且 Vx=VAs+Vn\bV\bx = \bV\bA\bs + \bV\bn,其中噪声项的协方差为 σ2(Λn−σ2I)−1\sigma^2(\bLambda_n - \sigma^2\bI)^{-1}。

Proof.证明

Write AA⊤=EnDEn⊤\bA\bA^\top = \mathbf{E}_n\bD\mathbf{E}_n^\top with D=diag⁡(d1,…,dn)\bD = \diag(d_1, \dots, d_n), where the columns of En\mathbf{E}_n are orthonormal and span the column space of A\bA. Then Cx=AA⊤+σ2I=En(D+σ2I)En⊤+σ2(I−EnEn⊤)\bC_{\bx} = \bA\bA^\top + \sigma^2\bI = \mathbf{E}_n(\bD + \sigma^2\bI)\mathbf{E}_n^\top + \sigma^2(\bI - \mathbf{E}_n\mathbf{E}_n^\top), where I−EnEn⊤\bI - \mathbf{E}_n\mathbf{E}_n^\top is the orthogonal projector onto the complement of the column space. This displays the eigenvalues and eigenvectors, proving 1 and 2; since dn>0d_n > 0, the leading nn eigenvalues are separated from σ2\sigma^2, so the leading eigenspace is uniquely determined. Next, En⊤AA⊤En=D=Λn−σ2I\mathbf{E}_n^\top\bA\bA^\top\mathbf{E}_n = \bD = \bLambda_n - \sigma^2\bI, so for V=MEn⊤\bV = \bM\mathbf{E}_n^\top with M\bM diagonal, (VA)(VA)⊤=M(Λn−σ2I)M(\bV\bA)(\bV\bA)^\top = \bM(\bLambda_n - \sigma^2\bI)\bM and VCxV⊤=MΛnM\bV\bC_{\bx}\bV^\top = \bM\bLambda_n\bM. The choice M=Λn−1/2\bM = \bLambda_n^{-1/2} gives 3. The choice M=(Λn−σ2I)−1/2\bM = (\bLambda_n - \sigma^2\bI)^{-1/2} gives 4, with noise covariance σ2VV⊤=σ2M2\sigma^2\bV\bV^\top = \sigma^2\bM^2.

记 AA⊤=EnDEn⊤\bA\bA^\top = \mathbf{E}_n\bD\mathbf{E}_n^\top,D=diag⁡(d1,…,dn)\bD = \diag(d_1, \dots, d_n),其中 En\mathbf{E}_n 的各列标准正交并张成 A\bA 的列空间。则 Cx=AA⊤+σ2I=En(D+σ2I)En⊤+σ2(I−EnEn⊤)\bC_{\bx} = \bA\bA^\top + \sigma^2\bI = \mathbf{E}_n(\bD + \sigma^2\bI)\mathbf{E}_n^\top + \sigma^2(\bI - \mathbf{E}_n\mathbf{E}_n^\top),其中 I−EnEn⊤\bI - \mathbf{E}_n\mathbf{E}_n^\top 是到列空间正交补上的正交投影。这个式子直接给出了特征值与特征向量,从而证明了 1 与 2;由于 dn>0d_n > 0,前 nn 个特征值与 σ2\sigma^2 分得开,所以前 nn 维特征子空间是唯一确定的。其次,En⊤AA⊤En=D=Λn−σ2I\mathbf{E}_n^\top\bA\bA^\top\mathbf{E}_n = \bD = \bLambda_n - \sigma^2\bI,所以对 V=MEn⊤\bV = \bM\mathbf{E}_n^\top(M\bM 为对角矩阵),有 (VA)(VA)⊤=M(Λn−σ2I)M(\bV\bA)(\bV\bA)^\top = \bM(\bLambda_n - \sigma^2\bI)\bM,VCxV⊤=MΛnM\bV\bC_{\bx}\bV^\top = \bM\bLambda_n\bM。取 M=Λn−1/2\bM = \bLambda_n^{-1/2} 得 3;取 M=(Λn−σ2I)−1/2\bM = (\bLambda_n - \sigma^2\bI)^{-1/2} 得 4,此时噪声协方差为 σ2VV⊤=σ2M2\sigma^2\bV\bV^\top = \sigma^2\bM^2。

PCA thus recovers the signal subspace exactly, even with noise, and discards the noise in the m−nm - n complementary directions; this is the main denoising effect of the reduction. The noise inside the signal subspace remains. Ordinary whitening then produces a whitened mixing matrix that is not quite orthogonal, so even the best rotation leaves a bias. The bias-corrected whitening of item 4 needs an estimate of σ2\sigma^2, such as the average of the m−nm - n smallest eigenvalues, which is the maximum-likelihood estimate in probabilistic PCA (Tipping & Bishop, 1999). Noisy ICA is the subject of Section 11.2第 11.2 节.

可见即使有噪声,PCA 也能准确地恢复信号子空间,并丢掉其余 m−nm - n 个方向上的噪声,这是降维最主要的去噪作用。信号子空间之内的噪声则保留下来。于是普通白化给出的白化混合矩阵并不严格正交,即使找到最好的旋转也会留下偏差。第 4 条中的偏差校正白化需要估计 σ2\sigma^2,例如取最小的 m−nm - n 个特征值的平均,这正是概率 PCA 中的最大似然估计(Tipping & Bishop, 1999)。含噪 ICA 将在Section 11.2第 11.2 节中讨论。

In practice nn is unknown and must be read off the eigenvalues of the sample covariance, where the noise eigenvalues are no longer equal. Even pure white noise spreads them out: if m/T→γ∈(0,1]m/T \to \gamma \in (0, 1], the eigenvalues of the sample covariance of white noise with variance σ2\sigma^2 fill the interval [σ2(1−γ)2, σ2(1+γ)2][\sigma^2(1 - \sqrt\gamma)^2,\ \sigma^2(1 + \sqrt\gamma)^2] (Marčenko & Pastur, 1967). With m=250m = 250 sensors and T=1000T = 1000 samples, for example, the noise eigenvalues range from about 0.25 σ20.25\,\sigma^2 to 2.25 σ22.25\,\sigma^2, and a weak source can hide among them. Section 11.3第 11.3 节 discusses how to choose nn. In spatial ICA of fMRI, the role of the mm sensors is played by the time points, and PCA reduces them to far fewer components before ICA is run (Chapter 14第 14 章).

实践中 nn 未知,只能从样本协方差的特征值中读出,而样本协方差的噪声特征值不再相等。即使是纯白噪声,也会使它们散开:若 m/T→γ∈(0,1]m/T \to \gamma \in (0, 1],方差为 σ2\sigma^2 的白噪声的样本协方差的特征值铺满区间 [σ2(1−γ)2, σ2(1+γ)2][\sigma^2(1 - \sqrt\gamma)^2,\ \sigma^2(1 + \sqrt\gamma)^2](Marčenko & Pastur, 1967)。例如有 m=250m = 250 个传感器、T=1000T = 1000 个样本时,噪声特征值大约从 0.25 σ20.25\,\sigma^2 分布到 2.25 σ22.25\,\sigma^2,较弱的源可能淹没其中。Section 11.3第 11.3 节讨论如何选择 nn。在 fMRI 的空间 ICA 中,扮演 mm 个传感器角色的是时间点,运行 ICA 之前要先用 PCA 把它们降到少得多的成分(Chapter 14第 14 章)。

3.7 Whitening with finite samples有限样本下的白化

With finite TT, whitening uses the sample covariance. The whitened sample z^(t)=V^x(t)\hat\bz(t) = \hat\bV\bx(t) is then exactly white, 1T∑tz^(t)z^(t)⊤=I\frac1T\sum_t \hat\bz(t)\hat\bz(t)^\top = \bI after centering, but the whitened mixing matrix V^A\hat\bV\bA is orthogonal only up to an error of order T−1/2T^{-1/2} (for sources with finite fourth moments). An orthogonal method estimates an orthogonal U\bU, so its outputs y(t)=Uz^(t)\by(t) = \bU\hat\bz(t) are exactly uncorrelated in the sample. The true sources are not: their sample covariance C^s\hat\bC_{\bs} differs from I\bI by sampling fluctuations. The constraint imposes a property that the sources do not have, and the resulting error passes into the separation, where no choice of U\bU can remove it. The following proposition makes this precise; the notation OPO_P is recalled in Section A.8第 A.8 节.

当 TT 有限时,白化用的是样本协方差。这时白化后的样本 z^(t)=V^x(t)\hat\bz(t) = \hat\bV\bx(t)(中心化之后)严格满足 1T∑tz^(t)z^(t)⊤=I\frac1T\sum_t \hat\bz(t)\hat\bz(t)^\top = \bI,但白化后的混合矩阵 V^A\hat\bV\bA 只在 T−1/2T^{-1/2} 量级的误差内是正交的(对四阶矩有限的源而言)。正交方法估计的是正交矩阵 U\bU,所以它的输出 y(t)=Uz^(t)\by(t) = \bU\hat\bz(t) 在样本中严格不相关。真实的源却并非如此:它们的样本协方差 C^s\hat\bC_{\bs} 由于抽样波动而偏离 I\bI。这个约束强加了源本身并不具备的性质,由此产生的误差进入分离结果,任何 U\bU 都无法消除。下面的命题把这一点说清楚;记号 OPO_P 的含义见Section A.8第 A.8 节。

Proposition 3.6 (the whitening floor)命题 3.6(白化带来的误差下限)

Let x(t)=As(t)\bx(t) = \bA\bs(t), t=1,…,Tt = 1, \dots, T, with A∈Rn×n\bA \in \R^{n \times n} invertible and i.i.d. source vectors whose components are independent with zero mean and unit variance. Let W^=UV^\hat\bW = \bU\hat\bV, where V^\hat\bV whitens the sample covariance of the x(t)\bx(t) exactly and U\bU is orthogonal, possibly depending on the data. Then the global matrix P^=W^A\hat\bP = \hat\bW\bA satisfies P^C^sP^⊤=I\hat\bP\hat\bC_{\bs}\hat\bP^\top = \bI, where C^s\hat\bC_{\bs} is the sample covariance of the sources. Suppose that, after the order and signs of the outputs have been fixed, P^=I+ε\hat\bP = \bI + \bepsilon with ε=OP(T−1/2)\bepsilon = O_P(T^{-1/2}). Then for every pair i≠ji \ne j, T(εij+εji)\sqrt T(\varepsilon_{ij} + \varepsilon_{ji}) converges in distribution to N(0,1)\Ncal(0, 1). Consequently, if (Tεij,Tεji)(\sqrt T\varepsilon_{ij}, \sqrt T\varepsilon_{ji}) converges in distribution to a limit with variances vijv_{ij} and vjiv_{ji}, then vij+vji≥12v_{ij} + v_{ji} \ge \tfrac12.

设 x(t)=As(t)\bx(t) = \bA\bs(t),t=1,…,Tt = 1, \dots, T,其中 A∈Rn×n\bA \in \R^{n \times n} 可逆,源向量独立同分布,其各分量相互独立、均值为零、方差为一。设 W^=UV^\hat\bW = \bU\hat\bV,其中 V^\hat\bV 恰好白化 x(t)\bx(t) 的样本协方差,U\bU 是正交矩阵(可以依赖于数据)。则全局矩阵 P^=W^A\hat\bP = \hat\bW\bA 满足 P^C^sP^⊤=I\hat\bP\hat\bC_{\bs}\hat\bP^\top = \bI,其中 C^s\hat\bC_{\bs} 是源的样本协方差。设固定输出的顺序与符号之后,P^=I+ε\hat\bP = \bI + \bepsilon,且 ε=OP(T−1/2)\bepsilon = O_P(T^{-1/2})。则对每一对 i≠ji \ne j,T(εij+εji)\sqrt T(\varepsilon_{ij} + \varepsilon_{ji}) 依分布收敛到 N(0,1)\Ncal(0, 1)。因此,若 (Tεij,Tεji)(\sqrt T\varepsilon_{ij}, \sqrt T\varepsilon_{ji}) 依分布收敛到某个方差分别为 vijv_{ij} 与 vjiv_{ji} 的极限,则 vij+vji≥12v_{ij} + v_{ji} \ge \tfrac12。

Proof.证明

Centering commutes with A\bA, so the sample covariance of the observations is C^x=AC^sA⊤\hat\bC_{\bx} = \bA\hat\bC_{\bs}\bA^\top, and P^C^sP^⊤=UV^C^xV^⊤U⊤=UU⊤=I\hat\bP\hat\bC_{\bs}\hat\bP^\top = \bU\hat\bV\hat\bC_{\bx}\hat\bV^\top\bU^\top = \bU\bU^\top = \bI. Write C^s=I+Δ\hat\bC_{\bs} = \bI + \boldsymbol{\Delta}. For i≠ji \ne j, Δij=1T∑tsi(t)sj(t)−sˉisˉj\Delta_{ij} = \frac1T\sum_t s_i(t)s_j(t) - \bar s_i\bar s_j. The first term is an average of i.i.d. variables with mean 0 and variance E[si2] E[sj2]=1\E[s_i^2]\,\E[s_j^2] = 1, so T\sqrt T times it converges to N(0,1)\Ncal(0, 1) by the central limit theorem, and the second term is OP(1/T)O_P(1/T). By the law of large numbers Δ→0\boldsymbol{\Delta} \to \bzero in probability. Expanding (I+ε)(I+Δ)(I+ε)⊤=I(\bI + \bepsilon)(\bI + \boldsymbol{\Delta})(\bI + \bepsilon)^\top = \bI gives ε+ε⊤+Δ=−(εΔ+Δε⊤+εε⊤+εΔε⊤)\bepsilon + \bepsilon^\top + \boldsymbol{\Delta} = -(\bepsilon\boldsymbol{\Delta} + \boldsymbol{\Delta}\bepsilon^\top + \bepsilon\bepsilon^\top + \bepsilon\boldsymbol{\Delta}\bepsilon^\top), and the right-hand side is oP(T−1/2)o_P(T^{-1/2}), since each term is a product of a factor of order T−1/2T^{-1/2} and a factor tending to zero. Hence T(εij+εji)=−T Δij+oP(1)\sqrt T(\varepsilon_{ij} + \varepsilon_{ji}) = -\sqrt T\,\Delta_{ij} + o_P(1), which converges to N(0,1)\Ncal(0, 1). Finally, if (Tεij,Tεji)(\sqrt T\varepsilon_{ij}, \sqrt T\varepsilon_{ji}) converges to (X,Y)(X, Y), then X+Y∼N(0,1)X + Y \sim \Ncal(0, 1), and 1=Var⁡(X+Y)≤2Var⁡(X)+2Var⁡(Y)1 = \Var(X + Y) \le 2\Var(X) + 2\Var(Y) because Var⁡(X+Y)+Var⁡(X−Y)=2Var⁡(X)+2Var⁡(Y)\Var(X + Y) + \Var(X - Y) = 2\Var(X) + 2\Var(Y).

中心化与左乘 A\bA 可交换,所以观测的样本协方差为 C^x=AC^sA⊤\hat\bC_{\bx} = \bA\hat\bC_{\bs}\bA^\top,于是 P^C^sP^⊤=UV^C^xV^⊤U⊤=UU⊤=I\hat\bP\hat\bC_{\bs}\hat\bP^\top = \bU\hat\bV\hat\bC_{\bx}\hat\bV^\top\bU^\top = \bU\bU^\top = \bI。记 C^s=I+Δ\hat\bC_{\bs} = \bI + \boldsymbol{\Delta}。对 i≠ji \ne j,Δij=1T∑tsi(t)sj(t)−sˉisˉj\Delta_{ij} = \frac1T\sum_t s_i(t)s_j(t) - \bar s_i\bar s_j。第一项是均值为 0、方差为 E[si2] E[sj2]=1\E[s_i^2]\,\E[s_j^2] = 1 的独立同分布变量的平均,由中心极限定理,它乘以 T\sqrt T 后收敛到 N(0,1)\Ncal(0, 1);第二项是 OP(1/T)O_P(1/T)。由大数定律,Δ\boldsymbol{\Delta} 依概率收敛到 0\bzero。展开 (I+ε)(I+Δ)(I+ε)⊤=I(\bI + \bepsilon)(\bI + \boldsymbol{\Delta})(\bI + \bepsilon)^\top = \bI 得 ε+ε⊤+Δ=−(εΔ+Δε⊤+εε⊤+εΔε⊤)\bepsilon + \bepsilon^\top + \boldsymbol{\Delta} = -(\bepsilon\boldsymbol{\Delta} + \boldsymbol{\Delta}\bepsilon^\top + \bepsilon\bepsilon^\top + \bepsilon\boldsymbol{\Delta}\bepsilon^\top),右端为 oP(T−1/2)o_P(T^{-1/2}),因为其中每一项都是一个 T−1/2T^{-1/2} 量级的因子与一个趋于零的因子之积。因此 T(εij+εji)=−T Δij+oP(1)\sqrt T(\varepsilon_{ij} + \varepsilon_{ji}) = -\sqrt T\,\Delta_{ij} + o_P(1),它收敛到 N(0,1)\Ncal(0, 1)。最后,若 (Tεij,Tεji)(\sqrt T\varepsilon_{ij}, \sqrt T\varepsilon_{ji}) 收敛到 (X,Y)(X, Y),则 X+Y∼N(0,1)X + Y \sim \Ncal(0, 1);又因为 Var⁡(X+Y)+Var⁡(X−Y)=2Var⁡(X)+2Var⁡(Y)\Var(X + Y) + \Var(X - Y) = 2\Var(X) + 2\Var(Y),所以 1=Var⁡(X+Y)≤2Var⁡(X)+2Var⁡(Y)1 = \Var(X + Y) \le 2\Var(X) + 2\Var(Y)。

In the terms of Chapter 10第 10 章, where the interference-to-signal ratio is ISRij=E[εij2]\mathrm{ISR}_{ij} = \E[\varepsilon_{ij}^2] (Definition 10.2定义 10.2), every orthogonal method has ISRij+ISRji≥1/(2T)\mathrm{ISR}_{ij} + \mathrm{ISR}_{ji} \ge 1/(2T) to first order, whatever its contrast function and whatever the source distributions, and a method that treats the two entries alike has ISRij≥1/(4T)\mathrm{ISR}_{ij} \ge 1/(4T). (Here ε=P^−I\bepsilon = \hat\bP - \bI keeps its diagonal; the gain error of Definition 10.1定义 10.1, P^ij/P^ii\hat P_{ij}/\hat P_{ii}, differs from εij\varepsilon_{ij} by OP(1/T)O_P(1/T), so the two definitions give the same ISR to first order.) Cardoso (1994) pointed out this limit of orthogonal source separation (see also Cardoso, 1998). It is attained by an oracle that knows A\bA: the rotation that brings UV^A\bU\hat\bV\bA closest to I\bI gives P^=C^s−1/2\hat\bP = \hat\bC_{\bs}^{-1/2}, which for sources with finite fourth moments equals I−12Δ+OP(1/T)\bI - \tfrac12\boldsymbol{\Delta} + O_P(1/T), so that εij≈εji≈−12Δij\varepsilon_{ij} \approx \varepsilon_{ji} \approx -\tfrac12\Delta_{ij} (Exercise 3.6习题 3.6). The simulation below whitens a uniform and a Laplacian source with the sample covariance and applies this oracle rotation.

用Chapter 10第 10 章的语言来说,干扰信号比为 ISRij=E[εij2]\mathrm{ISR}_{ij} = \E[\varepsilon_{ij}^2](Definition 10.2定义 10.2),那么在一阶近似下,任何正交方法都满足 ISRij+ISRji≥1/(2T)\mathrm{ISR}_{ij} + \mathrm{ISR}_{ji} \ge 1/(2T),与它采用的对比函数无关,也与源的分布无关;若方法对两个元素一视同仁,则 ISRij≥1/(4T)\mathrm{ISR}_{ij} \ge 1/(4T)。(这里 ε=P^−I\bepsilon = \hat\bP - \bI 保留了对角元;Definition 10.1定义 10.1中的增益误差 P^ij/P^ii\hat P_{ij}/\hat P_{ii} 与 εij\varepsilon_{ij} 只差 OP(1/T)O_P(1/T),所以两种定义在一阶近似下给出相同的 ISR。)Cardoso(1994)指出了正交源分离的这一极限(另见 Cardoso, 1998)。知道 A\bA 的“神谕”可以达到这个下限:使 UV^A\bU\hat\bV\bA 最接近 I\bI 的旋转给出 P^=C^s−1/2\hat\bP = \hat\bC_{\bs}^{-1/2};当源的四阶矩有限时,它等于 I−12Δ+OP(1/T)\bI - \tfrac12\boldsymbol{\Delta} + O_P(1/T),于是 εij≈εji≈−12Δij\varepsilon_{ij} \approx \varepsilon_{ji} \approx -\tfrac12\Delta_{ij}(Exercise 3.6习题 3.6)。下面的模拟用样本协方差白化一个均匀源和一个拉普拉斯源,然后施加这个神谕旋转。

import numpy as np

rng = np.random.default_rng(1)
A = np.array([[1.0, 0.6],
              [0.4, 1.0]])
T, runs = 1000, 10000
err = np.zeros(runs)
for r in range(runs):
    S = np.vstack([rng.uniform(-np.sqrt(3), np.sqrt(3), T),  # unit variance
                   rng.laplace(0.0, 1 / np.sqrt(2), T)])
    X = A @ S
    X = X - X.mean(axis=1, keepdims=True)
    d, E = np.linalg.eigh(X @ X.T / T)
    V = np.diag(d ** -0.5) @ E.T      # PCA whitening, sample covariance
    M = V @ A                         # whitened mixing, nearly orthogonal
    Um, _, Vmt = np.linalg.svd(M)
    U = (Um @ Vmt).T                  # oracle: U @ M closest to I
    P = U @ M                         # best orthogonal global matrix
    err[r] = P[0, 1]**2 + P[1, 0]**2
mean, se = T * err.mean(), T * err.std() / np.sqrt(runs)
print(f"T * E[eps12^2 + eps21^2] = {mean:.3f} +/- {se:.3f}")

It prints T E[ε122+ε212]=0.512±0.007T\,\E[\varepsilon_{12}^2 + \varepsilon_{21}^2] = 0.512 \pm 0.007, in agreement with the predicted 12\tfrac12 up to Monte Carlo error and terms of order 1/T1/T. An algorithm that must estimate the rotation from the data cannot do better, and in general it does worse: it attains the floor only when its estimate of the rotation has no first-order error of its own. Symmetric FastICA with g(u)=u3g(u) = u^3 applied to binary sources is such a case, because s3=ss^3 = s reduces its estimating equations, to first order, to εij=εji\varepsilon_{ij} = \varepsilon_{ji}; for other sources it is less accurate ((10.11)). Methods that are not constrained to be orthogonal, such as maximum likelihood with the natural gradient (Chapter 7第 7 章), have no such floor, and for sources with large Fisher information the Cramér–Rao bound (Theorem 10.10定理 10.10) lies far below it. For nearly Gaussian sources, in contrast, the error of estimating the rotation dominates and the floor matters little.

程序输出 T E[ε122+ε212]=0.512±0.007T\,\E[\varepsilon_{12}^2 + \varepsilon_{21}^2] = 0.512 \pm 0.007,在蒙特卡罗误差与 1/T1/T 量级的项之内与预言值 12\tfrac12 一致。必须从数据中估计旋转的算法不可能做得更好,一般还会更差:只有当它对旋转的估计本身没有一阶误差时,才能达到这个下限。对二值源使用 g(u)=u3g(u) = u^3 的对称 FastICA 就是这样的例子:由于 s3=ss^3 = s,它的估计方程在一阶近似下化为 εij=εji\varepsilon_{ij} = \varepsilon_{ji};对其他源,它的精度要差一些((10.11))。不受正交约束的方法,例如用自然梯度求最大似然(Chapter 7第 7 章),没有这个下限;对 Fisher 信息很大的源,Cramér–Rao 界(Theorem 10.10定理 10.10)远低于它。反之,对接近高斯的源,估计旋转本身的误差占主导,这个下限就无关紧要了。

Conditioning. In the noise-free model, the conditioning of A\bA plays no role for orthogonal methods: whatever A\bA is, the whitened data are V^As=QC^s−1/2s\hat\bV\bA\bs = \bQ\hat\bC_{\bs}^{-1/2}\bs for some orthogonal Q\bQ (Exercise 3.6习题 3.6). Noise changes this. In the setting of Proposition 3.5命题 3.5 with m=nm = n, ordinary whitening leaves noise with covariance σ2Λ−1\sigma^2\bLambda^{-1} in the whitened data, so the share of noise along the ii-th principal direction is σ2/λi\sigma^2/\lambda_i. If A\bA is ill-conditioned, for example because two of its columns are nearly collinear, some λi\lambda_i is small, and the corresponding whitened coordinate is dominated by noise. A large ratio λ1/λn\lambda_1/\lambda_n is therefore a warning sign, and a reason to reconsider the number of components (Chapter 11第 11 章).

条件数。在无噪声模型中,A\bA 的条件数对正交方法没有影响:无论 A\bA 是什么,白化后的数据都是 V^As=QC^s−1/2s\hat\bV\bA\bs = \bQ\hat\bC_{\bs}^{-1/2}\bs,其中 Q\bQ 为某个正交矩阵(Exercise 3.6习题 3.6)。噪声会改变这一点。在Proposition 3.5命题 3.5的设定下取 m=nm = n,普通白化后数据中残留的噪声协方差为 σ2Λ−1\sigma^2\bLambda^{-1},所以第 ii 个主方向上噪声所占的比例为 σ2/λi\sigma^2/\lambda_i。若 A\bA 病态,例如它有两列几乎共线,则某个 λi\lambda_i 很小,相应的白化坐标几乎全是噪声。因此 λ1/λn\lambda_1/\lambda_n 很大是一个警示信号,提醒我们重新考虑成分的个数(Chapter 11第 11 章)。

Key points

本章要点

  • A whitening matrix satisfies VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI. PCA (Λ−1/2E⊤\bLambda^{-1/2}\mathbf{E}^\top), ZCA (Cx−1/2\bC_{\bx}^{-1/2}) and Cholesky (L−1\mathbf{L}^{-1}) whitening differ only by orthogonal factors, and all white versions of the data differ by rotations.
  • For unit-variance sources the whitened mixing matrix A~=VA\tilde\bA = \bV\bA is orthogonal. ICA reduces to finding a rotation U\bU, with W=UV\bW = \bU\bV; the rotation has n(n−1)/2n(n-1)/2 parameters, and the remaining ambiguity is a signed permutation.
  • White data stay white under every rotation, and Gaussian data are rotation invariant in distribution. For i.i.d. samples second-order statistics cannot determine U\bU; higher-order statistics can, when the sources are non-Gaussian.
  • When m>nm > n, PCA recovers the signal subspace even with isotropic noise; ordinary whitening then leaves VA\bV\bA slightly non-orthogonal, which bias-corrected whitening repairs.
  • With finite samples, orthogonal methods inherit the error of the sample covariance: ISRij+ISRji≥1/(2T)\mathrm{ISR}_{ij} + \mathrm{ISR}_{ji} \ge 1/(2T) to first order, whatever the contrast.
  • 白化矩阵满足 VCxV⊤=I\bV\bC_{\bx}\bV^\top = \bI。PCA 白化(Λ−1/2E⊤\bLambda^{-1/2}\mathbf{E}^\top)、ZCA 白化(Cx−1/2\bC_{\bx}^{-1/2})与 Cholesky 白化(L−1\mathbf{L}^{-1})之间只差正交因子,数据的所有白化版本之间只差旋转。
  • 对单位方差的源,白化后的混合矩阵 A~=VA\tilde\bA = \bV\bA 是正交的。ICA 归结为寻找旋转 U\bU,且 W=UV\bW = \bU\bV;旋转有 n(n−1)/2n(n-1)/2 个参数,剩下的不确定性是带符号的置换。
  • 白数据经任何旋转后仍然是白的,而高斯数据的分布在旋转下不变。对独立同分布样本,二阶统计量无法确定 U\bU;当源非高斯时,高阶统计量可以。
  • 当 m>nm > n 时,即使有各向同性噪声,PCA 也能恢复信号子空间;此时普通白化使 VA\bV\bA 略偏离正交,偏差校正白化可以修正这一点。
  • 在有限样本下,正交方法继承了样本协方差的误差:在一阶近似下 ISRij+ISRji≥1/(2T)\mathrm{ISR}_{ij} + \mathrm{ISR}_{ji} \ge 1/(2T),与对比函数无关。

3.8 Exercises习题

Exercise 3.1习题 3.1 basic基础

Let Cx=(1ρρ1)\bC_{\bx} = \bigl(\begin{smallmatrix} 1 & \rho \\ \rho & 1 \end{smallmatrix}\bigr) with ∣ρ∣<1|\rho| < 1. Find the Cholesky whitening matrix and show that z1=x1z_1 = x_1 and z2=(x2−ρx1)/1−ρ2z_2 = (x_2 - \rho x_1)/\sqrt{1 - \rho^2}. Interpret z2z_2 in terms of linear regression.

设 Cx=(1ρρ1)\bC_{\bx} = \bigl(\begin{smallmatrix} 1 & \rho \\ \rho & 1 \end{smallmatrix}\bigr),∣ρ∣<1|\rho| < 1。求 Cholesky 白化矩阵,并证明 z1=x1z_1 = x_1,z2=(x2−ρx1)/1−ρ2z_2 = (x_2 - \rho x_1)/\sqrt{1 - \rho^2}。用线性回归的语言解释 z2z_2。

Show solution查看解答

The matrix L=(10ρ1−ρ2)\mathbf{L} = \bigl(\begin{smallmatrix} 1 & 0 \\ \rho & \sqrt{1 - \rho^2} \end{smallmatrix}\bigr) is lower triangular with a positive diagonal and LL⊤=(1ρρρ2+1−ρ2)=Cx\mathbf{L}\mathbf{L}^\top = \bigl(\begin{smallmatrix} 1 & \rho \\ \rho & \rho^2 + 1 - \rho^2 \end{smallmatrix}\bigr) = \bC_{\bx}. Its inverse is L−1=(10−ρ/1−ρ21/1−ρ2)\mathbf{L}^{-1} = \bigl(\begin{smallmatrix} 1 & 0 \\ -\rho/\sqrt{1 - \rho^2} & 1/\sqrt{1 - \rho^2} \end{smallmatrix}\bigr), which gives the stated z1z_1 and z2z_2. The best linear predictor of x2x_2 from x1x_1 is (E[x1x2]/E[x12]) x1=ρx1(\E[x_1x_2]/\E[x_1^2])\,x_1 = \rho x_1, with residual variance 1−ρ21 - \rho^2, so z2z_2 is the standardized regression residual. This is the Gram–Schmidt step: remove from x2x_2 its component along z1z_1, then normalize. With more variables, zkz_k is the standardized residual of xkx_k regressed on x1,…,xk−1x_1, \dots, x_{k-1}.

矩阵 L=(10ρ1−ρ2)\mathbf{L} = \bigl(\begin{smallmatrix} 1 & 0 \\ \rho & \sqrt{1 - \rho^2} \end{smallmatrix}\bigr) 是对角元为正的下三角矩阵,且 LL⊤=(1ρρρ2+1−ρ2)=Cx\mathbf{L}\mathbf{L}^\top = \bigl(\begin{smallmatrix} 1 & \rho \\ \rho & \rho^2 + 1 - \rho^2 \end{smallmatrix}\bigr) = \bC_{\bx}。它的逆为 L−1=(10−ρ/1−ρ21/1−ρ2)\mathbf{L}^{-1} = \bigl(\begin{smallmatrix} 1 & 0 \\ -\rho/\sqrt{1 - \rho^2} & 1/\sqrt{1 - \rho^2} \end{smallmatrix}\bigr),由此即得所述的 z1z_1 与 z2z_2。用 x1x_1 对 x2x_2 作最佳线性预测,结果是 (E[x1x2]/E[x12]) x1=ρx1(\E[x_1x_2]/\E[x_1^2])\,x_1 = \rho x_1,残差方差为 1−ρ21 - \rho^2,所以 z2z_2 是标准化的回归残差。这正是 Gram–Schmidt 的一步:从 x2x_2 中去掉它沿 z1z_1 的分量,再归一化。变量更多时,zkz_k 是 xkx_k 对 x1,…,xk−1x_1, \dots, x_{k-1} 回归后的标准化残差。

Exercise 3.2习题 3.2 basic基础

For a square model with n=10n = 10 unit-variance sources, how many numbers does the covariance determine, and how many parameters does the rotation U\bU have? Show that an orthogonal matrix of the form ΠD\bPi\bD, with Π\bPi a permutation matrix and D\bD diagonal, has D=diag⁡(±1)\bD = \diag(\pm 1), and count the orthogonal matrices U\bU that separate a given whitened mixture. How many of them are rotations in the strict sense, with determinant +1+1?

对 n=10n = 10 个单位方差源的方阵模型,协方差确定了多少个数?旋转 U\bU 有多少个参数?证明形如 ΠD\bPi\bD(Π\bPi 为置换矩阵,D\bD 为对角矩阵)的正交矩阵必有 D=diag⁡(±1)\bD = \diag(\pm 1),并数一数能分离给定白化混合的正交矩阵 U\bU 有多少个,其中又有多少个是行列式为 +1+1 的严格意义上的旋转。

Show solution查看解答

The covariance is symmetric, so it determines n(n+1)/2=55n(n+1)/2 = 55 numbers; the rotation has n(n−1)/2=45n(n-1)/2 = 45 parameters, and 55+45=100=n255 + 45 = 100 = n^2. If ΠD\bPi\bD is orthogonal, then I=(ΠD)⊤(ΠD)=DΠ⊤ΠD=D2\bI = (\bPi\bD)^\top(\bPi\bD) = \bD\bPi^\top\bPi\bD = \bD^2, so every di2=1d_i^2 = 1. The separating orthogonal matrices are U=ΠDA~⊤\bU = \bPi\bD\tilde\bA^\top, with Π\bPi one of n!n! permutations and D\bD one of 2n2^n sign patterns. Distinct pairs (Π,D)(\bPi, \bD) give distinct matrices ΠD\bPi\bD, since the position of the nonzero entry in each column determines Π\bPi and its sign determines D\bD. There are therefore 2nn!=210⋅10!=3 715 891 2002^n n! = 2^{10} \cdot 10! = 3\,715\,891\,200 separating orthogonal matrices for n=10n = 10, all equally good answers. Exactly half of them, 2n−1n!=1 857 945 6002^{n-1}n! = 1\,857\,945\,600, have determinant +1+1, because changing one sign in D\bD changes the sign of det⁡U=det⁡(Π)det⁡(D)det⁡(A~⊤)\det\bU = \det(\bPi)\det(\bD)\det(\tilde\bA^\top).

协方差是对称的,所以确定 n(n+1)/2=55n(n+1)/2 = 55 个数;旋转有 n(n−1)/2=45n(n-1)/2 = 45 个参数,55+45=100=n255 + 45 = 100 = n^2。若 ΠD\bPi\bD 正交,则 I=(ΠD)⊤(ΠD)=DΠ⊤ΠD=D2\bI = (\bPi\bD)^\top(\bPi\bD) = \bD\bPi^\top\bPi\bD = \bD^2,所以每个 di2=1d_i^2 = 1。能实现分离的正交矩阵为 U=ΠDA~⊤\bU = \bPi\bD\tilde\bA^\top,其中 Π\bPi 取 n!n! 个置换之一,D\bD 取 2n2^n 种符号组合之一。不同的 (Π,D)(\bPi, \bD) 给出不同的矩阵 ΠD\bPi\bD,因为每一列非零元的位置确定 Π\bPi,其符号确定 D\bD。因此 n=10n = 10 时共有 2nn!=210⋅10!=3 715 891 2002^n n! = 2^{10} \cdot 10! = 3\,715\,891\,200 个能实现分离的正交矩阵,它们都是同样好的答案。其中恰好一半,即 2n−1n!=1 857 945 6002^{n-1}n! = 1\,857\,945\,600 个,行列式为 +1+1,因为改变 D\bD 中的一个符号就会改变 det⁡U=det⁡(Π)det⁡(D)det⁡(A~⊤)\det\bU = \det(\bPi)\det(\bD)\det(\tilde\bA^\top) 的符号。

Exercise 3.3习题 3.3 intermediate进阶

Let Cx\bC_{\bx} be positive definite (m=nm = n). Show that among all m×mm \times m whitening matrices, V=Cx−1/2\bV = \bC_{\bx}^{-1/2} is the unique minimizer of E∥Vx−x∥2\E\|\bV\bx - \bx\|^2. Deduce that for unit-variance sources, ZCA whitening gives the whitened mixing matrix (AA⊤)−1/2A(\bA\bA^\top)^{-1/2}\bA.

设 Cx\bC_{\bx} 正定(m=nm = n)。证明在所有 m×mm \times m 白化矩阵中,V=Cx−1/2\bV = \bC_{\bx}^{-1/2} 是 E∥Vx−x∥2\E\|\bV\bx - \bx\|^2 的唯一最小值点。并由此说明:对单位方差的源,ZCA 白化给出的白化混合矩阵为 (AA⊤)−1/2A(\bA\bA^\top)^{-1/2}\bA。

Show solution查看解答

By Proposition 3.2命题 3.2, V=QCx−1/2\bV = \bQ\bC_{\bx}^{-1/2} with Q\bQ orthogonal. Then E∥Vx−x∥2=tr⁡(VCxV⊤)−2tr⁡(VCx)+tr⁡(Cx)=n+tr⁡(Cx)−2tr⁡(QCx1/2)\E\|\bV\bx - \bx\|^2 = \tr(\bV\bC_{\bx}\bV^\top) - 2\tr(\bV\bC_{\bx}) + \tr(\bC_{\bx}) = n + \tr(\bC_{\bx}) - 2\tr(\bQ\bC_{\bx}^{1/2}), so we must maximize tr⁡(QCx1/2)\tr(\bQ\bC_{\bx}^{1/2}). With Cx1/2=∑iλi1/2eiei⊤\bC_{\bx}^{1/2} = \sum_i \lambda_i^{1/2}\be_i\be_i^\top, where the ei\be_i are the orthonormal eigenvectors (the columns of E\mathbf{E}), we get tr⁡(QCx1/2)=∑iλi1/2 ei⊤Qei≤∑iλi1/2\tr(\bQ\bC_{\bx}^{1/2}) = \sum_i \lambda_i^{1/2}\,\be_i^\top\bQ\be_i \le \sum_i \lambda_i^{1/2}, because ∣ei⊤Qei∣≤∥ei∥ ∥Qei∥=1|\be_i^\top\bQ\be_i| \le \|\be_i\|\,\|\bQ\be_i\| = 1. Equality requires ei⊤Qei=1\be_i^\top\bQ\be_i = 1, which for unit vectors means Qei=ei\bQ\be_i = \be_i, for every ii; hence Q=I\bQ = \bI. For x=As\bx = \bA\bs with E[ss⊤]=I\E[\bs\bs^\top] = \bI, Cx=AA⊤\bC_{\bx} = \bA\bA^\top and A~=Cx−1/2A=(AA⊤)−1/2A\tilde\bA = \bC_{\bx}^{-1/2}\bA = (\bA\bA^\top)^{-1/2}\bA, the orthogonal polar factor of A\bA (Proposition A.4命题 A.4).

由Proposition 3.2命题 3.2,V=QCx−1/2\bV = \bQ\bC_{\bx}^{-1/2},Q\bQ 正交。于是 E∥Vx−x∥2=tr⁡(VCxV⊤)−2tr⁡(VCx)+tr⁡(Cx)=n+tr⁡(Cx)−2tr⁡(QCx1/2)\E\|\bV\bx - \bx\|^2 = \tr(\bV\bC_{\bx}\bV^\top) - 2\tr(\bV\bC_{\bx}) + \tr(\bC_{\bx}) = n + \tr(\bC_{\bx}) - 2\tr(\bQ\bC_{\bx}^{1/2}),问题化为最大化 tr⁡(QCx1/2)\tr(\bQ\bC_{\bx}^{1/2})。由 Cx1/2=∑iλi1/2eiei⊤\bC_{\bx}^{1/2} = \sum_i \lambda_i^{1/2}\be_i\be_i^\top(ei\be_i 是标准正交的特征向量,即 E\mathbf{E} 的各列)得 tr⁡(QCx1/2)=∑iλi1/2 ei⊤Qei≤∑iλi1/2\tr(\bQ\bC_{\bx}^{1/2}) = \sum_i \lambda_i^{1/2}\,\be_i^\top\bQ\be_i \le \sum_i \lambda_i^{1/2},因为 ∣ei⊤Qei∣≤∥ei∥ ∥Qei∥=1|\be_i^\top\bQ\be_i| \le \|\be_i\|\,\|\bQ\be_i\| = 1。等号要求对每个 ii 都有 ei⊤Qei=1\be_i^\top\bQ\be_i = 1,对单位向量而言这意味着 Qei=ei\bQ\be_i = \be_i;因此 Q=I\bQ = \bI。对 E[ss⊤]=I\E[\bs\bs^\top] = \bI 的 x=As\bx = \bA\bs,Cx=AA⊤\bC_{\bx} = \bA\bA^\top,于是 A~=Cx−1/2A=(AA⊤)−1/2A\tilde\bA = \bC_{\bx}^{-1/2}\bA = (\bA\bA^\top)^{-1/2}\bA,即 A\bA 的正交极因子(Proposition A.4命题 A.4)。

Exercise 3.4习题 3.4 intermediate进阶

Let m=3m = 3, n=1n = 1 and x=as+n\bx = \ba s + \bn with a=(1,2,2)⊤\ba = (1, 2, 2)^\top, E[s2]=1\E[s^2] = 1 and E[nn⊤]=I3\E[\bn\bn^\top] = \bI_3. Find the eigenvalues of Cx\bC_{\bx}, the PCA whitening matrix V=λ1−1/2e1⊤\bV = \lambda_1^{-1/2}\be_1^\top, where e1\be_1 is a unit eigenvector for the largest eigenvalue λ1\lambda_1, and Va\bV\ba, and the bias-corrected version of Proposition 3.5命题 3.5. What are the signal and noise variances of the whitened output?

设 m=3m = 3,n=1n = 1,x=as+n\bx = \ba s + \bn,其中 a=(1,2,2)⊤\ba = (1, 2, 2)^\top,E[s2]=1\E[s^2] = 1,E[nn⊤]=I3\E[\bn\bn^\top] = \bI_3。求 Cx\bC_{\bx} 的特征值、PCA 白化矩阵 V=λ1−1/2e1⊤\bV = \lambda_1^{-1/2}\be_1^\top(e1\be_1 为最大特征值 λ1\lambda_1 的单位特征向量)与 Va\bV\ba,以及Proposition 3.5命题 3.5中的偏差校正版本。白化输出中信号与噪声的方差各是多少?

Show solution查看解答

Here Cx=aa⊤+I\bC_{\bx} = \ba\ba^\top + \bI. Since ∥a∥2=9\|\ba\|^2 = 9, the matrix aa⊤\ba\ba^\top has eigenvalue 9 with eigenvector e1=a/3\be_1 = \ba/3 and eigenvalue 0 on the plane orthogonal to a\ba, so Cx\bC_{\bx} has eigenvalues 10,1,110, 1, 1, as item 1 of the proposition predicts with d1=9d_1 = 9 and σ2=1\sigma^2 = 1. PCA whitening uses V=10−1/2a⊤/3\bV = 10^{-1/2}\ba^\top/3 and gives Va=9/(310)=3/10≈0.949\bV\ba = 9/(3\sqrt{10}) = 3/\sqrt{10} \approx 0.949, so (Va)2=0.9=1−σ2/λ1(\bV\ba)^2 = 0.9 = 1 - \sigma^2/\lambda_1; a 1×11 \times 1 orthogonal matrix is ±1\pm 1, so Va\bV\ba is not orthogonal. The bias-corrected V=(10−1)−1/2a⊤/3\bV = (10 - 1)^{-1/2}\ba^\top/3 gives Va=9/9=1\bV\ba = 9/9 = 1. For PCA whitening the output Vx=(Va)s+Vn\bV\bx = (\bV\ba)s + \bV\bn has signal variance 0.90.9 and noise variance VV⊤=9/90=0.1\bV\bV^\top = 9/90 = 0.1, which add up to 1; the signal-to-noise ratio is 9=d1/σ29 = d_1/\sigma^2, the same for any rescaling of V\bV.

这里 Cx=aa⊤+I\bC_{\bx} = \ba\ba^\top + \bI。由于 ∥a∥2=9\|\ba\|^2 = 9,矩阵 aa⊤\ba\ba^\top 有特征值 9(特征向量 e1=a/3\be_1 = \ba/3),在与 a\ba 正交的平面上特征值为 0,所以 Cx\bC_{\bx} 的特征值为 10,1,110, 1, 1,与命题第 1 条(d1=9d_1 = 9,σ2=1\sigma^2 = 1)一致。PCA 白化取 V=10−1/2a⊤/3\bV = 10^{-1/2}\ba^\top/3,得 Va=9/(310)=3/10≈0.949\bV\ba = 9/(3\sqrt{10}) = 3/\sqrt{10} \approx 0.949,所以 (Va)2=0.9=1−σ2/λ1(\bV\ba)^2 = 0.9 = 1 - \sigma^2/\lambda_1;1×11 \times 1 的正交矩阵只能是 ±1\pm 1,所以 Va\bV\ba 不是正交的。偏差校正的 V=(10−1)−1/2a⊤/3\bV = (10 - 1)^{-1/2}\ba^\top/3 给出 Va=9/9=1\bV\ba = 9/9 = 1。对 PCA 白化,输出 Vx=(Va)s+Vn\bV\bx = (\bV\ba)s + \bV\bn 中信号方差为 0.90.9,噪声方差为 VV⊤=9/90=0.1\bV\bV^\top = 9/90 = 0.1,二者之和为 1;信噪比为 9=d1/σ29 = d_1/\sigma^2,对 V\bV 作任何缩放都不变。

Exercise 3.5习题 3.5 advanced硬核

Let s=(s1,s2)⊤\bs = (s_1, s_2)^\top have independent components, and suppose that Qs\bQ\bs has the same distribution as s\bs for every rotation Q\bQ of the plane. Prove that s1s_1 and s2s_2 are both N(0,σ2)\Ncal(0, \sigma^2) for a common σ2≥0\sigma^2 \ge 0, where σ2=0\sigma^2 = 0 means s1=s2=0s_1 = s_2 = 0. Extend the result to n>2n > 2 components. (Hint: show that φs(ω)\varphi_{\bs}(\bomega) depends only on ∥ω∥\|\bomega\| and use Proposition 2.5命题 2.5.)

设 s=(s1,s2)⊤\bs = (s_1, s_2)^\top 的分量独立,并且对平面上的每个旋转 Q\bQ,Qs\bQ\bs 都与 s\bs 同分布。证明 s1s_1 与 s2s_2 都服从 N(0,σ2)\Ncal(0, \sigma^2),其中 σ2≥0\sigma^2 \ge 0 为公共的方差(σ2=0\sigma^2 = 0 表示 s1=s2=0s_1 = s_2 = 0)。再把结论推广到 n>2n > 2 个分量。(提示:证明 φs(ω)\varphi_{\bs}(\bomega) 只依赖于 ∥ω∥\|\bomega\|,再利用Proposition 2.5命题 2.5。)

Show solution查看解答

By the rule for linear maps, φQs(ω)=φs(Q⊤ω)\varphi_{\bQ\bs}(\bomega) = \varphi_{\bs}(\bQ^\top\bomega), so invariance gives φs(Q⊤ω)=φs(ω)\varphi_{\bs}(\bQ^\top\bomega) = \varphi_{\bs}(\bomega) for all rotations, and φs(ω)=g(∥ω∥)\varphi_{\bs}(\bomega) = g(\|\bomega\|) for some function gg on [0,∞)[0, \infty). The rotation by π\pi maps s\bs to −s-\bs, so φs\varphi_{\bs} is real. By independence φs(ω)=φ1(ω1)φ2(ω2)\varphi_{\bs}(\bomega) = \varphi_1(\omega_1)\varphi_2(\omega_2); setting ω2=0\omega_2 = 0 gives φ1(ω1)=g(∣ω1∣)\varphi_1(\omega_1) = g(|\omega_1|), and likewise φ2(ω2)=g(∣ω2∣)\varphi_2(\omega_2) = g(|\omega_2|). Hence g(a2+b2)=g(∣a∣) g(∣b∣)g\bigl(\sqrt{a^2 + b^2}\bigr) = g(|a|)\,g(|b|) for all real aa and bb. Let h(t)=g(t)h(t) = g(\sqrt t) for t≥0t \ge 0. Then h(t+u)=h(t)h(u)h(t + u) = h(t)h(u), hh is continuous and real, and h(0)=1h(0) = 1. Since h(t)=h(t/2)2≥0h(t) = h(t/2)^2 \ge 0, and h(t0)=0h(t_0) = 0 would force h(t0/2k)=0h(t_0/2^k) = 0 for all kk, contradicting continuity at 0, hh is positive. So log⁡h\log h is a continuous solution of Cauchy's equation f(t+u)=f(t)+f(u)f(t + u) = f(t) + f(u) on [0,∞)[0, \infty), hence linear: h(t)=ecth(t) = e^{ct}. Because ∣h∣≤1|h| \le 1, c≤0c \le 0; write c=−σ2/2c = -\sigma^2/2. Then φ1(ω)=φ2(ω)=e−σ2ω2/2\varphi_1(\omega) = \varphi_2(\omega) = e^{-\sigma^2\omega^2/2}, the characteristic function of N(0,σ2)\Ncal(0, \sigma^2), and uniqueness gives the claim. For n>2n > 2, the rotations acting on two coordinates ii and jj and fixing the others are orthogonal matrices, and they rotate the pair (si,sj)(s_i, s_j) in its plane. Applying the two-dimensional result to every pair shows that all components are N(0,σ2)\Ncal(0, \sigma^2) with one common σ2\sigma^2.

由线性变换的规则,φQs(ω)=φs(Q⊤ω)\varphi_{\bQ\bs}(\bomega) = \varphi_{\bs}(\bQ^\top\bomega),所以由不变性,对一切旋转有 φs(Q⊤ω)=φs(ω)\varphi_{\bs}(\bQ^\top\bomega) = \varphi_{\bs}(\bomega),从而 φs(ω)=g(∥ω∥)\varphi_{\bs}(\bomega) = g(\|\bomega\|),gg 是 [0,∞)[0, \infty) 上的某个函数。旋转 π\pi 把 s\bs 变成 −s-\bs,所以 φs\varphi_{\bs} 取实值。由独立性,φs(ω)=φ1(ω1)φ2(ω2)\varphi_{\bs}(\bomega) = \varphi_1(\omega_1)\varphi_2(\omega_2);令 ω2=0\omega_2 = 0 得 φ1(ω1)=g(∣ω1∣)\varphi_1(\omega_1) = g(|\omega_1|),同理 φ2(ω2)=g(∣ω2∣)\varphi_2(\omega_2) = g(|\omega_2|)。因此对一切实数 aa、bb 有 g(a2+b2)=g(∣a∣) g(∣b∣)g\bigl(\sqrt{a^2 + b^2}\bigr) = g(|a|)\,g(|b|)。令 h(t)=g(t)h(t) = g(\sqrt t),t≥0t \ge 0,则 h(t+u)=h(t)h(u)h(t + u) = h(t)h(u),hh 连续且取实值,h(0)=1h(0) = 1。由于 h(t)=h(t/2)2≥0h(t) = h(t/2)^2 \ge 0,而若 h(t0)=0h(t_0) = 0,则对所有 kk 有 h(t0/2k)=0h(t_0/2^k) = 0,与 hh 在 0 处连续矛盾,所以 hh 处处为正。于是 log⁡h\log h 是 [0,∞)[0, \infty) 上 Cauchy 方程 f(t+u)=f(t)+f(u)f(t + u) = f(t) + f(u) 的连续解,因而是线性的:h(t)=ecth(t) = e^{ct}。由 ∣h∣≤1|h| \le 1 得 c≤0c \le 0,记 c=−σ2/2c = -\sigma^2/2。于是 φ1(ω)=φ2(ω)=e−σ2ω2/2\varphi_1(\omega) = \varphi_2(\omega) = e^{-\sigma^2\omega^2/2},正是 N(0,σ2)\Ncal(0, \sigma^2) 的特征函数,由唯一性即得结论。对 n>2n > 2,只作用于第 ii、jj 两个坐标而保持其余坐标不动的旋转是正交矩阵,它们在 (si,sj)(s_i, s_j) 所在平面内旋转这一对分量。对每一对分量应用二维的结论,即知所有分量都服从同一个 N(0,σ2)\Ncal(0, \sigma^2)。

Exercise 3.6习题 3.6 advanced硬核

In the setting of Proposition 3.6命题 3.6, assume that C^s\hat\bC_{\bs} is positive definite and that the sources have finite fourth moments. (a) Show that V^A=QC^s−1/2\hat\bV\bA = \bQ\hat\bC_{\bs}^{-1/2} for some orthogonal Q\bQ. (b) Show that the oracle rotation, which minimizes ∥UV^A−I∥F\|\bU\hat\bV\bA - \bI\|_F over orthogonal U\bU, gives P^=C^s−1/2\hat\bP = \hat\bC_{\bs}^{-1/2}, and that it attains vij=vji=14v_{ij} = v_{ji} = \tfrac14. (c) Suppose the rotation step is a function U(Z^)\bU(\hat\bZ) of the whitened data matrix with U(QZ^)=U(Z^)Q⊤\bU(\bQ\hat\bZ) = \bU(\hat\bZ)\bQ^\top for every orthogonal Q\bQ. Show that P^\hat\bP then depends only on the sources, not on A\bA.

在Proposition 3.6命题 3.6的设定下,设 C^s\hat\bC_{\bs} 正定,并且源的四阶矩有限。(a)证明存在正交矩阵 Q\bQ 使 V^A=QC^s−1/2\hat\bV\bA = \bQ\hat\bC_{\bs}^{-1/2}。(b)证明神谕旋转(在正交矩阵 U\bU 中最小化 ∥UV^A−I∥F\|\bU\hat\bV\bA - \bI\|_F)给出 P^=C^s−1/2\hat\bP = \hat\bC_{\bs}^{-1/2},并且达到 vij=vji=14v_{ij} = v_{ji} = \tfrac14。(c)设旋转这一步是白化数据矩阵的函数 U(Z^)\bU(\hat\bZ),且对每个正交矩阵 Q\bQ 满足 U(QZ^)=U(Z^)Q⊤\bU(\bQ\hat\bZ) = \bU(\hat\bZ)\bQ^\top。证明此时 P^\hat\bP 只依赖于源,而与 A\bA 无关。

Show solution查看解答

(a) As in the proof of the proposition, V^AC^sA⊤V^⊤=V^C^xV^⊤=I\hat\bV\bA\hat\bC_{\bs}\bA^\top\hat\bV^\top = \hat\bV\hat\bC_{\bx}\hat\bV^\top = \bI. Hence Q=V^AC^s1/2\bQ = \hat\bV\bA\hat\bC_{\bs}^{1/2} satisfies QQ⊤=I\bQ\bQ^\top = \bI, so Q\bQ is orthogonal and V^A=QC^s−1/2\hat\bV\bA = \bQ\hat\bC_{\bs}^{-1/2}. (b) ∥UQC^s−1/2−I∥F2=tr⁡(C^s−1)+n−2tr⁡(UQC^s−1/2)\|\bU\bQ\hat\bC_{\bs}^{-1/2} - \bI\|_F^2 = \tr(\hat\bC_{\bs}^{-1}) + n - 2\tr(\bU\bQ\hat\bC_{\bs}^{-1/2}). As in Exercise 3.3习题 3.3, tr⁡(RM)≤tr⁡(M)\tr(\bR\bM) \le \tr(\bM) for orthogonal R\bR and positive definite M\bM, with equality only for R=I\bR = \bI, so the minimum is at UQ=I\bU\bQ = \bI, where P^=UV^A=C^s−1/2\hat\bP = \bU\hat\bV\bA = \hat\bC_{\bs}^{-1/2}. With C^s=I+Δ\hat\bC_{\bs} = \bI + \boldsymbol{\Delta} and Δ=OP(T−1/2)\boldsymbol{\Delta} = O_P(T^{-1/2}) (by the central limit theorem, since fourth moments are finite), (I+Δ)−1/2=I−12Δ+OP(1/T)(\bI + \boldsymbol{\Delta})^{-1/2} = \bI - \tfrac12\boldsymbol{\Delta} + O_P(1/T), so εij=−12Δij+OP(1/T)\varepsilon_{ij} = -\tfrac12\Delta_{ij} + O_P(1/T) for i≠ji \ne j, and Tεij→N(0,14)\sqrt T\varepsilon_{ij} \to \Ncal(0, \tfrac14) because TΔij→N(0,1)\sqrt T\Delta_{ij} \to \Ncal(0, 1). Thus vij+vji=12v_{ij} + v_{ji} = \tfrac12, the bound of the proposition. (c) Let S~\tilde\bS be the centered source matrix. The whitened data are Z^=V^AS~=QZˇ\hat\bZ = \hat\bV\bA\tilde\bS = \bQ\check\bZ with Zˇ=C^s−1/2S~\check\bZ = \hat\bC_{\bs}^{-1/2}\tilde\bS, which depends only on the sources. Then U(Z^)=U(Zˇ)Q⊤\bU(\hat\bZ) = \bU(\check\bZ)\bQ^\top and P^=U(Z^)V^A=U(Zˇ)Q⊤QC^s−1/2=U(Zˇ)C^s−1/2\hat\bP = \bU(\hat\bZ)\hat\bV\bA = \bU(\check\bZ)\bQ^\top\bQ\hat\bC_{\bs}^{-1/2} = \bU(\check\bZ)\hat\bC_{\bs}^{-1/2}, which does not involve A\bA. The accuracy of such a method is the same for every mixing matrix, the same equivariance property that the natural gradient has (Proposition 7.1命题 7.1).

(a)与命题的证明一样,V^AC^sA⊤V^⊤=V^C^xV^⊤=I\hat\bV\bA\hat\bC_{\bs}\bA^\top\hat\bV^\top = \hat\bV\hat\bC_{\bx}\hat\bV^\top = \bI。因此 Q=V^AC^s1/2\bQ = \hat\bV\bA\hat\bC_{\bs}^{1/2} 满足 QQ⊤=I\bQ\bQ^\top = \bI,即 Q\bQ 正交,且 V^A=QC^s−1/2\hat\bV\bA = \bQ\hat\bC_{\bs}^{-1/2}。(b)∥UQC^s−1/2−I∥F2=tr⁡(C^s−1)+n−2tr⁡(UQC^s−1/2)\|\bU\bQ\hat\bC_{\bs}^{-1/2} - \bI\|_F^2 = \tr(\hat\bC_{\bs}^{-1}) + n - 2\tr(\bU\bQ\hat\bC_{\bs}^{-1/2})。与Exercise 3.3习题 3.3一样,对正交矩阵 R\bR 与正定矩阵 M\bM 有 tr⁡(RM)≤tr⁡(M)\tr(\bR\bM) \le \tr(\bM),且仅当 R=I\bR = \bI 时取等号,所以最小值在 UQ=I\bU\bQ = \bI 处取得,此时 P^=UV^A=C^s−1/2\hat\bP = \bU\hat\bV\bA = \hat\bC_{\bs}^{-1/2}。记 C^s=I+Δ\hat\bC_{\bs} = \bI + \boldsymbol{\Delta},由于四阶矩有限,由中心极限定理 Δ=OP(T−1/2)\boldsymbol{\Delta} = O_P(T^{-1/2}),则 (I+Δ)−1/2=I−12Δ+OP(1/T)(\bI + \boldsymbol{\Delta})^{-1/2} = \bI - \tfrac12\boldsymbol{\Delta} + O_P(1/T),所以对 i≠ji \ne j 有 εij=−12Δij+OP(1/T)\varepsilon_{ij} = -\tfrac12\Delta_{ij} + O_P(1/T);又因为 TΔij→N(0,1)\sqrt T\Delta_{ij} \to \Ncal(0, 1),所以 Tεij→N(0,14)\sqrt T\varepsilon_{ij} \to \Ncal(0, \tfrac14)。于是 vij+vji=12v_{ij} + v_{ji} = \tfrac12,恰好是命题中的下限。(c)记 S~\tilde\bS 为中心化后的源矩阵。白化数据为 Z^=V^AS~=QZˇ\hat\bZ = \hat\bV\bA\tilde\bS = \bQ\check\bZ,其中 Zˇ=C^s−1/2S~\check\bZ = \hat\bC_{\bs}^{-1/2}\tilde\bS 只依赖于源。于是 U(Z^)=U(Zˇ)Q⊤\bU(\hat\bZ) = \bU(\check\bZ)\bQ^\top,P^=U(Z^)V^A=U(Zˇ)Q⊤QC^s−1/2=U(Zˇ)C^s−1/2\hat\bP = \bU(\hat\bZ)\hat\bV\bA = \bU(\check\bZ)\bQ^\top\bQ\hat\bC_{\bs}^{-1/2} = \bU(\check\bZ)\hat\bC_{\bs}^{-1/2},其中不含 A\bA。这样的方法对任何混合矩阵都有相同的精度,这与自然梯度具有的等变性是同一性质(Proposition 7.1命题 7.1)。

3.9 References参考文献

  1. Bell, A. J., & Sejnowski, T. J. (1997). The “independent components” of natural scenes are edge filters. Vision Research, 37(23), 3327–3338.
  2. Cardoso, J.-F. (1994). On the performance of orthogonal source separation algorithms. In Proceedings of EUSIPCO-94 (pp. 776–779). Edinburgh.
  3. Cardoso, J.-F. (1998). Blind signal separation: statistical principles. Proceedings of the IEEE, 86(10), 2009–2025.
  4. Comon, P. (1994). Independent component analysis, a new concept? Signal Processing, 36(3), 287–314.
  5. Golub, G. H., & Van Loan, C. F. (2013). Matrix Computations (4th ed.). Johns Hopkins University Press.
  6. Hyvärinen, A., Karhunen, J., & Oja, E. (2001). Independent Component Analysis. Wiley.
  7. Kessy, A., Lewin, A., & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician, 72(4), 309–314.
  8. Marčenko, V. A., & Pastur, L. A. (1967). Distribution of eigenvalues for some sets of random matrices. Mathematics of the USSR-Sbornik, 1(4), 457–483.
  9. Tipping, M. E., & Bishop, C. M. (1999). Probabilistic principal component analysis. Journal of the Royal Statistical Society: Series B, 61(3), 611–622.