Standard.BaseDataRegressionRegression.fit_least_squaresOn this pageRegression.fit_least_squares Regression.fit_least_squaresknown_xsknown_ysmodel Documentation Use Least Squares to fit a line to the data.