Robust linear model estimation using RANSAC
In this example, we see how to robustly fit a linear model to faulty data using the RANSAC algorithm.
The ordinary linear regressor is sensitive to outliers, and the fitted line can easily be skewed away from the true underlying relationship of data.
The RANSAC regressor automatically splits the data into inliers and outliers, and the fitted line is determined only by the identified inliers.

Estimated coefficients (true, linear regression, RANSAC):
82.1903908407869 [54.17236387] [82.08533159]# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause
import