Linear Regression
Ordinary least squares chooses the slope and intercept that minimize the sum of squared vertical errors.
Try this
Add a point far above the line. How does it change the slope and mean squared error?
Use the labeled controls with your mouse or keyboard. The output above summarizes the visualization.