maths

Fitting a plane to points using Lagrange Multipliers

Suppose we have some three dimensional point data and we think that the data can be well described by a plane. We find this plane by minimising the distance between the plane and all the points using a least squares fit.