Linear Modelingmedium
0:00.0

In a simple linear regression model with nn observations, the hat matrix H=X(XTX)1XTH = X(X^T X)^{-1} X^T projects the observed response vector yy onto the space of the predictors to produce the fitted values y^\hat{y}. What is the sum of the diagonal entries hiih_{ii} of this hat matrix?