For a matrix \(M \in M_{m,n}\), a pseudoinverse or generalized inverse is a matrix \(M^+ \in M_{n,m}\) that has some properties analogous to the inverse of an invertible matrix.

Left and right inverses of full-rank matrices

Left inverse of an injective matrix is a generalized inverse whose composition with the matrix is the identity map on the domain: \(\forall M \in M^∗_{m,n}\), \(m \ge n\), \(\exists M^+ \in M^∗_{n,m}\): \(M^+ M = I_n\). Right inverse of a surjective matrix is a generalized inverse such that the composition of the matrix with it is the identity map on the codomain: \(\forall M \in M^∗_{m,n}\), \(m \le n\), \(\exists M^+ \in M^∗_{n,m}\): \(M M^+ = I_m\). Left and right inverses are symmetric concepts: if M is a left inverse of N, then N is a right inverse of M. Left/right inverse \(M^+\) of full-rank matrices are not unique for rectangular matrices: the set of left inverses of a matrix \(M \in M^∗_{m,n}\), m < n, is \([M^+] = \{(N^T M)^{-1} N^T : N \in M^∗_{m,n}, N^T M \in \text{GL}_n\}\); notice that the element is invariant under \(N \to N A\) where \(A \in \text{GL}_n\); \([M^+]\) is bijective to the Grassmann manifold \(G_{n,m}\) minus the measure-zero set of subspaces with vectors orthogonal to M. Therefore we can consider the left/right inverse as a correspondence: \((\cdot)^{+} \subset M_{m,n}^* \times M_{n,m}^*\).

Moore-Penrose inverse

Moore-Penrose inverse of an m-by-n matrix [@Moore1920; @Bjerhammar1951; @Penrose1955] is an n-by-m matrix that satisifes the following four Penrose equations [@Ben-Israel2003, Sec 1.1]: (1) \(M M^\dagger M = M\); (2) \(M^\dagger M M^\dagger = M^\dagger\); (3) \((M M^\dagger)^∗ = M M^\dagger\); and (4) \((M^\dagger M)^∗ = M^\dagger M\). Or equivalently, one that satisifes the following two equations: (1) \(M M^\dagger = P_{[M]}\); and (2) \(M^\dagger M = P_{[M^∗]}\), where \(P_{[M]}\) denotes the orthogonal projector onto the span of M.

Properties:

  • \(M^\dagger\) exists and is unique; or equivalently, \(\dagger: M_{m,n} \cong M_{n,m}\); and more specifically, \(\dagger: \mathcal{M}(k, m \times n) \cong \mathcal{M}(k, n \times m)\);
  • Involution: \((M^\dagger)^\dagger = M\).
  • Fixed points: \(M^\dagger = M\) if and only if M is an orthogonal projector; or equivalently, \(\dagger \cap \text{Id} = \mathcal{P}(k,n)\).
  • Representation: let \(M = V \Sigma W^∗\) be a compact SVD, then \(M^\dagger = W \Sigma^{\dagger} V^∗\).
  • Singular (of order one) at the rank-deficit boundary \(M_{m,n}^0 := M_{m,n} \setminus M_{m,n}^*\):
    • Consider \(m = n = 1\): \(x^\dagger = 1/x\) if \(x \ne 0\); \(x^\dagger = 0\) if \(x = 0\); the point \(x = 0\) is a pole of order one;
    • Without loss of generality, let \(M = \Sigma = \text{diag}_{m,n}(\sigma_1, \cdots, \sigma_r, 0, \cdots, 0)\). For any \(j \in \{r+1, \min(m, n)\}\), we can show that \(\|(\Sigma + \varepsilon e_j e_j^T)^\dagger\|_F^2 = \|\Sigma^\dagger\|_F^2 + \varepsilon^{-2}\). This is a direct generalization of the 1-dim case.

Relation with dual operator (Hermitian adjoint matrix):

  • \(M^\dagger\) equals \(M^∗\) with nonzero singular values replaced by their reciprocals: \(M^\dagger = W \Sigma^{\dagger} V^∗\), \(M^∗ = W \Sigma V^∗\).
  • \(M^\dagger\) and \(M^∗\) have the same fundamental subspaces: \(\text{ker}(M^\dagger) = \text{ker}(M^∗)\), \(\text{im}(M^\dagger) = \text{im}(M^∗)\).

