Projection, Fitted Values, and Leverage
The fitted-value operator
In a full-rank linear regression with design matrix X, the least-squares fitted vector is y-hat = Hy, where H = X(X′X)−1X′. This matrix is called the hat matrix because it puts a hat on y. It projects y onto the column space of X, the set of response patterns the model can represent.
Projection leaves diagnostic fingerprints
Because H is an orthogonal projection, it is symmetric and idempotent: H′ = H and H2 = H. Its rank and trace equal the number of estimable model coefficients. The residual vector e = (I − H)y is orthogonal to every column of X, which is the matrix statement of the normal equations.
Leverage is about predictors
The diagonal value hii is an X-determined self-sensitivity quantity: it is the weight on yi in its own fitted value. A numerical hii alone cannot label a predictor pattern unusual; interpret it against p/n and the full set of leverage values.
It does not measure whether that response is large, whether the residual is large, or whether the observation is necessarily influential. Influence requires leverage and a response discrepancy together.
In a regression with an intercept and several predictors, observation 17 has h17,17 = 0.62. Which interpretation is justified from this value alone?
A linear model has four estimable coefficients, including its intercept. Which total of the diagonal hat values is required?