Once we see a linear pattern in a scatterplot, we fit a line to model the relationship and make predictions. But how do we know what line fits the data "best?" To solve this problem, we'll learn about residuals and least-squares regression .