Home7 2021f
Home7 2021f
Assignment 7 should be submitted online to d2l course shell, to the drop box “Assignment 7” (under Assess-
ment/Assignments/Assignments Folders). The assignment can be handwritting, but should be converted to
a pdf file. Late assignments are not acceptable.
3x − y = 4
(1) Find the least squares solution of the system: x + 2y = 0.
2x + y = 1
(2) (a) Let π be a plane with equation x − 2y + 2z = 0. Find the matrix P such that projπ (~u) = P ~u for
all ~u ∈ R3 .
1
(b) Find the projection of ~b = 1 onto the plane in (a) and verify that ~b − P~b is orthogonal to
1
every vector in the plane.
T
(3) (a) Let ~v ∈ Rn be a nonzero vector. Show that P = ~v~v~v·~v is a projection matrix.
(b) Let f~1 , f~2 , . . . , f~k be pairwise orthogonal nonzero vectors of Rn . Show that
f~1 f~1T f~2 f~2T f~k f~kT
P = + + ··· + is a projection matrix.
f~1 ·f~1 f~2 ·f~2 f~k ·f~k
(c) Show that the inverse of a projection matrix, when exists, is again a projection matrix.
(4) Find the equation of the line that best fits the following set of points in the sense of least squares:
(−1, 1), (0, 0), (1, 1), (2, 0), (3, −8).
(5) The average number g of goals per game scored by a hockey player seems to be related linearly two
factors: the number x1 of years of experience and the number x2 of goals in the preceding 10 games.
The accompanying data were collected on four players. Find the linear function g = a0 + a1 x1 + a2 x2
that best fits these data.
g x1 x2
0.8 5 3
0.8 3 4
0.6 1 5
0.4 2 1