All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Ordinary least squares, hat matrix?

Also known as: ordinary least squares · hat matrix

Definition 16.1 Quantitative Methods · Chapter 16 — Linear Models under Stress

For y∈Rny \in \R^n and a full-rank design X∈Rn×kX \in \R^{n \times k}, ordinary least squares (OLS) chooses β^=(X⊤X)−1X⊤y\hat\beta = (X^\top X)^{-1}X^\top y, the minimiser of ∣y−Xβ∣2\lvert y - X\beta\rvert^2. The fitted values are y^=Hy\hat y = Hy with the hat matrix H=X(X⊤X)−1X⊤H = X(X^\top X)^{-1}X^\top, the orthogonal projection onto the column space of XX; its diagonal entries hiih_{ii}, which sum to kk, are the leverages of the observations.

Read in context →