Question: Let x i = (x i , y i ), i = 1, . . . , m, be a set of data points in
Let xi = (xi, yi), i = 1, . . . , m, be a set of data points in the plane. Suppose L∗ ⊂ R2 is the line that minimizes the sums of the squares of the distances from the data points to it, i.e.,
dist(xi, L), among all lines L ⊂ R2.
(a) Prove that x = (x, y) ∈ L∗.
(b) Use Exercise 8.8.11 to find L∗.
Data From Exercise 8.8.11
Show that the first principal direction q1 can be characterized as the direction of the line that minimizes the sums of the squares of its distances to the data points.
(c) Apply your result to the data points in Example 5.14 and compare the resulting line L∗ with the least squares line that was found there.

dist (x, L) = i=1
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
a To prove that a point x x y lies on the line L we need to show that the distance from x to L is ze... View full answer
Get step-by-step solutions from verified subject matter experts
