Content deleted Content added
m Fixed awkwardly fitted parentheses |
Fgnievinski (talk | contribs) |
||
Line 5:
If the vector of [[Response variable|response values]] is denoted by <math>\mathbf{y}</math> and the vector of fitted values by <math>\mathbf{\hat{y}}</math>,
:<math>\mathbf{\hat{y}} = \mathbf{P} \mathbf{y}.</math>
As <math>\mathbf{\hat{y}}</math> is usually pronounced "y-hat", the projection matrix is also named ''hat matrix'' as it "puts a [[circumflex|hat]] on <math>\mathbf{y}</math>". The formula for the vector of [[errors and residuals in statistics|residual]]s <math>\mathbf{
:<math>\mathbf{
where <math>\mathbf{I}</math> is the [[identity matrix]]. The matrix <math>\mathbf{M} \equiv \left( \mathbf{I} - \mathbf{P} \right)</math> is sometimes referred to as the '''residual maker matrix'''. Moreover, the element in the ''i''th row and ''j''th column of <math>\mathbf{P}</math> is equal to the [[covariance]] between the ''j''th response value and the ''i''th fitted value, divided by the [[variance]] of the former:
:<math>
Line 13:
\end{align}
</math>
Therefore, the [[covariance matrix]] of the residuals <math>\mathbf{
:<math>\mathbf{\Sigma}_\mathbf{
where <math>\mathbf{\Sigma}</matH> 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 <math>\mathbf{\Sigma} = \sigma^{2} \mathbf{I}</math>, this reduces to:<ref name="Hoaglin1977"/>
:<math>\mathbf{\Sigma}_\mathbf{
== Linear model ==
|