\(\bar{x}\)
\(\bar{y}\)
Drag the yellow circles up and down to change the intercept and slope and see how the square residuals grow and shrink. The purple square below is the Sum of these Squared Residuals.
Ordinary Least Squares regression finds the line that results in the smallest SSR possible.
Try to find it!
made by Milan Valášek
hosted here