Linear Modelinghard
0:00.0

In the context of the Hat Matrix H=X(XTX)1XTH = X(X^TX)^{-1}X^T, what is the sum of the diagonal elements (the trace of HH)?