Equality constrained least squares problem: How to minimize the distance from a set of points to a point on a line?

115 Views Asked by At

Equality constrained least squares problem: Given is a set of N points Pi and a line in R^3. Find a point P on the line that minimizes Minimizing this sum.

1

There are 1 best solutions below

0
On

Note that your expression means you're minimizing the sum of the squares of the distances, not the sum of the distances

Without the constraint, the point in R^3 that would minimize the sum is simply the mean of the points, the centroid. When you move away from the centroid, you start to induce a penalty. Expanding squares quickly shows that it doesn't matter which way you deviate from the mean, just by how much. So, "move" your solution onto the line.

That is really say, the solution: compute the mean of your points. Project that to the line (i.e. the point on the line closest to the mean). This is your optimum.