Linear regression line and scatter plot

Linear regression line and scatter plot

If a regression line (linear regression line) is said to \”fit\” the data presented in a scatter plot, what relation is minimized between the observed data, y, and the predicted output for the regression line?