Let x i = (x i , y i ), i = 1, . . . ,

Question:

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., imagedist(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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Applied Linear Algebra

ISBN: 9783319910406

2nd Edition

Authors: Peter J. Olver, Chehrzad Shakiban

Question Posted: