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 (x, L) = i=1dist(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 qcan 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.


image

dist (x, L) = i=1

Step by Step Solution

3.37 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Applied Linear Algebra Questions!