Relation with matrix inverse:

  • If M is invertible, then \(M^\dagger = M^{-1}\); or equivalently, \(\dagger|_{\text{GL}_n} = (\cdot)^{-1}\).
  • If M has full rank, then \(M^\dagger \in [M^+]\); or equivalently, \(\dagger|_{M_{m,n}^*} \subset (\cdot)^{+}\).
  • If M has full column rank, then \(M^\dagger = (M^∗ M)^{-1} M^∗\), which is a left inverse: \(M^\dagger M = I\).
  • If M has full row rank, then \(M^\dagger = M^∗ (M M^∗)^{-1}\), which is a right inverse: \(M M^\dagger = I\).
  • A limit relation [@Strang2019, p. 132, eq. 20]: \(M^\dagger = \lim_{\delta \to 0} (M^T M + \delta^2 I)^{-1} M^T\).

Relation with linear equations / model fitting:

  • \(X^\dagger y\) is the minimum Euclidean norm solution to \(X \beta = y\), if \(y \in \text{im}(X)\).
  • \(X^\dagger y\) is the least squares solution to \(X \beta = y\), if \(y \notin \text{im}(X)\).

Operation equalities (see [@Petersen-Minka] for more):

  • It commutes with transposition and conjugation: \((M^T)^\dagger = (M^\dagger)^T\), \(\overline{M}^\dagger = \overline{M^\dagger}\).
  • \((M N)^\dagger = (M^\dagger M N)^\dagger (M N N^\dagger)^\dagger\).
  • Cases when \((M N)^\dagger = N^\dagger M^\dagger\): (1) M has full collum rank and N has full row rank; (2) \(N = M^∗\); or (3) \(N = M^T\).
  • A necessary condition for \((M N)^\dagger = N^\dagger M^\dagger\): \((M^\dagger M) (N N^\dagger) = (N N^\dagger) (M^\dagger M)\).
  • A, B, C have full rank \(\not\Rightarrow (A B C)^\dagger = C^\dagger B^\dagger A^\dagger\). For example, let \(c = (c_1, c_2)\), then \((e_1 e_2^T c)^\dagger = c_2^\dagger e_1^T\) and \(c^\dagger (e_2^T)^\dagger e_1^\dagger = (c_1^2+c_2^2)^\dagger c_2 e_1^T\), which are not equal as long as \(c_1, c_2 \ne 0\).
  • \(M^\dagger = (M^T M)^\dagger M^T\), \(M^\dagger = M^T (M M^T)^\dagger\); (can replace transpose with Hermitian conjugate).
  • Let \(P \in \mathcal{P}(k,m)\), then \((P M)^\dagger P = (P M)^\dagger\); let \(P \in \mathcal{P}(k,n)\), then \(P (M P)^\dagger = (M P)^\dagger\).

NOTE: The merit of the Moore-Penrose inverse is to extend the domain of the matrix inverse map from \(\text{GL}_n\) to \(M^∗_{m,n}\) and \(M_{m,n}^0\). A happy coincidence is that it also extends the compact representation \(A^{-1} b\) of the solution of a linear equation system, in the senses of minimum Euclidean norm and least squared error. As a generalization rather than a modification, it does not resolve the singularity of the inverse. This is illustrated in the following example.

The inverse of a matrix, \(M^{-1}\) may blow up (i.e., norm goes to infinity) and thus fails to exist, but its action on a vector, \(M^{-1} b\) can still be bounded as long as the vector stays in the range of the matrix. The limit is the action of the Moore-Penrose inverse, \(M^\dagger b\). While the Moore-Penrose inverse is well defined for singular matrices, the mapping is singular around them. So here the Moore-Penrose inverse is merely a stand-in for the undefined inverse, and the analytic behavior of the action, \(M^\dagger b\) is solely due to the relation that, \(b in \text{im}(M)\).

In fact, the Moore-Penrose inverse can be less well-behaved than the matrix inverse. On their common domain \(\text{GL}_n\), the two are identical, and the inverse is well-conditioned away from the boundary but ill-conditioned near the boundary. This property is inherited by the Moore-Penrose inverse on its subdomain \(M^∗_{m,n}\). On the subdomain \(M_{m,n}^0\), however, the Moore-Penrose inverse is singular: random small perturbations can cause arbitrarily large change in the result. Due to the singularity, numerical computation of the Moore-Penrose inverse always imposes an artificial boundary layer around \(M_{m,n}^0\), into which the mapping is constantly extended. Such a computational modification is still subject to a very large discontinuity across the boundary layer, and radius of the layer is arbitrary.

Misc

Resources:

  • [@Strang2019, pp. 125-126, 132-133];

🏷 Category=Algebra Category=Matrix Analysis