Lecture 16: Projection matrices and least squares