Least squares gives every measurement the same weight and penalizes the square of its residual, so a few wrong measurements can move the fit far from the truth. This chapter starts from the least squares fit of a line and shows how one bad point moves it. It then covers the methods that limit that damage. Robust losses and the inlier and outlier mixture reweight the data around a current fit. RANSAC needs no starting fit and finds the inliers by fitting many small random samples.
Least Squares with Outliers
The least squares baseline, leverage, robust losses and the inlier and outlier mixture.
RANSAC
Fitting minimal random samples and keeping the largest consensus set.
RANSAC Applications
A floor plane in a point cloud and the settings of a homography estimate.
Found an error on this page? Report an issue.

