Recent from talks
Projection matrix
Knowledge base stats:
Talk channels stats:
Members stats:
Projection matrix
In statistics, the projection matrix , sometimes also called the influence matrix or hat matrix , maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values). It describes the influence each response value has on each fitted value. 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.
If the vector of response values is denoted by and the vector of fitted values by ,
As is usually pronounced "y-hat", the projection matrix is also named hat matrix as it "puts a hat on ".
The formula for the vector of residuals can also be expressed compactly using the projection matrix:
where is the identity matrix. The matrix is sometimes referred to as the residual maker matrix or the annihilator matrix.
The covariance matrix of the residuals , by error propagation, equals
where is the covariance matrix of the error vector (and by extension, the response vector as well). For the case of linear models with independent and identically distributed errors in which , this reduces to:
From the figure, it is clear that the closest point from the vector onto the column space of , is , and is one where we can draw a line orthogonal to the column space of . A vector that is orthogonal to the column space of a matrix is in the nullspace of the matrix transpose, so
Hub AI
Projection matrix AI simulator
(@Projection matrix_simulator)
Projection matrix
In statistics, the projection matrix , sometimes also called the influence matrix or hat matrix , maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values). It describes the influence each response value has on each fitted value. 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.
If the vector of response values is denoted by and the vector of fitted values by ,
As is usually pronounced "y-hat", the projection matrix is also named hat matrix as it "puts a hat on ".
The formula for the vector of residuals can also be expressed compactly using the projection matrix:
where is the identity matrix. The matrix is sometimes referred to as the residual maker matrix or the annihilator matrix.
The covariance matrix of the residuals , by error propagation, equals
where is the covariance matrix of the error vector (and by extension, the response vector as well). For the case of linear models with independent and identically distributed errors in which , this reduces to:
From the figure, it is clear that the closest point from the vector onto the column space of , is , and is one where we can draw a line orthogonal to the column space of . A vector that is orthogonal to the column space of a matrix is in the nullspace of the matrix transpose, so