The hat matrix, H, is used in statistics to relate errors in residuals to experimental errors. Suppose that a linear least squares problem is being addressed. The model can be written as
where J is a matrix of coefficients and p is a vector of parameters. The solution to the un-weighted least-squares equations is given by
The vector of un-weighted residuals, r, is given by
The matrix is known as the hat matrix. Thus, the residuals can be expressed simply as
The variance-covariance matrix of the residuals is, by error propagation, equal to , where M is the variance-covariance matrix of the observations.
The hat matrix is idempotent, that is, . Some other useful properties of the hat matrix are summarized in [1]
See also
References
- ^ P. Gans, Data Fitting in the Chemical Sciences,, Wiley, 1992.