Find a line such that sum of perpendicular distances of points to the line is minimized
Statement
Given a set of points (column vectors) , let be a matrix of which each row is just . It is easy to find a unit vector such that is minimized. Here, means inner product and is the length of a vector. therefore is the squared perpendicular distance from to the line specified by . Facts in linear algebra tell that is just the right singular vector of that corresponds the largest singular value. Thus the optimization objective above can be answered by doing a SVD decomposition.
My question, however, is that how to find a unit vector that minimizes i.e. minimize sum of squared perpendicular distances to a line.
• Is there any procedure like SVD solving the problem? or a paper on this topic?
• Can we bound the difference between and , e.g., is there a non-trivial bound on ?
It is a common practice to use the squared one instead of the unsquared one as …
Posed by user49129 · linear-algebra, mg.metric-geometry, nonlinear-optimization
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-201951.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-201951.lean
import Mathlib /-! # Find a line such that sum of perpendicular distances of points to the line is minimized Source: https://mathoverflow.net/questions/201951 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_201951 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_201951