idempotent matrix
   HOME

TheInfoList



OR:

In
linear algebra Linear algebra is the branch of mathematics concerning linear equations such as: :a_1x_1+\cdots +a_nx_n=b, linear maps such as: :(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n, and their representations in vector spaces and through matrices. ...
, an idempotent matrix is a
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
which, when multiplied by itself, yields itself. That is, the matrix A is idempotent if and only if A^2 = A. For this product A^2 to be
defined A definition is a statement of the meaning of a term (a word, phrase, or other set of symbols). Definitions can be classified into two large categories: intensional definitions (which try to give the sense of a term), and extensional defini ...
, A must necessarily be a
square matrix In mathematics, a square matrix is a matrix with the same number of rows and columns. An ''n''-by-''n'' matrix is known as a square matrix of order Any two square matrices of the same order can be added and multiplied. Square matrices are often ...
. Viewed this way, idempotent matrices are
idempotent element Idempotence (, ) is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. The concept of idempotence arises in a number of pl ...
s of
matrix ring In abstract algebra, a matrix ring is a set of matrices with entries in a ring ''R'' that form a ring under matrix addition and matrix multiplication . The set of all matrices with entries in ''R'' is a matrix ring denoted M''n''(''R'')Lang, ''U ...
s.


Example

Examples of 2 \times 2 idempotent matrices are: \begin 1 & 0 \\ 0 & 1 \end \qquad \begin 3 & -6 \\ 1 & -2 \end Examples of 3 \times 3 idempotent matrices are: \begin 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end \qquad \begin 2 & -2 & -4 \\ -1 & 3 & 4 \\ 1 & -2 & -3 \end


Real 2 × 2 case

If a matrix \begina & b \\ c & d \end is idempotent, then * a = a^2 + bc, * b = ab + bd, implying b(1 - a - d) = 0 so b = 0 or d = 1 - a, * c = ca + cd, implying c(1 - a - d) = 0 so c = 0 or d = 1 - a, * d = bc + d^2. Thus a necessary condition for a 2 × 2 matrix to be idempotent is that either it is
diagonal In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. The word ''diagonal'' derives from the ancient Greek δ ...
or its
trace Trace may refer to: Arts and entertainment Music * ''Trace'' (Son Volt album), 1995 * ''Trace'' (Died Pretty album), 1993 * Trace (band), a Dutch progressive rock band * ''The Trace'' (album) Other uses in arts and entertainment * ''Trace'' ...
equals 1. For idempotent diagonal matrices, a and d must be either 1 or 0. If b=c, the matrix \begina & b \\ b & 1 - a \end will be idempotent provided a^2 + b^2 = a , so ''a'' satisfies the
quadratic equation In algebra, a quadratic equation () is any equation that can be rearranged in standard form as ax^2 + bx + c = 0\,, where represents an unknown (mathematics), unknown value, and , , and represent known numbers, where . (If and then the equati ...
:a^2 - a + b^2 = 0 , or \left(a - \frac\right)^2 + b^2 = \frac which is a
circle A circle is a shape consisting of all points in a plane that are at a given distance from a given point, the centre. Equivalently, it is the curve traced out by a point that moves in a plane so that its distance from a given point is const ...
with center (1/2, 0) and radius 1/2. In terms of an angle θ, :A = \frac\begin1 - \cos\theta & \sin\theta \\ \sin\theta & 1 + \cos\theta \end is idempotent. However, b=c is not a necessary condition: any matrix :\begina & b \\ c & 1 - a\end with a^2 + bc = a is idempotent.


Properties


Singularity and regularity

The only non-
singular Singular may refer to: * Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms * Singular homology * SINGULAR, an open source Computer Algebra System (CAS) * Singular or sounder, a group of boar, ...
idempotent matrix is the
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. Terminology and notation The identity matrix is often denoted by I_n, or simply by I if the size is immaterial o ...
; 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 A^2 = A, assuming that has full rank (is non-singular), and pre-multiplying by A^ to obtain A = IA = A^A^2 = A^A = I. When an idempotent matrix is subtracted from the identity matrix, the result is also idempotent. This holds since :(I-A)(I-A) = I-A-A+A^2 = I-A-A+A = I-A. If a matrix is idempotent then for all positive integers n, A^n = A. This can be shown using proof by induction. Clearly we have the result for n = 1, as A^1 = A. Suppose that A^ = A. Then, A^k = A^A = AA = A, since is idempotent. Hence by the principle of induction, the result follows.


Eigenvalues

An idempotent matrix is always
diagonalizable In linear algebra, a square matrix A is called diagonalizable or non-defective if it is similar to a diagonal matrix, i.e., if there exists an invertible matrix P and a diagonal matrix D such that or equivalently (Such D are not unique.) F ...
. Its
eigenvalue In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denoted b ...
s are either 0 or 1: if \mathbf is a non-zero eigenvector of some idempotent matrix A and \lambda its associated eigenvalue, then \lambda \mathbf = A \mathbf = A^2\mathbf = A \lambda \mathbf = \lambda A \mathbf = \lambda^2 \mathbf , which implies \lambda \in \ . This further implies that the
determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if and ...
of an idempotent matrix is always 0 or 1. As stated above is the determinant equal to one, the matrix is
invertible In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers. Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that is ...
and therefore the
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. Terminology and notation The identity matrix is often denoted by I_n, or simply by I if the size is immaterial o ...
.


Trace

The
trace Trace may refer to: Arts and entertainment Music * ''Trace'' (Son Volt album), 1995 * ''Trace'' (Died Pretty album), 1993 * Trace (band), a Dutch progressive rock band * ''The Trace'' (album) Other uses in arts and entertainment * ''Trace'' ...
of an idempotent matrix — the sum of the elements on its main diagonal — equals the
rank Rank is the relative position, value, worth, complexity, power, importance, authority, level, etc. of a person or object within a ranking, such as: Level or position in a hierarchical organization * Academic rank * Diplomatic rank * Hierarchy * H ...
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 Statistics (from German language, German: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
, for example, in establishing the degree of
bias Bias is a disproportionate weight ''in favor of'' or ''against'' an idea or thing, usually in a way that is closed-minded, prejudicial, or unfair. Biases can be innate or learned. People may develop biases for or against an individual, a group, ...
in using a
sample variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbers ...
as an estimate of a
population variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of number ...
).


Relationships between idempotent matrices

In regression analysis, the matrix M = I - X(X'X)^ X' is known to produce the residuals e from the regression of the vector of dependent variables y on the matrix of covariates X. (See the section on Applications.) Now, let X_1 be a matrix formed from a subset of the columns of X, and let M_1 = I - X_1 (X_1'X_1)^X_1'. It is easy to show that both M and M_1 are idempotent, but a somewhat surprising fact is that M M_1 = M. This is because M X_1 = 0, or in other words, the residuals from the regression of the columns of X_1 on X are 0 since X_1 can be perfectly interpolated as it is a subset of X (by direct substitution it is also straightforward to show that M X = 0). This leads to two other important results: one is that (M_1 - M) is symmetric and idempotent, and the other is that (M_1 - M) M = 0, i.e., (M_1 - M) is orthogonal to M. 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 In mathematics, an ordered basis of a vector space of finite dimension allows representing uniquely any element of the vector space by a coordinate vector, which is a sequence of scalars called coordinates. If two different bases are considere ...
. This can be shown through multiplication of the transformed matrix S A S^ with A being idempotent: (S A S^)^2 =(S A S^)(S A S^) = S A (S^S) A S^ = S A^2 S^ = S A S^ .


Applications

Idempotent matrices arise frequently in
regression analysis In statistical modeling, regression analysis is a set of statistical processes for estimating the relationships between a dependent variable (often called the 'outcome' or 'response' variable, or a 'label' in machine learning parlance) and one ...
and
econometrics Econometrics is the application of Statistics, statistical methods to economic data in order to give Empirical evidence, empirical content to economic relationships.M. Hashem Pesaran (1987). "Econometrics," ''The New Palgrave: A Dictionary of ...
. For example, in
ordinary least squares In statistics, ordinary least squares (OLS) is a type of linear least squares method for choosing the unknown parameters in a linear regression model (with fixed level-one effects of a linear function of a set of explanatory variables) by the prin ...
, the regression problem is to choose a vector of coefficient estimates so as to minimize the sum of squared residuals (mispredictions) ''e''''i'': in matrix form, : Minimize (y - X\beta)^\textsf(y - X\beta) where y is a vector of
dependent variable Dependent and independent variables are variables in mathematical modeling, statistical modeling and experimental sciences. Dependent variables receive this name because, in an experiment, their values are studied under the supposition or demand ...
observations, and X is a matrix each of whose columns is a column of observations on one of the
independent variables Dependent and independent variables are variables in mathematical modeling, statistical modeling and experimental sciences. Dependent variables receive this name because, in an experiment, their values are studied under the supposition or deman ...
. The resulting estimator is :\hat\beta = \left(X^\textsfX\right)^X^\textsfy where superscript ''T'' indicates a
transpose In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix by producing another matrix, often denoted by (among other notations). The tr ...
, and the vector of residuals is : \hat = y - X \hat\beta = y - X\left(X^\textsfX\right)^X^\textsfy = \left - X\left(X^\textsfX\right)^X^\textsf\right = My. Here both M and X\left(X^\textsfX\right)^X^\textsf(the latter being known as the
hat matrix In statistics, the projection matrix (\mathbf), sometimes also called the influence matrix or hat matrix (\mathbf), maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values). It describes t ...
) are idempotent and symmetric matrices, a fact which allows simplification when the sum of squared residuals is computed: :\hat^\textsf\hat = (My)^\textsf(My) = y^\textsfM^\textsfMy = y^\textsfMMy = y^\textsfMy. The idempotency of M plays a role in other calculations as well, such as in determining the variance of the estimator \hat. An idempotent linear operator P is a projection operator on the range space along its
null space In mathematics, the kernel of a linear map, also known as the null space or nullspace, is the linear subspace of the Domain of a function, domain of the map which is mapped to the zero vector. That is, given a linear map between two vector space ...
. P is an
orthogonal projection In linear algebra and functional analysis, a projection is a linear transformation P from a vector space to itself (an endomorphism) such that P\circ P=P. That is, whenever P is applied twice to any vector, it gives the same result as if it wer ...
operator if and only if it is idempotent and
symmetric Symmetry (from grc, συμμετρία "agreement in dimensions, due proportion, arrangement") in everyday language refers to a sense of harmonious and beautiful proportion and balance. In mathematics, "symmetry" has a more precise definiti ...
.


See also

*
Idempotence Idempotence (, ) is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. The concept of idempotence arises in a number of pl ...
*
Nilpotent In mathematics, an element x of a ring R is called nilpotent if there exists some positive integer n, called the index (or sometimes the degree), such that x^n=0. The term was introduced by Benjamin Peirce in the context of his work on the class ...
*
Projection (linear algebra) In linear algebra and functional analysis, a projection is a linear transformation P from a vector space to itself (an endomorphism) such that P\circ P=P. That is, whenever P is applied twice to any vector, it gives the same result as if it wer ...
*
Hat matrix In statistics, the projection matrix (\mathbf), sometimes also called the influence matrix or hat matrix (\mathbf), maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values). It describes t ...


References

{{Matrix classes Algebra Regression analysis Matrices