Two vectors are orthogonal when their dot product is zero, u⋅v=0: they meet at a right angle. The length of u is ∥u∥=u⋅u. Orthogonality is what makes geometry computable: Pythagoras holds, ∥u+v∥2=∥u∥2+∥v∥2 when u⊥v, and uncorrelated returns are orthogonal once their means are removed.
p=a⋅aa⋅ba,(b−p)⋅a=0,P=aTaaaT(1)
The projection of b onto the line through a is its shadow p=ca, the closest point of the line to b. The leftover b−p is orthogonal to a, which fixes c=a⋅aa⋅b. A projection matrix P does this for every b: p=Pb, with PT=P and P2=P (projecting twice changes nothing). Its eigenvalues are only 0 and 1.
Projecting a pointProject b=(3,1) onto a=(1,1). Here a⋅b=4 and a⋅a=2, so c=2 and p=(2,2). The leftover is b−p=(1,−1) and indeed (1,1)⋅(1,−1)=0. The matrix is P=21(1111), and Pb=(2,2).
Orthogonal: u⋅v=0. Orthonormal: orthogonal and each of length 1.
Projection: the closest point of a subspace; the leftover is orthogonal to the subspace.
Orthonormal columns (QTQ=I) keep lengths and angles, so they never amplify errors.
Residuals are the part the regressors cannot explainIn a regression the fitted values are the projection of the data vector y onto the span of the regressors, and the residual is what is left, orthogonal to every regressor. That is why residuals have zero correlation with the factors in a fitted model, and why ∥y∥2=∥y^∥2+∥e∥2 splits the variance into explained and unexplained parts.
Lab · what's graded
The projection coefficient15 pts
A projection matrix20 pts
The size of the leftover15 pts
Properties of projection matrices15 pts
Spot the orthogonal pair10 pts
Residuals and regressors25 pts
0/ 6 answered
1Numeric answer15 ptsNot answered
Project b=(3,4) onto the line through a=(2,1), so p=ca. Find c.
c=accepted: ± 0.001
2Matrix · vector20 ptsNot answered
Fill in the matrix P=aTaaaT that projects onto the line through a=(1,1).
P=
3Numeric answer15 ptsNot answered
Projecting b=(3,1) onto a=(1,1) gives p=(2,2). What is the length ∥b−p∥ of the leftover? Give it to three decimals.
∥b−p∥=accepted: ± 0.001
4Choice15 ptsNot answered
Select all the properties that a projection matrix P onto a line in the plane has.
5Choice10 ptsNot answered
Which pair of vectors is orthogonal?
6Explain in words25 ptsNot answered
In two sentences, explain why the residual of a least squares fit is orthogonal to every regressor, and what that says about the fitted values.
Math modeKeyboard or LaTeX inputTask 1 of 6 · Ctrl ⏎ to check