Idempotent matrix
In linear algebra, an idempotent matrix is a matrix which, when multiplied by itself, yields itself.[1][2] That is, the matrix [math]\displaystyle{ A }[/math] is idempotent if and only if [math]\displaystyle{ A^2 = A }[/math]. For this product [math]\displaystyle{ A^2 }[/math] to be defined, [math]\displaystyle{ A }[/math] must necessarily be a square matrix. Viewed this way, idempotent matrices are idempotent elements of matrix rings.
Example
Examples of [math]\displaystyle{ 2 \times 2 }[/math] idempotent matrices are: [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \qquad \begin{bmatrix} 3 & -6 \\ 1 & -2 \end{bmatrix} }[/math]
Examples of [math]\displaystyle{ 3 \times 3 }[/math] idempotent matrices are: [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \qquad \begin{bmatrix} 2 & -2 & -4 \\ -1 & 3 & 4 \\ 1 & -2 & -3 \end{bmatrix} }[/math]
Real 2 × 2 case
If a matrix [math]\displaystyle{ \begin{pmatrix}a & b \\ c & d \end{pmatrix} }[/math] is idempotent, then
- [math]\displaystyle{ a = a^2 + bc, }[/math]
- [math]\displaystyle{ b = ab + bd, }[/math] implying [math]\displaystyle{ b(1 - a - d) = 0 }[/math] so [math]\displaystyle{ b = 0 }[/math] or [math]\displaystyle{ d = 1 - a, }[/math]
- [math]\displaystyle{ c = ca + cd, }[/math] implying [math]\displaystyle{ c(1 - a - d) = 0 }[/math] so [math]\displaystyle{ c = 0 }[/math] or [math]\displaystyle{ d = 1 - a, }[/math]
- [math]\displaystyle{ d = bc + d^2. }[/math]
Thus, a necessary condition for a [math]\displaystyle{ 2\times2 }[/math] matrix to be idempotent is that either it is diagonal or its trace equals 1. For idempotent diagonal matrices, [math]\displaystyle{ a }[/math] and [math]\displaystyle{ d }[/math] must be either 1 or 0.
If [math]\displaystyle{ b=c }[/math], the matrix [math]\displaystyle{ \begin{pmatrix}a & b \\ b & 1 - a \end{pmatrix} }[/math] will be idempotent provided [math]\displaystyle{ a^2 + b^2 = a , }[/math] so a satisfies the quadratic equation
- [math]\displaystyle{ a^2 - a + b^2 = 0 , }[/math] or [math]\displaystyle{ \left(a - \frac{1}{2}\right)^2 + b^2 = \frac{1}{4} }[/math]
which is a circle with center (1/2, 0) and radius 1/2. In terms of an angle θ,
- [math]\displaystyle{ A = \frac{1}{2}\begin{pmatrix}1 - \cos\theta & \sin\theta \\ \sin\theta & 1 + \cos\theta \end{pmatrix} }[/math] is idempotent.
However, [math]\displaystyle{ b=c }[/math] is not a necessary condition: any matrix
- [math]\displaystyle{ \begin{pmatrix}a & b \\ c & 1 - a\end{pmatrix} }[/math] with [math]\displaystyle{ a^2 + bc = a }[/math] is idempotent.
Properties
Singularity and regularity
The only non-singular idempotent matrix is the identity matrix; that is, if a non-identity matrix is idempotent, its number of independent rows (and columns) is less than its number of rows (and columns).
This can be seen from writing [math]\displaystyle{ A^2 = A }[/math], assuming that A has full rank (is non-singular), and pre-multiplying by [math]\displaystyle{ A^{-1} }[/math] to obtain [math]\displaystyle{ A = IA = A^{-1}A^2 = A^{-1}A = I }[/math].
When an idempotent matrix is subtracted from the identity matrix, the result is also idempotent. This holds since
- [math]\displaystyle{ (I-A)(I-A) = I-A-A+A^2 = I-A-A+A = I-A. }[/math]
If a matrix A is idempotent then for all positive integers n, [math]\displaystyle{ A^n = A }[/math]. This can be shown using proof by induction. Clearly we have the result for [math]\displaystyle{ n = 1 }[/math], as [math]\displaystyle{ A^1 = A }[/math]. Suppose that [math]\displaystyle{ A^{k-1} = A }[/math]. Then, [math]\displaystyle{ A^k = A^{k-1}A = AA = A }[/math], since A is idempotent. Hence by the principle of induction, the result follows.
Eigenvalues
An idempotent matrix is always diagonalizable.[3] Its eigenvalues are either 0 or 1: if [math]\displaystyle{ \mathbf{x} }[/math] is a non-zero eigenvector of some idempotent matrix [math]\displaystyle{ A }[/math] and [math]\displaystyle{ \lambda }[/math] its associated eigenvalue, then [math]\displaystyle{ \lambda \mathbf{x} = A \mathbf{x} = A^2\mathbf{x} = A \lambda \mathbf{x} = \lambda A \mathbf{x} = \lambda^2 \mathbf{x} , }[/math] which implies [math]\displaystyle{ \lambda \in \{ 0, 1 \} . }[/math] This further implies that the determinant of an idempotent matrix is always 0 or 1. As stated above, if the determinant is equal to one, the matrix is invertible and is therefore the identity matrix.
Trace
The trace of an idempotent matrix — the sum of the elements on its main diagonal — equals the rank of the matrix and thus is always an integer. This provides an easy way of computing the rank, or alternatively an easy way of determining the trace of a matrix whose elements are not specifically known (which is helpful in statistics, for example, in establishing the degree of bias in using a sample variance as an estimate of a population variance).
Relationships between idempotent matrices
In regression analysis, the matrix [math]\displaystyle{ M = I - X(X'X)^{-1} X' }[/math] is known to produce the residuals [math]\displaystyle{ e }[/math] from the regression of the vector of dependent variables [math]\displaystyle{ y }[/math] on the matrix of covariates [math]\displaystyle{ X }[/math]. (See the section on Applications.) Now, let [math]\displaystyle{ X_1 }[/math] be a matrix formed from a subset of the columns of [math]\displaystyle{ X }[/math], and let [math]\displaystyle{ M_1 = I - X_1 (X_1'X_1)^{-1}X_1' }[/math]. It is easy to show that both [math]\displaystyle{ M }[/math] and [math]\displaystyle{ M_1 }[/math] are idempotent, but a somewhat surprising fact is that [math]\displaystyle{ M M_1 = M }[/math]. This is because [math]\displaystyle{ M X_1 = 0 }[/math], or in other words, the residuals from the regression of the columns of [math]\displaystyle{ X_1 }[/math] on [math]\displaystyle{ X }[/math] are 0 since [math]\displaystyle{ X_1 }[/math] can be perfectly interpolated as it is a subset of [math]\displaystyle{ X }[/math] (by direct substitution it is also straightforward to show that [math]\displaystyle{ M X = 0 }[/math]). This leads to two other important results: one is that [math]\displaystyle{ (M_1 - M) }[/math] is symmetric and idempotent, and the other is that [math]\displaystyle{ (M_1 - M) M = 0 }[/math], i.e., [math]\displaystyle{ (M_1 - M) }[/math] is orthogonal to [math]\displaystyle{ M }[/math]. These results play a key role, for example, in the derivation of the F test.
Any similar matrices of an idempotent matrix are also idempotent. Idempotency is conserved under a change of basis. This can be shown through multiplication of the transformed matrix [math]\displaystyle{ S A S^{-1} }[/math] with [math]\displaystyle{ A }[/math] being idempotent: [math]\displaystyle{ (S A S^{-1})^2 =(S A S^{-1})(S A S^{-1}) = S A (S^{-1}S) A S^{-1} = S A^2 S^{-1} = S A S^{-1} }[/math].
Applications
Idempotent matrices arise frequently in regression analysis and econometrics. For example, in ordinary least squares, the regression problem is to choose a vector β of coefficient estimates so as to minimize the sum of squared residuals (mispredictions) ei: in matrix form,
- Minimize [math]\displaystyle{ (y - X\beta)^\textsf{T}(y - X\beta) }[/math]
where [math]\displaystyle{ y }[/math] is a vector of dependent variable observations, and [math]\displaystyle{ X }[/math] is a matrix each of whose columns is a column of observations on one of the independent variables. The resulting estimator is
- [math]\displaystyle{ \hat\beta = \left(X^\textsf{T}X\right)^{-1}X^\textsf{T}y }[/math]
where superscript T indicates a transpose, and the vector of residuals is[2]
- [math]\displaystyle{ \hat{e} = y - X \hat\beta = y - X\left(X^\textsf{T}X\right)^{-1}X^\textsf{T}y = \left[I - X\left(X^\textsf{T}X\right)^{-1}X^\textsf{T}\right]y = My. }[/math]
Here both [math]\displaystyle{ M }[/math] and [math]\displaystyle{ X\left(X^\textsf{T}X\right)^{-1}X^\textsf{T} }[/math](the latter being known as the hat matrix) are idempotent and symmetric matrices, a fact which allows simplification when the sum of squared residuals is computed:
- [math]\displaystyle{ \hat{e}^\textsf{T}\hat{e} = (My)^\textsf{T}(My) = y^\textsf{T}M^\textsf{T}My = y^\textsf{T}MMy = y^\textsf{T}My. }[/math]
The idempotency of [math]\displaystyle{ M }[/math] plays a role in other calculations as well, such as in determining the variance of the estimator [math]\displaystyle{ \hat{\beta} }[/math].
An idempotent linear operator [math]\displaystyle{ P }[/math] is a projection operator on the range space [math]\displaystyle{ R(P) }[/math] along its null space [math]\displaystyle{ N(P) }[/math]. [math]\displaystyle{ P }[/math] is an orthogonal projection operator if and only if it is idempotent and symmetric.
See also
- Idempotence
- Nilpotent
- Projection (linear algebra)
- Hat matrix
References
- ↑ Chiang, Alpha C. (1984). Fundamental Methods of Mathematical Economics (3rd ed.). New York: McGraw–Hill. p. 80. ISBN 0070108137. https://archive.org/details/fundamentalmetho0000chia_b4p1/page/80.
- ↑ 2.0 2.1 Greene, William H. (2003). Econometric Analysis (5th ed.). Upper Saddle River, NJ: Prentice–Hall. pp. 808–809. ISBN 0130661899.
- ↑ Horn, Roger A.; Johnson, Charles R. (1990). Matrix analysis. Cambridge University Press. p. p. 148. ISBN 0521386322.
Original source: https://en.wikipedia.org/wiki/Idempotent matrix.
Read more |