GO-V.ORG
As seen in

Projection matrix

In statistics, the projection matrix (\mathbf{P}) , sometimes also called the influence matrix or hat matrix (\mathbf{H}) , maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values).[src] It describes the influence each response value has on each fitted value.[src] The diagonal elements of the projection matrix are the leverages, which describe the influence each response value has on the fitted value for that same observation.[src]

In statistics, the projection matrix (\mathbf{P}) , sometimes also called the influence matrix or hat matrix (\mathbf{H}) , maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values).[src] It describes the influence each response value has on each fitted value.[src] The diagonal elements of the projection matrix are the leverages, which describe the influence each response value has on the fitted value for that same observation.[src] ==Definition== If the vector of response values is denoted by \mathbf{y} and the vector of fitted values by \mathbf{\hat{y}} , \mathbf{\hat{y}} = \mathbf{P} \mathbf{y}.[src] As \mathbf{\hat{y}} is usually pronounced "y-hat", the projection matrix \mathbf{P} is also named hat matrix as it "puts a hat on \mathbf{y} ".[src] ==Application for residuals== The formula for the vector of residuals \mathbf{r} can also be expressed compactly using the projection matrix: \mathbf{r} = \mathbf{y} - \mathbf{\hat{y}} = \mathbf{y} - \mathbf{P} \mathbf{y} = \left( \mathbf{I} - \mathbf{P} \right) \mathbf{y}.[src] where \mathbf{I} is the identity matrix.[src] The matrix \mathbf{M} := \mathbf{I} - \mathbf{P} is sometimes referred to as the residual maker matrix or the annihilator matrix.[src] The covariance matrix of the residuals \mathbf{r} , by error propagation, equals \mathbf{\Sigma}_\mathbf{r} = \left( \mathbf{I} - \mathbf{P} \right)^\textsf{T} \mathbf{\Sigma} \left( \mathbf{I}-\mathbf{P} \right) , where \mathbf{\Sigma} is the covariance matrix of the error vector (and by extension, the response vector as well).[src] For the case of linear models with independent and identically distributed errors in which \mathbf{\Sigma} = \sigma^{2} \mathbf{I} , this reduces to: \mathbf{\Sigma}_\mathbf{r} = \left( \mathbf{I} - \mathbf{P} \right) \sigma^{2} .[src] ==Intuition== From the figure, it is clear that the closest point from the vector \mathbf{b} onto the column space of \mathbf{A} , is \mathbf{Ax} , and is one where we can draw a line orthogonal to the column space of \mathbf{A} .[src] A vector that is orthogonal to the column space of a matrix is in the nullspace of the matrix transpose, so \mathbf{A}^\textsf{T}(\mathbf{b}-\mathbf{Ax}) = 0 .[src] From there, one rearranges, so \begin{align} && \mathbf{A}^\textsf{T}\mathbf{b} &- \mathbf{A}^\textsf{T}\mathbf{Ax} = 0 \\ \Rightarrow && \mathbf{A}^\textsf{T}\mathbf{b} &= \mathbf{A}^\textsf{T}\mathbf{Ax} \\ \Rightarrow && \mathbf{x} &= \left(\mathbf{A}^\textsf{T}\mathbf{A}\right)^{-1}\mathbf{A}^\textsf{T}\mathbf{b} \end{align} .[src] Therefore, since \mathbf{Ax} is on the column space of \mathbf{A} , the projection matrix, which maps \mathbf{b} onto \mathbf{A}\mathbf{x} , is \mathbf{A}\left(\mathbf{A}^\textsf{T}\mathbf{A}\right)^{-1}\mathbf{A}^\textsf{T} .[src] \mathbf{y} = \mathbf{X} \boldsymbol\beta + \boldsymbol\varepsilon, where \mathbf{X} is a matrix of explanatory variables (the design matrix), β is a vector of unknown parameters to be estimated, and ε is the error vector.[src] Many types of models and techniques are subject to this formulation.[src] A few examples are linear least squares, smoothing splines, regression splines, local regression, kernel regression, and linear filtering.[src] \hat{\boldsymbol\beta} = \left( \mathbf{X}^\textsf{T} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T} \mathbf{y}, so the fitted values are \hat{\mathbf{y}} = \mathbf{X} \hat{\boldsymbol \beta} = \mathbf{X} \left( \mathbf{X}^\textsf{T} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T} \mathbf{y}.[src] Therefore, the projection matrix (and hat matrix) is given by \mathbf{P} := \mathbf{X} \left(\mathbf{X}^\textsf{T} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T}.[src] \hat{\mathbf\beta}_{\text{GLS}}= \left( \mathbf{X}^\textsf{T} \mathbf{\Sigma}^{-1} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T} \mathbf{\Sigma}^{-1}\mathbf{y} .[src] the hat matrix is thus \mathbf{H} = \mathbf{X}\left( \mathbf{X}^\textsf{T} \mathbf{\Sigma}^{-1} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T} \mathbf{\Sigma}^{-1} and again it may be seen that H^2 = H\cdot H = H , though now it is no longer symmetric.[src] \mathbf{u} = (\mathbf{I} - \mathbf{P})\mathbf{y}, and \mathbf{u} = \mathbf{y} - \mathbf{P} \mathbf{y} \perp \mathbf{X}.[src] \mathbf{P} is symmetric, and so is \mathbf{M} := \mathbf{I} - \mathbf{P} .[src] \mathbf{P} is idempotent: \mathbf{P}^2 = \mathbf{P} , and so is \mathbf{M} .[src] If \mathbf{X} is an matrix with \operatorname{rank}(\mathbf{X}) = r , then \operatorname{rank}(\mathbf{P}) = r The eigenvalues of \mathbf{P} consist of r ones and zeros, while the eigenvalues of \mathbf{M} consist of ones and r zeros.[src] \mathbf{X} is invariant under \mathbf{P} : \mathbf{P X} = \mathbf{X}, hence \left( \mathbf{I} - \mathbf{P} \right) \mathbf{X} = \mathbf{0} .[src] \left( \mathbf{I} - \mathbf{P} \right) \mathbf{P} = \mathbf{P} \left( \mathbf{I} - \mathbf{P} \right) = \mathbf{0}.[src] \mathbf{P} is unique for certain subspaces.[src] The projection matrix corresponding to a linear model is symmetric and idempotent, that is, \mathbf{P}^2 = \mathbf{P} .[src] However, this is not always the case; in locally weighted scatterplot smoothing (LOESS), for example, the hat matrix is in general neither symmetric nor idempotent.[src] For linear models, the trace of the projection matrix is equal to the rank of \mathbf{X} , which is the number of independent parameters of the linear model.[src] For other models such as LOESS that are still linear in the observations \mathbf{y} , the projection matrix can be used to define the effective degrees of freedom of the model.[src] Practical applications of the projection matrix in regression analysis include leverage and Cook's distance, which are concerned with identifying influential observations, i.e.[src] observations which have a large effect on the results of a regression.[src] Suppose the design matrix \mathbf{X} can be decomposed by columns as \mathbf{X} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \end{bmatrix} .[src] Define the hat or projection operator as \mathbf{P}[\mathbf{X}] := \mathbf{X} \left(\mathbf{X}^\textsf{T} \mathbf{X} \right)^{-1} \mathbf{X}^\textsf{T} .[src] Similarly, define the residual operator as \mathbf{M}[\mathbf{X}] := \mathbf{I} - \mathbf{P}[\mathbf{X}] .[src] Then the projection matrix can be decomposed as follows: \mathbf{P}[\mathbf{X}] = \mathbf{P}[\mathbf{A}] + \mathbf{P}\big[\mathbf{M}[\mathbf{A}] \mathbf{B}\big], where, e.g., \mathbf{P}[\mathbf{A}] = \mathbf{A} \left(\mathbf{A}^\textsf{T} \mathbf{A} \right)^{-1} \mathbf{A}^\textsf{T} and \mathbf{M}[\mathbf{A}] = \mathbf{I} - \mathbf{P}[\mathbf{A}] .[src] There are a number of applications of such a decomposition.[src] In the classical application \mathbf{A} is a column of all ones, which allows one to analyze the effects of adding an intercept term to a regression.[src] Another use is in the fixed effects model, where \mathbf{A} is a large sparse matrix of the dummy variables for the fixed effect terms.[src] One can use this partition to compute the hat matrix of \mathbf{X} without explicitly forming the matrix \mathbf{X} , which might be too large to fit into computer memory.[src] ==History== The term "hat matrix" was first documented in 1978 by David C.[src] Hoaglin and Roy E.[src] Welsch, who examined the properties of the matrix and provided examples of its application.[src] Hoaglin and Welsch credit John Tukey for coining the term.[src]

49 sentences · 49 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Projection matrix." encyclopegia.org, 2026, https://encyclopegia.org/wiki/projection-matrix. Accessed 05 December 2026.

Chicago

"Projection matrix." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/projection-matrix.

APA

encyclopegia.org. (2026). Projection matrix. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/projection-matrix

Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376786792 · 0.5 · snapshot enwiki-001376786792

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.