<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=86.160.166.9</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=86.160.166.9"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/86.160.166.9"/>
	<updated>2026-08-08T21:21:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Burton_Wold_Wind_Farm&amp;diff=21489</id>
		<title>Burton Wold Wind Farm</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Burton_Wold_Wind_Farm&amp;diff=21489"/>
		<updated>2013-07-11T08:49:25Z</updated>

		<summary type="html">&lt;p&gt;86.160.166.9: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In [[statistics]], the &#039;&#039;&#039;hat matrix&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;H&#039;&#039;&#039;&#039;&#039;, sometimes also called &#039;&#039;&#039;projection matrix&#039;&#039;&#039;, maps the vector of [[observed value]]s to the vector of [[fitted value]]s. It describes the influence each observed value has on each fitted value.&amp;lt;ref name=&amp;quot;Hoaglin1977&amp;quot;&amp;gt;&lt;br /&gt;
{{Citation&lt;br /&gt;
| title = The Hat Matrix in Regression and ANOVA &lt;br /&gt;
| first1= David C. | last1= Hoaglin&lt;br /&gt;
|first2= Roy E. | last2=Welsch &lt;br /&gt;
|journal= [[The American Statistician]]&lt;br /&gt;
| volume=32 | month=February| year= 1978| pages=17&amp;amp;ndash;22 &lt;br /&gt;
| doi = 10.2307/2683469 |issue=1| jstor = 2683469}}&lt;br /&gt;
&amp;lt;/ref&amp;gt; The diagonal elements of the hat matrix are the [[leverage (statistics)|leverage]]s, which describe the influence each observed value has on the fitted value for that same observation.&lt;br /&gt;
&lt;br /&gt;
If the vector of observed values is denoted by &#039;&#039;&#039;y&#039;&#039;&#039; and the vector of fitted values by &#039;&#039;&#039;ŷ&#039;&#039;&#039;, &lt;br /&gt;
:&amp;lt;math&amp;gt;\hat{\mathbf{y}} = H \mathbf{y}.&amp;lt;/math&amp;gt;&lt;br /&gt;
As &#039;&#039;&#039;ŷ&#039;&#039;&#039; is usually pronounced &amp;quot;y-hat&amp;quot;, the hat matrix is so named as it &amp;quot;puts a [[circumflex|hat]] on &#039;&#039;&#039;y&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Suppose that we wish to solve a [[linear model]] using [[linear least squares (mathematics)|linear least squares]]. The model can be written as &lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{y} = X \boldsymbol \beta  + \boldsymbol \varepsilon,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &#039;&#039;X&#039;&#039; is a matrix of [[explanatory variable]]s (the [[design matrix]]), &#039;&#039;&#039;&#039;&#039;β&#039;&#039;&#039;&#039;&#039; is a vector of unknown parameters to be estimated, and &#039;&#039;&#039;&#039;&#039;ε&#039;&#039;&#039;&#039;&#039; is the error vector.&lt;br /&gt;
&lt;br /&gt;
== Uncorrelated errors ==&lt;br /&gt;
For uncorrelated [[errors and residuals in statistics|errors]], the estimated parameters are&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\hat{\boldsymbol \beta} = \left(X^\top X \right)^{-1} X^\top \mathbf{y},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so the fitted values are&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\hat{\mathbf{y}} = X \hat{\boldsymbol \beta} = X \left(X^\top X \right)^{-1} X^\top \mathbf{y}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the hat matrix is given by&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;H = X \left(X^\top X \right)^{-1} X^\top.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the language of [[linear algebra]], the hat matrix is the [[orthogonal projection]] onto the [[column space]] of the design matrix &#039;&#039;X&#039;&#039;. (Note that &amp;lt;math&amp;gt;\left(X^\top X \right)^{-1} X^\top&amp;lt;/math&amp;gt; is the [[Moore–Penrose_pseudoinverse#Full_rank|pseudoinverse of X]].)&lt;br /&gt;
&lt;br /&gt;
The hat matrix corresponding to a [[linear model]] is [[symmetric matrix|symmetric]] and [[idempotent]], that is, &#039;&#039;H&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = &#039;&#039;H&#039;&#039;. However, this is not always the case; in [[local regression|locally weighted scatterplot smoothing (LOESS)]], for example, the hat matrix is in general neither symmetric nor idempotent.&lt;br /&gt;
&lt;br /&gt;
The formula for the vector of [[errors and residuals in statistics|residual]]s &#039;&#039;&#039;r&#039;&#039;&#039; can be expressed compactly using the hat matrix:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{r} = \mathbf{y} - \mathbf{\hat{y}} = \mathbf{y} - H \mathbf{y} = (I - H) \mathbf{y}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[covariance matrix]] of the residuals is therefore, by [[error propagation]], equal to &amp;lt;math&amp;gt;\left(I-H \right)^\top \Sigma\left(I-H \right) &amp;lt;/math&amp;gt;, where Σ is the covariance matrix of the errors (and by extension, the observations as well).  For the case of linear models with [[independent and identically distributed]] errors in which Σ = &#039;&#039;σ&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&#039;&#039;I&#039;&#039;, this reduces to (&#039;&#039;I&#039;&#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;&#039;&#039;H&#039;&#039;)&#039;&#039;σ&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.&amp;lt;ref name=&amp;quot;Hoaglin1977&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For [[linear models]], the [[trace (linear algebra)|trace]] of the hat matrix is equal to the [[rank (linear algebra)|rank]] of &#039;&#039;X&#039;&#039;, which is the number of independent parameters of the linear model. For other models such as LOESS that are still linear in the observations &#039;&#039;&#039;y&#039;&#039;&#039;, the hat matrix can be used to define the [[degrees of freedom (statistics)#Effective degrees of freedom|effective degrees of freedom]] of the model.&lt;br /&gt;
&lt;br /&gt;
The hat matrix has a number of useful algebraic properties.&amp;lt;ref&amp;gt;Gans, P. (1992) &#039;&#039;Data Fitting in the Chemical Sciences,&#039;&#039;, Wiley. ISBN 978-0-471-93412-7&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Draper, N.R., Smith, H. (1998) &#039;&#039;Applied Regression Analysis&#039;&#039;, Wiley. ISBN 0-471-17082-6 {{Please check ISBN|reason=Check digit (6) does not correspond to calculated figure.}}&amp;lt;/ref&amp;gt; Practical applications of the hat matrix in regression analysis include [[Leverage (statistics)|leverage]] and [[Cook&#039;s distance]], which are concerned with identifying observations which have a large effect on the results of a regression.&lt;br /&gt;
&lt;br /&gt;
==Correlated errors==&lt;br /&gt;
The above may be generalized to the case of correlated errors.  Suppose that the [[covariance matrix]] of the errors is Σ.  Then since &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \hat{\boldsymbol{\beta}} = \left(X^\top \Sigma^{-1} X \right)^{-1} X^\top \Sigma^{-1}\,\mathbf{y}, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the hat matrix is thus&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; H = X \left(X^\top \Sigma^{-1} X\right)^{-1} X^\top \Sigma^{-1}, \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and again it may be seen that &#039;&#039;H&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; =&amp;amp;nbsp;&#039;&#039;H&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Blockwise formula==&lt;br /&gt;
&lt;br /&gt;
Suppose the design matrix &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; can be decomposed by columns as &amp;lt;math&amp;gt;C = [A, B]&amp;lt;/math&amp;gt;. &lt;br /&gt;
Define the Hat operator as &amp;lt;math&amp;gt;H(X) = X \left(X^\top X \right)^{-1} X^\top&amp;lt;/math&amp;gt;. Similarly, define the residual operator as &amp;lt;math&amp;gt;M(X) = I - H(X)&amp;lt;/math&amp;gt;.&lt;br /&gt;
Then the Hat matrix of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; can be decomposed as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
H(C) = H(A) + H(M(A) B)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;ref&amp;gt;{{cite book|last=Rao|first=C. Radhakrishna|title=Linear Models and Generalizations|year=2008|publisher=Springer|location=Berlin|isbn=978-3-540-74226-5|pages=323|edition=3rd|coauthors=Toutenburg, Shalabh, Heumann}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a number of applications of such a partitioning. The classical application has &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; a column of all ones, which allows one to analyze the effects of adding an intercept term to a regression. Another use is in the fixed effects model, where &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is a large [[sparse matrix]] of the dummy variables for the fixed effect terms. One can use this partition to compute the hat matrix of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; without explicitly forming the matrix &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;, which might be too large to fit into computer memory.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Moore–Penrose pseudoinverse]]&lt;br /&gt;
*[[Studentized residuals]]&lt;br /&gt;
*[[Degrees of freedom (statistics)#Effective degrees of freedom|Effective degrees of freedom]]&lt;br /&gt;
*[[Idempotent matrix]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistical terminology]]&lt;br /&gt;
[[Category:Regression analysis]]&lt;br /&gt;
[[Category:Matrices]]&lt;/div&gt;</summary>
		<author><name>86.160.166.9</name></author>
	</entry>
</feed>